<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic EXPORT / IMPORT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391939#M190355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program (A) has this code:&lt;/P&gt;&lt;P&gt;    EXPORT gi_po TO MEMORY ID 'ZGI_PO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program (B) as this code:&lt;/P&gt;&lt;P&gt;    IMPORT gi_po FROM MEMORY ID 'ZGI_PO'.&lt;/P&gt;&lt;P&gt;    READ TABLE gi_po INTO gw_po &lt;/P&gt;&lt;P&gt;        WITH KEY ebelp = i_input_user-kposn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and program B got runtime error at this IMPORT stmt/  READ TABLE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP error message:&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below                   &lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR',             &lt;/P&gt;&lt;P&gt; was neither                                                                                &lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure                           &lt;/P&gt;&lt;P&gt; "EXIT_SAPLFYTX_USER_001" "(FUNCTION)"                                                     &lt;/P&gt;&lt;P&gt;.                                                                                &lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception                   &lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.                                             &lt;/P&gt;&lt;P&gt;The reason for the exception is:                                                           &lt;/P&gt;&lt;P&gt;The system found when importing that the target object was longer or                       &lt;/P&gt;&lt;P&gt;shorter than the object to be imported. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleasae advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2006 06:17:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-18T06:17:40Z</dc:date>
    <item>
      <title>EXPORT / IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391939#M190355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program (A) has this code:&lt;/P&gt;&lt;P&gt;    EXPORT gi_po TO MEMORY ID 'ZGI_PO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program (B) as this code:&lt;/P&gt;&lt;P&gt;    IMPORT gi_po FROM MEMORY ID 'ZGI_PO'.&lt;/P&gt;&lt;P&gt;    READ TABLE gi_po INTO gw_po &lt;/P&gt;&lt;P&gt;        WITH KEY ebelp = i_input_user-kposn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and program B got runtime error at this IMPORT stmt/  READ TABLE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP error message:&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below                   &lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR',             &lt;/P&gt;&lt;P&gt; was neither                                                                                &lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure                           &lt;/P&gt;&lt;P&gt; "EXIT_SAPLFYTX_USER_001" "(FUNCTION)"                                                     &lt;/P&gt;&lt;P&gt;.                                                                                &lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception                   &lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.                                             &lt;/P&gt;&lt;P&gt;The reason for the exception is:                                                           &lt;/P&gt;&lt;P&gt;The system found when importing that the target object was longer or                       &lt;/P&gt;&lt;P&gt;shorter than the object to be imported. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleasae advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 06:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391939#M190355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T06:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT / IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391940#M190356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error is because of the mismatch of declaration of gi_po in program A and B.&lt;/P&gt;&lt;P&gt;In both the programs the variable should definted exactly same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 06:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391940#M190356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T06:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT / IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391941#M190357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether you have declared &amp;lt;b&amp;gt;gi_po&amp;lt;/b&amp;gt; same in both the programs A &amp;amp; B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider these codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zztest_arun_1.
  TABLES: t001w.
  DATA : it_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE,
        &amp;lt;b&amp;gt; it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.&amp;lt;/b&amp;gt;
 
   PARAMETERS material RADIOBUTTON  GROUP  abc.     "Material General Details
 
   PARAMETERS plant RADIOBUTTON GROUP abc DEFAULT 'X'.      "Material Plant Details
 
   START-OF-SELECTION.
 
   IF material EQ 'X'.
   
*If Material selected own code executes   
 
    SELECT * FROM marc INTO TABLE it_marc UP TO 200 ROWS .
     LOOP AT it_marc.
 
     WRITE :/ it_marc-matnr,
            it_marc-werks.
     ENDLOOP.
 
   ENDIF.
 
  IF plant EQ 'X'.
 
*If Plant selected data fetched   
 
    SELECT * FROM t001w INTO TABLE it_werks UP TO 50 ROWS.
    
*Exported to Memory
    
&amp;lt;b&amp;gt;    EXPORT it_werks[] TO MEMORY ID 'TEST'.&amp;lt;/b&amp;gt;
 
*Declare on selection table type RSPARAMS
 
    DATA :   stable	LIKE	rsparams OCCURS 0 WITH HEADER LINE.
 
*Call this FM to get the Selection screen details
*of Program ZZTEST_ARUN_2 (it returns Select Options, Parameters..)
 
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
         curr_report     = 'ZZTEST_ARUN_2'
      TABLES
         selection_table = stable
      EXCEPTIONS
         not_found       = 1
         no_report       = 2
         OTHERS          = 3.
      
    IF sy-subrc &amp;lt;&amp;gt; 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
 
   stable-sign = 'I'.
   stable-option = 'BT'.
   
* populate some selection condition
   READ TABLE it_werks INDEX 10.
   stable-low = it_werks-werks.
 
   READ TABLE it_werks INDEX 40.
   stable-high = it_werks-werks.
 
   APPEND stable.
 
*Submit it then
   SUBMIT zztest_arun_2
       WITH SELECTION-TABLE stable
       AND RETURN.
 
   ENDIF.
 
 




Second Program.


REPORT zztest_arun_2.
TABLES: t001w.
 
&amp;lt;b&amp;gt;DATA : it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.&amp;lt;/b&amp;gt;
 
SELECT-OPTIONS : s_werks FOR t001w-werks.
 
 
 
*Import the stored data.
&amp;lt;b&amp;gt;IMPORT it_werks[] FROM MEMORY ID 'TEST'.&amp;lt;/b&amp;gt;
 
 
*Display the data based on selection criteria got
*form ZZTEST_ARUN_1
LOOP AT it_werks WHERE werks  IN s_werks.
  WRITE : / it_werks-werks,
            it_werks-name1.
 
ENDLOOP.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 06:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391941#M190357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT / IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391942#M190358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declaration of 'gi_po' should be same in both programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type of data object 'gi_po' should be same in both programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you using same declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz show the code where you are declaring in both programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 06:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391942#M190358</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-18T06:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT / IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391943#M190359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data types of the tables in the exporting and importing programs should match exactly. Looks like a type mismatch error has occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 06:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391943#M190359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT / IMPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391944#M190360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;   The declaration of the internal tables in both the programs should be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_po,&lt;/P&gt;&lt;P&gt;       vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;       vgbel like vbak-vgbel,&lt;/P&gt;&lt;P&gt;       end of ty_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program &amp;lt;b&amp;gt;A&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gi_po type standard table of ty_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program &amp;lt;b&amp;gt;B&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gi_po type standard table of ty_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 06:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import/m-p/1391944#M190360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T06:31:53Z</dc:date>
    </item>
  </channel>
</rss>

