0% found this document useful (0 votes)
28 views

Export To Memory

The document provides code snippets for submitting an RMCB0300 report query to retrieve stock level data for selected plants, materials and periods. It describes exporting the results to memory and tables that can be checked for the output data.

Uploaded by

Aip Suraji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Export To Memory

The document provides code snippets for submitting an RMCB0300 report query to retrieve stock level data for selected plants, materials and periods. It describes exporting the results to memory and tables that can be checked for the output data.

Uploaded by

Aip Suraji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

ZRMCB0300

SUBMIT RMCB0300 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.

--------------------------------------------------------

SUBMIT RMCB0300 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.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

-------------------------------------------------------------

EXPORTING LIST TO MEMORY

Condition....

CALL FUNCTION 'LIST FROM MEMORY'

TABLES

LISTOBJECT = IT_LIST

EXCEPTIONS

....

IF SY-SUBRC EQ 0.
CALL FUNCTION 'LIST_TO_ASCII'

EXPORTING

LIST_INDEX = -1

TABLES

LISTASCI = IT_TXT

LISTOBJECT = IT_LIST

EXCEPTION

.....

ENDIF.

-------------------------------------------

MB5B

--------------------------

ou may check the LIS table S039 in SE16, which contains the data.

Additionally, you may check the tables: S031, S032 and S033.

s031,s032,s039,s034,s035,s094,mbew

--------------------------------------------------------
SELECT-OPTIONS : SLOC LIKE S031-LGORT.

SUBMIT RMCB0300 WITH SL_WERKS-LOW = PLNT

WITH SL_LGORT IN SLOC

WITH SL_MTART = 'HALB' WITH SL_MTART = 'VERP'

WITH SL_MTART = 'ROH' WITH SL_MTART = 'FERT'

WITH SL_SPMON-LOW = FPERIOD

WITH SLV_NO = 'STK'

WITH SL_SPMON-HIGH = FPERIOD EXPORTING LIST TO MEMORY AND RETURN.

while append to internal table even if i specify both high and low value it prints
low and high incorrectly how will this problem will solved

itab-lgort = sloc-low.
-----------------------------

You might also like