Skip to Content
author's profile photo Former Member
Former Member

Sumit statement with EXPORTING LIST TO MEMORY

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 06:30 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 06:34 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.