<?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: How to access selection screen input attributes through screen painter? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761256#M2022462</link>
    <description>&lt;P&gt;to change the parameter / select option as required, you need to pass the screen-required = 1&lt;BR /&gt;*assuming your optional word mean not mandatory&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 07:01:52 GMT</pubDate>
    <dc:creator>xiswanto</dc:creator>
    <dc:date>2023-08-22T07:01:52Z</dc:date>
    <item>
      <title>How to access selection screen input attributes through screen painter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761255#M2022461</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
  &lt;P&gt;I am relatively new to ABAP programming, and I need some help with a certain requirement.&lt;/P&gt;
  &lt;P&gt;I currently have a task where I need to make select-options mandatory/optional based on which radio button is checked. Seeing as I cannot define select-options in screen painter, I decided to create a subscreen containing them, and inserting it into a subscreen area.&lt;/P&gt;
  &lt;P&gt;Unfortunately, I cannot figure out a way to change the 'required' attribute for the select-options programmatically. How can I achieve this requirement?&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;*-Group1 'REQ' contains the select-*options. If r_manage/r_display radio button is checked, the select-*options should be made optional&lt;BR /&gt;  LOOP AT SCREEN INTO wa_screen.&lt;BR /&gt;    CASE 'X'.&lt;BR /&gt;      WHEN r_entry.&lt;BR /&gt;        IF wa_screen-group1 EQ 'ENT'.&lt;BR /&gt;          wa_screen-active = '0'.&lt;BR /&gt;        ENDIF.&lt;BR /&gt;      WHEN r_manage.&lt;BR /&gt;        CASE wa_screen-group1.&lt;BR /&gt;          WHEN'ENT'.&lt;BR /&gt;            wa_screen-active = '1'.&lt;BR /&gt;          WHEN 'REQ'.&lt;BR /&gt;            vl_req_flag = 'X'.&lt;BR /&gt;        ENDCASE.&lt;BR /&gt;      WHEN r_display.&lt;BR /&gt;        CASE wa_screen-group1.&lt;BR /&gt;          WHEN'ENT'.&lt;BR /&gt;            wa_screen-active = '1'.&lt;BR /&gt;          WHEN 'REQ'.&lt;BR /&gt;            vl_req_flag = 'X'.&lt;BR /&gt;        ENDCASE.&lt;BR /&gt;    ENDCASE.&lt;BR /&gt;    MODIFY SCREEN FROM wa_screen.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;*-Preparing values in listbox&lt;BR /&gt;  vl_vrm_id = 'P_STATUS'.&lt;BR /&gt;&lt;BR /&gt;  wa_vrm-key = '1'.&lt;BR /&gt;  wa_vrm-text = 'Available'.&lt;BR /&gt;  APPEND wa_vrm TO it_vrm.&lt;BR /&gt;&lt;BR /&gt;  wa_vrm-key = '2'.&lt;BR /&gt;  wa_vrm-text = 'Out'.&lt;BR /&gt;  APPEND wa_vrm TO it_vrm.&lt;BR /&gt;&lt;BR /&gt;  wa_vrm-key = '3'.&lt;BR /&gt;  wa_vrm-text = 'Both'.&lt;BR /&gt;  APPEND wa_vrm TO it_vrm.&lt;BR /&gt;&lt;BR /&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;BR /&gt;    EXPORTING&lt;BR /&gt;      ID                    = vl_vrm_id&lt;BR /&gt;      VALUES                = it_vrm.&lt;BR /&gt;ENDFORM.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The above subroutine is called whenever the PBO module is called. I am using 'vl_req_flag' as a global variable to determine whether the select-options should be mandatory or optional. I am just stuck on how to access the attributes for the inputs to modify the 'required' attribute.&lt;/P&gt;
  &lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 06:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761255#M2022461</guid>
      <dc:creator>waleed_k99</dc:creator>
      <dc:date>2023-08-22T06:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to access selection screen input attributes through screen painter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761256#M2022462</link>
      <description>&lt;P&gt;to change the parameter / select option as required, you need to pass the screen-required = 1&lt;BR /&gt;*assuming your optional word mean not mandatory&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 07:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761256#M2022462</guid>
      <dc:creator>xiswanto</dc:creator>
      <dc:date>2023-08-22T07:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to access selection screen input attributes through screen painter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761257#M2022463</link>
      <description>&lt;P&gt;Why do you use subscreens? Are you mixing dynpro and selection screen?&lt;/P&gt;&lt;P&gt;If yes, make sure you do LOOP AT SCREEN, MODIFY SCREEN in the right event (at selection-screen output, or PBO module).&lt;/P&gt;&lt;P&gt;As it varies according to the checkbox, it should be "recommended" (required = 2) otherwise you'll get into many troubles (+ you will need to check the mandatory value by ABAP):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;screen-required = '2'.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;0: optional&lt;/LI&gt;&lt;LI&gt;1: obligatory&lt;/LI&gt;&lt;LI&gt;2: recommended&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 22 Aug 2023 07:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761257#M2022463</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-22T07:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to access selection screen input attributes through screen painter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761258#M2022464</link>
      <description>&lt;P&gt;Yes I had to mix dynpro and selection-screen due to dynpro not supporting multiple entry input fields. I managed to get it working with your advice though, thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 08:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-selection-screen-input-attributes-through-screen-painter/m-p/12761258#M2022464</guid>
      <dc:creator>waleed_k99</dc:creator>
      <dc:date>2023-08-22T08:22:13Z</dc:date>
    </item>
  </channel>
</rss>

