<?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: Radio Button on Driver Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904884#M1145271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your Driver program at the time of calling your smartform you can pass tables and variables like any function module.&lt;/P&gt;&lt;P&gt;You certainly have your radio-button in Driver Program. Pass this as a variable to indicate which data has to be output : Header or Item..&lt;/P&gt;&lt;P&gt;Do your data fetching accordingly. In your smartform all output windows will have a Conditions tab. There you can mention the value of this passed variable as a check. whichever window will not meet the condition will not be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the best I could explain.&lt;/P&gt;&lt;P&gt;All The Best !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 15:18:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-12T15:18:12Z</dc:date>
    <item>
      <title>Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904879#M1145266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on smartforms.&lt;/P&gt;&lt;P&gt;In that my printprogram contains 2 radio buttons like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 1) Header
 2) Items&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Header Radio button in selection screen , I want to display header related data in            "Main window" and if I press Items Radio button in selection screen, I want to display Item Related data in the same "Main window".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me in this issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ganesh Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 14:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904879#M1145266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904880#M1145267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the same MAIN window keep data for both item and Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say u do so in a TEXT Module. Now add condition based on your radio-button. This would ensure that when rb 1 = 'X' Text Module '1' gets printed else Text Module '2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so eventually u have data for either for Header or Item as per ur radiobutton.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 14:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904880#M1145267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904881#M1145268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can I get the printprogram radio button value into smartform?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 14:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904881#M1145268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T14:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904882#M1145269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass it from your Driver Program.. as an independent variable in Form Interface...&lt;/P&gt;&lt;P&gt;Revert ASAP if still in any doubt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 14:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904882#M1145269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904883#M1145270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't get U?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 15:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904883#M1145270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T15:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904884#M1145271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your Driver program at the time of calling your smartform you can pass tables and variables like any function module.&lt;/P&gt;&lt;P&gt;You certainly have your radio-button in Driver Program. Pass this as a variable to indicate which data has to be output : Header or Item..&lt;/P&gt;&lt;P&gt;Do your data fetching accordingly. In your smartform all output windows will have a Conditions tab. There you can mention the value of this passed variable as a check. whichever window will not meet the condition will not be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the best I could explain.&lt;/P&gt;&lt;P&gt;All The Best !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 15:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904884#M1145271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T15:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on Driver Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904885#M1145272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gani.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Samrtform.&lt;/P&gt;&lt;P&gt;Give the Name.&lt;/P&gt;&lt;P&gt;Press Create button.&lt;/P&gt;&lt;P&gt;Go to Interface.&lt;/P&gt;&lt;P&gt;Provide two input parameters like  &lt;/P&gt;&lt;P&gt;i_r1  type  char1&lt;/P&gt;&lt;P&gt;i_r2  type  char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Global Definitions.&lt;/P&gt;&lt;P&gt;Goto TYPES tab.&lt;/P&gt;&lt;P&gt;Provide data types for the two internal tables like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: begin of ty_vbak,&lt;/P&gt;&lt;P&gt;       vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;       erdat type vbak-erdat,&lt;/P&gt;&lt;P&gt;       erzet type vbak-erzet,&lt;/P&gt;&lt;P&gt;       ernam type vbak-ernam,&lt;/P&gt;&lt;P&gt;       end of ty_vbak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       begin of ty_vbap,&lt;/P&gt;&lt;P&gt;       vbeln type vbap-vbeln,&lt;/P&gt;&lt;P&gt;       posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;       matnr type vbap-matnr,&lt;/P&gt;&lt;P&gt;       end of ty_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Global Data Tab.&lt;/P&gt;&lt;P&gt;Provide Data objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_VBAK	TYPE	TY_VBAK&lt;/P&gt;&lt;P&gt;IT_VBAK	TYPE TABLE OF	TY_VBAK&lt;/P&gt;&lt;P&gt;WA_VBAP	TYPE	TY_VBAP&lt;/P&gt;&lt;P&gt;IT_VBAP	TYPE TABLE OF	TY_VBAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Initialization tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide two import parameters as a Input Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_R1&lt;/P&gt;&lt;P&gt;I_r2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output Parameter.&lt;/P&gt;&lt;P&gt;IT_VBAK&lt;/P&gt;&lt;P&gt;IT_VBAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF I_R1 = 'X'.&lt;/P&gt;&lt;P&gt;  SELECT VBELN ERDAT ERZET ERNAM&lt;/P&gt;&lt;P&gt;         FROM VBAK&lt;/P&gt;&lt;P&gt;         INTO TABLE IT_VBAK UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF I_R2 = 'X'.&lt;/P&gt;&lt;P&gt;  SELECT VBELN POSNR MATNR&lt;/P&gt;&lt;P&gt;         FROM VBAP&lt;/P&gt;&lt;P&gt;         INTO TABLE IT_VBAP UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Main Window.&lt;/P&gt;&lt;P&gt;Create a Loop.&lt;/P&gt;&lt;P&gt;In that loop go to Condition Tab.&lt;/P&gt;&lt;P&gt;Provide name as IT_VBAK != initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Data Tab in the Loop.&lt;/P&gt;&lt;P&gt;Write  IT_VBAK into WA_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Text.&lt;/P&gt;&lt;P&gt;Give the Text what u want in VBAK like.&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAK-VBELN&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAK-ERDAT&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAK-ERZET&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAK-ERNAM&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So create another Loop for VBAP.&lt;/P&gt;&lt;P&gt;Go to Condition provide the Condition as a IT_VBAP != Initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Data Tab in the Loop.&lt;/P&gt;&lt;P&gt;Write  IT_VBAP into WA_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Text.&lt;/P&gt;&lt;P&gt;Give the Text what u want in VBAP like.&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAP-VBELN&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAP-POSNR&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;WA_VBAP-MATNR&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save, Check, Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Program in SE38.&lt;/P&gt;&lt;P&gt;Provide two radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_R1 TYPE CHAR1 RADIOBUTTON GROUP R1,&lt;/P&gt;&lt;P&gt;            P_R2 TYPE CHAR1 RADIOBUTTON GROUP R1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/1BCDWB/SF00000208'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_OPTIONS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_SETTINGS              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    I_R1                       = P_R1&lt;/P&gt;&lt;P&gt;    I_R2                       = P_R2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMATTING_ERROR           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNAL_ERROR             = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEND_ERROR                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_CANCELED              = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save, check, activate.&lt;/P&gt;&lt;P&gt;So if u execute it ask for the Radio buttons.&lt;/P&gt;&lt;P&gt;Select one and execute it.&lt;/P&gt;&lt;P&gt;Give LP01.&lt;/P&gt;&lt;P&gt;Printpriview.&lt;/P&gt;&lt;P&gt;Then u got according to ur requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 15:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-driver-program/m-p/4904885#M1145272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T15:39:28Z</dc:date>
    </item>
  </channel>
</rss>

