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: 

Problem in VIA SELECTION-SCREEN

Former Member
0 Kudos

I want to capture the output of standard transacion ih06 in internal table and  want to skip output of ih06 and show my desired output by processing it.

Problem : When I am running this code, after giving input and pressing F8, Then program remain on input selection screen only AND output is displayed only after clicking BACK BUTTON. How to avoid this.

CODE :

DATA list_tab TYPE TABLE OF abaplist.

SUBMIT RIIFLO20

VIA SELECTION-SCREEN

EXPORTING LIST TO MEMORY

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

   TABLES

     listobject = list_tab

   EXCEPTIONS

     not_found  = 1

     OTHERS     = 2.

IF sy-subrc = 0.

   CALL FUNCTION 'WRITE_LIST'

     TABLES

       listobject = list_tab.

ENDIF.

5 REPLIES 5

Former Member
0 Kudos

Hi Mehtab,

In order to avoid selection screen being displaying you should use below code.

Fill itab with selection-screen input.

DATA: list_tab TYPE TABLE OF abaplist,

      itab type table of rsparams.

SUBMIT RIIFLO20

WITH SELECTION-TABLE itab

EXPORTING LIST TO MEMORY

AND RETURN.


Regards,

Greeshma

0 Kudos

I don't want to avoid selection screen.

I want to avoid output . 

former_member201275
Active Contributor
0 Kudos

This should work if you leave out "via selection-screen"?

0 Kudos

No it is not working without "via selection-screen" , because without it no selection screen is coming.


raymond_giuseppi
Active Contributor
0 Kudos

I'm not sure this is possible : with VIA SELECTION-SCREEN the report will display it before and after display, without you wont be able to input selection criteria.

Could you consider input of criteria in caller program and pass those with WITH expr or WITH SELECTION-TABLE options to the report.

Regards,
Raymond