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.
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'
LISTOBJECT = ABAPLIST
NOT_FOUND = 1
OTHERS = 2.
DATA textlines(3072) TYPE C OCCURS 0 WITH HEADER LINE.
call function 'LIST_TO_ASCI'
listobject = ABAPLIST
listasci = textlines
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.