Skip to Content
avatar image
Former Member

Problem in VIA SELECTION-SCREEN

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 09, 2015 at 07:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2015 at 12:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2015 at 09:59 AM

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

    Add comment
    10|10000 characters needed characters exceeded