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

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.

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

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

  • 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

  • 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!!!!

  • Import images from memory card?

    My Canon digital camera uses a removable memory card which I then put into an Inca Card Reader. When using Photoshop Elements 11 and try to open the Card Reader to import images, the Card Reader isn't even listed among the various drives attached to, or within, my computer? How can I fix this? I want Photoshop Elements 11 to recognise the Card Reader so I can import the images. My email address is [email protected] With thanks, Mike Pratt (Australia)

    Thanks Barbara,
    It's Windows 7 Professional. I hope that helps.
    Thanks,
    Mike Pratt

Maybe you are looking for

  • Does an 'in' clause use the index?

    In the following query: Select * from myTable where field_1 in ('thisfield', 'thatfield'); Assuming there is an index on field_1, will this query use the index? Thanks, Sara

  • Ads/images are appearing in wrong iframes, and appear cut-off and distorted)

    Upon refresh or auto-refresh, ads are appearing cut-off or distorted and in the wrong areas of the site, sometimes where our social media buttons are supposed to be. Our advertising clients need to know why this is happening and what measures are bei

  • Navigation block in WAD gives an error

    Hi experts, i added a u201Enavigation block u201E  into an existing web template. If I run Template with  u201Cexecute in Browser u201C button in WAD. Everything is ok. I see the navigation block and I can work with it . But if I run the template on

  • Apps stop running

    Does changing the iPod account affect the existing apps? My nephew got an iPod Touch from my sister in Australia, with a lot of apps and songs and movies for children. It was done under an account which I don't know the password. When my nephew recei

  • DVD Sound Quality After Transferring to iPod

    I have finally been able to transfer a previously owned DVD to my 30gb iPod and the picture quality is great! However, the sound quality is not up to par. The audio (but not the video) to the DVD when playing on iTunes and the iPod is "skipping." I u