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.

Similar Messages

  • HT201210 iPhone 4 lost its touch-screen-ability and created selection-boxes around apps

    Why has my iPhone 4 lost its touch-screen-ability and created selection-boxes around apps, etc.. that require a double-tap to operate/execute?

    VoiceOver is on.  Triple-pressing the Home button may be set to turn it on or off.
    Settings > General > Accessibility
    While it is on, you need to use three fingers to scroll.

  • Calling SAPGui depending on BAPI Output and User selection

    Hi everybody,
    can I somehow call a SAPGui (like in the transaction iView) depending on BAPI Output and the selection of a user?
    The problem is the following:
    Through an input form, a BAPI function receives an input parameter. I then get several results and want to select one of these results. With this result a predefined transaction <b>with SAPGui</b> should start.
    For example transaction MW23 with purchase order number 1234567.
    Does anybody know a solution to this?
    Thanks, Rebecca

    Hi Raju,
    as far as I know, you always need an ITS if you want to present a transaction in Portal as HTMLGUI.
    However, I now found a way how to use the transaction iView with the WINGui. Of course, the SAPGui client has to be installed locally.
    With the following URL the transaction iView can be called and the user can jump into a certain transaction with a certain parameter, in this case with the purchase order number:
    ('http://SERVER:50000/irj/servlet/prt/portal/prtroot/pcd!3a!2f!2fportal_content!2fcom.sap.pct!2ftemplates!2fiviews!2fcom.sap.portal.sap_transaction_iview?System=Q06&TCode=me22n&GuiType=WinGui&DynamicParameter=%7EOKCODE%3D%26RM06E-BSTNR%3D')(@PO_NUMBER)('&SAP_Dynp_AutoStart=true')
    Whereas
    SERVER has to be adapted,
    Q06 is a system for R/3 configured in the portal,
    TCode can be any transaction which can accept parameters,
    @PO_NUMBER is the variable from visual composer.
    Regards, Rebecca

  • In iTunes, when I select the "Device" and then select "My iPod" there in no text

    In iTunes, when I select the "Device" and then select "My iPod", there is no text in the main screen......only the text "iPod", "Version" and "Options" appear with a picture on an iPod on the top of the screen?
    I uninstalled iTunes and installed the version (10-5.3???) for my 64bit computer but no luck. I can transfer songs from cd's and the itunes store easily enough but I just got this thing yesterday and I want to get the full experience and not half of it. I feel like I'm missing something and i'm about ready to take a hammer to it.
    Thank you in advance for any help you can give me.

    It has something to do with Segoe fonts in your system.
    Refer this link for solution
    iTunes 10.1 Missing Text

  • 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.

  • Screen sequance and Field selection group

    Dear All,
    Kindly help me by explaining the different steps( in detail)  to modify the screens of Media product and media issue according to my requirement using screen sequance (Reference screen) and field selection group ?

    Hi,
    These are Object based (Like Material master, BOM, Routing etc..), so depending on how you want the screen layout and how you want the mandatory/optional field defination you can define it here.
    Regards,
    Prasobh

  • Can't select input output and name media when using MRC1 log and transfer

    I am using a MRC1 from the Sony Z5E to film my media. I downloaded the plugin which allows me to log and transfer through FCP 6.0.6. The only problem is that it does not allow me to input/output and name the pieces of each clip that I want. Hence I can only import the whole clip and am wasting time and space with media that I do not want or need. Is there an additional plugin or setting to pick on FCP to get this feature to work?
    Rich

    Hi xhk, I'm a Kubuntu's user and I've had the same problems. I've been days reading on the Internet about this issue and finally I solve it by following this post from a Spanish tutorial: http://bit.ly/4p3XFq. It worked for me!
    Basically it is:
    1. Get install the needed packages, i.e: sudo apt-get install ibus ibus-pinyin
    2. After installing them, introduce a little code into two files:
    2.1.--> type on your konsole: kate /home/$(whoami)/.bashrc
       a--> add to the bottom of the opened text:
    export GTK_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    export QT_IM_MODULE=ibus
       b-->save the changes on the text.
    2.2.--> type again on your konsole: kate /home/$(whoami)/.profile
      b--> repeat 2.1.a. and 2.1.b
    3. Go to main menu - system settings - advance - "autoarranque" (I don't know how it is called in English, "restarting" maybe?) and then "add a programme". Type: ibus-daemon -d, press OK and then rebooth.
    It shall be working by then.
    Last edited by mxd (2013-07-06 01:42:27)

  • What is the diffrence of 'call screen 100' and 'leave to screen 100'

    Thank u

    hi,
    You can insert a screen sequence. This adds another layer to a stack.
    You insert a screen sequence using the CALL SCREEN <nnnn> statement.
    Note: Layers created in this way must be removed afterwards. You can do this by setting the next screen
    statically or dynamically to the initial value (0) an the end of the inserted screen sequence.
    To interrupt processing of the current screen and branch to a new screen (or sequence of screens), use
    the CALL SCREEN <nnnn> statement. The screen <nnnn> must belong to the same program.
    In the program, the system constructs a stack. The stack has to be destroyed before the end of the
    program.
    To return to the statement following the CALL SCREEN statement, you can use either SET SCREEN 0.
    LEAVE SCREEN. or LEAVE TO SCREEN 0. The screen that called the other screen is then processed
    further.
    If you use the above statements outside a call chain, the program terminates, and control returns to the
    point from which it was called. You can also terminate a program using the ABAP statement LEAVE
    PROGRAM.
    To interrupt processing of the current screen and branch to a new screen (or sequence of screens), use
    the CALL SCREEN <nnnn> statement. The screen <nnnn> must belong to the same program.
    In the program, the system constructs a stack. The stack has to be destroyed before the end of the program.
    To return to the statement following the CALL SCREEN statement, you can use either SET SCREEN 0.
    LEAVE SCREEN. or LEAVE TO SCREEN 0. The screen that called the other screen is then processed
    further.
    To specify the next screen and leave the current screen in a single step, use the LEAVE TO SCREEN <nnnn> statement.
    Hope this helps, DO reward.
    Edited by: Runal Singh on Apr 3, 2008 3:11 PM

  • How do you keep safari in standard screen mode and avoid "full screen"

    How do I keep the screen in Safari from converting from "standard screen" to "full screen"?  I know how to switch back and forth between the screens on "View" "Exit Full Screen."  However, I don't want to work in "full screen" and Safari automatically opens up in "full screen".  How do I keep this from happening?
    Thanks,

    Did you look at http://www.apple.com/support/safari which can be useful, and there is a link to Safari Community which is where you will find common threads and people that focus on Safari.

  • Excel OutPut and Dynamically select No of Records in tabular Canvas

    Hi,
    I have Oracle foms 10g R2 I have two queries.
    1. If I select spreadsheet(Excel) output format in report the items disperse and it is not formatted as it appears during development, what is the reason and how can I fix it.
    2. I have canvas on which I am displaying multiple records(tabular canvas) but I don't want to fix the no. of record to displyed during development I want it to be dynamic based on other value, I already check SET_BLOCK_PROPERTY builtin but nothing found to be useful is it possible to set this or is there any other way to do the same job.
    Many Thanks, Khawar.

    Khawar,
    1. This is a reports question. Please post your question 1 in the Reports forum.
    2. This is not possible, but there is a workaround. See
    Dynamically setting the no of records to display!

  • HT1695 I powered my iPad off and when I turned it back on it is telling me to configure it so I select English then select United States then my WiFi selection comes up and I select that then get this message...your iPad could not be activated because the

    I powered my iPad off and when I turned it back on it is telling me to reconfigure it. So I select English then United States then I selected my WiFi then message comes up that says your iPad could not be activated because the activation server cannot be reached. Try connecting your iPad to iTunes to activate it, or try again in a couple of minutes. Have tried several times and it is still not working. Nothing will show on screen on icons nothing.

    Try to Update your iPad to iOS 6.1.4 when connected to iTunes via USB too.. You do not need to touch anything on your iPad to update your iPad either..

  • How do I select a field and between selected rows insert auto-incremented numbers?

    I have a spreadsheet in Numbers '09 and I want to number the rows so that I can sort by the original order after I've already sorted by different items. In Excel this is fairly easy, but how do you do this in Numbers? How do I select a series of rows in a column and tell it to automatically insert numbers incremented from one to the total number of rows?
    Thanks,
    Philip

    Hi Philip,
    As an alternative to the method Yvan pointed out, you could use a formula.
    (NOTE: This takes longer to write than to do.
    (CAUTION: Make sure you use Copy/Paste Values to replace the formulas with the calculated numbers before sorting.))
    Choose a column in which to place the numbers.
    In the first non-header cell in the column enter the formula:
       =ROW()
    Select the whole column by clicking its column reference tab.
    Then use command-click to deselect the header cells above the one where you placed the formula.
    With the cell containing the formula and all of the column below it selected, go:
       Insert (menu) > Fill > Fill Down
    The formula will be filled into the rest of the column and the numbers calculated.
    With the cells still selected, COPY, then go Edit > Paste Values.
    This replaces the 'live' formulas with the numbers themselves, and prevents the numbers being recalculated when the rows are sorted.
    Regards,
    Barry

  • How to change selected item color and the selected area size of listview

    What i really need to do is change the following things in XMAL.
    1. Changing the selection color
    2. Size of selected area 
    Thanks in advance.
    Dileepa S. Rajapaksa
    Trainee Developer
    Microsoft, Sri Lanka
    Twitter : @dsrajapaksa
    Blog : http://www.dileepatech.net

    Hi Dileepa,
    It is possible by customize the control by its template, see this for more information:
    ListViewItem styles and templates.
    By changing the selected visual state, you can change the color of the ListView item background, also the size of the selected item.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Touchpad screen unresponsive and also black screen

    Today, I updated my touchpad to the latest version. So during installation, I let it run and left it plugged into an outlet. However, when I came back to it an hour later, I just saw a black screen. I was able to reboot and see the HP logo again. But after booting, and seeing the lock screen logo, the screen would go blank after a few seconds. I did the USB recovery mode as well but I was presented with the PIN entry screen and I couldn't enter my PIN as well.
    Any ideas on how to resolve this?
    This is a brand new Touchpad and the only thing done here was update from the original firmware to a newer update and then now to the latest update.
    I searched online and can't find anybody with a similar issue as this.
    Also, tried using WebOS doctor but am stuck at the part where it is suppose to detect the Touchpad and cannot press "Next" to continue.
    Post relates to: HP TouchPad (WiFi)

    When you said "USB recovery mode", do you mean you tried to use the webOS doctor to restore it?
    I'd try a simple reboot again (press and hold both the center button and the power switch together for over 15 seconds), and if this doesn't work, then the webOS doctor.
    If the doctor doesn't work, and the device is still unresponsive, then call HP for a repair/replacement.
    See my post at the top of this section on "How to doctor a TouchPad" for instructions.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Product master screen enhancement and Business partner screen enhancement

    Can anyone please let me know how to enhance screen, DB for Product Master and Business Partner  in SRM.
    Thanks in advance.
    Regards,
    Nilesh Kumar

    Hi Nilesh,
    For enhancing the BP screen you can refer the following links:
    Re: Customer fields in BP
    Re: Business partner enhancement
    Thanks,
    Pradeep

Maybe you are looking for