<?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: Radiobutton in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332302#M798576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: p_alv radiobutton group rad1 default 'X',
            p_form radiobutton group rad1.
            
selection-screen.

   perform extract_data.   " Retreiving required data
   
   if not p_alv is initial.
      perform display_alv.  " Use data to display in ALV format
   else.
      peform print_form.    " Use data to print as Smartform
   endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 05:51:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T05:51:02Z</dc:date>
    <item>
      <title>Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332300#M798574</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;I have a report,where 2 radibuttons have been assigned,one for displaying the ALV &amp;amp; the other for displaying smartform.What way should I code,so as to display the corresponding report at runtime,should I check the condition in Start of selection or should I check for the condition in perform.Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332300#M798574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332301#M798575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer to this peice of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK v1 WITH FRAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_ebeln FOR ekko-ebeln .&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_ekorg FOR ekko-ekorg.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_bukrs FOR ekko-bukrs.&lt;/P&gt;&lt;P&gt;PARAMETERS     : s_vgabe TYPE vgabe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK v1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK v2 WITH FRAME TITLE text-101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: rb1 RADIOBUTTON GROUP rad1,  "Grid&lt;/P&gt;&lt;P&gt;            rb2 RADIOBUTTON GROUP rad1 . "List&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; AT SELECTION-SCREEN                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Validation 1 for purchase order :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM zf_validate_po USING wa_final-ebeln&lt;/P&gt;&lt;P&gt;                               s_ebeln[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Validation 1 for purchasing org. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM zf_validate_po_org USING wa_final-ekorg&lt;/P&gt;&lt;P&gt;                                   s_ekorg[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Validation 1 for company code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM zf_validate_po_comp USING wa_final-bukrs&lt;/P&gt;&lt;P&gt;                                     s_bukrs[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Validation 1 for P.O. history&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM zf_validate_po_hist USING S_vgabe&lt;/P&gt;&lt;P&gt;                                    ci1&lt;/P&gt;&lt;P&gt;                                    ci2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; INITIALIZATION                                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_header.&lt;/P&gt;&lt;P&gt;  CLEAR wa_history.&lt;/P&gt;&lt;P&gt;  CLEAR wa_items.&lt;/P&gt;&lt;P&gt;  CLEAR wa_final.&lt;/P&gt;&lt;P&gt;  CLEAR wa_layout.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH it_header.&lt;/P&gt;&lt;P&gt;  REFRESH it_history.&lt;/P&gt;&lt;P&gt;  REFRESH it_items.&lt;/P&gt;&lt;P&gt;  REFRESH it_final.&lt;/P&gt;&lt;P&gt;  REFRESH it_fieldcat.&lt;/P&gt;&lt;P&gt;  REFRESH it_eventcat.&lt;/P&gt;&lt;P&gt;  REFRESH it_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_progname = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; START-OF-SELECTION                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;POPULATING HEADER.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM zf_get_header   USING  s_ebeln[]&lt;/P&gt;&lt;P&gt;                                 s_ekorg[]&lt;/P&gt;&lt;P&gt;                                 s_bukrs[]&lt;/P&gt;&lt;P&gt;                                 s_vgabe&lt;/P&gt;&lt;P&gt;                       CHANGING  it_header[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_header BY ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_header IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCTION-POPULATING HISTORY.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM zf_get_history  USING  s_ebeln[]&lt;/P&gt;&lt;P&gt;                                   s_vgabe&lt;/P&gt;&lt;P&gt;                         CHANGING  it_history[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SORT it_history BY ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM zf_get_items    USING  s_ebeln[]&lt;/P&gt;&lt;P&gt;                         CHANGING  it_items[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM zf_get_final    USING it_header[]&lt;/P&gt;&lt;P&gt;                                  it_history[]&lt;/P&gt;&lt;P&gt;                                  it_items[]&lt;/P&gt;&lt;P&gt;                         CHANGING it_final[].&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;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now after populating the tables and field cat and eventcat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rb1 = x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call FUNCTION 'REUSE LAV GRID DISPLAY'.&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;call FUNCTION 'REUSE LAV LIST DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;award if helpful plz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep rockin&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vivek gaur on Jan 29, 2008 6:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332301#M798575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332302#M798576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: p_alv radiobutton group rad1 default 'X',
            p_form radiobutton group rad1.
            
selection-screen.

   perform extract_data.   " Retreiving required data
   
   if not p_alv is initial.
      perform display_alv.  " Use data to display in ALV format
   else.
      peform print_form.    " Use data to print as Smartform
   endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332302#M798576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332303#M798577</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;     U can check this condition under START-OF-SELECTION event and u can write the neccesay logic depending upon which radio button is selected.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         PERFORM is &lt;STRONG&gt;not an event&lt;/STRONG&gt;. Its just a function call which can be present under the start-of-selection. So if u have written PERFORM under this start-of-selection, u can check ur condition in PERFORM. If not, just check the condition after this start-of-selection.&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;STRONG&gt;Reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shanthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332303#M798577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332304#M798578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have eben ablo to find a solution,by checking the value of radiobutton in Start of selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332304#M798578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332305#M798579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been able to find a solution,by checking the value of radiobutton in Start of selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332305#M798579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332306#M798580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OOPS i meant START-OF-SELECTION instead of SELECTION-SCREEN in my earlier post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish we have compiler for codes we post on SDN. ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow cheers you could find out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332306#M798580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332307#M798581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the correction,I knew you meant Start of selection,even though it was written selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 08:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton/m-p/3332307#M798581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T08:16:56Z</dc:date>
    </item>
  </channel>
</rss>

