07-15-2009 7:55 PM
Hello All,
I have written an ALV report and when I click BACK on the output list, instead of taking me back to selection screen it is giving a blank screen, and again clicking BACK is giving me selection screen.
ALV output -->> BACK --> Blank screen --> BACK --> Selection screen
I am unable to trace out why this is happenning. I want behavour as it dies for other alv report.
ALV output --> BACK --> Selection Screen.
Any suggestions are highly appreciated.
Thanks-
07-15-2009 9:03 PM
it could be because of two reasons
1.
SELECTION-SCREEN SKIP <n>.
2.
WRITE
Please update how you have resolved this issue.
Thank you,
Goutham.
07-15-2009 8:09 PM
Hi Rahul,
what kind of ALV? OO or FM?
It seems a flow screen problem. How are you calling your alv screen and how are you calling BACK?
Frisoni
07-15-2009 8:24 PM
Hello,
Depending how the alv is written, I guess you are doing a OO ALV with custom containers....
on your PAI...
when checking your sy-ucomm...
....
CASE SY-UCOMM
WHEN 'EXIT'.
LEAVE TO SCREEN 0. " -> Will take you to the initial screen
.....
ENDCASE.
....
bye
07-15-2009 8:33 PM
I am using a FM, its a straight forward ALV report,
Getting data from different tables in to final output internal table, calling a function module to display ALV.
h_repid = sy-repid.
h_variant-report = h_repid.
t_slis_layout_alv-zebra = 'X'.
t_slis_layout_alv-colwidth_optimize = 'X'.
PERFORM get_fieldcat_summary.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = h_repid
is_layout = t_slis_layout_alv
it_fieldcat = t_fieldcat1[]
i_save = 'A'
is_variant = h_variant
TABLES
t_outtab = it_main[]
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.
Thanks-
07-15-2009 9:00 PM
07-15-2009 9:03 PM
it could be because of two reasons
1.
SELECTION-SCREEN SKIP <n>.
2.
WRITE
Please update how you have resolved this issue.
Thank you,
Goutham.
07-15-2009 10:47 PM
It was because of the SKIP. Thanks a lot everyone for the valuable answeres
07-15-2009 9:07 PM
I solved in a strange way
report ytest.
...
...
start-of-selection.
perform f_get_selections_values.
perform f_alv_display. <<-- output display using alv
....
....
....
form f_get_selections_values.
v_program = sy-repid.
call function 'RS_REFRESH_FROM_SELECTOPTIONS'
exporting
curr_report = v_program
tables
selection_table = i_seltab
exceptions
not_found = 1
no_report = 2.
endform. " F_get_selections_values
When press back
form f_exit_program.
submit ytest with selection-table i_seltab via selection-screen. " submit same report
endform.
a®