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

Importing tables from standard SAP program

Former Member
0 Likes
444

Hi all,

I am using SUBMIT & RETURN to call a standard SAP program. However i want few internal tables from that SAP standard program to my program. How this can be done?

Thanks.

Wamr regards,

Harshad.

Hi all,

I am using SUBMIT & RETURN to call a standard SAP program. However i want few internal tables from that SAP standard program to my program. How this can be done?

Thanks.

Wamr regards,

Harshad.

2 REPLIES 2
Read only

Former Member
0 Likes
409

Hi,

DATA ABAPLIST LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.

SUBMIT 'Standrad program name' USING SELECTION-SETS OF PROGRAM 'yyyy'

WITH mode = mode

AND RETURN EXPORTING LIST TO MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = abaplist

EXCEPTIONS

not_found = 1

OTHERS = 2.

CALL FUNCTION 'WRITE_LIST'

EXPORTING

WRITE_ONLY = 'X'

TABLES

LISTOBJECT = ABAPLIST

EXCEPTIONS

EMPTY_LIST = 1

OTHERS = 2.

Read only

Former Member
0 Likes
409

answered