Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Submit with exorting list to memory and return

Former Member
0 Likes
4,200

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.

10 REPLIES 10
Read only

Former Member
0 Likes
3,217

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

Read only

0 Likes
3,217

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'.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
3,217

debug the program whethre that program is executing or not with that parameters.

Read only

0 Likes
3,217

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

Read only

0 Likes
3,217

Hi Narasimhulu

can you please give more details on f-code key.

thanks in advance

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
3,217

Where did u use this statement....post ur Qn clearly

IMPORT g_t_mseg_lean FROM MEMORY ID 'LEAN'.

Read only

0 Likes
3,217

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'.

Read only

0 Likes
3,217

AS vijay said ...its working for me too...:-)

Read only

Former Member
0 Likes
3,217

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.

Read only

0 Likes
3,217

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