Skip to Content

Issue while Defaulting values using USER EVENT in HCM process forms

Hello Experts,

We have designed a process form which is used to update the action information associated with a pernr. We have a check box (Using current position) when it is checked, it pulls the current position information of pernr and defaults it to the list of fields as shown in the below screen shot.

The checkbox(Using current position) is associated with an USER EVENT for which the associated field group contains all the fields that need to be defaulted along with the MASSG field ( Reason code ). Please find the below screen shot.

When the checkbox (Using Current position) is unchecked, the values which are defaulted earlier need to be cleared. We tried to implement the below logic in our back end service.

IF ls_first_event-id = c_event_curpos and lv_cbox_value = gc_curr_pos_cbox.

LOOP AT ch_service_datasets ASSIGNING <service_dataset> WHERE fieldname = gc_i0001_plans.

<service_dataset>-fieldvalue = '00000000'. " abap_false.



Could you please provide some pointers to resolve the issue.

Thanks in Advance..

Best Regards,


1.png (50.4 kB)
2.png (45.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 17, 2016 at 07:40 AM

    Hello Aishwarya Mudam,

    The issue is not clear.

    One generally uses an event of processing type initialize to default values and of type check for validations.

    If you just want to reset the values go with type initialize event.

    and code in method IF_HRASR00GEN_SERVICE~INITIALIZE

    For other cases have the event of type check and code in IF_HRASR00GEN_SERVICE~DO_OPERATIONS.

    Hope this helps.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.