<?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: parameters checkbox at selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512440#M2004115</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using At selection screen event which triggers at PAI. Make sure all the checkboxes are having correct values before START-OF-SELECTION. Please check if you can directly use these flags in database tables while fetching the entries. Also, for the class checkbox if only one is possible at a time, replace them with radio button.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 01:58:46 GMT</pubDate>
    <dc:creator>former_member793180</dc:creator>
    <dc:date>2022-03-07T01:58:46Z</dc:date>
    <item>
      <title>parameters checkbox at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512437#M2004112</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;hello all,&lt;/P&gt;
  &lt;P&gt;I have a problem that I don't know how to solve:&lt;/P&gt;
  &lt;P&gt;I will put my program here:&lt;/P&gt;
  &lt;P&gt;the problems are with selection-screen block 2.&lt;/P&gt;
  &lt;P&gt;so, I have 4 checkboxes: 3 for class and one for invoice.&lt;/P&gt;
  &lt;P&gt;when I hit the business class checkbox I need to bring all the flights for business class. And so on for the other 2.&lt;/P&gt;
  &lt;P&gt;for the invoice, when I hit the check box for invoice, I need to bring all the flights that have invoice flag.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TABLES: spfli.&lt;BR /&gt;*==================================================================*&lt;BR /&gt;* data declaration *&lt;BR /&gt;*==================================================================*&lt;BR /&gt;DATA: BEGIN OF gs_flights,&lt;BR /&gt; carrid TYPE spfli-carrid, "Airline"&lt;BR /&gt; connid TYPE spfli-connid, "Flight number"&lt;BR /&gt; fldate TYPE sflight-fldate, "Date"&lt;BR /&gt; countryfr TYPE spfli-countryfr, "Country"&lt;BR /&gt; carrname TYPE scarr-carrname, "Airline Name"&lt;BR /&gt; cityfrom TYPE spfli-cityfrom, "Departure city"&lt;BR /&gt; cityto TYPE spfli-cityto, "Arrival city"&lt;BR /&gt; deptime TYPE spfli-deptime, "Departure"&lt;BR /&gt; arrtime TYPE spfli-arrtime, "Arrival"&lt;BR /&gt; price TYPE sflight-price, "Airfare"&lt;BR /&gt; bookid TYPE sbook-bookid, "Booking number"&lt;BR /&gt; luggweight TYPE sbook-luggweight, "Luggage weight"&lt;BR /&gt; order_date TYPE sbook-order_date, "Booking date"&lt;BR /&gt; cancelled TYPE sbook-cancelled, "Cancelation flag"&lt;BR /&gt; reserved TYPE sbook-reserved, "Reserved"&lt;BR /&gt; passname TYPE sbook-passname, "Passanger name"&lt;BR /&gt; customid TYPE sbook-customid, "Customer number"&lt;BR /&gt; counter TYPE sbook-counter, "Sales office"&lt;BR /&gt; currency TYPE sflight-currency, "Airline currency"&lt;BR /&gt; agencynum TYPE sbook-agencynum, "Agency number"&lt;BR /&gt; class TYPE sbook-class, "Class"&lt;BR /&gt; invoice TYPE sbook-invoice, "invoice flagg"&lt;BR /&gt; END OF gs_flights.&lt;BR /&gt;DATA: gt_flights LIKE TABLE OF gs_flights.&lt;BR /&gt;DATA: gd_ucomm TYPE sy-ucomm.&lt;BR /&gt;DATA: go_salv TYPE REF TO cl_salv_table.&lt;BR /&gt;DATA: go_function TYPE REF TO cl_salv_functions_list.&lt;BR /&gt;DATA: go_display TYPE REF TO cl_salv_display_settings.&lt;BR /&gt;DATA: go_cols_tab TYPE REF TO cl_salv_columns_table.&lt;BR /&gt;*==================================================================*&lt;BR /&gt;* SELECTION SCREEN *&lt;BR /&gt;*==================================================================*&lt;BR /&gt;SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;BR /&gt;SELECT-OPTIONS: s_carrid FOR spfli-carrid, "Airline"&lt;BR /&gt; s_connid FOR spfli-connid, "Flight number"&lt;BR /&gt; s_countr FOR spfli-countryfr, "Country"&lt;BR /&gt; s_cityto FOR spfli-cityto, "Departure city"&lt;BR /&gt; s_cityfr FOR spfli-cityfrom. "Arrival city"&lt;BR /&gt;SELECTION-SCREEN: END OF BLOCK b1.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;BR /&gt;PARAMETERS: p_cb_b AS CHECKBOX USER-COMMAND cb_b, " checkbox for business clas C"&lt;BR /&gt; p_cb_f AS CHECKBOX USER-COMMAND cb_f, " checkbox for economy class Y"&lt;BR /&gt; p_cb_e AS CHECKBOX USER-COMMAND cb_e, " checkbox for first class F"&lt;BR /&gt; p_cb_inv AS CHECKBOX, " check box for invoice flag"&lt;BR /&gt; p_var TYPE disvariant-variant.&lt;BR /&gt;SELECTION-SCREEN: END OF BLOCK b2.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;*=====================================================================*&lt;BR /&gt;* AT SELECTION-SCREEN *&lt;BR /&gt;*=====================================================================*&lt;BR /&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.&lt;BR /&gt; PERFORM value_request_p_var CHANGING p_var.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;AT SELECTION-SCREEN OUTPUT.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;BR /&gt;
  &lt;PRE&gt;&lt;CODE&gt; CASE gd_ucomm.&lt;BR /&gt; WHEN 'cb_b' .&lt;BR /&gt; CLEAR: p_cb_f , p_cb_e.&lt;BR /&gt; WHEN 'cb_f'.&lt;BR /&gt; CLEAR: p_cb_b , p_cb_e.&lt;BR /&gt; WHEN 'cb_e'.&lt;BR /&gt; CLEAR: p_cb_b , p_cb_f.&lt;BR /&gt; ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;and the invoice parameter I used it here:&lt;/P&gt;
  &lt;P&gt;after all the data from select data and joins ..&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; LOOP AT lt_schedule INTO ls_schedule.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;READ TABLE lt_scarr INTO ls_scarr WITH KEY carrid = ls_schedule-carrid&lt;BR /&gt; BINARY SEARCH.&lt;BR /&gt; IF sy-subrc = 0.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;BR /&gt;
  &lt;PRE&gt;&lt;CODE&gt; gs_flights-carrname = ls_scarr-carrname.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt; ENDIF.&lt;BR /&gt; READ TABLE lt_sbook INTO ls_sbook WITH KEY carrid = ls_schedule-carrid&lt;BR /&gt; connid = ls_schedule-connid&lt;BR /&gt; BINARY SEARCH.&lt;BR /&gt; IF sy-subrc = 0.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;gs_flights-invoice = ls_sbook-invoice.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;BR /&gt;
  &lt;PRE&gt;&lt;CODE&gt; IF p_cb_inv IS NOT INITIAL.&lt;BR /&gt; gs_flights-invoice = ls_sbook-invoice.&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;BR /&gt;
  &lt;PRE&gt;&lt;CODE&gt; IF ls_sbook-invoice &amp;lt;&amp;gt; 'X'.&lt;BR /&gt; CONTINUE.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;BR /&gt;
  &lt;PRE&gt;&lt;CODE&gt; IF sy-subrc = 0.&lt;BR /&gt; READ TABLE lt_stravelag INTO ls_stravelag WITH KEY agencynum = ls_sbook-agencynum&lt;BR /&gt; BINARY SEARCH.&lt;BR /&gt; ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;can anyone tell me what have I missed, because no checkbox work as it should.&lt;/P&gt;
  &lt;P&gt;thank you all,&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 18:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512437#M2004112</guid>
      <dc:creator>madalinacorina_floca</dc:creator>
      <dc:date>2022-03-06T18:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: parameters checkbox at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512438#M2004113</link>
      <description>&lt;P&gt;Please edit your question, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you! &lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 19:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512438#M2004113</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-06T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: parameters checkbox at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512439#M2004114</link>
      <description>&lt;P&gt;Please debug your code, and you'll see the problem.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 19:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512439#M2004114</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-06T19:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: parameters checkbox at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512440#M2004115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using At selection screen event which triggers at PAI. Make sure all the checkboxes are having correct values before START-OF-SELECTION. Please check if you can directly use these flags in database tables while fetching the entries. Also, for the class checkbox if only one is possible at a time, replace them with radio button.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 01:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-checkbox-at-selection-screen/m-p/12512440#M2004115</guid>
      <dc:creator>former_member793180</dc:creator>
      <dc:date>2022-03-07T01:58:46Z</dc:date>
    </item>
  </channel>
</rss>

