At selection-screen output functionality in wd..

Hi all,
I've two checkboxes and two input fields. If i click the first checkbox the second input field should disable and if i click the second one first input field should disable. Is it possible to implement this logic in webdynpro? I'm new to webdynpro..please explain me with a sample code..Useful reply will be rewarded high points.
Regards
Mahathi

Hi,
this is very much possible....
bind the checked property of your checkbox with any boolean attribute.... value in this attribute will come automatically when you check or uncheck the check box.... now create an event and bind with on toggle event of check box..... this event will be called when you check or uncheck the check box..... now depending on the boolean attribute set the enable property of input field....
check the code below.....
method ONACTIONCB2 .
    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
    DATA lv_cb1 LIKE ls_context-cb2.
*   get element via lead selection
    lo_el_context = wd_context->get_element(  ).
*   get single attribute
    lo_el_context->get_attribute(
      EXPORTING
        name =  `CB2`
      IMPORTING
        value = lv_cb1 ).
  DATA lv_ip1 LIKE ls_context-ip1.
* get element via lead selection
  lo_el_context = wd_context->get_element(  ).
if lv_cb1 eq ABAP_FALSE.
* set single attribute
  lo_el_context->set_attribute(
    EXPORTING
      name =  `IP1`
      value = ABAP_TRUE ).
ELSEIF lv_cb1 eq ABAP_TRUE.
* set single attribute
  lo_el_context->set_attribute(
    EXPORTING
      name =  `IP1`
      value = ABAP_FALSE ).
endif.
endmethod.
regards
Pranav

