01-09-2015 6:56 AM
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.
01-09-2015 7: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
01-09-2015 9:52 AM
01-09-2015 9:59 AM
01-09-2015 11:22 AM
No it is not working without "via selection-screen" , because without it no selection screen is coming.
01-09-2015 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