<?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 and set parameter and get parameter not working between badi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168367#M1516897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;my requirement is to export the value from BADI and import that value in the enhancement point .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have method POST_DOCUMENT in the BADI MB_MIGO_BADI . in this method im exporting my value .the following is the syntax .&lt;/P&gt;&lt;P&gt;l_val1 = &amp;lt;fs_mseg&amp;gt;-yy_cert .&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'yycert' FIELD l_val1.&lt;/P&gt;&lt;P&gt;from here the value is correctly exported . i got sy-subrc as zero .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this point there is one function module MB_POST_DOCUMENT which is triggered in update mode . in this FM i have created one enhancement point implementation and i trying to import the value in this enhancement implementation.The following is the synrtax used.&lt;/P&gt;&lt;P&gt;data:l_val2(30) type c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'yycert' FIELD l_val2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here im getting sy-subrc as zero after get parameter statement . &lt;/P&gt;&lt;P&gt;i have tried all the available syntax . i have also tried using export and import statements . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still im not able to import the value into my enhancement implementation . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody plz tell me wht is the problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 07:34:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-23T07:34:37Z</dc:date>
    <item>
      <title>export import and set parameter and get parameter not working between badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168367#M1516897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;my requirement is to export the value from BADI and import that value in the enhancement point .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have method POST_DOCUMENT in the BADI MB_MIGO_BADI . in this method im exporting my value .the following is the syntax .&lt;/P&gt;&lt;P&gt;l_val1 = &amp;lt;fs_mseg&amp;gt;-yy_cert .&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'yycert' FIELD l_val1.&lt;/P&gt;&lt;P&gt;from here the value is correctly exported . i got sy-subrc as zero .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this point there is one function module MB_POST_DOCUMENT which is triggered in update mode . in this FM i have created one enhancement point implementation and i trying to import the value in this enhancement implementation.The following is the synrtax used.&lt;/P&gt;&lt;P&gt;data:l_val2(30) type c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'yycert' FIELD l_val2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here im getting sy-subrc as zero after get parameter statement . &lt;/P&gt;&lt;P&gt;i have tried all the available syntax . i have also tried using export and import statements . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still im not able to import the value into my enhancement implementation . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody plz tell me wht is the problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 07:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168367#M1516897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T07:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: export import and set parameter and get parameter not working between badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168368#M1516898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 07:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168368#M1516898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T07:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: export import and set parameter and get parameter not working between badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168369#M1516899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3541446"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not irrelevant post. It exactly works fine for the above scenerio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can add some more explanation to that post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a temporary FM ZEXPORT_MEMORY as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZEXPORT_MEMORY.
*"----------------------------------------------------------------------
*"*"Update Function Module:
*"
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(I_MATNR) TYPE  MATNR
*"----------------------------------------------------------------------

SET PARAMETER ID 'ABCD' FIELD i_matnr. 
" i_matnr is the field which is going to be exported

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And call the ZEXPORT_MEMORY inside the BADi or Exit  as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZEXPORT_MEMORY'  IN UPDATE TASK
  EXPORTING
    i_matnr       = '1234'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And inside the update FM MB_POST_DOCUMENT, get the memory value. Since the memory is updated during update task, it will be visible inside update FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lv_matnr TYPE matnr.

GET PARAMETER ID 'ABCD' FIELD lv_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 09:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168369#M1516899</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2010-08-23T09:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: export import and set parameter and get parameter not working between badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168370#M1516900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know why my post has been rejected ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thread what i suggested has the following comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"I just wanted to add something how I solved a similar problem in a different way, transferring data from the current session into the update task:&lt;/P&gt;&lt;P&gt;- Right, using memory-ID's are of no use when you want to pick up some data within the update task module&lt;/P&gt;&lt;P&gt;- Right, using the application buffer is somewhat restricted to the current application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When possible, I have called another function module IN UPDATE TASK, exporting the data that I would like to have in the update task for later usage.&lt;/P&gt;&lt;P&gt;That function module then performs the EXPORT TO MEMORY.&lt;/P&gt;&lt;P&gt;As this is executed within the update task, the memory will be available later for the exits or Badis.&lt;/P&gt;&lt;P&gt;Prerequesite is, that the call to the export-to-memory-FM is registered before the function modules for the update task, so it may vary from the application you're implementing. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was the above not relevant to the query that was asked ? Please let me know if you think otherwise.&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;Kannaiah Kavuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 10:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-and-set-parameter-and-get-parameter-not-working-between-badi/m-p/7168370#M1516900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T10:01:25Z</dc:date>
    </item>
  </channel>
</rss>

