2006 Nov 30 8:31 PM
Hi ;
I am running a report in background.
Now, in this report I am passing some data using 'SUBMIT' into another program say P2.
Now I want the output from P2.
Someone please tell me how to achieve this.
Regards
Abhishek
Hi ;
I am running a report in background.
Now, in this report I am passing some data using 'SUBMIT' into another program say P2.
Now I want the output from P2.
Someone please tell me how to achieve this.
Regards
Abhishek
2006 Nov 30 8:36 PM
Hi,
Please check this.
SUBMIT (P_PROG) USING SELECTION-SET P_VAR
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE 'Error in list_from_memory.'.
ENDIF.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
LISTASCI = ASCITAB
LISTOBJECT = LISTOBJECT.
Regards,
Ferry Lianto
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |