Requirement: Format the amount field for different countries
Analysis:
1. Field XDEZP in transparent table T005X records the amount format of the country LAND field to be displayed
2. There are three formats in Domain XUDCPFM as shown in the following figure
3. Refer to the code in the standard program DEMO_STRING_TEMPLATE_NUMB_FORM.
4. Final code examples:
DATA:lv_curr TYPE P DECIMALS 2 VALUE '1000.00'. DATA LV_cur TYPE CHAR50. CONSTANTS LC_land TYPE land1 VALUE 'DE' = |{ lv_curr COUNTRY = lc_land }|. WRITE lv_cur.Copy the code