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

Regarding ALV Execution

sreeramkumar_madisetty
Active Contributor
0 Likes
830

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.

8 REPLIES 8
Read only

Former Member
0 Likes
811

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

Read only

Former Member
0 Likes
811

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

Read only

Former Member
0 Likes
811
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
Read only

Former Member
0 Likes
811

Hello Sree,

Please comment the <b>it_excluding = itab_excluding</b> and check.

Vasanth

Read only

Former Member
0 Likes
811

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

Read only

Former Member
0 Likes
811

Validation of selection parameters should be at the event at selection screen

Read only

Former Member
0 Likes
811

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.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
811

Hi

It's Answered.