Skip to Content
author's profile photo
Former Member

Import statement .. what does it do ??

Hi All,

What is IMPORT statement doing ??

IMPORT order_items_in to w_order_items_in from MEMORY ID

'FREEGOODSTERMS'.

can you kindly explain what this statement is doing ?

I was by my friend that this is used to pass order_items from one session to this sesssion, but when I searched for FREEGOODSTERMS, I could find export after this statment. I was wondering how can import me first and then export.

Please let me know.

Thanks

venkat.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Posted on Sep 28, 2007 at 04:04 AM

    Hi Venkat,

    1st Import would be to import data from some other program which has EXPORTED the data.

    2nd Export would be to export data to some other program.

    YOu can check which program has been using IMPORT EXPORT with this string search program.

    Goto SE38 & type RPR_ABAP_SOURCE_SCAN

    Execute & Enter the search string.

    Best regards,

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 07:42 PM

    It is like ABAP Memory.

    Passing the data from one program to other program.

    first program you can use export memory and second program you can use Import the data based on memory.

    Thanks

    Seshu

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Venkat,

      if where use function is not working then use Program RSRSCAN1(4.6C Version) ( Search string would be memory id and program name is Z* or what ever).

      If you are not getting the data then issue might be at first program,so keep break point first program then see the results.

      either you can set break point submit area or import statement once you get the data using export statement

      Hope it helps you

      Thanks

      Seshu

  • Posted on Sep 28, 2007 at 04:09 AM

    Hi..

    Check this. You may get the Idea..

    ABAP MEMORY:

    To transfer the Data between the Programs Running in the Same Session We can use.

    Eg:

    Calling Report.

    REPORT ZREP1.

    DATA : ITAB TYPE TABLE OF MARA.

    SELECT * FROM MARA INTO TABLE ITAB.

    EXPORT TEMPTAB FROM ITAB TO MEMORY ID 'M1'.

    SUBMIT ZREP2 AND RETURN.

    Called report

    REPORT ZREP2.

    DATA: IT_MARA TYPE TABLE OF MARA.

    DATA WA TYPE MARA.

    IMPORT TEMPTAB TO IT_MARA FROM MEMORY ID 'M1'

    LOOP AT IT_MARA INTO WA.

    WRITE:/ WA-MATNR.

    ENDLOOP.

    <b>SAP Memory:</b>

    It is used to pass the Data to Screen fields or Read data from Screen Fields.

    It can be used to Transfer data from one Session(window) to another within the Login.

    DATA : V_KUNNR TYPE KNA1-KUNNR VALUE 1000.

    SET PARAMETER ID 'KUN' FIELD V_KUNNR.

    CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.

    <b>Reward if Helpful.</b>

    Add comment
    10|10000 characters needed characters exceeded