Using checkbox at selection screen

I used checkbox at selection screen and i want output as per selected checkbox. How to do that??

hiii
use following code
AT SELECTION-SCREEN.
  IF p_char EQ 'X'.
    w_check = 'X'.
    WRITE: w_check.
  ELSE.
    w_check = ' '.
    WRITE: w_check.
  ENDIF.
SELECT b~carrid                      "Carrier Id
         b~connid                      "Connection id
         b~fldate                      "Flight date
         b~price                       "Price
         b~currency                    "Currency
         b~seatsmax                    "Maximum Seats
INTO TABLE t_flight
FROM spfli AS a
       INNER JOIN sflight AS b ON a~carrid = b~carrid
      INNER JOIN sbook AS c ON c~carrid = b~carrid AND
                                       c~connid = b~connid AND
                                       c~fldate = b~fldate
          WHERE b~carrid IN s_carrid AND
                          c~cancelled EQ w_check.
regards
twinkal

Similar Messages

  • Program using BAPI and selection screens

    program to compare two infoobjects using BAPI and selection screen in ABAP

    BAPI-step by step procedure
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all BAPI's
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • Fetching data from a table & displaying it as checkbox in selection screen

    I have a database table which contains report name & report description as fields.based on the number of rows of data present in the table i have to display check box for each entry & the corresponding controls in the selection-screen.
    I got answers like:
    1.Declaring the checkboxes & hiding the same in runtime using user-command,which is not needed...
    2.Declaring the checkbox in screen painter using function code & calling the same,where i need a clear explanation...
    Is there any other method other than this plz let me know...
    Reply is most urgent...

    Hi Vijay...
    The selection screen should look like...
    cb1 -
    variant1 -
    icb1 -
    date1 -
    time1
    cb2 -
    variant2 -
    icb2 -
    date2 -
    time2
    where...
    cb1 - checkbox which indicates the first report(YRTEST) in the table...
    variant1 - textbox for variant which has a help,on clicking should display all the variants of YRTEST report...
    icb1 - checkbox which indicates the immediate background processing...
    date1 - date on which the job should be scheduled...
    time1 - time on which the job should be scheduled...
    If icb1 is clicked then date1 & time1 should not be allowed to enter & vice-versa...
    cb2 - checkbox which indicates the second report(YRTEST1) in the table...
    variant2 - textbox for variant which has a help,on clicking should display all the variants of YRTEST1 report...
    icb2 - checkbox which indicates the immediate background processing...
    date2 - date on which the job should be scheduled...
    time2 - time on which the job should be scheduled...
    If icb2 is clicked then date2 & time2 should not be allowed to enter & vice-versa...
    Its not like what u said...(Based on user entered data fetch the data of report(variant,date,time) and you can submit the data to background job as incase of single record by looping the data)
    Because we have only ReportName,ReportDescription as fields in the table & not variant,date,time...The variant,date,time are all entered in the selection-screen only from which the background job is scheduled...
    I hope the requirement is more clearer...

  • Trigger process chains using  ABAP program selection screen.

    Hi All
    I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the application server folder and then display him the monitor errors/warnings (if any). when my data load is complete i need to archive the file with time stamp onto the application server folder.
    Please help me in this regard....
    thanks and regards
    sairam phani

    Hi,
    1. Using TA: AL11 create a folder in application server.
    2. There is a program to send the flat file to application server on r/3 side.
    Program Name:RC1TCG3Z.
    3. Regarding archiving...I have no idea.
    Regards,
    Vijay.

  • Value from Program to Selection screen using pushbutton on Selection Screen

    Sir,
    I am creating a Selection screen for update some fields using selection screen. I have 6 fields on screen. First 3 Fields are mendaotry for fetching the data to dispay last 3 fields. I have create a push button for fetch the last 3 fields using first 3 fields.
    So Plz guide me how to do that. I have used At Selection Screen with user command. but result is zero.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FETCH'.
          IF AGSLNO-LOw is NOT INITIAL.
              SELECT SINGLE AGATE_ENTRY_NUM BTRANSPORTER_CODE  B~TRUCK_NO
                      INTO (V_GTENT_N, V_TR_CODE, V_TRUCK_NO)
                      FROM ZGATEOUT AS A
                INNER JOIN ZGATE_IN AS B ON AGATE_ENTRY_NUM = BGATE_ENTRY_NUM
                                     AND AWERKS = BWERKS
                                     AND ATRANSPORTER_CODE = BTRANSPORTER_CODE
                INNER JOIN ZTRPTR_REQ AS C ON AWERKS = CWERKS
                                     AND ATRANSPORTER_CODE = CTRANSPORTER_CODE
                WHERE C~AGSLNO = AGSLNO-LOW.
          ENDIF.
       ENDIF.
              S_GTENT_N-low = V_GTENT_N.
              S_TR_CODE-low = V_TR_CODE.
              S_TRUCK_NO-low = V_TRUCK_NO.
    Thanks.
    Ram

    Hi.,
    did you assigned user command to push button..!!
    put a break point at  IF sscrfields-ucomm = 'FETCH'. and check whether at selection screen event is triggered or not. and check the ucomm value . 
    check this help  for reference: http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/content.htm
    hope this helps u.,
    Thanks & regards,
    Kiran

  • Checkbox ,at selection screen output

    i hav 2 checkboxes.at selectionscreen if i click on one of them, the other should get deactive and viceversa..pls let me know the code...points will be awarded..

    Hi Kiran,
    Try this. Hope it could give you some idea.
    SELECTION-SCREEN BEGIN OF BLOCK BOX1.
    PARAMETER: p_all  AS CHECKBOX ,
               p_chk1 AS CHECKBOX USER-COMMAND ABCD DEFAULT 'X'
               p_chk2 AS CHECKBOX MODIF ID XYZ.
    SELECTION-SCREEN END OF BLOCK  BOX1.
    AT SELECTION-SCREEN OUTPUT.
      IF p_chk1 = 'X'.
        LOOP AT SCREEN.
          CHECK SCREEN-GROUP1 = 'XYZ'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDLOOP.
        CLEAR: p_rep2.
      ELSE.
        LOOP AT SCREEN.
          CHECK SCREEN-GROUP1 = 'XYZ'.
          screen-input = '1'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.

  • Call Program from another Program using varient via Selection Screen

    I am calling a standard report from my Z Program via Selection screen.
    Is there any way to hide the Execute button that is seen when we see the called program selection screen?

    Hi Shyam,
                      Thanks for the quick reply.
    But my requirement is to show the selection screen of called program as i need to make some values changes in the selection Screen.
    However, the user can accidently click the execute button which i dont want thats why i need to hide the execute button.
    My aim is to change values of selection screen but nto execute it.
    Is it possible?

  • Using checkboxes to select items in a Spark DataGroup/List?

    I have a DataGroup from Catalyst, laid out like a tile list:
    I'd like to do something a bit different, in that I'd like to allow people to multi-select items in the list using those checkboxes instead of the usual command/control-click.
    The checkbox, label and image are in the itemRenderer.  Is there an easy way that I can have that checkbox toggle the selected state of its list item?

    Hi,
    Using the checkbox as a selection is easy enough as all you have to do is add a change event to the checkbox in the renderer and then in the event
    selected=mycheckbox.selected;
    The fun is how to handle the list click event from the checkbox you can stop propagation but if the item is clicked it will reset the selected indices.
    There is a few ways to handle this
    when processing the list don't use the selected indices just use the checkbox value to determine whats selected
    disable the listbox click event so items have to be selected with the checkbox
    or the most complex lots of overriding so that click acts like a ctrl/click and the checkbox/itemclick can toggle each other.
    David

  • Use checkbox to select rows in a table

    Is it possible to use a checkbox on the first column of a table as row selection control? Just like most of the web email client (Yahoo, Hotmail...).
    Thanks,
    Samson Fu

    I am using JDeveloper 11.1.1.2 <af:table>.
    Regards,
    Samson Fu

  • Use checkbox to select rows in a af:table

    How to use a checkbox on the first column of a table as row selection control?
    Just like most of the web email client (Yahoo, Hotmail...).
    I am using JDeveloper 11.1.1.2 with Fusion Web Application - ADF.
    The control I am using is a <af:table>.
    Thanks,
    Samson Fu

    The sample you provide is very usefull. But it has some limitations to my working application. It dose not work for tables in clickToEdit mode. User has to click a row in the table to enable the selection checkbox, and the tick the checkbox again to have the row to be selected, if the table is in clickToEdit mode.
    Anyway, that is really a good example. Thank you!
    Regards,
    Samson Fu

  • How to use At Selection Screen for fields whiledealing with Multiple Blocks

    Hi Guys,
                In my requirement i am having 4 blocks.1st block with raduio buttons for activating the opther 3 Blocks.
                  In these 3 blocks i am having some fields.
           How to do Validation for these fields.?
    I am using At Selection-screen on S-SCAD1. I am getting error"S_SCACD1 is neither a selection screen nor a Parameter"
    On the top of this" At Selection-screen on S-SCAD1" I am having"AT SELECTION-SCREEN OUTPUT."
                    Can anybody tell me how to solve this error?
    Thanks,
    Gopi.

    If you are using your block name than you should use like:
    AT SELECTION-SCREEN ON BLOCK S-SCAD1.
    Regards,
    Naimesh Patel

  • Is there a way to use 'GET PERNR' without the selection screens?

    I would like to use the GET PERNR event in a batch program without using the default selection screens.  I would like to be able to use my own selection screen and parameters, but only get them along with the default selection options for payroll period.  I've tried removing the screen number from the attributes screen, but still get these options.  Is this possible?

    hi Kiran,
    report Category is a Pushbutton on the Attributes popup, it only appears if you use PNP logical DB.
    this is from SAPHelp: "Report Category
    Category used for HR reports that use the PNP logical database. It controls the type and number of fields that appear on the selection screen of an evaluation report."
    hope this helps
    ec

  • HOW TO USE SELECTION SCREEN

    HOW TO USE SELECTION SCREEN
    I WANT TO INSERT PURCHASE DOCUMENT NUMBER
    AND WANT TO SEE ALL INFORMATION FOR THAT PURCHASE DOCUMNET NUMBER.
    THANKS IN ADVANCED.

    The main use of the selection-screen is to select screen in the back ground
    ex :    
    TABNAME
    IN THE ABOVE FIGURE  TABNAME IS THE FIELD AND THE BACK END IS   CREATED SCREEN IN THE BACK END
    THIS SCREEN CREATION WE CAN USED THE SCREEN SELECTION

  • Selection screen - Background submit using JOB_SUBMIT

    Hello friends,
                      I am using 2 reports , say report 1(R1) and report 2(R2).
    I am getting a particular value in selection screen from R2 and based on that value I am submitting the report R1 in background using JOB_OPEN,JOB_SUBMITand JOB_CLOSE. Now  i want  the values from selection screen of R2 which is similar to selection screen of R1 to be populated and the execution to take place .If i use SUBMIT / SUBMIT VIA selection screen Background processing is not possible.thats why I used JOB_OPEN,JOB_SUBMITand JOB_CLOSE.Hope there is no ambigutity in my question.
    Regards,
    K.Sibi
    Edited by: sibi k  kanagaraj on Mar 31, 2009 2:00 PM

    Hello,
            What you can do is use job_open , job_submit and before job_close use submit via selection screen and return .
    Hope this helps!
    Viquar Iqbal

  • What is the use of selection -screen on field

    Hi,
    Can anyone tell me the use of at selection-screen on field and its syntax?
    Regards,
    Hema

    Hi Hema,
    AT SELECTION-SCREEN selscreen_event.
    <b>Effect</b>
    This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
    Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
    AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
    Note
    The event blocks after AT SELECTION-SCREEN are implemented internally as procedures. Declarative statments in these event blocks create local data.
    <b>Differenct Options:</b>
      | { ON {para|selcrit} }
      | { ON END OF selcrit }
      | { ON BLOCK block }
      | { ON RADIOBUTTON GROUP radi }
      | { }
      | { ON {HELP-REQUEST|VALUE-REQUEST}
      |   FOR {para|selcrit-low|selcrit-high} }
      | { ON EXIT-COMMAND }.
    <b>Example</b>
    REPORT demo_at_selection_screen.
    Global data
    DATA: sflight_tab TYPE TABLE OF sflight,
          sflight_wa  LIKE LINE  OF sflight_tab.
    Selection screens
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN BEGIN OF SCREEN 500.
      SELECT-OPTIONS s_conn FOR sflight_wa-connid.
      DATA s_conn_wa LIKE LINE OF s_conn.
    SELECTION-SCREEN END OF SCREEN 500.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
      IF p_carrid IS INITIAL.
        MESSAGE 'Please enter a value' TYPE 'E'.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                          ID 'CARRID' FIELD p_carrid
                          ID 'ACTVT'  FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE 'No authorization for carrier' TYPE 'E'.
      ELSEIF sy-subrc <> 0.
        MESSAGE 'Error in authority check' TYPE 'A'.
      ELSE.
        IF sy-ucomm = 'ONLI'.
          CALL SELECTION-SCREEN '0500'.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN.
      IF sy-dynnr = '0500'.
        IF s_conn IS INITIAL.
          MESSAGE 'Please enter values' TYPE 'W'.
        ELSE.
          SELECT *
                 FROM sflight
                 INTO TABLE sflight_tab
                 WHERE carrid = p_carrid AND
                       connid IN s_conn.
          IF sy-subrc <> 0.
            MESSAGE 'No flights found' TYPE 'E'.
          ENDIF.
        ENDIF.
      ENDIF.
    Main program
    START-OF-SELECTION.

