11-20-2007 6:17 AM
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.
11-20-2007 6: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.
11-20-2007 6:34 AM
Have you tried running the report with the parameters given in your case. is it giving any output ?