‎2007 Jan 03 11:10 AM
Hi
I am facing problem while Executing the Report.
That is After displaying the selection screen and by making entries it is giving the correct list.
But when I press the Back button or Esc button in the list level insted of showing the Selection Screen it is showing the Empty screen and after that when I press again Back or Esc button, it is showing Selection Screen.
Please suggest me the Solution.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = g_repid
is_layout = itab_layout
it_fieldcat = itab_fcat[]
it_excluding = itab_excluding
it_sort = itab_sort
it_events = itab_event[]
TABLES
t_outtab = itab_stock
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e017.
ENDIF.
REFRESH itab_stock.
ENDFORM.
I am using the Above code and I am displaying the ALV using FMS and I am not creating any GUI Statuses for my program.
Please suggest me the solution.
‎2007 Jan 03 11:16 AM
Hi Sree ,
Could you please tell me what all are you populating in your table itab_event and itab_excluding
and is possible please paste your entire code here.
Regards
Arun
Message was edited by:
Arun R
‎2007 Jan 03 11:17 AM
Hi ,
Please check what events you are passing in itab_event[] , if you are not using that no need to pass that .
Please mark useful answers
‎2007 Jan 03 11:18 AM
1. If you are using any write statement , remove that
2. If not then set PF STATUS
there is one exporting parameter of that FM called I_CALLBACK_PFSTATUS
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_pfstatus = 'PFSTATUS'.
i_callback_usercommand = 'USER_COMMAND'
FORM PFSTATUS.
SET PF-STATUS 'STATUS'.
ENDFORM.
FORM USER_COMMAND using p_ucomm like sy-ucomm.
case p_ucomm.
when 'BACK'.
leave to screen 0.
endcase.
ENDFORM.
now double click on STATUS and enable ur back button
‎2007 Jan 03 11:18 AM
Hello Sree,
Please comment the <b>it_excluding = itab_excluding</b> and check.
Vasanth
‎2007 Jan 03 11:19 AM
hi,
One reason can be u left a perform statement calling a form which needs to be called in the events...mostly top-of-page.
pls chk that
santhosh
‎2007 Jan 03 12:16 PM
Validation of selection parameters should be at the event at selection screen
‎2007 Jan 03 12:17 PM
Validation of selection parameters should be at the event at selection screen
ex :
INITIALIZATION.
AT SELECTION-SCREEN .
PERFORM data_retrieval.
IF itab_fn1[] IS INITIAL .
MESSAGE e002.
ENDIF.
START-OF-SELECTION.
PERFORM build_fieldcatalog.
‎2007 May 23 11:31 AM