<?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 import statement: in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013066#M411080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a program to download file. I attached this program to F110 transacation. file was downloaded when user clicks the Payment run and the printout button of the F110 transaction. My requirement is to restrict the file download the file when user only clicks on payment run button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a BADI to set a flag using Export statement to a memory. This BADI will triggered only befor Payment run. Hence I thought of setting a flag in the BADI. If that flag is X then download the file...But when i Use Import statement to read the flag from memory the values in the memory is refreessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Psudo code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI: Triggerd before Payment run&lt;/P&gt;&lt;P&gt;export Lv_FLAG from LV_FLAG to memory Id 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Download program:&lt;/P&gt;&lt;P&gt;Import LV_FLAG to LV_FLAG from memory ID 'TEST'.&lt;/P&gt;&lt;P&gt;if lv_FLAG is 'X'.&lt;/P&gt;&lt;P&gt;  download file&lt;/P&gt;&lt;P&gt;  export lv_flag from lv_flag to memory id 'TEST'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the reason the value exported in the BADI is not available inthe start-of-selection of download program.&lt;/P&gt;&lt;P&gt;FYI---the value exported in the BADI is available in the at selection screen of download program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 07:24:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-16T07:24:39Z</dc:date>
    <item>
      <title>import statement:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013066#M411080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a program to download file. I attached this program to F110 transacation. file was downloaded when user clicks the Payment run and the printout button of the F110 transaction. My requirement is to restrict the file download the file when user only clicks on payment run button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a BADI to set a flag using Export statement to a memory. This BADI will triggered only befor Payment run. Hence I thought of setting a flag in the BADI. If that flag is X then download the file...But when i Use Import statement to read the flag from memory the values in the memory is refreessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Psudo code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI: Triggerd before Payment run&lt;/P&gt;&lt;P&gt;export Lv_FLAG from LV_FLAG to memory Id 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Download program:&lt;/P&gt;&lt;P&gt;Import LV_FLAG to LV_FLAG from memory ID 'TEST'.&lt;/P&gt;&lt;P&gt;if lv_FLAG is 'X'.&lt;/P&gt;&lt;P&gt;  download file&lt;/P&gt;&lt;P&gt;  export lv_flag from lv_flag to memory id 'TEST'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the reason the value exported in the BADI is not available inthe start-of-selection of download program.&lt;/P&gt;&lt;P&gt;FYI---the value exported in the BADI is available in the at selection screen of download program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 07:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013066#M411080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: import statement:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013067#M411081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, perhaps using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT ... to SHARED MEMORY ID ...&lt;/P&gt;&lt;P&gt;EXPORT ... TO SHARED BUFFER ID ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 07:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013067#M411081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T07:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: import statement:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013068#M411082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me a example to use the shared memory..its giving a error when i tried to use the same...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 09:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/2013068#M411082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T09:12:56Z</dc:date>
    </item>
  </channel>
</rss>

