08-22-2007 8:20 PM
Hi
I have a field VBAP-NETPR (item value). - This should be left justified
I have defined the field
data: net_cost TYPE char50,
please can some suggest how to get it left justified
08-22-2007 8:23 PM
08-22-2007 8:24 PM
shift LEFT net_cost DELETING LEADING spaces.
WRITE:/ net_cost LEFT-JUSTIFIED.
08-22-2007 8:26 PM
WRITE vbap-netpr TO net_cost CURRENCY VBAP-WAERK NO-GROUPING LEFT-JUSTIFIED.
08-22-2007 8:45 PM
Hi,
You can try with the follwoing:
Data: net_cost like vbap-netpr value '1000'.
Write: net_cost left-justified.
Output will be:
1,000.00 "this value is left justified
If you use the data type as char, the value will always be left justified by default.
For example:
Data net_cost(10) type c value 'Hai'.
Write net_cost.
Output will be:
Hai "left justified by default
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa
08-22-2007 8:52 PM