<?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: REPORTS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218430#M475968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inorder to have this functionality of displaying  Vendors  or Customers based on the User selection at the selection screen, we need to use the Events. &lt;/P&gt;&lt;P&gt;The Event that we use here is  AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the complete code , just copy , paste &amp;amp; execute you will know how it works.&lt;/P&gt;&lt;P&gt;The below code , at the selection screen on choosing first Radio Button it will display Sales Docu &amp;amp; Creation Date  fields &amp;amp; on choosing second radio button it will display Material &amp;amp; Creation date fields hiding the other 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSEL_SCRN_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA, VBAK, KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA IT_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_SAL RADIOBUTTON GROUP grp ,&lt;/P&gt;&lt;P&gt;                        P_MAT RADIOBUTTON GROUP grp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,&lt;/P&gt;&lt;P&gt;                              S_ERDAT FOR VBAK-ERDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR MARA-MATNR,&lt;/P&gt;&lt;P&gt;                              S_ERSDA FOR MARA-ERSDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  P_SAL = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF P_SAL EQ 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP4 EQ '004'&lt;/P&gt;&lt;P&gt;      OR SCREEN-GROUP4 EQ '005'.&lt;/P&gt;&lt;P&gt;        SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSEIF P_MAT EQ 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP4 EQ '002'&lt;/P&gt;&lt;P&gt;      OR SCREEN-GROUP4 EQ '003'.&lt;/P&gt;&lt;P&gt;        SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM VBAK INTO TABLE IT_VBAK  WHERE VBELN IN S_VBELN.&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;  LOOP AT IT_VBAK.&lt;/P&gt;&lt;P&gt;    WRITE:/ IT_VBAK-VBELN,&lt;/P&gt;&lt;P&gt;    IT_VBAK-ERDAT, IT_VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;    IT_VBAK-KUNNR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HIDE IT_VBAK-VBELN.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2007 16:52:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-01T16:52:43Z</dc:date>
    <item>
      <title>REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218421#M475959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus.., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to display vendors and customers details by using radio buttons.in the selection scereen if i select vendors customer should be disable and i need to get the information of vendors,vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise give me some examples that how can i use radia buttons in my report  program with complete code.if useful full points urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 13:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218421#M475959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T13:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218422#M475960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameters: vend RADIOBUTTON GROUP r1 ,&lt;/P&gt;&lt;P&gt;                  cust RADIOBUTTON GROUP r1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start of selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vend = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vendors...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif cust = 'X'.&lt;/P&gt;&lt;P&gt;select customers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 13:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218422#M475960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218423#M475961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look at the DEMO programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_AT_SELECTION_ON_BLOCK&lt;/P&gt;&lt;P&gt;DEMO_AT_SELECTION_ON_END&lt;/P&gt;&lt;P&gt;DEMO_AT_SELECTION_ON_RADIO&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 13:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218423#M475961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T13:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218424#M475962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi augastine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give me entire code so that i can understand easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;yogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218424#M475962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218425#M475963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below code used for defining code on selection screen. You can take reference.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECTION SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS : S_MATNR FOR MARA-MATNR MODIF ID sc1.&lt;/P&gt;&lt;P&gt;PARAMETER      : DEL AS CHECKBOX MODIF ID sc1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN MODIF ID sc2.&lt;/P&gt;&lt;P&gt;PARAMETERS     : S_FILE LIKE RLGRAP-FILENAME MODIF ID sc2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: FUNCTION KEY 1,&lt;/P&gt;&lt;P&gt;                  FUNCTION KEY 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DISPLAY THE SELETION DEPENDING UPON THE USE SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_01 = 'Material'.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_02 = 'Purchase document'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-GROUP1 = 'SC1' OR SCREEN-GROUP1 = 'SC2'.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&lt;/P&gt;&lt;P&gt;  CASE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'FC01'.&lt;/P&gt;&lt;P&gt;      V_FLAG = '1'.&lt;/P&gt;&lt;P&gt;      V_FLAG1 = '0'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC02'.&lt;/P&gt;&lt;P&gt;      V_FLAG = '0'.&lt;/P&gt;&lt;P&gt;      V_FLAG1 = '1'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-GROUP1 = 'SC1'.&lt;/P&gt;&lt;P&gt;      SCREEN-ACTIVE = V_FLAG.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CLEAR SCREEN.&lt;/P&gt;&lt;P&gt;    ELSEIF SCREEN-GROUP1 = 'SC2'.&lt;/P&gt;&lt;P&gt;      SCREEN-ACTIVE = V_FLAG1.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CLEAR SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218425#M475963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218426#M475964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yogi, if you are using radio buttons in the selection screen and if you select one the others become disable,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you need to handel it in ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : manual RADIOBUTTON GROUP rad2 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;             delete RADIOBUTTON GROUP rad2,&lt;/P&gt;&lt;P&gt;             batch RADIOBUTTON GROUP rad2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF manual = 'X'.&lt;/P&gt;&lt;P&gt;*Write the code for the action to be performed when first radion button is selected&lt;/P&gt;&lt;P&gt;  ELSEIF delete = 'X'.&lt;/P&gt;&lt;P&gt;*Similarly for secon radio button&lt;/P&gt;&lt;P&gt;  ELSEIF batch = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;An finally for the third.&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;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218426#M475964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218427#M475965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shreekant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; give me the entir code wth an example so tht i can understand easily.plss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;yogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218427#M475965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218428#M475966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT demo_at_selection_on_radio .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: r1 RADIOBUTTON GROUP rad1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            r2 RADIOBUTTON GROUP rad1,&lt;/P&gt;&lt;P&gt;            r3 RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            r5 RADIOBUTTON GROUP rad2,&lt;/P&gt;&lt;P&gt;            r6 RADIOBUTTON GROUP rad2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF r1 = 'X'.&lt;/P&gt;&lt;P&gt;    MESSAGE w888(sabapdocu) WITH text-001.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON RADIOBUTTON GROUP rad2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF r4 = 'X'.&lt;/P&gt;&lt;P&gt;    MESSAGE w888(sabapdocu) WITH text-001.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218428#M475966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218429#M475967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; this is my exact requirement.&lt;/P&gt;&lt;P&gt;i need to display vendors and customers details by using radio buttons.in the selection scereen if i select vendors customer should be disable and i need to get the information of vendors,vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i use radia buttons in my report program with complete code.if useful full points urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 i need to display vno vname&lt;/P&gt;&lt;P&gt;0 i need to display cno cname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218429#M475967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218430#M475968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inorder to have this functionality of displaying  Vendors  or Customers based on the User selection at the selection screen, we need to use the Events. &lt;/P&gt;&lt;P&gt;The Event that we use here is  AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the complete code , just copy , paste &amp;amp; execute you will know how it works.&lt;/P&gt;&lt;P&gt;The below code , at the selection screen on choosing first Radio Button it will display Sales Docu &amp;amp; Creation Date  fields &amp;amp; on choosing second radio button it will display Material &amp;amp; Creation date fields hiding the other 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSEL_SCRN_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA, VBAK, KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA IT_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_SAL RADIOBUTTON GROUP grp ,&lt;/P&gt;&lt;P&gt;                        P_MAT RADIOBUTTON GROUP grp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,&lt;/P&gt;&lt;P&gt;                              S_ERDAT FOR VBAK-ERDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR MARA-MATNR,&lt;/P&gt;&lt;P&gt;                              S_ERSDA FOR MARA-ERSDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  P_SAL = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF P_SAL EQ 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP4 EQ '004'&lt;/P&gt;&lt;P&gt;      OR SCREEN-GROUP4 EQ '005'.&lt;/P&gt;&lt;P&gt;        SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSEIF P_MAT EQ 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP4 EQ '002'&lt;/P&gt;&lt;P&gt;      OR SCREEN-GROUP4 EQ '003'.&lt;/P&gt;&lt;P&gt;        SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM VBAK INTO TABLE IT_VBAK  WHERE VBELN IN S_VBELN.&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;  LOOP AT IT_VBAK.&lt;/P&gt;&lt;P&gt;    WRITE:/ IT_VBAK-VBELN,&lt;/P&gt;&lt;P&gt;    IT_VBAK-ERDAT, IT_VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;    IT_VBAK-KUNNR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HIDE IT_VBAK-VBELN.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 16:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2218430#M475968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T16:52:43Z</dc:date>
    </item>
  </channel>
</rss>

