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

SALV not coming using container

Former Member
0 Likes
709

Hi All

I am trying to generate an ALV using container but its not coming.

when I execute the code only the blank screen is coming up.

here is my code, please help.

before this code IO have fetched the datain internal table.

CONT1 is the name of my container on the screen.

DATA: ALV TYPE REF TO CL_SALV_TABLE,

CONTAINER1 TYPE REF TO CL_GUI_CONTAINER.

CALL METHOD CONTAINER1->SET_NAME

EXPORTING

NAME = 'CONT1'.

CALL METHOD CL_SALV_TABLE=>FACTORY

EXPORTING

R_CONTAINER = CONTAINER1

CONTAINER_NAME = 'CONT1'

IMPORTING

R_SALV_TABLE = ALV

CHANGING

T_TABLE = ITAB.

CALL METHOD ALV->DISPLAY.

Thanks in advance

Lalit Gupta

Hi All

I am trying to generate an ALV using container but its not coming.

when I execute the code only the blank screen is coming up.

here is my code, please help.

before this code IO have fetched the datain internal table.

CONT1 is the name of my container on the screen.

DATA: ALV TYPE REF TO CL_SALV_TABLE,

CONTAINER1 TYPE REF TO CL_GUI_CONTAINER.

CALL METHOD CONTAINER1->SET_NAME

EXPORTING

NAME = 'CONT1'.

CALL METHOD CL_SALV_TABLE=>FACTORY

EXPORTING

R_CONTAINER = CONTAINER1

CONTAINER_NAME = 'CONT1'

IMPORTING

R_SALV_TABLE = ALV

CHANGING

T_TABLE = ITAB.

CALL METHOD ALV->DISPLAY.

Thanks in advance

Lalit Gupta

2 REPLIES 2
Read only

Former Member
0 Likes
544

SOLVED BY MY OWN

THANKS TO ALL

Read only

0 Likes
544

Could you post your solution? I am new and looking for this exact solution.