<?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 Regarding custom Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540109#M577116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please guide me on a custom Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;I have to use this function module to get either active records or inactive records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module which has yet to be created should have to code to fetch both active records and inactive records. It depends on what user has selected in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report has 2 radio buttons in the selection screen. If rb_1 is selected then we have to call this function module and pass all the inactive records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if rb_2 is selected then all the active records should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to code the function module depending on the selection of the radio button. I can keep a flag in the function module and assign it 1 or 2 depending of the selection of the radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys could you guide me on how do I set a flag in such scenario in the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;In the Source code of function module.&lt;/P&gt;&lt;P&gt;If flag = 1.&lt;/P&gt;&lt;P&gt;select all invalid records&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If flag = 2.&lt;/P&gt;&lt;P&gt;select all valid records.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where should I keep this flag in my function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting this how do I call it in the report, depending on the radio button selected and how do I code in my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you will understand this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A million thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 10:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T10:18:20Z</dc:date>
    <item>
      <title>Regarding custom Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540109#M577116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please guide me on a custom Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;I have to use this function module to get either active records or inactive records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module which has yet to be created should have to code to fetch both active records and inactive records. It depends on what user has selected in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report has 2 radio buttons in the selection screen. If rb_1 is selected then we have to call this function module and pass all the inactive records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if rb_2 is selected then all the active records should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to code the function module depending on the selection of the radio button. I can keep a flag in the function module and assign it 1 or 2 depending of the selection of the radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys could you guide me on how do I set a flag in such scenario in the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;In the Source code of function module.&lt;/P&gt;&lt;P&gt;If flag = 1.&lt;/P&gt;&lt;P&gt;select all invalid records&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If flag = 2.&lt;/P&gt;&lt;P&gt;select all valid records.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where should I keep this flag in my function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting this how do I call it in the report, depending on the radio button selected and how do I code in my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you will understand this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A million thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540109#M577116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding custom Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540110#M577117</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;in the function module u have to declare "FLAG" as an import parameter. n then while calling this functon module from the report, u should paas a value to this "FLAG" based on the radio button selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tell me if this information was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540110#M577117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding custom Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540111#M577118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vikram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. &lt;/P&gt;&lt;P&gt; I will come back to you if I have still any further doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-custom-function-module/m-p/2540111#M577118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T10:49:31Z</dc:date>
    </item>
  </channel>
</rss>

