Custom Validation in ESS Edit Screen

All,
We have a requirement in ESS Address screens that all country users should key in only English Data. We are in SAP ESS SP12 and all the Address Components are in WD Java. The validation on all the address screen fields for this requiement has to be handled and give an error message back to the user.
The Options that I Checked out were:
1) Handling the Validation through BADI HRPAD00INFTYUI or HRPAD00INFTYBL.
2) Handling the validation in WD Java layer inside the country spoecific components isConsistent method of the Detail View Component controller
Which is the best place (ABAP or JAVA) to handle Custom validations on the Edit Screen and give back message to the user? Please suggest if any other better options are available other than the above mentioned ones.
Regards,
Nagarajan.

Hi,
Both are doable if you are good in java and have NWDI ,handling validations in the wd java layer is easy. If you are good in ABAP you can handle in ABAP.It depends on how you write your code, if you do validations in java and if your validation fails you can show errors to user right away which will reduce your call to backend at isconsitent method for checking the errors.
Thanks,
pkv

Similar Messages

  • Custom validation & IsNumber javascript

    Hi
    How can we add custom validation in the "Edit an element" on Portal9as
    By example to validate that the new image file name is unique
    How can we use the IsNumber javascript from the shared objects
    Can we add custom validation when we create new attribut and/or new element ?
    Thanks
    Jacques
    Message was edited by:
    user510720

    Hi Doug
    No offense taken.
    You can choose to agree or not. It really doesn't matter. And I'm not trying to be rude either. Only trying to state the facts as I know them to be.
    One way to easily have you see what I mean is by trying the following:
    Generate Captivate as a SWF with an HTML page and enable the Full Screen option.
    When the Full Screen option has been used, you get a second HTML page. When you run that second HTML page, you simply see a link that allows you to open the Captivate output in a larger windows devoid of toolbars and such.
    Now, close the browser and locate the Captivate output files on your hard drive. Open the HTML page that presents Captivate. You should see that the Exit button either fails with no message (Chrome or Firefox) OR presents a message that the page is trying to close (IE). The net result is that the page simply doesn't close.
    Now launch the page containing the link to open in full screen. You get just a link. You click the link and a new window appears. In that new window, you should be able to easily close the Captivate using the Exit button. This is because the Captivate output was opened in a child window. And from this, you should see that it's browser behavior that controls the ability to close. Captivate's doing all it can do by simply issuing a command to close the window. It's then up to the browser to allow that to happen. And it's all in the way the browser window was opened to begin with that controls it.
    I cannot speak to other applications and their ability or perceived ability to close windows. There are lots of variables and it's quite possible they were dealing with the windows in different ways.
    Keep in mind that if you are testing locally off your C drive, the exit button may also fail due to Flash Player Security Settings and you may need to add the testing folder to the list of trusted locations for the Flash Player.
    Cheers... Rick

  • ESS Leave Request - Custom validations

    Hello all,
    As I understand SAP does not perform any custom validations (which we might have coded within the PBAS0001 enhancement OR the HRPAD00INFTY business add in) when requesting a absence from ESS~LEA leave request iView from the portal.
    Hence to validate the absence record, I attempted to insert the HR_INFOTYPE_OPERATION function module and run it in CHK operation mode to validate the data in the PT_GEN_REQ~START_WF business add in method.
    If the validation fails I return RETURN_CODE as non-zero from the business addin. However I keep getting a dump as a result.
    Can anyone advice if this has been tried successfully and any alternate if @ all?
    Thanks in advance.
    Regards,
    Aditya

    You can easily to do so with badi pt_abs_req or pt_gen_req
    you can call exits in badi, read here the steps
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/ValidationsforESSLeaverequest
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestVariousConfiguraton+Steps
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/108c31e7-b6a7-2d10-3692-c1a9f7a5c4dc?QuickLink=index&overridelayout=true

  • Need inputs form experts on ESS Overview Screen

    Hi all,
    1) I need to add customized pictures on the ESS Overview screen i.e., New Pictures to be displayed for each services
    (How should i add Customized pictures in "Picture Resource:...
    in Area Page)
    eg: Against  Employee Search customized ICON to be dislaye
    presently it takes   "EMPLOYEE_SEARCH_PIC"
    2) Also there are few links when i am clicking on those it opens in the New Window. Can anyone pls suggest how to restric this?
    Regards
    Vijay
    Edited by: Vijay Mohan on May 29, 2008 12:39 PM

    (1) Best way....store your pics somewhere (like KM for instance which is quick and easy). Config your own Homepage Framework server (to point to the location of pics), then create a resource in config for each pic (giving you server id you configed and any other path info), then assign YOUR resource as the pic to use for the area. This is similar to storing pages as detailed here:
    Using KM documents for XSS Area Page text
    (2) This can be either (a)the resource has been defined with a window parameter of "_blank" which means "open in a new window" or (b) as the above user said, controlled on the iView of the service (which is rare but is possible).
    Hope this helps, Vijay!

  • How to configure a custom link in ESS for LTA?

    I have a requirement to display a pop-up alv report, once user click on a link "Leave_Details" in ESS. I am able to display pop-up alv but background screen is empty as its a separate WD application however I want that as soon as user selects any row from that popup alv it should be fetched and displayed on the LTA screen of Portal. It seems link is not configured so its displaying blank background screen while for other standard links this screen is displayed.
    Kindly help in this how we can display a custom link in ESS and after fetching any single record it should be closed and single row would be displayed in LTA screen.
    Here the background ESS screen is blank for custom link displaying this pop-up alv.
    For other standard links ESS screen is displaying.

    Hi Samuli,
    Thanks for your reply however here I am not asking how to create popup, it has already created however my question is, how to configure the link used to display that popup alv?
    As shown in the screen as soon as user clicks on the given link shown in below screenshot  this popup is displayed,
    and after clicking on this link, below screen is displayed
    Here background screen is empty whereas it should display the ESS screen in the background, so as soon as user select any row from the popup alv, i'll pass the data into ESS screen using BADI.
    Kindly revert with possible solution.

  • Custom fields in ESS webdynpro applications

    Hi Experts,
    Can you please suggest me where I am going wrong in this scenario? I have a standard application Family member application. We enhanced the infotype 0021 with new fields and corresponding fields are added in screen structures and HCMT_BSP_PA_JP_r0021. This is working fine in the backedn while creating a record in PA30. Standard application in webdynpro is working fine, after that I reimported the model in webdynpro and I can see these fields in my model, so I context binded them in controllers and then to view controllers. There are no errors in  it. I added few fields in detail layout. Now when I deployed and run the application after these changes, it is opening up with bizcard view empty and the button for creating a new record showing up, which is not the case should be as I have record in the backend for the same subtype. When I clicked on New record, and even withought filling up required fields, I clicked on continue button, and it is failing giving runtime exception at review view.
    Does anybody have any suggestions for me? am I doing the proper steps to make these custom fields available in the screen? does anybody have documentation for adding custom fields in ESS applications or any helpful links, please let me know, I really appreciate your time.
    Thanks
    Murty

    Hi all,
    this is lil wierd but the problem is solved in this way.., it might be useful for others, so here is the way I did..,
    Once I downloaded the model, I invalidated cache and also, I restarted J2EE, invalidation of cache sometimes acting up i guess. Then build it once again if the service is working fine. After that model bindings, contaxt changes, code changes one at a time and in between after every lil step, I deployed and run the service again, so that I can back that small step if it didnt work out.., finally this was fixed.., but all this process seems wierd about this approach and tiresome too.
    Thanks
    Murty

  • Missing RAW editing screen in PSE8 Trial version

    Can anyone help me with this one?
    I have previously used PSE6. When opening a RAW image I have first gone through a RAW Editor screen before editting in PSE6. When
    I open a RAW image in the TRIAL version of PSE8 it takes me straight to the PSE Editor, missing out the RAW editing stage. My camera is an Olympus E510, about 2 years old.
    The HELP files clearly show the RAW editing operation so I know the functionality is in PSE8. It seems to assume that the RAW editing screen opens automatically and I can't see what else to do. In desperation I turned on the FILE FORMATS Plug In to see if that would help - it didn't. I need to know there is a RAW Editor that I can use before purchasing the software.
    Adobe have told me that they don't support the Trail version and so won't answer my question...   Not exactly a recommendation of good customer service if their pre sale support is zero!  Their official answer to the above question was that they did not support PSE6 anymore and that I should upgrade to PSE8 Their last suggestion was to ask this group.
    If anyone has PSE8 and is prepared to try a .ORF file for me I'd be very grateful.  Thanks, Keith

    Windows
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4626
    Mac
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4623

  • How to remove mandatory field for Last Name in Personal Data Editing Screen

    Hello All,
    CUrrently we are using BP_ ERP5ESS1.31 SP5 & SAP_ESS  603 SP5.
    All my ESS Services are Displaying fine and working from Portal.I am having the requirement like I need to make Last Name as Non-Mandatory field in Personal Data. While Editing the PD Screen, there  i will find the * mark for Last Name filed, i checked through the Global Personalization Make as Mandatory is Not Personalized its showing, i think its defualt prpoerty,so i am unable make any changes from Portal w.r.t Global Personalization.
    I checked in SPRO-- Personal Admin> Custmomizing User Interfaces>Change Screen Modifications, there i find the respective Module pool for those Infotypes and country Specific..
    I cheked forModulePool MP000200--> P0002 and Variable Key-40(For India)  P0002 - NACHIN -- LastName only OF Radio Button is Selected all other Rado buttons are not selected.
    I Checked in V_T588MFPROPS view there for 0002 Infotype P0002 -- NACHN Mandatory check box is Checked all other check boxes are Unchecked.
    How to make that Last Name field as Non-Mandatory in Personal Data Edit Screen, where i need to make the changes.'
    Please list out the Steps..Where i need to do the configuration. And i assigned all the required ESS roles on the backend.
    Thanks in Advance
    Adapag

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • Moving Custom fields to the main screen in CUP

    Hi Gurus,
    I am wondering if there is a way to move a custom field to the main screen like under general information instead of it being in the more section. We have a custom field which would be mandatory, So it would be nice to have it on the main screen.
    Thanks,
    Chinmaya
    Edited by: chinmaya prakash on Nov 3, 2010 6:38 PM

    Hi,
      There is no way to achieve this. As per the desgin, CUP adds all the standard field to main screen and custom fields under more section.
    Alpesh

  • HTML Client: How to display the edit screen of an item given its ID?

    To edit a selected item, I could easily add a new button on the command line and choose the existing method, "editSelected"
    But how to edit another item instead of the selected item? Like How to edit an item whose ID # is 10? i.e How to display the edit screen for an item with ID # 10?

    The methods such as 'editSelected' apply to screen property collections. Picking these pre-selected options automatically configure the parameter as '<my-collection>.selectedItem'.
    If you want an action not directly related to the screen properties then you can choose one of the screen commands under the 'Navigation' list starting with 'show', as in 'show<my-screen-name'. If the screen command accepts parameters then you can
    configure the parameter passing manually. In your example, if you added a local 'int' data property to the screen you could assign the ID to that and bind the parameter passed to the screen to that.
    In the instances when not even that is sufficient, well then you write your own custom method.
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Custom Validator Types in BC4J

    HI,
    I am having a few problems implementing a custom validator type. Through following the documentation, I have created a new type via the registered rules tabs attached to my business components project. The created class extends oracle.jbo.server.rules.JboCompare Validator.
    Once registered, the class appears in the validation tab of the edit Entity wizard as expected.
    However, when I try to enforce a validation rule based on the created bean, I get the following :
    Cannot create an instance of the validation rule bean or editor.
    Validation rule class may not be in classpath.
    Exception oracle.jbo.dt.object.JboException(ClassNotFoundException)
    The class created is definately in the classpath for my project. I have also tried creating the class inititally, and then adding the class to the registered rules, as opposed to creating a new class via registered rules.
    Is this a bug, or have I missed something?
    Thanks,
    DB
    null

    Sorry for the delay in response on this -- it took me some time to track down the problem.
    When you create a customer validator, the class is added to your current project. However, the IDE doesn't include the myclasses directory as part of it's class path.
    The workaround is to edit the [JDeveloper_home]\bin\jdeveloper.ini, and add your current projects class output path to the IDEClassPath (e.g. IDEClassPath=..\lib\jdeveloper_intl.zip;...;..\myclasses)
    Thanks for the info. I have logged this as a bug, so hopefully we can resolve it in a future release.
    -- Brian

  • Custom validation rules

    Using adf/bc with jdev 10.1.3.3. I've created a custom validation rule class according to the instructions in the adf guide. In that class, I've defined just one property, along with its getters/setters. I've registered my rule in the business component project and associated the rule to an entity attribute via the entity object editor. My problem is that I don't see any way for me to set the property/value of the property that's defined in the validation rule class. For example, in the SRDemo app, in the entity editor for ServiceRequest, if you highlight Validation in the left pane then select the AttributeMustExistInViewRowRule for the Status attribute and click the Edit button, you can set various property values that have been defined in the validation rule class. These values appear to then be updated to that entity's xml file. When I'm in my entity object editor and i've assigned a validation rule to an attribute, I can type in the error message text in the Edit Validation Rule dialog, but it says there are no properties to edit! I guess I haven't wired something together quite right? Note, I have not created the customizer and bean info classes for the design time aspect of this stuff. I assume that you do not absolutely need these classes to create and work with a customr validation rule? Anyone know what I'm doing wrong?

    ok, i figured out the problem. The property/value fields in the Edit Validation Rule dialog will not appear until you've actually compiled the custom validation rule class. I had tried to create the validation rule class, register it with the bc project, and assign it to an entity attribute all without first compiling the class. I stumbled upon this 'fix' in jdev's help, which leads me to another question. For the help topic entitled Creating Custom Declarative Validation Rules for Oracle ADF Business Components, the instructions have you create a class that implements JbiValidator and provide implementation for the method vetoableChange, from which you typically call validateValue. The adf guide's example has the custom validation rule class that extends AbstractValidator and implements JboValidatorInterface. In this example, you provide implementation for the validate method. What's the difference between these two approaches and when should I use one over the other? Thanks.

  • ORAMED-01301:[Payload custom validation]Schematron validation fails

    Receiving "oracle.tip.mediator.infra.exception.MediatorException: ORAMED-01301:[Payload custom validation]Schematron validation fails with error "{0}".Possible Fix:Fix the payload" error however the payload being sent matches with what is expected. Are there any other causes that may be causing this issue?
    Update:This happens every other request..i.e first request would work second fail third work fourth fail
    Edited by: 960635 on May 7, 2013 12:57 PM with addition of symptom occurrences

    I found the reason.
    I was missing the namespace declaration
    <sch:ns uri="{your namespace}" prefix="{your prefix}" />
    and the prefix for the context and test attribute elements.

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • Both my iPad and iPhone have ios8 On either device in Calendars edit shared with add person when I enter an email address and press add nothing happens - just goes back to edit screen and what I have entered has gone. No error message or any clue

    Both my iPad and iPhone have ios8
    On either device in Calendars> edit >shared with> add person when I enter an email address and press add nothing happens - just goes back to edit screen and what I have entered has gone. No error message or any clue about why I cant share my calendar. Please help.

    UDPATE:
    Spoke with Express lane, and issue was escalated.  Kudos to the support guys that handled this one (Brian and Yi).  Went through everything in detail and took all the crash dumps off the iphones and ipads to send to engineering.
    After backing up the contacts, the recommendation was to delete all contacts in  iCloud.  Doing that caused my iCloud to crash (in the browser), so more crash dumps were sent to apple.
    Eventually got all contacts deleted, then did a resync.  Looks like IOS devices are coming back to life and syncing again.
    Also, Outlook iCloud connector has just been updated to ver 1.0.1 so i installed that on their recommendation.
    BOTTOM LINE workaround:
    1. Backup contacts
    2. Delete contacts in iCloud
    3. Delete accounts on IOS devices
    4. Recreate accounts on IOS devices.
    Hoping a real root cause can be found and real fix implemented.  This has caused me to doubt the stability of iCloud, so i will procees with caution.

Maybe you are looking for