IMPORT itab FROM MEMORY ID - doubt

Hello all,
In my program I am using the statement like given below.
IMPORT  ITAB_TDR       FROM MEMORY ID 'PPI'.  I am getting Sy-subrc = 4. 
The reason might be either Unable to import data objects or The ABAP memory was probably empty or The contents of all listed objects remain unchanged.
Now my question is->  How to store the data in the ABAP memory so that I can get the datas in ITAB_TDR in my import stmt.
Thanks in advance,
Balaji

JUST CHECK RPR_ABAP_SOURCE_SCAN REPORT IN SE38 AND GIVE THE STRING THERE IT WILL SHOW THE REPORT NAME. OR JUST PUT ABAPSOURCESCAN IN SE38 AND PRESS F4. IF IT IS A Z PROGRAM THEN GIVE PROG NAME AS Z*.
IF YOU GET THE PROG NAME THEN YOU HAVE TO RUN THAT PROG TO EXPORT THE VALUE IN MEMORY ID.
AFTER THAT ONLY YOU CAN USE IMPORT.
REGARDS
SHIBA DUTTA

Similar Messages

  • How to Export data to memory and Import data from memory?

    hi
    I have the follwoing some code of program.
    The data is not filled from memory. I have to find what is the wrong in code.
    REPORT ZIFT_TEST1..
    SELECT-OPTIONS : so_budat FOR bkpf-budat,
                     sd_saknr FOR ska1-saknr.
      EXPORT so_budat TO MEMORY ID 'ZBUDAT'.
      EXPORT sd_saknr TO MEMORY ID 'ZSAKNR'.
      SUBMIT ZIFT_TEST2 AND RETURN.
    REPORT ZIFT_TEST2..
    SELECT-OPTIONS so_budat FOR bsis-budat NO DATABASE SELECTION.
    SELECT-OPTIONS: SD_SAKNR    FOR  SKA1-SAKNR MATCHCODE OBJECT SAKO.
      import so_budat = so_budat from memory id 'ZBUDAT'.
      import sd_saknr from memory id 'ZSAKNR'.
    Regards
    Iftikhar Ali
    Islamabad.

    Program1----
    REPORT demo_program_rep3 NO STANDARD PAGE HEADING.
    DATA: number TYPE i,
    itab TYPE TABLE OF i.
    SET PF-STATUS 'MYBACK'.
    DO 5 TIMES.
    number = sy-index.
    APPEND number TO itab.
    WRITE / number.
    ENDDO.
    TOP-OF-PAGE.
    WRITE 'Report 2'.
    ULINE.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'MBCK'.
    EXPORT itab TO MEMORY ID 'HK'.
    LEAVE.
    ENDCASE.
    Program2----
    REPORT demo_programm_leave NO STANDARD PAGE HEADING.
    DATA: itab TYPE TABLE OF i,
    num TYPE i.
    SUBMIT demo_program_rep3 AND RETURN.
    IMPORT itab FROM MEMORY ID 'HK'.
    LOOP AT itab INTO num.
    WRITE / num.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE 'Report 1'.
    ULINE.
    end of program 2----
    Now you copy this programs with same name as i mentioned and execute demo_programm_leave Program.you will understnad clearly.
    Notes::: A logical memory model illustrates how the main memory is distributed from the view of executable programs. A distinction is made here between external sessions and internal sessions .
    An external session is usually linked to an R/3 window. You can create an external session by choosing System/Create session, or by entering /o in the command field. An external session is broken down further into internal sessions. Program data is only visible within an internal session. Each external session can include up to 20 internal sessions (stacks).
    Every program you start runs in an internal session.
    To copy a set of ABAP variables and their current values (data cluster) to the ABAP memory, use the EXPORT TO MEMORY ID statement. The (up to 32 characters) is used to identify the different data clusters.
    If you repeat an EXPORT TO MEMORY ID statement to an existing data cluster, the new data overwrites the old.
    To copy data from ABAP memory to the corresponding fields of an ABAP program, use the IMPORT FROM MEMORY ID statement.

  • Import itab in memory in user exit

    I am trying to export an internal table to memory in BADI and import from memory into an internal table in User exit . It looks like the export works, but when I import in program2, the internal table is empty. Even when the command returns sy-subrc = 0.
    Has anyone made this work?
    Program1
    DATA: wa_medoc LIKE MEASUREMENT_DOC.
    DATA: WA_TEXT LIKE LINE OF CE_MEASUREMENT.
    TYPES: BEGIN OF obj_line,
                MEASUREMENT_POINT(12) ,
                READING_DATE(8),
                READING_TIME(6),
                RECORDED_UNIT(6),
                LONG_TEXT(16384),
                END OF obj_line.
    DATA: obj_tab_wa TYPE obj_line.
    Move: MEASUREMENT_DOC to wa_medoc.
    LOOP AT CE_MEASUREMENT INTO WA_TEXT.
    MOVE:  wa_medoc-MEASUREMENT_POINt TO obj_tab_wa-MEASUREMENT_POINT,
           wa_medoc-READING_DATE  TO obj_tab_wa-READING_DATE ,
           wa_medoc-READING_TIME  TO obj_tab_wa-READING_TIME,
           wa_medoc-RECORDED_UNIT TO obj_tab_wa-RECORDED_UNIT,
           WA_TEXT-LONG_TEXT TO obj_tab_wa-LONG_TEXT.
    EXPORT obj_line FROM  obj_tab_wa  TO MEMORY ID 'SQ'.
    ENDLOOP.
    Program 2 : User exit   EXIT_SAPLIMR0_001  and include ZXMRCU01.
    TYPES: BEGIN OF obj_line,
                MEASUREMENT_POINT(12) ,
                READING_DATE(8),
                READING_TIME(6),
                RECORDED_UNIT(6),
                LONG_TEXT(16384),
                END OF obj_line.
    DATA: obj_tab_wa TYPE obj_line.
    IMPORT obj_line FROM  MEMORY ID 'SQ'.

    Try this......
    Program1
    DATA: wa_medoc LIKE MEASUREMENT_DOC.
    DATA: WA_TEXT LIKE LINE OF CE_MEASUREMENT.
    TYPES: BEGIN OF obj_line,
    MEASUREMENT_POINT(12) ,
    READING_DATE(8),
    READING_TIME(6),
    RECORDED_UNIT(6),
    LONG_TEXT(16384),
    END OF obj_line.
    DATA: obj_tab_wa TYPE obj_line.
    data: obj_tab_tab type standard table of obj_line.
    Move: MEASUREMENT_DOC to wa_medoc.
    LOOP AT CE_MEASUREMENT INTO WA_TEXT.
    MOVE: wa_medoc-MEASUREMENT_POINt TO obj_tab_wa-MEASUREMENT_POINT,
    wa_medoc-READING_DATE TO obj_tab_wa-READING_DATE ,
    wa_medoc-READING_TIME TO obj_tab_wa-READING_TIME,
    wa_medoc-RECORDED_UNIT TO obj_tab_wa-RECORDED_UNIT,
    WA_TEXT-LONG_TEXT TO obj_tab_wa-LONG_TEXT.
    append obj_tab_wa to obj_tab_tab.
    ENDLOOP.
    if sy-subrc = 0.
    EXPORT obj_tab_tab[] TO MEMORY ID 'SQ'.
    endif.
    Program 2 : User exit EXIT_SAPLIMR0_001 and include ZXMRCU01.
    TYPES: BEGIN OF obj_line,
    MEASUREMENT_POINT(12) ,
    READING_DATE(8),
    READING_TIME(6),
    RECORDED_UNIT(6),
    LONG_TEXT(16384),
    END OF obj_line.
    DATA: obj_tab_wa TYPE obj_line.
    data: obj_tab_tab type standard table of obj_line.
    IMPORT obj_tab_tab[] FROM MEMORY ID 'SQ'.
    Edited by: Joyjit Ghosh on Jul 8, 2008 2:22 PM

  • Plz explain - IMPORT GS_MATNR_CTRL FROM MEMORY ID 'ZMEM' ?

    Hello,
    Very good evening!
    Can any one please explain me what this satement do.
    Please explain me.......
    IMPORT GS_MATNR_CTRL FROM MEMORY ID 'ZMEM'.
    Any suggestions or information will be appreciated.
    Regadrs,
    KIttu

    Hello,
    Thank you for your response and time!
    Points rewarded...
    Have a good day! 
    Regards,
    Kittu

  • Import term_rgdir from memory id rgdirid

    Hi
    SY-SUBRC of Following statement is 4
    import term_rgdir from memory id rgdirid
    Could you please suggest me what needs to be done to rectify this issue.
    Regards
    Sri

    Either you did not export it properly or you will need some variable to import into; please see sample code below:
    Program for Export
    Data : gv_flag(1) type c,
              id(10) type c Value 'FLAG'.
      gv_flag = 'X'.
      Export gv_flag from gv_flag to memory id id.
    Program for Import
    Data : gv_flag(1) type c,
              id(10) type c Value 'FLAG'.
    Import gv_flag to gv_flag from memory id id.
    If gv_flag eq 'X'.
    Endif.

  • IMPORT lt_pgrp FROM MEMORY ID 'PGRP'.

    Can you please explain what the following syntax is doing .
    IMPORT lt_pgrp FROM MEMORY ID 'PGRP'.

    Hi,
    Letu2019s take a scenario where we need an internal table which is in program (letu2019s say Prog_name) which contains some Employee verification data in respect of one personnel no.  Now our requirement is to use the same internal table in our program, so we will first export the personnel no to a memory id. 
    Passing value of perner to Memory ID u2018Memo1u2019
    Export pernr to MEMORY id 'Memo1'.
    Now submit to the program
    Submit Prog_name  AND RETURN .
    Now we are importing u2018it_tableu2019 from Prog_name based on the value of pernr
    Import it_table  from MEMORY id 'ABC' .
    Now we have to  add Export parameter code in target program (Prog_name).
    INITIALIZATION.
    import pernr from memory id 'Memo1' .
    After the internal table is appended we need to export it to again memory id (Memo1)
    END-OF-SELECTION.
    export it_table to memory id 'Memo1' .
    Thanks,
    Krishna

  • Memory Limit for "IMPORT/EXPORT from MEMORY ID" statement

    Hi All,
    Can anyone tell me whether there is any memory limit exists for "IMPORT/EXPORT from MEMORY ID" statement.
    Like may be we can transfer xx MB of data via this......or it is open, we can transfer any amount of data to ABAP memory via this.
    Regards
    Munish Garg

    1. Each user sessions have external sessions and each external sessions have internal sessions.
    2. The programs being executed in the internal sessions can access ABAP memory
    3.ABAP memory is a storage area for internal program variables like fields, structures, internal tables,,They can be passed  between internal sessions of an external session.
    4. you can transfer data through ABAp memory using IMPORT and EXPORT statements
    5. after IMPORT FROM MEMORY ID <id> , you can use sy-subrc to check the existance of the cluster ID. here sy-subrc is not used to check whether the Import was successful or not.

  • Importing contacts from memory card

    Have recently got new 5800 after mine got wet. The new one is slightly different and I have put my memory card from old one into new phone.
    I can't seem to find the right route to import my numbers off my memory card.
    I'm sure the card is not corrupted as it had all my music on which automatically transfered when I opened real player.

    file manager>double click the memory card>option>copy contacts>from memory card...
    this is how i remembered doing it.

  • Function module to EXPORT/IMPORT to/from MEMORY?

    Hi Gurus,
    As EXPORT /IMPORTstatements come under obsolete statements.SO i am getting error in code when i compile using code inspector.
    PLease let me know if there is any function module that does the work of EXPORT and IMPORT.
    It woukl be kind if you explain how to put values in those function module to get desired output.
    Thanks

    Hi ,
      You can use these FM
    Export  to Memory
    C14Z_EXPORT_field_TO_MEMORY
    C14Z_EXPORT_TO_MEMORY
    Import From Memory
    C14Z_IMPORT_FIELD_FROM_MEMORY
    C14Z_IMPORT_FROM_MEMORY
    Regards,
       Seema

  • Import/Export from Memory ID

    hie guys
    im in a program that is importing values from a memory id however there are no values being imported and thus i want to find out wer the memory id is being given data. i tryd the wer used list and it dd not give me anything, please assist

    I managed to find the program where the export statement for the memory ID was and also where the import statement was and managed to resolve my error.
    many thanks.

  • Import files from memory stick on Sony CX-100

    Hi, I have several CX-100s and two iMacs - having the same problem with both. I have borrowed a memory stick from one CX-100 and put it in another (both PAL). I can view the footage on the memory stick through the camera, but when I connect the camera to iMovie, it will only view/import the old footage filmed on the other camera. The footage is definitely on the memory stick, but it's as if it's in another chapter on it or something? Has anyone seen anything like this before or know a method I can retrieve this footage into iMovie? Thanks in advance.

    Have you recorded any SD (MPEG-2) clips on the memory stick on the other camera? If so, you have to first erase the SD content before iMovie will recognise the HD (AVCHD) content. This assumes of course that you have recorded in HD format on the camera you are now trying to connect. If it is SD format you should be able to access it through iMovie.
    This Apple support article spells things out:
    http://support.apple.com/kb/HT1793
    Although your camera is not mentioned in the article, the same principles apply. Your camera is listed in this iMovie '09 Camcorder Support article, which shows a link for your camera to the above support article: http://support.apple.com/kb/HT3290#2
    If this doesn't help, try connecting to iMovie using a card reader, rather than connecting the camera.
    John

  • Exporting and importing data from memory

    Hi Gurus,
    Written 2 programs.
    1st program executes and submits 2nd program in background.
    Now the output in internal table which we get in 2nd program has to be displayed in 1st program.
    My taught is to use Set ID and GET ID to retrieve the data.
    How can we achive this?

    Hi,
    You can pass the internal table by using
    export to memory id
    and import that internal table in the called program.
    Use SUBMIT ....AND RETURN.

  • Background jobs with IMPORTING data from memory

    Hi there, I am using FM's JOB_OPEN, SUBMIT job to Background and JOB_CLOSE to create a job in Background. I am EXPORTING two transparent tables to memory before submitting the job, in the submitted job i IMPORTING the two tables, but no data comes back. The structure of the 2 transparent table is exactly the same in both programs. If i omit the 'VIA JOB' parameter and debug the submitted program it works fine...please tel me what am i doing wrong or any info will help.
    Code is as follows:
           CALL FUNCTION 'JOB_OPEN'
              EXPORTING
                jobname          = name
              IMPORTING
                jobcount         = number
              EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
            IF sy-subrc = 0.
              EXPORT ipost[] TO MEMORY ID 'ZIPOST'.
              EXPORT isadr3[] TO MEMORY ID 'ZISADR3'.
              EXPORT ierrgr[] TO MEMORY ID 'ZIERRGR'.
              SUBMIT zsad_invoice_subsequent_dt_bgb
                                  TO SAP-SPOOL
                                  SPOOL PARAMETERS params
                                  WITHOUT SPOOL DYNPRO
                                  USER sy-uname
                                  VIA JOB name NUMBER number
                                  AND RETURN.
              IF sy-subrc = 0.
                CALL FUNCTION 'JOB_CLOSE'
                  EXPORTING
                    jobcount             = number
                    jobname              = name
                    strtimmed            = 'X'
                  EXCEPTIONS
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    OTHERS               = 8.
                IF sy-subrc <> 0.
                  WRITE / 'Job did not close properly'.
                ENDIF.

    Hi Albert John,
    I am getting same problem here. Could you please let me know hoe did you resolve this issue.
    import memory is not working in background. please help me.
    I am waiting for your reply.
    Thanks
    Raghunath

  • Automatically delete imported photos from memory card

    I cant find this option anywhere, and with other photo management systems it's a fairly standard option, but how do you automatically delete the photos off the memory card once you have successfully imported them??

    You don't. LR is conservative about destroying stuff, and wants you to put the card back into the camera to clear it.

  • Importing AVCHD from Memory Stick

    Hi-
    At work I've been going through the delightful experience known as AVCHD *$%!...thought I had my head around it and a plan of attack decided (sadly, I was going to suck it up and use a PC, so I could drag and drop files) when I relized my PC didn't have the power.
    So, now I'd like to use the memory stick that my Sony HDR-SR12 recorded onto and Log & Transfer the footage into FCP, but I'm having a problem: It recognizes the video files, but when I go to transfer, it quits about halfway through. The note in the transfer log says 'no data'. Is this because it's not possible to transfer from a memory stick, or am I overlooking something?
    Some background- I'm trying to set up a system for recording presentations in a number of our offices and we don't want to send cameras back and forth across the country. We thought memory sticks would be better/safer to send around. Some of our presentations can be long, so we wanted to get away from tape with its recroding limits.
    Thank you so much for any tips!
    dmart

    Yea I hear you, i have both formats in HD the AVCHD the later...I thought wow this should be a easier way ...NOT!!!!

Maybe you are looking for

  • Delete records from multiple table

    Hi, I need to delete records from multiple tables using a single delete statement. Is it possible ? If so please let me know the procedure. Kindly Help. Thanks, Alexander.

  • Writing to same file

    So I am trying to write the output of two different java class files to one txt file while the program runs.  The file name is determined before the program is ran, through the command prompt as arguments.  How can I get the second class file to edit

  • Ignore DTD reference in message monitoring (SXMB_MONI)

    Hi All, My Inbound Message (to be delivered to the target system) needs to have DTD reference as the target system mandates it. In the mapping I have added the DTD Reference (<!DOCTYPE .../>). Although the target system is happy ,massage monitoring i

  • Site group and list of site

    Hi Experts,    I have a requirement where I will be getting site group code,using which I need to find the list of site numbers that are currently part of the requested Site Group and send it back. In which table I can find the list of site numbers r

  • No Way To Crop To 2.35:1

    Suppose you wanted to crop a photo in Aperture to an exact aspect ratio, such as 2.35:1, there's no way to do it, is there? The crop tool only allows 2 digits per width and height. So, you can't type in 2.35 to 1 or even 235 to 100. Isn't that a bit