Maybe you are looking for

  • How can two users have separate libraries in iTunes?

    I have a library in iTunes for my 20 GB iPod, and now someone else in the house has an iPod shuffle. How is the shuffle installed into iTunes without overriding my library? Will it become obvious when the shuffle software is downloaded? Will I be for

  • Audio not working in CS4

    Hello people, im sorry if this issue was talked about before, i did some research and i can't find the solution for this issue: i am using Premiere Pro CS4, Windows Vista64, 8GB RAM, i have a good audio card, when i first installed premiere, everythi

  • 6300 Problems - is it the firmware ????

    First, the firmware details [ *#0000# ] Nokia 6300 V 04.71 28-02-07 RM-217 (c) Nokia Now to some other details. It was purchased as New From Carphone Warehouse,as an Unlocked Phone (ie Not tied to any Network). I am using an Orange SIM According to m

  • Why static is used before any function in java

    Sir/Madem I'm new in java. I have just started learning java. please tell me "why static is used before any function in java??????" I have searched on net and in soime bokks .But i was unable toget it. what is exact reson of using static in java.

  • Font setting in HTML Conversion Settings not honoured by acrobat

    Hi, I have Helvetica LT Std font family minstalled on my PC. In Acrobat 9, when I go to Create PDF --> From Web page --> Settings --> Settings (File Type : HTML), I select Body text font as "Helvetica LT Std" and size as 14. Now when I try to print a