Validation in Task Screen

Hi Experts,
In oracle BPM, we can put basic screen level validations on the forms, but what if we need to call an enterprise system and depending upon its output, shows some error message to the user on the screen itself.
For example, user enters some value in a form, this value is to be validated from a DB or some third party system. Now what user wants is when he presses OK on ADF form, rather than task moving to next step, he is intimated of the error while he stays on the same page.
I guess, one way to achieve this adding a validation listener to form button and then calling the webservice for this, but this will need coding, a not so user friendly option.
Other way may be using page flows but it also is bit on the techy side.
would really appreciate if anyone can put some lights on it.
Thanks.

You will need to write a managed Bean which extends InvokeActionBean and have your own ActionListener for the button which first does the validation and on success , internally calls invokeOperation().

Similar Messages

  • Multiple select options validation at selection screen

    Hi,
    I have the requirement to create a selection screen with 3 select options. Two of them are cross-dependent. It is mandatory to fill one of them and it is not allowed to fill both. The third one is optional. I tried the validation at selection-screen on block... and I have a problem that search help buttons for select options react like execution buttons, when I press any of them I am getting one of errors instead of search help.
    Any help on this issue would be appreciated.
    Here is my code:
    DATA:
          so_rbkp TYPE rbkp,
          so_mseg TYPE mseg.
    SELECTION-SCREEN BEGIN OF BLOCK blok WITH FRAME.
      SELECT-OPTIONS:
            s_fakt   FOR so_rbkp-belnr,
            s_matdok FOR so_mseg-mblnr,
            s_god FOR so_mseg-gjahr.
    SELECTION-SCREEN END OF BLOCK blok.
    INITIALIZATION.
    SET TITLEBAR '0100'.
    START-OF-SELECTION.
      AT SELECTION-SCREEN on block blok.
          if s_fakt <> space and s_matdok <> space.
            MESSAGE 'Message1' TYPE 'E'.
          elseif s_fakt = space and s_matdok = space.
            MESSAGE 'Message2' TYPE 'E'.
          endif.
        ENDIF.

    Only perform the check when user wants to execute or submit the program, not when pressing F4 or even Enter, but in a selection-screen event, before START-OF-SELECTION which were program would terminate in error :
    TABLES: SSCRFIELDS.
    AT SELECTION-SCREEN OB BLOCK b01.
        IF sscrfields-ucomm EQ 'ONLI'
        OR sscrfields-ucomm EQ 'PRIN'
        OR sscrfields-ucomm EQ 'SJOB'.
          IF s_fakt[] IS NOT INITIAL AND s_matdok IS NOT INITIAL.
            MESSAGE 'Message1' TYPE 'E'.
          ELSEIF s_fakt[] IS INITIAL and s_matdok[] IS INITIAL.
            MESSAGE 'Message2' TYPE 'E'.
          ENDIF.
        ENDIF.
    (You could also always send the message, but using type 'E' for those function code and 'S' status for any other value.)
    Regards,
    Raymond

  • Validations at selection-screen

    hi ,
    how to do validations at selection-screen?
    with regards
    always learner
    points will be rewarded if useful

    Hi Buddy
      Its good to learn alwasys . Here are some progarms which are useful in selection- screen.
    Dont forget to reward points.
    at selection-screen.
    select LIFNR
           from LFB1
           into table
           where lifnr in s_lifnr.
    if sy-subrc ne 0.
    message e888(sabapdocu) with 'no number found'.
    endif.
    in this way u can write the select query.
    selection-screen begin of block b1.
    parameters: p_datum1 type sy-datum,
    p_datum2 type sy-datum.
    selection-screen end of block b1.
    at selection-screen on block b1.
    if p_datum1 is initial
    and p_datum2 is initial.
    message e001(00) with 'Enter at least one date'.
    endif.
    PARAMETERS: TEST1(10) MODIF ID SC1,
                TEST2(10) MODIF ID SC2,
                TEST3(10) MODIF ID SC1,
                TEST4(10) MODIF ID SC2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
      IF SCREEN-GROUP1 = 'SC2'.
        SCREEN-INTENSIFIED = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
      PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
                  R2 RADIOBUTTON GROUP RAD1,
                  R3 RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
      PARAMETERS: R4 RADIOBUTTON GROUP RAD2 DEFAULT 'X',
                  R5 RADIOBUTTON GROUP RAD2,
                  R6 RADIOBUTTON GROUP RAD2.
    SELECTION-SCREEN END OF BLOCK B2.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
      IF R1 = 'X'.
        MESSAGE W040(HB).
      ENDIF.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.
      IF R4 = 'X'.
        MESSAGE W040(HB).
      ENDIF.

  • Home (task) Screen Question

    Just updated to the new 10.3.2 OS last night.  The home (task) screen used to only be active when there were active apps running in the background, and once all apps were closed, it returned to the apps screen or Hub, and the Home (tasks) screen would disappear.  The new OS now always keeps the Home (tasks) screen up all the time (even when I swipe up to unlock the phone), and I have to manually swipe to bring up the apps or HUB screen.  Question, is there a setting that will return this to the previous behavior?  Not really a technical issue, but more of an anoyance.

    Hi!
    To switch back to previous behaviour complete the following steps. Let me know if this helps
    On the Home screen, go to Settings, tap Display and within turn off Show wallpaper when all apps are closed.
    Thanks!

  • Validations on the screen fields in a module pool program

    Hi all
    i am creating a sales order against a purchase order ,i am selecting a PO click on a button to call another screen which has all the mandatory fields of the SO i want validations on the screen fields or the input fields as when i enter the header data and the items data and the partner data from the input serach help that is already enabled on the screen fields ,if there is any mismatch among the fileds and an error message is displayed for example:-" material no 100-100 does not exist for  sales area" then only that field where this message is present should be field enabled and the rest of the fields should be field disabled.
    also the error message i m displaying is in short text form and not in long text i clicked on it (long text) however how to use it was not known to me .
    thanks
    varun
    Moderator message: please do more research before asking, try solving problems yourself first, look for previous discussions of similar issues, post texts in more readable format, you have been warned several times before.
    Edited by: Thomas Zloch on Feb 7, 2012

    i want to have input search help as if i select sales document type then corresponding sales organizations should appear
    This would be quite opposite of what h_vakz does. h_vakz gives Sales document based on Sales org..and you want vice versa. Create a simple SH with
    selection method : TVAKZ
    AUART as importing only
    VKORG as exporting only. So when you enter an AUART you get all VKORG it is defined in. I'm not aware of a standard search help which matches the requirement. If anybody does please help me.
    i have header data (only mandatory fields),items data,partner data(all mandatory fields)
    and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
    You will have to be more specific sir..
    not able to apply please guide someone
    As for that just mention them in SCREEN->ELEMENT LIST->REFERENCES

  • Actual cost in the workplan task screen (hierarchy) not show value.

    Hi all,
    Could you advice me about actual cost if I want to show in the workplan task screen (hierarchy).
    Thank you.

    Well, then just check the master data setting in Query designer--> choose 0Costcenter and check the properties > choose advanced tab> under filter value Selection during Query Execution . check for these options
    1.Only Posted Values for Navigation
    2.Only values in Infoprovider
    3.Values in Master data table
    4.Characterstic Relationship.
    You need to choose the 3rd opitions as you need to read the master tables for 0costcenter.
    Hope it helps,
    Cheers,
    Balaji

  • After the Verizon store guy updated my iPad 2 software, my home button now opens my email rather than my multi-task screen. How can I change it back?

    After the Verizon store guy updated my iPad2 software for my new Jetpack yesterday, my home button now opens my email instead of the multi-tasking screen. How can I switch it back?

    Hello there, Twicetwins.
    The following Knowledge Base article offers up how to change the Accessibility Shortcut for your Home Button, on the iPad:
    Accessibility Shortcut - iPad User Guide
    http://help.apple.com/ipad/7/#/iPad9a245f9e
         Use the Accessibility Shortcut. Press the Home button quickly three times to turn any of these features on or off:
    VoiceOver
    Invert Colors
    Zoom
    Guided Access (The shortcut starts Guided Access if it’s already turned on. See Guided Access.)
    Switch Control
    AssistiveTouch
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Validation in selection screen

    SELECT-OPTIONS AND PARAMETERS
    selection-screen begin of block a with frame title text-001.
    selection-screen begin of line.
    selection-screen comment 1(20) for field p_bl.
    parameters : p_bl    as   checkbox .
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) for field p_di.
    parameters : p_di    as   checkbox .
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) for field p_pl.
    parameters : p_pl    as   checkbox .
    selection-screen comment 25(20) for field p_plout.
    parameters : p_plout like nast-kschl.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) for field p_in.
    parameters : p_in    as   checkbox .
    selection-screen comment 25(20) for field p_inout.
    parameters : p_inout like nast-kschl.
    selection-screen end of line.
    selection-screen end of block a.
    selection-screen begin of block c with frame title text-003.
    parameters: pa_email no-display ,
                pa_downl no-display.
    selection-screen end of block c.
    START-OF-SELECTION
    if p_bl eq c_x.
        perform download_bl.
      endif.
      if p_di eq c_x.
        perform download_di.
      endif.
    If Delivery Order is checked
      if p_pl eq c_x.
        perform download_packlist.
      endif.
    If Invoice , Based On The OutPut Type is checked
      if p_in eq c_x .
        perform download_invoice.
      endif.
    I using the above program.
    My question is i want validation in selection screen  for below stmts.
                      1) atleast 1 of the check box should be selected
                      2) If packing list is selected, then the message type Must be selected. (can not allow blank)
                     3) If invoice list is selected, then the message type must be selected
                     4) Validate the message type field entered.

    Hi Sen 001
    It depends how you want to validate. If you want to validate immediately after the user put a check box or enter value then you shoul use <AT SELECTION SCREEN> event and <USER-COMMAND> following your parameters (or select-options) in your selection screen. You can also validate when user presses F8, where you should put your validation inside <START-OF-SELECTION> event.
    Example to immediate validate after check box entered
    SELECTION-SCREEN: BEGIN OF BLOCK b02 WITH FRAME.
    PARAMETERS: p_grp RADIOBUTTON GROUP gr1 DEFAULT 'X' USER-COMMAND zcomm,
                p_dst RADIOBUTTON GROUP gr1.
    SELECTION-SCREEN: END   OF BLOCK b02.
    AT SELECTION-SCREEN.
      IF sy-ucomm(6) = 'ZCOMM'.
        PERFORM xxx.
      ELSE.
        PERFORM yyy.
      ENDIF.

  • Can Check Valid From task be run on multiple JVMs in clustered env.

    The configuration screen for the Check Valid From scheduler task allows it to be run oin more than one JVM in a clustered environment.
    Has anyone done this?
    Does this cause any problems?

    Hello Timothy,
    This is not recommended for any scheduler task as it potentially means that the task could be run multiple times and would most likely lead to inconsistencies in the results of the task. Have a look at SAP note 798633 which discussed this a little more.
    Regards,
    Lorcan.

  • ''Sim Not Valid'' on activation screen! *PLEASE HELP*

    I have purchased the iPhone 6 64GB Silver from Verizon Wireless. I purchased it on November 18th 2014 and i was able to use the phone under the Verizon Network for 2 days I asked Verizon as ALWAYS to have to Unlocked because i was leaving the country in business trip for a week and therefor i wanted to use my iPhone with the Vodafone Network as i have always done this with the previous iPhone's under Verizon network. When i had my iPhone 5 & iPhone 5S i have called Verizon to have it unlocked and therefor they have done it, but now with the new iPhone 6 they tell me that its a 4G Phone and its already unlocked sir, there is nothing they can do to unlock it any further but in reality the iPhone 6 its Lock to Verizon Wireless Network, according to Apple, and Vodafone they both say that its Locked to Verizon Wireless, that's what it shows in their system. Now i have called Verizon and asked them again to unlock my iPhone which they insist and tell me the same thing over and over even their Manager and Global Team Support including the Supervisors they all say the same thing that the iPhone is Unlocked!!!! Now i have contacted Apple again this time Apple said that it is locked to Verizon is what they see on their computer that this IME#354409063763754  is showing Locked to Verizon once again and again and AGAIN! so who is lying here Apple or Verizon?!? Interesting! one of the Apple costumer care could not believe my story after speaking to 5 different one from Apple and 38 different from Verizon, and there for she decided to call Verizon and find out why aren't they unlocking my device. now, after being on the phone 3 way me Apple care and Verizon for 15min Verizon hangs up the phone on Apples face and tells me I can Not Believe they hang up on my face! interesting huh? Well Apple care then said ill transfer you to Seignior Adviser for further help there is nothing that she could do, but transfer me to much higher grade in helping the costumers. Now the Seignior Adviser couldn't  believe that i had to go through all this and said I'm here to help and i will help, i said sure you will, will see how much you can. Then he tries and tries and in the end NOTHING! since he couldn't do anything he said let me transfer you to much higher which is their Consumer Relations. Now they couldn't believe that i had to go through all this and that they have never heard such story that this had happen to anyone before, there for he was going to help me resolve my issue. Now they have contacted Verizon and Verizon keeps saying the same thing mean while on the Apple system it still shows Locked to Verizon Wireless.
    Now what they Verizon and Apple did to try and resolve this issue is Connecting my iPhone 6 to iTunes and have it Factory Restore! ok! so i did as i was told,
    now after 30 min of restoring the iPhone to factory settings im back to Activation Screen from beginning.
    1. Choose Language - English
    2. Choose Region - United States
    3. Choose Wi-Fi
    4. Sim Not Valid!
    there is no other options, either go back or retry, and none has worked. I have done the Restore 5 times with and with out sim card  and still same error,
    With out the sim card, after choose the Wi-Fi, it says Sim Required, there is no other options only go back and retry.
    I put the sim back in and its still says the same
    <Back
    SIM NOT VALID
    The SIM card that you currently have installed in this iPhone s from a carrier that is not Supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.
    Try Again
    Now i cant even go to my home screen what do i do? PLEASE HEP!
    I really need to get this iPhone 6 to work, I need help please someone help, they both companies have lied to me Verizon and Apple, and they both not doing a **** thing about it, its been almost 2 months and i haven't been able to enjoy my iPhone, they have got my hard earned $$$$ and they don't send me a new device to have it replaced, I have requested a NEW one since i  have paid for new and they Sorry we cant under their Policy and my 14 money back  is expired, well its expired because of them not me. they keep on pushing and putting me to wait here and there so time went out and me still without a working device yet they have got my money $$$
    I really need Help Please any suggestions?
    I thank you all very much from the bottom of my heart for taking the time to read and respond to my need.
    THANK YOU ALL
    iPhone 6 64GB Silver
    Setting - General - About:
    Version>                        8.1.2 (12B440)
    Model>                          MG642LL/A
    Serial Number>              DNPNDN37G5MH
    IMEI>                            35 440906 376375 4
    MEID>                          35440906376375
    Modem Firmware>          1.04.00

    Firstly, Apple will NOT reply to you here - this is a user to user technical support forum and not monitored by Apple.
    Also, what both Apple and Verizon have told you are both true.  Verizon tell you that the phone is unlocked and this is true, because all Verizon phones have a GSM portion to the phone and this is unlocked to use with local sim cards internationally, so yes, the GSM portion of the phone is unlocked in this respect.
    What Apple have told you about the phone being locked to Verizon is also true - a Verizon phone is a CDMA phone and works on the CDMA networks, which is different from GSM and the phone is locked to Verizon in the US, so if you go to the US, then you can never use the phone on any other network other than Verizon, so yes, in this respect the phone is locked to Verizon in the US because if you go to the US you will only ever be able to use the phone with Verizon, but the GSM portion of the phone is unlocked, so if you live in Germany, then you can use both a Vodafone and 02 sim card with the phone or any other local sim card that you want and the phone will work.
    So what you have been told about the phone by both Apple and Verizon are correct - the phone is locked to Verizon, but only for use in the US on the CDMA Verizon network.  Other than that, the GSM portion of the phone is unlocked.

  • Validating a selection-screen field

    Hi all,
    I am Anil.can any body explains me how to validate a selection-screen field for the following scenario?
    I have customer nos ranging from 100-1000.among them i dont have any sales orders for the customers who are in between 150-250.I have sales order(VBELN) as select-options and Plant(WERKS) as Parameter on the selection-screen.I want to validate these fields without hardcaode.How can i do that?Please send me the complete code.
    I am not getting how to validate a field  which is declared as parameter?
    regards and thanks in advance.
    Anil.

    Make sure that u are validating against the header table.
    say eg if u wnat t validate matnr in marc, then do as below.
    SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
    AT SELECTION-SCREEN.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
    DATA: v_matnr LIEK mara-matnr.
      SELECT SINGLE matnr INTO v_matnr
             FROM <b>mara</b>
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Dont select from marc.
    Hope this is clear.

  • Validation on selection screen parameter.

    I have select options in my selection screen.
    1) s_a
    2) s_b
    Requirement:-
    1) If I run the program and click the arrow on the "s_a" field, it should open multi selection screen. From that I can make multi entry or upload data from excel file.
    2) If "s_a" and "s_b" is empty it sud throw an error message.
    Can I do this validation in AT SELECTION-SCREEN n how?

    hi Abhijeet,
    u can do the first by just writing the sel-options as:
    S_A like table-field (say vbak-vbeln). then the multiple selection comes automatically.
    the second - u can do thru at selection-screen by just writing a if condition.
    if s_a-low is initial and s_a-high is initial.
    message e001.
    endif.
    Let me know if you still have any issue.
    /Praveen

  • Mass validations in selection screen

    Hello experts,
    I have a simple requirement to check "if atleast one of the fields on selection screen is filled or not".
    If all the fields are initial, i'll raise a message.
    I dont want to check all the fields one by one using ANDs.
    The closest I got was-
    loop at screen.
    field = screen-name.
    see if the field is empty.
    if yes, increment the counter.
    endif.
    check if the counter is still zero. That means all fields are empty. Raise message.
    The problem here is, in "screen-name", i'll get the name of screen field. How do I read it? How to find the value in a varible that is stored in another variable? I tried paranthesis ( screen-field ) = value. But it doesnt work. If that can be done, my problem's solved.
    Thanks in advance!
    Sumit Nene.

    This should be a good start, if you still persist to move ahead with your initial approach inspite of Thomas's suggestion.
    TABLES:
      mara.
    SELECT-OPTIONS:
      s_matnr FOR mara-matnr.
    PARAMETERS:
       p_test1 TYPE char10,
       p_test2 TYPE char10.
    DATA:
       count TYPE i.
    FIELD-SYMBOLS:
      <fs> TYPE ANY.
    AT SELECTION-SCREEN.
      IF sy-ucomm = 'ONLI'.
        CLEAR count.
        LOOP AT SCREEN.
          CHECK: screen-input  = 1,
                 screen-active = 1.
          ASSIGN (screen-name) TO <fs>.
          IF <fs> IS ASSIGNED AND
             <fs> IS NOT INITIAL.
            ADD 1 TO count.
            UNASSIGN <fs>.
          ENDIF.
        ENDLOOP.
      ENDIF.
    -Rajesh
    Edit
    P.S : I haven't tested the above solution thoroughly, if for any reasons you find issues with the above approach, as an alternative you can consider using the FM 'RS_REFRESH_FROM_SELECTOPTIONS' to read the selection screen contents. But as already suggested, it would be easy to query the fields individually, you don't want to perform a simple validation with a complicated processing...
    Edited by: Rajesh Paruchuru on Jul 12, 2011 10:03 AM

  • Validation Of  selection screen in Module pool

    Hi Guru,
    I am giving Plant as input at selection screen.
    Below that I am creating one table control at selection screen.
    I have to do validation of the Plant at the selection screen.
    I am doing that IN PAI module. But when i give wrong plant at selection screen the table control fields get disable.Then I tried b/w chain end chain the same problem i am facing in that case. Please help me to resolve that.
    Maximum point will be rewarded.

    hi
       if you are giving a msg when user input a wrong plant then do not give that message as Error type give it as type 'S'

  • BP: How to hide "Validity Period" on screen Create a new Business Partner

    Hi,
    On screen Create a new Business Partner, I want to hide field Validity Period
    -> Please tell me how to do in Customizing
    Thanks and Best regards
    Ms.Minh

    Hi,
    For each BP role, you can control the field status in configuration under BP-Role Settings. Please check whether validity period is available for field configuration or not.
    Regards
    Prasad AV

Maybe you are looking for