Thanks guys for your responses,
One more validation I need to put In the mentioned querry
i.e.
If Currency is other than INR then Rate & Translation Date may be mandatory. In this case “Amount in Doc Currency” and “Amount in local currency” values needs to be updated.
So before inserting the data, I need to go through the validation as mentioned above. Please suggest for the above.
The mentioned fields are
1. for currency: BKPF-WAERS
2. for Amount in Document Currency: BSEG-WRBTR
3. for Amount in Local Currency: BSEG-DMBTR
So please suggest for the mentioned querry in the same program.