2008 Mar 19 10:35 AM
Hi all
I am having a transaction KKS2..,,, I want to pass the transaction's output to an internal table .,,,
In my report i am calling the transaction KKS2 using call transaction statement , ,,, after executuion of the statement , i want to pass the output of that transcation to an internal table.,,,,
Even i cannot use the submit statement , becos my standard report is MODULE POOL REPORT
Hoping for ur wonderful support please!!!
Regards
karthikeyan
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 6:31 PM
2008 Mar 19 10:51 AM
Try the below code.
DATA list_tab TYPE TABLE OF abaplist.
" SAPMKKS0 is the program name for tcode KKS2
SUBMIT SAPMKKS0 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.
hope it would help you
Regards,
Venkatram
Hi all
I am having a transaction KKS2..,,, I want to pass the transaction's output to an internal table .,,,
In my report i am calling the transaction KKS2 using call transaction statement , ,,, after executuion of the statement , i want to pass the output of that transcation to an internal table.,,,,
Even i cannot use the submit statement , becos my standard report is MODULE POOL REPORT
Hoping for ur wonderful support please!!!
Regards
karthikeyan
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 6:31 PM
2008 Mar 19 10:51 AM
Try the below code.
DATA list_tab TYPE TABLE OF abaplist.
" SAPMKKS0 is the program name for tcode KKS2
SUBMIT SAPMKKS0 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.
hope it would help you
Regards,
Venkatram
2008 Mar 19 11:53 AM
HI
Thanks for ur kind reply.,, But the problem is that it is a module pool program.,,
So its going for dump.,,
Could you plese sugesst some other soliution??
Regards
karthik
2008 Mar 19 12:18 PM
Try the below code.
DATA list_tab TYPE TABLE OF abaplist.
" SAPMKKS0 is the program name for tcode KKS2
SUBMIT ZREP1 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.
The program ZREP1 will have the following code.
REPORT ZREP1.
CALL TRANSACTION KKS2 AND SKIP FIRST SCREEN.
Hope this helps.
Thanks,
Venkatram
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |