Application Development and Automation 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: 
Read only

ALV Display

Former Member
0 Likes
800

Hi again,

I am having a problem in displaying the values in my ALV grid. It displays the rows but not the values, but the output table contains values. How come I can't view it in the grid? How can I solve this?

Thanks,

Atel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
775

Munar,

Well if you have values in the data table, then you should see them in the output as well.

Please check the table structure is same as the fieldcat data. It might help posting the code here.

Regards,

Ravi

Note : Please mark the helpful answers.

Hi again,

I am having a problem in displaying the values in my ALV grid. It displays the rows but not the values, but the output table contains values. How come I can't view it in the grid? How can I solve this?

Thanks,

Atel

5 REPLIES 5
Read only

Former Member
0 Likes
775

Hi,

Any error code? Have you tried debugging? Post some code to have idea...

Regards,

Mireia

Read only

Former Member
0 Likes
776

Munar,

Well if you have values in the data table, then you should see them in the output as well.

Please check the table structure is same as the fieldcat data. It might help posting the code here.

Regards,

Ravi

Note : Please mark the helpful answers.

Read only

Former Member
0 Likes
775

Hi Mariestel,

if you are using REUSE_ALV_GRID_DISPLAY.

i faced a similar problem.

just check whether the structure (fieldcat) you are passing to the FM is similar to the internal table.

regards,

Kinshuk

Read only

Former Member
0 Likes
775

Hi,

Can u give us the code so that we can find out any errors.

Regards,

Sylendra.

Read only

Former Member
0 Likes
775

Hi mariestel,

1. there might be some minor mistake.

2. just check out if it is

like this.

3. just copy paste in new program.

REPORT abc.

TYPE-POOLS : slis.

*----


Data

DATA : BEGIN OF itab OCCURS 0.

INCLUDE STRUCTURE t001.

DATA : END OF itab.

DATA : alvfc TYPE slis_t_fieldcat_alv.

*----


Select

SELECT * FROM t001 INTO TABLE itab.

*------- Field Catalogue

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = sy-repid

i_internal_tabname = 'ITAB'

i_inclname = sy-repid

CHANGING

ct_fieldcat = alvfc

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

*----


Display

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

it_fieldcat = alvfc

TABLES

t_outtab = itab

EXCEPTIONS

program_error = 1

OTHERS = 2.

regards,

amit m.