Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

DMBTR value is not appear in ALV Grid, Values is there in Internal table.

DVetrivel
Explorer
0 Kudos
359

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

1 ACCEPTED SOLUTION

abo
Active Contributor
0 Kudos
229

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.

6 REPLIES 6

FredericGirod
Active Contributor
0 Kudos
229

How your fieldname could be DMBTR and your debug show MIGO_PPV ??

DVetrivel
Explorer
0 Kudos
229

MIGO_PPV is my field label value is DMBTR only.

Best Regard

Vetrivel

0 Kudos
229

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.

abo
Active Contributor
0 Kudos
230

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.

MateuszAdamus
Active Contributor
0 Kudos
229

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,
Mateusz

DVetrivel
Explorer
0 Kudos
229

Thanks team issue has been resolved, i am passed correct field name it got appeared.

Best Regards

Vetrivel