2020 Nov 12 6:51 AM
Hi All,
Any one help me for this my development.. i have value in internal table DMBTR while passing value to ALV via field catalog it shows as empty. please help on this.
My fieldcatalog.
wa_fieldcat-fieldname = 'DMBTR'.
wa_fieldcat-cfieldname = 'WERKS'.
* wa_fieldcat-tabname = 'LT_GL_VAL'.
wa_fieldcat-ctabname = 'LT_GL_VAL'.
* wa_fieldcat-datatype = 'CURR'.
* wa_fieldcat-outputlen = 8.
wa_fieldcat-seltext_m = 'TOTAL_PPV'.
APPEND wa_fieldcat TO it_fieldcat. CLEAR wa_fieldcat.
ALV Out.
It much appreciated if i got help.
Best Regards
Vetrivel
2020 Nov 12 7:43 AM
As frdric.girod noted, your fieldname apparently does not match your structure. Could you please show the complete structure?
Also, if the field you're displaying is a currency value, you'll have to declare a matching currency field in the CFIELDNAME field of the catalog, to ensure proper formatting; WAERS is a typical choice, WERKS is... an interesting one.
2020 Nov 12 7:14 AM
How your fieldname could be DMBTR and your debug show MIGO_PPV ??
2020 Nov 12 7:16 AM
MIGO_PPV is my field label value is DMBTR only.
Best Regard
Vetrivel
2020 Nov 12 3:33 PM
Please use the COMMENT button for comments, questions, adding details, replying to OP comment, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2020 Nov 12 7:43 AM
As frdric.girod noted, your fieldname apparently does not match your structure. Could you please show the complete structure?
Also, if the field you're displaying is a currency value, you'll have to declare a matching currency field in the CFIELDNAME field of the catalog, to ensure proper formatting; WAERS is a typical choice, WERKS is... an interesting one.
2020 Nov 12 7:49 AM
Hello vetrivel.d
In your field catalog, you need to have the names of the fields from your structure/internal table populated into FIELDNAME column. This way ALV knows which data column the field catalog entry refers to.
Kind regards,2020 Nov 12 8:07 AM
Thanks team issue has been resolved, i am passed correct field name it got appeared.
Best Regards
Vetrivel