<?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 Using SAP Memory to Pass Screen Variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797578#M1123497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a subscreen. Now I want to pass the screen variable value (field name = ZTAMM_T_0002-ZPROMO_MATNR, field parameter ID = ZPM) from the screen to the BADI method using SAP memory. I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the screen PAI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module set_parameter_id input.&lt;/P&gt;&lt;P&gt;  DATA: lv_para TYPE ZTAMM_T_0002-ZPROMO_MATNR.&lt;/P&gt;&lt;P&gt;  lv_para = ZTAMM_T_0002-ZPROMO_MATNR.&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'ZPM' FIELD lv_para.&lt;/P&gt;&lt;P&gt;endmodule. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At BADI implementation method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_BADI_MATERIAL_OD~MATERIAL_PREPARE_POSTING_OD.&lt;/P&gt;&lt;P&gt;BREAK MYID.&lt;/P&gt;&lt;P&gt;DATA: lv_pvalue TYPE ztamm_t_0002-zpromo_matnr.&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'ZPM' FIELD lv_pvalue.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above, when I debug, I realised ZTAMM_T_0002-ZPROMO_MATNR doesn't contain value. What should be the right way to pass in the value I entered through screen to lv_para?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2008 07:18:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-27T07:18:24Z</dc:date>
    <item>
      <title>Using SAP Memory to Pass Screen Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797578#M1123497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a subscreen. Now I want to pass the screen variable value (field name = ZTAMM_T_0002-ZPROMO_MATNR, field parameter ID = ZPM) from the screen to the BADI method using SAP memory. I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the screen PAI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module set_parameter_id input.&lt;/P&gt;&lt;P&gt;  DATA: lv_para TYPE ZTAMM_T_0002-ZPROMO_MATNR.&lt;/P&gt;&lt;P&gt;  lv_para = ZTAMM_T_0002-ZPROMO_MATNR.&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'ZPM' FIELD lv_para.&lt;/P&gt;&lt;P&gt;endmodule. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At BADI implementation method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_BADI_MATERIAL_OD~MATERIAL_PREPARE_POSTING_OD.&lt;/P&gt;&lt;P&gt;BREAK MYID.&lt;/P&gt;&lt;P&gt;DATA: lv_pvalue TYPE ztamm_t_0002-zpromo_matnr.&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'ZPM' FIELD lv_pvalue.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above, when I debug, I realised ZTAMM_T_0002-ZPROMO_MATNR doesn't contain value. What should be the right way to pass in the value I entered through screen to lv_para?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 07:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797578#M1123497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T07:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Memory to Pass Screen Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797579#M1123498</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;Please check the screen field name and program variable name ( preferrably in TOP include) is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are same the value transfer takes place automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramchander rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 07:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797579#M1123498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T07:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Memory to Pass Screen Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797580#M1123499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My screen field name is ZTAMM_T_0002-ZPROMO_MATNR and my declaration at TOP also ZTAMM_T_0002-ZPROMO_MATNR. Is my coding as posted correct? I still can't figure out why the value is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 07:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797580#M1123499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Memory to Pass Screen Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797581#M1123500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just fixed it. The problem was caused by me forgetting to check the GET &amp;amp; SET parameter at Screen Painter. Anyway, thanks for your earlier reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: big mug on Nov 27, 2008 9:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 08:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-memory-to-pass-screen-variable/m-p/4797581#M1123500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T08:52:32Z</dc:date>
    </item>
  </channel>
</rss>

