<?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: Help in report UI and code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321153#M1394519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding ,You can proceed in the below manner:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Create three check box options for the user (CH1,CH2,CH3) where CH2 AND CH3 are for&lt;/P&gt;&lt;P&gt;    create user attributes &lt;/P&gt;&lt;P&gt;    create user values and &lt;/P&gt;&lt;P&gt;    CH1 is for Read user attributes  and by default check one of the boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also put CH1 in one screen group and CH2 and CH3 in other group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.In the at selection screen output event of the report , proceed as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.1:Loop through the screen table and see if the screen-name = field name and if the checkbox(CH1) is set ,&lt;/P&gt;&lt;P&gt;      then  make the screen group contianing the other two check box as inactive .&lt;/P&gt;&lt;P&gt;      similarly you can add the code for the other two check box i.e if any of the other two check   &lt;/P&gt;&lt;P&gt;      boxes is set then make the screen group containing the first check box as inactive .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;M.Naveen Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 08:45:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-27T08:45:26Z</dc:date>
    <item>
      <title>Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321148#M1394514</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 need to create report and i need to help for GUI aspects (i want it to be looking nice ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; in the report i have 3 options (i don't know if radio button is the best way ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Read user attributes &lt;/P&gt;&lt;P&gt;2. create user attributes &lt;/P&gt;&lt;P&gt;3. create user values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user choose to read attributes (which is defult ) the other option are should be deactivated ,&lt;/P&gt;&lt;P&gt;but when user choose to create he can choose one of the option or either both option ( 2,3 )  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need for that i guess 3 buttons .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the best why to do that from GUI aspects ,and code will help &lt;/P&gt;&lt;P&gt;I read lot of post on the forum but i get confused &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &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;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 08:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321148#M1394514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T08:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321149#M1394515</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;Its better you use a check box instaed of a radio button. if you use radio button only one option can be selected at any point of time. So use checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HArini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 08:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321149#M1394515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T08:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321150#M1394516</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;&lt;/P&gt;&lt;P&gt; It is better to use check box for this, it would be better since when he clicks create , the user can select any other option,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see a sample program using radio buttons, change accordingly for Check box,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : zcust_master2.

SELECTION-SCREEN BEGIN OF BLOCK 001.
PARAMETERS: P_MRU  RADIOBUTTON GROUP SEL DEFAULT 'X' USER-COMMAND AC,
            P_PART RADIOBUTTON GROUP SEL.
    SELECT-OPTIONS P1 FOR zcust_master2-zcustid MODIF ID PRT.
    SELECT-OPTIONS G1 FOR zcust_master2-zcustname  MODIF ID MRU.
SELECTION-SCREEN END OF BLOCK 001.


AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
  IF P_MRU = 'X'.
      IF SCREEN-GROUP1 = 'PRT'.
        SCREEN-INPUT = '0'.
      ENDIF.
      IF SCREEN-GROUP1 = 'MRU'.
        SCREEN-INPUT = '1'.
      ENDIF.
  ELSEIF P_PART = 'X'.
     IF SCREEN-GROUP1 = 'MRU'.
       SCREEN-INPUT = '0'.
     ENDIF.
     IF SCREEN-GROUP1 = 'PRT'.
       SCREEN-INPUT = '1'.
     ENDIF.
  ENDIF.
  MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 08:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321150#M1394516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T08:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321151#M1394517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Harini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing that i forget to mention is the in the screen i have 3 parameters&lt;/P&gt;&lt;P&gt;and when user choose option 3 (create user values ) new fields for input should apper .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 08:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321151#M1394517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T08:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321152#M1394518</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 craete 3  Radio button  and also u use the modify screen ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 08:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321152#M1394518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T08:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321153#M1394519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding ,You can proceed in the below manner:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Create three check box options for the user (CH1,CH2,CH3) where CH2 AND CH3 are for&lt;/P&gt;&lt;P&gt;    create user attributes &lt;/P&gt;&lt;P&gt;    create user values and &lt;/P&gt;&lt;P&gt;    CH1 is for Read user attributes  and by default check one of the boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also put CH1 in one screen group and CH2 and CH3 in other group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.In the at selection screen output event of the report , proceed as below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.1:Loop through the screen table and see if the screen-name = field name and if the checkbox(CH1) is set ,&lt;/P&gt;&lt;P&gt;      then  make the screen group contianing the other two check box as inactive .&lt;/P&gt;&lt;P&gt;      similarly you can add the code for the other two check box i.e if any of the other two check   &lt;/P&gt;&lt;P&gt;      boxes is set then make the screen group containing the first check box as inactive .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;M.Naveen Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 08:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321153#M1394519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321154#M1394520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Even if u have Input parameters which should change based on the check box selected,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the same LOOP SCREEN, MODIFY SCREEN to get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Parameters you can give user command using the syntax USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 09:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321154#M1394520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T09:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321155#M1394521</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 am working to do that but i am facing some issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i create TM i want to add new fields to the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: read RADIOBUTTON GROUP g1 USER-COMMAND u1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 3(15) text-001.
PARAMETERS  cre_zm  RADIOBUTTON GROUP g1  .
SELECTION-SCREEN COMMENT 21(30) text-002.
PARAMETERS  cre_tm  RADIOBUTTON GROUP g1.
SELECTION-SCREEN COMMENT 54(30) text-003.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1 .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that i add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
  LOOP AT SCREEN.
    IF screen-group1 = 'M1'.
      screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF cre_TM = abap_true.
      IF screen-group1 = 'M1'.
        screen-active = '1'.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&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;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that when i choose also create ZM it the field appear ,&lt;/P&gt;&lt;P&gt;what i miss here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 09:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321155#M1394521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help in report UI and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321156#M1394522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to add this lines :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
    IF cr_zm = abap_true.
      IF screen-group1 = 'M1'.
        screen-active = '0'.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

  LOOP AT SCREEN.
    IF read = abap_true.
      IF screen-group1 = 'M1'.
        screen-active = '0'.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Shimi Tal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 09:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-report-ui-and-code/m-p/6321156#M1394522</guid>
      <dc:creator>shimon_tal</dc:creator>
      <dc:date>2009-10-27T09:25:41Z</dc:date>
    </item>
  </channel>
</rss>

