Hi Keerthi,
We are displaying the amount based on currency wise in front end, in that case we should not look into datatype which is stored in backend.
If the currency is configured as 3 digit, then standard screen will show as 3 digit only, even we are suppose to show in the same format. In order to show in the same format(Currency Configured format) in our Z-program, we should use the reference table and reference field.
Reference field maintained for BSEG Table Currency shown below
Let me give one small example.
In BSEG table as you shown in the screenshot, we need to maintain multiple currency, but during storing the value in backend it will check the datatype(no. of decimals), here we are storing the value based on datatype maintained and showing the same value based on currency configured..
In Real time, we have multiple currency, which may have different number of decimal places. So currency wise we should not add the number of field know like as shown below
Database:
Article KWD INR ...... etc......
Row 1 1105 4.488
Row 2 5507 55.33
It is not possible to create separate field Currency wise(i.e.KWD separate field, INR Currency separate field) as shown below.
The standard format we are using, we are storing all the currencies in the single field and the relevant currency type is mentioned next to the amount as shown below. Based on Currency type(i.e KWD/INR) system will convert the value when we use it in front end, as same in FBL5N report.
Database:
Article Document Currency AMOUNT
1105 KWD 44.88
5507 INR 55.33
Hope it is understood.
Regards
Rajkumar Narasimman