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: 

Grid mismatch in ALV output

Former Member
0 Kudos

Hi all,

     I was trying to display a dynamic ALV, but here the problem is the table which is displaying in debugger is not getting displayed in out put calling up the 'REUSE_GRID_DISPLAY', Kindly guide to display table at it is in the out put as well.

The values which I am getting at the time of debugging is like this,

And the values which are displaying in output are like this..

Thanks in advance...

B.Homeswara Prasad,

9743400999.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Prasad,

Check your field catalogue. the problem is with the field names.

5 REPLIES 5

Former Member
0 Kudos

Hi Prasad,

Check your field catalogue. the problem is with the field names.

Former Member
0 Kudos

Hi,

Check fieldcat that is passing to the 'REUSE_GRID_DISPLAY'.

Fieldcat might consist of same field name, please check.

Regards,

Chandra

philipdavy
Contributor
0 Kudos
  • Probably you have not arranged your field catalog as you wanted in the output ALV.

* Be sure about the order ( FIELDCATALOG-COL_POS ) you gave and the CAPITAL letter convention while giving field name.

Regards,

Philip.

Former Member
0 Kudos

Hi Prasad,

after adding each field properties from work area to internal table.

you must clear the work area.

wa-field1 = ' BUKRS'.

wa-tabname  = 'TAB1'.

append wa to it_tab.

clear wa.

For each and  every field.

Hope its useful.

Regards

venkata sudheer

rajkumarnarasimman
Active Contributor
0 Kudos

Dear Prasad,

Check the Field name defined in Field catalog for the following Fields with the final structure declared. If the field name doesn't matched then the ALV report will display the same value which shows in previous column. In our case, BISMT(Old Material No.) Field value is showing in the remaining columns.

Field Catalog:

  wl_fcat-fieldname = 'OMPN'.     "Please make sure CAPITAL Letter is used


Fields:

  1. 0MPN
  2. 0Manufactres
  3. 1MPN
  4. 1Manufactres
  5. 2MPN
  6. 2Manufactres

Regards

Rajkumar Narasimman