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

Problem in VIA SELECTION-SCREEN

Former Member
0 Likes
950

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
Read only

Former Member
0 Likes
883

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

Read only

0 Likes
883

I don't want to avoid selection screen.

I want to avoid output . 

Read only

former_member201275
Active Contributor
0 Likes
883

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

Read only

0 Likes
883

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


Read only

RaymondGiuseppi
Active Contributor
0 Likes
883

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