‎2007 Mar 09 9:29 AM
Hi guys,
I am using two radio buttons in the report, which will display two outputs according to the selected radio button.
When i come back from the ALV screen, blank list is displaying insteading of coming to selection screen.
i am using OOPS alv.
Could you please let me know the reason for the same
Regards
Rajesh
‎2007 Mar 09 9:35 AM
Hi!
This problem occurred, when you forget a SKIP, or WRITE command after the ALV function module call.
Check your coding.
F.e:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lv_repid
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_structure_name = 'ZKISZALLITASOK_MEGYENKENT'
is_layout = gs_layout
it_fieldcat = gs_fieldcat_slis
i_save = 'A'
is_variant = gs_variant
TABLES
t_outtab = gt_alvout
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SKIP. "<<< causes empty list after ALV display
Regards
Tamá
‎2007 Mar 09 9:34 AM
Hello Rajesh,
Hello,
In the user command of the screen use like this:
<b>WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREN.</b>
Regards,
Vasanth
‎2007 Mar 09 9:37 AM
Hi Vasanth,
Thanks for your reply
I have already written the following code even then its coming.
WHEN 'BACK'.
Free: container.
SET SCREEN 0.
LEAVE SCREN.
‎2007 Mar 09 9:35 AM
Hi!
This problem occurred, when you forget a SKIP, or WRITE command after the ALV function module call.
Check your coding.
F.e:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lv_repid
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_structure_name = 'ZKISZALLITASOK_MEGYENKENT'
is_layout = gs_layout
it_fieldcat = gs_fieldcat_slis
i_save = 'A'
is_variant = gs_variant
TABLES
t_outtab = gt_alvout
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SKIP. "<<< causes empty list after ALV display
Regards
Tamá
‎2007 Mar 09 9:50 AM
Hi Tamas,
Thanks for your answer.
I forgot to delete SKIP in the program.
Now its working fine.
I have awarded you full points.
Regards
Rajesh