cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a field check on webdynpro application

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Anjali,

Try to put a breakpoint in method PROCESS_EVENT of Feeder Class CL_HRESS_W2_REPRINT, this is the feeder class of the Form GUIBB.

Hope it helps.

Cheers!

Former Member
0 Kudos

Hi,

Check the PROCESS_EVENT as said by Nguyen and try to enhance the code associated with SEND button as per your requirement.

Thanks

KH

Former Member
0 Kudos

Hi Nguyen,

I tried to set the break point as shown below, however it did not stop at any of these points when I hit the SEND button.

Thanks and regards,

Anjali.

Former Member
0 Kudos

Hi Anjali,

Have you put the breakpoint in method PROCESS_EVENT of feeder class "CL_HRESS_W2_REPRINT"?

Hope it helps.

Cheers!

Former Member
0 Kudos

I should have paid attention to the class name

Thank you, Nguyen.

Anjali.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Another alternate would be enhancement.Where you can enhace the method and write logic as per your requirement.

Thanks

KH

Former Member
0 Kudos

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!