Skip to Content
1
Apr 06, 2013 at 11:00 AM

Submit MC.9 and get the total ValStockValue

656 Views

Dear All,

I am developing a report, for which i need to get the closing stock as per the plant for previous month. Easy way is to use submit. so i used submit. My problem i am getting Columns such as as per material but am not able to see the field ValStockValue whereas i can see this column in when i run MC.9 manually.

Am getting three different columns when i debug and see the internal table which i got using Submit. What should i do to get the above column in my Submit.

My Coding:

SUBMIT RMCB0300

WITH SL_WERKS IN R_WERKS

WITH SL_MTART IN R_MTART

WITH SL_SPMON IN R_SPMON

AND RETURN EXPORTING LIST TO MEMORY.

check sy-subrc eq 0.

DATA: ABAPLIST LIKE ABAPLIST OCCURS 0.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

LISTOBJECT = ABAPLIST

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

DATA textlines(3072) TYPE C OCCURS 0 WITH HEADER LINE.

call function 'LIST_TO_ASCI'

tables

listobject = ABAPLIST

listasci = textlines

exceptions

empty_list = 1

list_index_invalid = 2

others = 3.



I am getting below values in textlines

But I need column ValStockValue, it is not getting displayed in the above internal table, below is screenshot of MC.9

Please tell me what will be the problem.

Regards,

Rithika

Attachments

MC.9 output1.JPG (59.9 kB)