<?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 Re: dynamic parameter with an IMPORT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-with-an-import-statement/m-p/2754702#M640908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMPORT/EXPORT scope didn't work out. Instead, I used CALL TRANSFORMATION and XML approach, besides some ABAP creativity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2008 13:30:55 GMT</pubDate>
    <dc:creator>andrs_sarcevic</dc:creator>
    <dc:date>2008-03-05T13:30:55Z</dc:date>
    <item>
      <title>dynamic parameter with an IMPORT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-with-an-import-statement/m-p/2754701#M640907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts. I hope you can help me with this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report performing an EXPORT statement into a Buffer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORT I_USER    FROM P_USER&lt;/P&gt;&lt;P&gt;                I_NAME    FROM P_NAME&lt;/P&gt;&lt;P&gt;                I_SURNAME FROM P_SURNAM&lt;/P&gt;&lt;P&gt;           TO DATA BUFFER V_XPARVALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it calls the first FM where a type I program is created by using INSERT REPORT... This dynamic-generate INCLUDE has the explicits declaration for variables: I_USER, I_NAME, I_SURNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afeter the dynamic Include generation, it calls a second FM, wich has the reference to the dynamic Include created before with the data declaration. The only thing remain is to IMPORT all the data from the buffer V_XPARVALUES:&lt;/P&gt;&lt;P&gt;The following code lines are within a LOOP. wa_param-paramname has the name of the variable (I_USER, I_NAME I_SURNAME).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN (wa_param-paramname) TO &lt;/P&gt;&lt;P&gt;      FROM DATA BUFFER v_xparvalues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what I need to achieve is dynamic parameters in the IMPORT statement.&lt;/P&gt;&lt;P&gt;Had anybody came across this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have been clear with the explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrés Sarcevic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 15:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-with-an-import-statement/m-p/2754701#M640907</guid>
      <dc:creator>andrs_sarcevic</dc:creator>
      <dc:date>2007-09-17T15:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic parameter with an IMPORT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-with-an-import-statement/m-p/2754702#M640908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMPORT/EXPORT scope didn't work out. Instead, I used CALL TRANSFORMATION and XML approach, besides some ABAP creativity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 13:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameter-with-an-import-statement/m-p/2754702#M640908</guid>
      <dc:creator>andrs_sarcevic</dc:creator>
      <dc:date>2008-03-05T13:30:55Z</dc:date>
    </item>
  </channel>
</rss>

