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

Sumit statement with EXPORTING LIST TO MEMORY

Former Member
0 Likes
584

Hi ,

I am using Submit statement in the following way.

SUBMIT zmatloc WITH SL_WERKS-LOW EQ SO_WERKS-LOW

WITH SL_MATNR IN SO_MATNR

WITH VA EQ 'X'

WITH SL_SPMON-LOW EQ W_BUDAT1

WITH SL_SPMON-HIGH EQ W_BUDAT1

WITH SL_MTART-LOW EQ 'ROH'

WITH SLV_NO EQ 'STOCK'

EXPORTING LIST TO MEMORY AND RETURN.

after this to display the output i am using the FM LIST_FROM_MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = LISTOBJECT

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

but here Internal table listobject is empty.

can any one have any idea on this.

Thank you.

Csr.

Hi ,

I am using Submit statement in the following way.

SUBMIT zmatloc WITH SL_WERKS-LOW EQ SO_WERKS-LOW

WITH SL_MATNR IN SO_MATNR

WITH VA EQ 'X'

WITH SL_SPMON-LOW EQ W_BUDAT1

WITH SL_SPMON-HIGH EQ W_BUDAT1

WITH SL_MTART-LOW EQ 'ROH'

WITH SLV_NO EQ 'STOCK'

EXPORTING LIST TO MEMORY AND RETURN.

after this to display the output i am using the FM LIST_FROM_MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = LISTOBJECT

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

but here Internal table listobject is empty.

can any one have any idea on this.

Thank you.

Csr.

2 REPLIES 2
Read only

Former Member
0 Likes
449

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = LISTOBJECT

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

after this add following code...

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = LISTOBJECT.

ENDIF.

Read only

former_member195698
Active Contributor
0 Likes
449

Have you tried running the report with the parameters given in your case. is it giving any output ?