<?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: Exporting Parameter Value from Method to Program in se38. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075536#M1970383</link>
    <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/842402/girishjagoo.html"&gt;Girish Jagoo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You cannot do that, if its a normal class method you can do that. In case BADI there will not be a need for the same.&lt;/P&gt;&lt;P&gt;BADIs are part of enhancement framework, Why actually you need this to be done?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 11:44:43 GMT</pubDate>
    <dc:creator>former_member1716</dc:creator>
    <dc:date>2019-11-06T11:44:43Z</dc:date>
    <item>
      <title>Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075532#M1970379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am quite new to ABAP. I would really grateful if you could help me.&lt;/P&gt;
  &lt;P&gt;How can i bring in the value of an exporting parameter from a method in a BADI to a program in se38?&lt;/P&gt;
  &lt;P&gt;There is a method that runs in a process chain which either returns the value C_flag = 0 or C_flag = 1.&lt;/P&gt;
  &lt;P&gt;I need to use this value as control statement in a program in SE 38 .&lt;/P&gt;
  &lt;P&gt;Please advise.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;kind Regards,&lt;/P&gt;
  &lt;P&gt;Girish&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 10:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075532#M1970379</guid>
      <dc:creator>former_member624578</dc:creator>
      <dc:date>2019-11-06T10:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075533#M1970380</link>
      <description>&lt;P&gt;it is not really clear. &lt;/P&gt;&lt;P&gt;BAdI means you are in an allowed part of code to modify the SAP Standard&lt;/P&gt;&lt;P&gt;SE38 means .... nothing in fact.&lt;/P&gt;&lt;P&gt;When do you want to catch the result of a badi?&lt;/P&gt;&lt;P&gt;Do you know the transaction behind this badi ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 10:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075533#M1970380</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-06T10:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075534#M1970381</link>
      <description>&lt;P&gt;Hello @Frederic Girod,&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I have implemented a method in a badi, which generates either 0 or 1 - based on the coding.&lt;/P&gt;&lt;P&gt;There is an exporting parameter which catches that value (c_flag).&lt;/P&gt;&lt;P&gt;This method is used for a user defined function in a process chain under the node- decision between multiple alternatives.&lt;/P&gt;&lt;P&gt;What i was looking for is a way to catch that value for c_flag in a another program in SE38 so that i can use it as a control statement to either trigger the process chain or not.&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 10:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075534#M1970381</guid>
      <dc:creator>former_member624578</dc:creator>
      <dc:date>2019-11-06T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075535#M1970382</link>
      <description>&lt;P&gt;Simply you cannot, because it is standard before &amp;amp; after the BAdI (and you cannot modify the standard code)&lt;/P&gt;&lt;P&gt;You need to do something in you BAdI code&lt;/P&gt;&lt;P&gt;(if you are in the same LUW set a parameter in a singleton instance of a class. )&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 10:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075535#M1970382</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-06T10:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075536#M1970383</link>
      <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/842402/girishjagoo.html"&gt;Girish Jagoo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You cannot do that, if its a normal class method you can do that. In case BADI there will not be a need for the same.&lt;/P&gt;&lt;P&gt;BADIs are part of enhancement framework, Why actually you need this to be done?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075536#M1970383</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-11-06T11:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075537#M1970384</link>
      <description>&lt;P&gt;I think export/import to memory might be what you're looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075537#M1970384</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2019-11-06T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075538#M1970385</link>
      <description>&lt;P&gt;Are you in the same LUW ? &lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075538#M1970385</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-06T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075539#M1970386</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/842402/girishjagoo.html"&gt;Girish Jagoo&lt;/A&gt; If you do a comment under the question/answer and you want to target someone else than the question/answer' author, you must copy/paste their hyperlinked name (@ doesn't work)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075539#M1970386</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-06T12:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075540#M1970387</link>
      <description>&lt;P&gt;Or a static class attribute if both programs are in the same internal session:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS zcl_app DEFINITION.
  PUBLIC SECTION.
    TYPES ty_memory TYPE string.
    CLASS-METHODS set_memory IMPORTING memory TYPE ty_memory.
    CLASS-METHODS get_memory RETURNING VALUE(memory) TYPE ty_memory.
  PRIVATE SECTION.
    CLASS-DATA memory TYPE ty_memory.
ENDCLASS.
CLASS zcl_app IMPLEMENTATION.
  METHOD set_memory.
    zcl_app=&amp;gt;memory = memory.
  ENDMETHOD.
  METHOD get_memory.
    memory = zcl_app=&amp;gt;memory.
  ENDMETHOD.
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075540#M1970387</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-06T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075541#M1970388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can export the value to memory from badi implementation using EXPORT obj1 ... objn TO MEMORY ID 'ZID'.and import in se 38 report using IMPORT obj1 ... objn FROM MEMORY ID 'ZID'.&lt;/P&gt;&lt;P&gt; or you can also use static variable &lt;/P&gt;&lt;P&gt;Set a global class static attribute in badi implementation and use the same static attribute inside the se 38 report.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075541#M1970388</guid>
      <dc:creator>cdprasanna</dc:creator>
      <dc:date>2019-11-06T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075542#M1970389</link>
      <description>&lt;P&gt;I don't know what scenario you are trying to achieve but since the decision node already map the return value to the output event then under the road of that event you already know what value of c_flag isnt it? If you are using same program for all road after decision, maybe you should create a program node with corresponding variant to the decision value or you have to export c_flag to memory.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 04:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075542#M1970389</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-11-07T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Parameter Value from Method to Program in se38.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075543#M1970390</link>
      <description>&lt;P&gt;BADI is a SAP provided Object oriented type of Enhancement technique where you can modify the normal SAP standard process flow as per your requirements. It is called during SAP standard process flow. When you get the exporting parmeter from the BADI , that will in turn be used within the same SAP standard process flow for altering other different things. Whereas a report is a standalone program which i think can't use parameters returned by a BADI. Probably you may check some BAPI which can fulfill your requirement.&lt;/P&gt;&lt;P&gt;However, if you still want to explicitely use the parameter returned by the BADI, you may call your report within the BADI implementation by using SUBMIT keyword or some other technique in which you may pass this returning paramter from the BADI to your program but that will impact the performance of the SAP standard program which i dont recommend.&lt;/P&gt;&lt;P&gt;&amp;lt;removed by moderator&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 10:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-parameter-value-from-method-to-program-in-se38/m-p/12075543#M1970390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-07T10:07:13Z</dc:date>
    </item>
  </channel>
</rss>

