‎2006 Sep 20 4:39 PM
I would like to use the method SET_DECIMALS_COLUMN of class cl_salv_column. I can't seem to locate an example of how to format what I am sending to the parameter Value. I tried sending it with '<ALV column name> DECIMALS 1'. I also tried other variations. Does anyone have a suggestion please.
‎2006 Sep 20 4:56 PM
Hi Jason!
I suggest to use the logic behind write. Either you define a character field, which you can fill with write ... to (and decimals, unit or currency option) or you define a currency field linked to a currency amount field. You don't need to show the currency field, just fill it (in dynpro or ALV). Use currencies 1, 2, 3,... (they are at least defined in my release by SAP) if you don't have a 'real' one.
Regards,
Christian
‎2006 Sep 20 5:17 PM
Vivekanand,
Thanks for your support, however this documentation shows the concept and what class/methods to use. It does not show what format the data within the 'Value' parameter needs to have. Any other suggestions?
Kind Regards,
Jason
Message was edited by: Jason DeLuca
‎2006 Sep 20 9:10 PM
Any more suggestions? I am simply looking for what needs to be sent in the parameter 'Values' of method cl_salv_column. My interpretation of the Class documentation is to do this...
DATA: p_l_value TYPE REF TO cl_salv_column,
l_col_dec TYPE lvc_dfname.
l_col_dec = 'WA_COL1 DECIMALS 1'.
CALL METHOD p_l_value->SET_DECIMALS_COLUMN
EXPORTING
value = l_col_dec.
But this doesn't work.
Thanks in advance,
Jason
‎2006 Sep 20 4:57 PM
Kindly refer the below link
http://help.sap.com/saphelp_erp2005/helpdata/en/6a/e4eb40c4f8712ae10000000a155106/frameset.htm
regards
Vivek
Rewards points if this helps
‎2006 Sep 20 9:13 PM
Hi,
What is your requiement??Do you want to convert a value field to 1 decimal field??
Thanks,
Naren
‎2006 Sep 20 9:24 PM
Yes. The field is type p decimals 4. I don't want to change the type or do a type conversion to a new field. I would just like to use the functionality provided by the method and have the whole column displayed with only 1 decimal place in alv output.
Thanks,
Jason
‎2006 Sep 20 10:01 PM
Hi,
Did you try the field DECIMALS_OUT as '1' in the ALV field catalog internal table..
Hope this helps..
THanks,
Naren