Similar Messages

  • Enforcing event AT-SELECTION-SCREEN OUTPUT

    Hi Gurus
    Does anybody know how to force event AT-SELECTION-SCREEN OUTPUT ?
    What I'm aiming for is changing screen somewere outside of this event. For example.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_param.
      IF p_param = 'change'.
        changes_in_screen = 'X'.
        *???*   "forcing AT-SELECTION-SCREEN OUTPUT event
      ENDIF.
    AT-SELECTION-SCREEN OUTPUT.
      IF changes_in_screen = 'X'.
        LOOP AT SCREEN.
          "do something
        ENDLOOP.
      ENDIF.
    I would be grateful for any hints.

    One alternative to define two selection screens.  First selection screen (default selection screen of report #1000) having Client_type.  After user hits execute (F8) then show the second selection screen with corresponding parameters.
    PARAMETERS: p_client(1).
    SELECTION-SCREEN BEGIN OF SCREEN 9000 AS WINDOW.
    PARAMETERS: p_name(20),
                p_lname(20),
                p_cname(20),
                p_oname(20).
    SELECTION-SCREEN END OF SCREEN 9000.
    AT SELECTION-SCREEN OUTPUT.
      CHECK sy-dynnr = '9000'.
    *  Hide corresponding fields on second selection screen
    *  based on values of P_CLIENT.
    *  Also should make key parameters obligatory!
    START-OF-SELECTION.
      CALL SELECTION-SCREEN 9000 STARTING AT 5 5.
    Another alternative is to use a dialog/module pool program to handle this.  Such screen field controlling can easily be done in dialog programs because you have full PAI/PBO control, unlike report program selection screen 1000.  Unfortunately in a dialog program it is not easy to reproduce the functionality of a select-option.

  • Problem in using at selection-screen output

    Hai Frnds,
    I am using 5 parameters in the selection screen . I am entering data in the 4 input fields. Then I am doing concatenate 4 fileds data into the 5th field in the event AT SELECTION-SCREEN OUTPUT, but my problem is When ever i click ENTER , then only 5th field is updating. With out ENTER key , Is it possible update 5th filed.
    Thanks,
    Kiran.

    Hi,
    We can restrict the functionality of ENTER.
    User the Concatenation in AT SELECTION-SCREEN EVENT
    because AT SELECTION-SCREEN OUTPUT is triggered before
    selection screen is displayed.Below code will definitly work.
    Ex:
    Tables:SSCRFIELDS.
    At selection-screen.
    IF SY-ucomm = ' '.
    Clear SSCRFIELDS-UCOMM.
    ENDIF.
    CHECK  SSCRFIELDS-UCOMM EQ 'ONLI'.
    CONCATENATE <FIELDS> INTO PARAMETER5.
    ONLI is Function code of F8
    ' ' is for enter.
    The above code will surely work.
    Thanks.

  • At selection screen output validation

    Hi to all experts.
    i have requirement when user selects the download radio button then only the file path should be made mandatory . can be done

    Hi Dude,
    For screen fields handling we have a structure called SCREEN..by using this structure we have to handle this...
    parameters: ps_parm as listbox visible length 10
                              user-command abc.
    * Radio buttons
    parameters: rb1 radiobutton group ab modif id bl2,
                rb2 radiobutton group ab modif id bl2,
                rb3 radiobutton group ab modif id bl3.
    initialization.
    * Populate list box values
      name = 'PS_PARM'.
      value-key = '1'. value-text = 'Line 1'. append value to list.
      value-key = '2'. value-text = 'Line 2'. append value to list.
      at selection-screen output.
    * Set list box with value
      call function 'VRM_SET_VALUES'
        exporting
          id     = name
          values = list.
    * Control the display of screen components
      loop at screen.
        if ps_parm = 1.
          if screen-name = 'RB1' or screen-name = 'RB2' .
            screen-invisible = 0.
          elseif screen-name = 'RB3'.
            screen-invisible = 1.
          endif.
          modify screen.
        elseif ps_parm = 2.      if screen-name = 'RB1' or screen-name = 'RB2' .
            screen-invisible = 1.
          elseif screen-name = 'RB3'.
            screen-invisible = 0.
          endif.
          modify screen.
        elseif ps_parm = space.
          rb1 = 'X'.
          clear: rb2,rb3.
          if screen-name = 'RB1' or screen-name = 'RB2' or
             screen-name = 'RB3'.        screen-invisible = 0.
            modify screen.
          endif.
        endif.  endloop.
    at selection-screen.
      if sscrfields-ucomm = 'ABC'.  endif.
      start-of-selection.
      write: / 'Parameter:', ps_parm.

  • Selection-screen output , initialaization confusion

    we have selectionscreen output, initialization events
    first initializatuion,
    than at selection-screen output
    execute it, than we pressed f3 came bact  to  selection-screen
    than which event  ll trigger
    thank you
    kals.

    The different events in a report Program are:
    Load-of-program
    Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session. The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F or S as a constructor has for classes in ABAP Objects
    Initialization.
    This event is executed before the selection screen is displayed .
    Initialization of all the values.
    You can assign different values other than the values defaulted on the selection screen .
    You can fill your selection screen with some values at runtime.
    At Selection-Screen.
    The event is processed when the selection screen has been processed (at the end of PAI ).
    Validation & Checks of inputted values happen here
    Extras :
    …ON VALUE-REQUEST FOR psel_low_high .
    The pushbutton for F4 (Possible entries) appears beside the appropriate field.
    ... ON HELP-REQUEST FOR psel_low_high
    . ... OUTPUT
    This event is executed at PBO of the selection screen every time the user presses ENTER
    Start-of-Selection.
    Here the program starts selecting values from tables.
    End-of-selection.
    After all the data has been selected this event writes the data to the screen.
    Interactive Events
    Used for interactive reporting. It is used to create a detailed list from a basic list.
    Events in an ABAP/4 Report Program
    Start-Of-Selection
    Processing block is executed after processing the selection screen
    All the data is selected in this block.
    All the main processing on the data except for interactive reporting is handled in this block.
    End-Of-Selection
    Data which is selected and has been processed is printed to the screen in this block.
    List Processing happens in this block
    Top-of-Page.
    New-Page.
    End-of-Page.
    Events during List Processing
    Top-of-Page.
    Triggered by the first write statement in the program
    It is used to have a standard header in the program for all the pages.
    TOP-OF-PAGE is only executed before outputting the first line on a new page
    New-Page.
    Can be used when one wants to display different data on different pages
    Terminates the current page and continues output on a new page.
    Will not trigger the Top-of-Page or End-of-Page.
    End-of-Page.
    It is used to have a standard footer for all the pages.
    Triggered by the program if the number of records exceed the line-count of the program.
    Hope u understood....

  • Help Needed in At selection screen output

    Hi Experts,
    I need your help in AT SELECTION SCREEN OUTPUT event. My issue is i have 4 radio button and with each radio button couple of parameters that need to be filled in selection screen of report. My requirement is that sometimes user enters details in second radio button parameters but forgot to change the radio button to second one so kindly suggest a solution so that radio button gets selected as per user input in parameter like if user clicks on certain parameter to enter value then automatically corresponding radio button gets selected.
    Thanks in advance for all your help.

    example from a checkbox in one of my progs..but you can do same approach with radio butts
    parameters p_test as checkbox default abap_on user-command test.
    at selection-screen.
        if sy-ucomm = 'TEST'.
          perform birth_mnth_chck.
        endif.

  • AT SELECTION-SCREEN OUTPUT.

    Hi All,
    I have a selection screen which i need to influence before it is shown in the screen after the transaction is executed.
    I want the user to influence one of the fields in selection screen by an user exit.So if in the user exit the parameter is set by the user ,then only that particular field should be enabled or else it should be disabled.
    I know i can use AT SELECTION-SCREEN OUTPUT.
    but i am not sure that i can influence it with an user exit.
    Could anybody let me know the logic or code to write this.
    It would be very much help full.
    Regards,
    Priya.

    Hi Priya,
    you can make properly for loop at screen. with modify screen..
    it applied for enabled or disabled screen proceed.
    thx,
    s.suresh

  • At selection screen output dialog

    how i can make
    i have customer i want when i click enter to get the description.
    the program is dialog , i get always err,and when i put in PBO or PAI.

    Hi Little ,
      What i understand is that you are working on a report and not a module pool.
    If it is a report then you will first have to modify the selection screen , go to SE51 , put in the program name and the screen number ( which is generally 1000) , on the screen add a new I/O box which is for Output only let it be KNA1-NAME1 .
    Now you need to write the code in the event AT SELECTION-SCREEN OUTPUT .
    Here is the sample code for the same
    tables : kna1.
    parameter : kunnr type kna1-kunnr.
    at selection-screen output.
    if not kunnr is initial.
      select single name1 into kna1-name1
        from kna1
        where kunnr =  kunnr.
    endif.
    Hope this helps.
    Regards
    Arun

  • At selection screen output problem

    Hi all,
    I am trying to make a few fields disabled based on the selection of a radio button. I have done it in dialog programming, but in report its not working. Please tell me where i have gone wrong. My code:
    * Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER : rb_dwld RADIOBUTTON GROUP radi DEFAULT 'X',
                rb_upld RADIOBUTTON GROUP radi.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    SELECT-OPTIONS : so_cctrl FOR /dceur/z_crconar-crdt_ctrldsa MODIF ID
                                             sc1 NO INTERVALS OBLIGATORY,
                     so_cusno FOR /dceur/z_crdtlmt-dealer MODIF ID sc1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    SELECT-OPTIONS : so_ctrl1 FOR /dceur/z_crconar-crdt_ctrldsa MODIF ID
                                             sc2 NO INTERVALS OBLIGATORY.
    PARAMETER pa_fname TYPE rlgrap-filename MODIF ID sc2.
    SELECTION-SCREEN END OF BLOCK b3.

    Hi,
    Please check the below code.
    This is one of my requirement.
    * Creation of two blocks with parameter fields for create and update
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETER p_create LIKE rlgrap-filename MODIF ID crt.
    SELECTION-SCREEN: END OF BLOCK b1.
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETER p_update LIKE rlgrap-filename MODIF ID upt.
    SELECTION-SCREEN: END OF BLOCK b2.
    * Making one parameter field active at a time
    AT SELECTION-SCREEN OUTPUT.
      IF rb_crt = 'X'.                              "CREATE BUTTON IS SELECTED
        PERFORM hide_rb_options.
        CLEAR p_create.
      ELSE.                                         "UPDATE BUTTON IS SELECTED
        PERFORM hide_rb_options.
        CLEAR p_update.
      ENDIF.
    *&      Form  hide_rb_options
    FORM hide_rb_options .
      IF rb_crt = 'X'    .
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CRT'.
              screen-active = 1.
              MODIFY SCREEN.
            WHEN 'UPT'.
              screen-active = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'UPT'.
              screen-active = 1.
              MODIFY SCREEN.
            WHEN 'CRT'.
              screen-active = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " hide_rb_options
    May it helps you.
    Regards.
    DS.

  • At-selection screen output and radio button together

    Hi all,
    I want to make  a screen with radio buttons and a drop down menu on selection screen as soon as I check any button and click on Open from drop down menu the output should come according to the button cheked but the problem is that desired output is not coming.
    Please see if something could be done.
    Thanks,
    Shweta

    Hi,
    Here is the code see y it didnt responds,
    I made ZMENU2 in SE41 with Menu bar as OPEN , also activated buttons BACK and EXIT.
    tables : sscrfields.
    CONSTANTS : buttonselected TYPE c LENGTH 1 VALUE 'X'.
    DATA: ok_code LIKE sy-ucomm.
    SELECTION-SCREEN BEGIN OF BLOCK frame1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN ULINE /1(60).
    PARAMETERS: first RADIOBUTTON GROUP rad DEFAULT 'X',
    second RADIOBUTTON GROUP rad,
    third RADIOBUTTON GROUP rad,
    fourth RADIOBUTTON GROUP rad,
    fifth RADIOBUTTON GROUP rad.
    SELECTION-SCREEN END OF BLOCK frame1.
    AT SELECTION-SCREEN OUTPUT.
      SET PF-STATUS 'ZMENU2'.
      If first = buttonselected and ok_code = 'OPEN'..
             WRITE 'You selected first button'.
        ELSEIF second = buttonselected and ok_code = 'OPEN'..
            WRITE 'You selected second button'.
        ELSEIF third = buttonselected and ok_code = 'OPEN'.
            WRITE 'You selected third button'.
        ELSEIF fourth = buttonselected and ok_code = 'OPEN'.
            WRITE 'You selected fourth button'.
        ELSEIF fifth = buttonselected and ok_code = 'OPEN'.
            WRITE 'You selected fifth button'.
        ELSEIF ok_code ='BACK'.
           LEAVE PROGRAM.
        ELSEIF ok_code ='EXIT'.
          LEAVE PROGRAM.
      ENDIF.

  • At Selection-screen output event

    Hi
    can any one give me some examples for at selection-screen output event
    with regards
    nagaraj
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Nov 8, 2011 12:13 PM

    Thanks Benedict
    Creating Module %_S_KOSTL and write our own logic to bring the parameter id value of Cost center from User profiles is NOT possible in program RM06BF00,  screen 1000.
    We can do that in Copied program of RM06BF00 ..which is the very last option.
    I wanted to do that with User-exits or BADI or Enhancement spot etc...which i Couldn't do it so far...
    The alternate might be Zprog and Ztcode or an SNOTE..
    if you ALL think its NOT possible with User-exits or BADI or Enhancement spot or SNOTE etc..Then i will close this Thread...
    Please let me know ASAP...
    Thanks
    Govi

  • AT SELECTION-SCREEN OUTPUT not working!

    Hi,
    I am useing the statement AT SELECTION-SCREEN OUTPUT to disable some input fields based on a check box(PR_FILE).however when I execute the program the changes on the screen are not reflected!I have written the AT SELECTION-SCREEN OUTPUT stmt immediately after SELECTION-SCREEN stmt .
    Defination for the screen elements is  as  follows:
    SELECT-OPTIONS s_plants FOR  ls_selected_plant-plant
                                                         NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK filesel WITH FRAME TITLE text-012.
    PARAMETERS pr_file TYPE xfeld .
    PARAMETER : pr_path LIKE rlgrap-filename .
    SELECTION-SCREEN END OF BLOCK filesel.
    AT SELECTION-SCREEN OUTPUT.
      IF pr_file = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 's_plants'.
            screen-input    = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-name = 'pr_path'.
            screen-input    = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Can anybody suggest what wrong i have done??

    You need to use the User Command for the checkbox and the Modificaiton ID (Group) for the fields.
    Try like this:
    TABLES: VBRP.
    SELECT-OPTIONS S_PLANTS FOR VBRP-WERKS NO INTERVALS MODIF ID GP1.
    SELECTION-SCREEN BEGIN OF BLOCK FILESEL WITH FRAME TITLE TEXT-012.
    PARAMETERS PR_FILE TYPE XFELD USER-COMMAND USR1.
    PARAMETER : PR_PATH LIKE RLGRAP-FILENAME MODIF ID GP2 .
    SELECTION-SCREEN END OF BLOCK FILESEL.
    AT SELECTION-SCREEN OUTPUT.
        IF PR_FILE = 'X'.
          LOOP AT SCREEN.
            if screen-group1 = 'GP1'.
              SCREEN-active = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-group1 = 'GP2'.
              SCREEN-active = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
    Regards,
    Naimesh Patel

  • At selection- screen output issue

    Hi,
    I have a issue regarding at selection-screen output event with radio buttons, 
    Fields are like,
    Block B1
      RB1
    Block B2
    RB2
       field 1 (Check box)
       field 2 (Check box)
    User can select one radio button at a time. If the user clicks on radio button RB1 then fields under Block B2 will be disabled. If user click on RB2 field 1 and fields 2 will be input enabled. Could you please give the solution asap
    Note: Radio buttons are in different selection screen blocks.

    Check this code -
    *SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME.
    *PARAMETERS:
    *Pi1 TYPE C  RADIOBUTTON GROUP G1 DEFAULT 'X',
    *Pi2 TYPE CHAR25,
    *Pi3 TYPE C  RADIOBUTTON GROUP G1,
    *Pi4 TYPE CHAR25.
    *SELECTION-SCREEN END OF BLOCK B.
    *PARAMETERS check AS CHECKBOX.
    *PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
    *SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    *PARAMETERS: ip1(10) TYPE c,
               ip2(10) TYPE c,
               ip3(10) TYPE c.
    *SELECTION-SCREEN END OF BLOCK b1.
    *SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    *PARAMETERS: ip4(10) TYPE c MODIF ID bl2,
               ip5(10) TYPE c MODIF ID bl2,
               ip6(10) TYPE c MODIF ID bl2.
    *SELECTION-SCREEN END OF BLOCK b2.
    *AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
       IF show_all <> 'X' AND
          screen-group1 = 'BL2'.
          screen-active = '0'.
       ENDIF.
       MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Amit Khare
    reward all helpful replies.

  • At selection-screen output probelm

    Hi ,
    I am using 4 parameters in the selection screen . I am entering data in the 3 input fields. Then I am doing concatenate 3 fileds data into the 4 th field in the event AT SELECTION-SCREEN OUTPUT, bur my problem is  When ever i click ENTER , then only 4th field is updating. With out ENTER key , Is it possible update 4th filed.
    regards,
    ramajay reddy

    Hi,
    This is not possible without a user action on the screen, unless your fields are drop down lists, check box or radiobutton respectively, Reason is that the SAP Screen processing will not trigger the PAI event unless there is a user action on the screen like pushing a button, radiobutton , checkbox or selecting a value from a dropdown list. And hence PBO will not get triggered either. Thus entering value in input fields and pressing the tab key is not enough. The user must press 'Enter' if the PAI--PBO should be triggered.
    Pressing 'Enter' is much more user friendly and convinient than adding a button/radiobutton/checkbox on the selection screen to update other fields on the selection screen as in your scenario.
    regards,
    Advait

  • At selection-screen output and  at selection-screen on

    Hi Experts,
    I had coded in both at selection-screen output for disabling input of certain fields and at selection-screen for validation like this:
    AT SELECTION-SCREEN output.
      IF p_amt = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_AMT'.
              screen-input = '1'.
            WHEN 'P_TST'.
              screen-input = '1'.
            WHEN 'P_B4C'.
              screen-input = '1'.
            WHEN 'P_AFC'.
              screen-input = '1'.
            WHEN 'P_COM'.
              screen-input = '1'.
            WHEN 'P_COM1'.
              screen-input = '1'.
            WHEN 'P_COM2'.
              screen-input = '1'.
            WHEN OTHERS.
              screen-input = '0'.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF p_amt = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_AMT'.
              screen-input = '1'.
            WHEN 'P_TST'.
              screen-input = '1'.
            WHEN 'P_B4C'.
              screen-input = '1'.
            WHEN 'P_AFC'.
              screen-input = '1'.
            WHEN 'P_COM'.
              screen-input = '1'.
            WHEN 'P_COM1'.
              screen-input = '1'.
            WHEN 'P_COM2'.
              screen-input = '1'.
            WHEN OTHERS.
              screen-input = '0'.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF p_pdf = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_PDF'.
              screen-input = '1'.
            WHEN 'P_TST'.
              screen-input = '1'.
            WHEN 'P_PATH'.
              screen-input = '1'.
            WHEN OTHERS.
              screen-input = '0'.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF p_afc = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_TST'.
              screen-input = '1'.
            WHEN 'S_FID-LOW' OR 'S_FID-HIGH'.
              screen-input = '0'.
            WHEN 'S_ORG-LOW' OR 'S_ORG-HIGH'.
              screen-input = '0'.
            WHEN 'S_OFF-LOW' OR 'S_OFF-HIGH'.
              screen-input = '0'.
            WHEN 'S_DAT-LOW' OR 'S_DAT-HIGH'.
              screen-input = '0'.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    AT selection-screen on block b5.
    if p_tst is initial.
      message text-016 type 'E'.
    endif.
    AT selection-screen on block b2.
    if p_amt ne 'X' and p_pdf ne 'X'.
    if s_fid is initial and s_org is initial.
    message text-000 type 'E'.
    endif.
    if s_dat is initial.
    message text-000 type 'E'.
    endif.
    endif.
    when i comment out at selection-screen validations the input is disabled for the screen fields as set, else the validations are executed first.
    Any solution for this???
    Thanks in advance.

    AT SELECTION-SCREEN
    Syntax
    AT SELECTION-SCREEN selscreen_event.
    Effect
    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.

Maybe you are looking for

  • Looking for DPS designer and developper freelancer

    Hi everybody i've got a very interesting project to deliver I am looking for freelancers who have a very good experience working on DPS and Idesign, here is the brief, if you think you can help and want to make good money please shout: [email protect

  • How do I revert to a previous version of Flash Player?

    While we always recommend using the latest version of Flash Player, sometimes problems are encountered in a new release that were not present in a previous release.  If you are unable to work around these problems and they block functionality you rel

  • Sender mail adapter java.lang.NullPointerException

    Hi Experts, I have a Mail --> PI --> R/3 scenario and I am configuring the Mail sender adapter for POP3. The issue is that the POP server is not configured to be accessed via a URL and hence the URL pop://hostname/ is causing the following error at r

  • Adobe Reader Does Not Respond in Windows 8

    I need to do a simple edit of a pdf. I've been editing pdfs using nothing but the free Adobe reader for years. Now I got a new laptop - 64 bit Windows 8 and I installed the current reader. I need the Adobe reader for other programs I work with.  I ha

  • Is it possible to share documents from Final cut pro x on my other mac?

    is it possible to share documents from Final cut pro x on my other mac?