on 01-12-2015 8:03 PM
Hi Gurus,
I am looking for advise to find out how can I add a condition on a field in the standard application HRESS_A_W2_REPRINT (config id HRESS_AC_W2_REPRINT), where I need to display a warning message if the user select the current year.
Would you take a minute to help me with some guide lines in accomplishing this?
Thanks,
Anjali
Hi Nguyen, Katrice, Santosh,
Thanks for your responses.
I am now looking to enhance the method to add the condition. However, I am unable to find a debug trigger point to see where I should be making the enhancement. I am trying to trigger the message when user selects the current year from the year list or hits the SEND button.
I put an external break point in the Assistance Class (pretty much all the methods there) for the webdynpro component HRESS_C_W2REPRINT_CONFIG, but the break point didn't get triggered when I tried to login to the application on the portal side. I checked the debugger settings for external break points and it is set correctly. I am also logging as the same user.
It stops when I keep the break point in the class interface of the application CL_FPM_EVENT. The event Id for SEND button is FPM_SEND but this is a common event and I am not sure how I can modify the logic w.r.t W2 reprint application.
Any further advise on this much appreciated.
Anjali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, llease check if any enhancement is provided by SAP. Use CL_EXIT_HANDLER with external debugging. We had a similar requirement where we added custom error message for one of the infotypes where we valdiated telephone number and format. It was pretty simple 5 lines of code.
Eg: For infotypes triggered from WD, enhancement spot 'HRPAD00INFTYBL' is triggered which further has 2 BADI's 'HRPAD00INFTYBL' and 'HRPAD00INFTYDB'. Check the methods 'MODIFY_COMPUTATIONS' which triggers when any infotype object is saved. These methods also include sample code to display custom messages on portal.
Cheers,
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Another alternate would be enhancement.Where you can enhace the method and write logic as per your requirement.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anjali,
You can copy existing application configuration, component configuration, form configuration, feeder class to Z* object and implement your logic to show the warning message in method IF_FPM_GUIBB_FORM~PROCESS_EVENT.
Hope it helps.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.