‎2008 Aug 26 11:48 AM
Hi,
I am trying to run below statement in my code.
SUBMIT RM07MLBD
WITH bukrs IN s_bukrs
WITH datum IN s_budat
WITH matnr IN s_matnr
WITH werks IN s_werks
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
When i am executing this statement, i am getting a report output of RM07MLBD and LISTOBJECT internal table is empty. Any one have idea why it is happening.
Thanks.
‎2008 Aug 26 11:51 AM
Hi,
Try with the following changes:
SUBMIT RM07MLBD
WITH bukrs = s_bukrs
WITH datum = s_budat
WITH matnr = s_matnr
WITH werks = s_werks
EXPORTING LIST TO MEMORY AND RETURN.Regards,
Kunjal
‎2008 Aug 26 12:16 PM
Hi Kunjal
thanks for reply
after changing 'IN' with '=' report is not working
i think previously it was working but not fetching any thing from the memory id.
in my original post i forgot to mention this statement in the end
IMPORT g_t_mseg_lean FROM MEMORY ID 'LEAN'.
‎2008 Aug 26 12:08 PM
debug the program whethre that program is executing or not with that parameters.
‎2008 Aug 26 12:13 PM
Hi
Maintain a f-code key in h=gui ststus then only EXPORTING LIST TO MEMORY will work, And the ' ENTER' dOES NOT WORK AS F-KEY IN THIS CASE.
Regards,
Narasimhulu P
‎2008 Aug 26 12:18 PM
Hi Narasimhulu
can you please give more details on f-code key.
thanks in advance
‎2008 Aug 26 12:21 PM
Where did u use this statement....post ur Qn clearly
IMPORT g_t_mseg_lean FROM MEMORY ID 'LEAN'.
‎2008 Aug 26 12:30 PM
Hi Keshu
this is the complete code......
SUBMIT rm07mlbd
WITH bukrs in s_bukrs
WITH datum in s_budat
WITH matnr in s_matnr
WITH werks in s_werks
EXPORTING LIST TO MEMORY AND RETURN.
IMPORT g_t_mseg_lean FROM MEMORY ID 'LEAN'.
‎2008 Aug 26 12:34 PM
‎2008 Aug 26 12:28 PM
I tested it , it is working fine for me..
I am getting the records in listobject. Check it once again.
REPORT ztest_submi.
DATA: s_bukrs TYPE RANGE OF bukrs WITH HEADER LINE,
s_budat TYPE RANGE OF budat,
s_matnr TYPE RANGE OF matnr,
s_werks TYPE RANGE OF werks_d.
DATA: listobject TYPE STANDARD TABLE OF abaplist.
s_bukrs-low = '1000'.
s_bukrs-sign = 'I'.
s_bukrs-option = 'EQ'.
APPEND s_bukrs.
SUBMIT rm07mlbd
WITH bukrs IN s_bukrs
WITH datum IN s_budat
WITH matnr IN s_matnr
WITH werks IN s_werks
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
BREAK-POINT.
‎2008 Aug 26 1:38 PM
Hi Vijay
it worked this way.......
but in the program they are doing this:
SUBMIT rm07mlbd
WITH bukrs in s_bukrs
WITH datum in s_budat
WITH matnr in s_matnr
WITH werks in s_werks
EXPORTING LIST TO MEMORY AND RETURN.
IMPORT g_t_mseg_lean FROM MEMORY ID 'LEAN'.in the custom program what they r doing is importing data from memory id 'LEAN' on this data they are doing further processing....
but this Memory id LEAN is having no data. and from this data g_t_mseg_lean they are doing further processing.
further:
I have checked the program rm07mlbd there is a statement for exporting data to Memory id ''LEAN', but when i debugged and put a break-point on EXPORT G_T_MSEG_LEAN to MEMORY ID 'LEAN'.
it didnt stoped there, which i think is not executing......
now please suggest me what to do
thanks