Skip to Content
avatar image
Former Member

Adding a field check on webdynpro application

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 13, 2015 at 11:43 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 03:56 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 08:36 AM

    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!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 08:48 AM

    Hi,

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

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded