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: 

Blank screen when Back on ALV report

Former Member
0 Kudos

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-

1 ACCEPTED SOLUTION

Former Member

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.

7 REPLIES 7

guilherme_frisoni
Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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-

0 Kudos

Check whether any write statement is used in the program.

Former Member

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.

It was because of the SKIP. Thanks a lot everyone for the valuable answeres

former_member194669
Active Contributor
0 Kudos

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.