‎2007 Jun 18 7:04 AM
hi,
how to display an hiphan for default value of currency field in alv..???
‎2007 Jun 18 8:09 AM
Hi,
If u want to display hyphen(-) for default value of currency field in alv...u need to do the following:
for watever field to which u wish to display hyphen(-) for default currency ,
wa_fieldcat-cfieldname = '-' "cfieldname is the currency field for the respective field.
append wa_fieldcat to fieldcat.
clear wa_fieldcat.
Rewards points if found useful..
Regards,
abc xyz
‎2007 Jun 18 8:25 AM
what should be the cfieldname.. i am not getting it..
would u plz explain it with example..
‎2007 Jun 18 8:14 AM
Hi,
Hi,
In the field catalog internal table..For the currency field you have to populate the cfieldname with the currency field name..
Ex..
DATA: BEGIN OF ITAB OCCURS 0,
VALUE TYPE MBEW-STPRS,
CURRENCY TYPE WAERS,
END OF ITAB.
Field catalog..
S_FIELDCATALOG-FIELDNAME = 'VALUE'.
S_FIELDCATALOG-cfieldname = 'CURRENCY'.
S_FIELDCATALOG-TABNAME = 'ITAB'.
This will display the decimal places according to the currency in the column CURRENCY..
<b>Reward points</b>
Regards