SAP Function Modules

HRASR_PROCESS_EXECUTE SAP Function module - Process execute RFC







HRASR_PROCESS_EXECUTE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HRASR_PROCESS_EXECUTE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRASR_SERVICES
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM HRASR_PROCESS_EXECUTE - HRASR PROCESS EXECUTE





CALL FUNCTION 'HRASR_PROCESS_EXECUTE' "Process execute RFC
  EXPORTING
*   iv_process =                " asr_process   Process name
*   iv_wi_id =                  " sww_wiid      Workitem ID
*   iv_object_key =             " asr_object_key  Object key
*   iv_initiator_role = 'HRASRA'  " asr_initiator_role  Initiator role
    iv_event =                  " syucomm       Event to be executed
*   iv_update_in_same_task =    " boole_d       Update in same task
*   iv_async_background_save =   " boole_d      Async background save
  IMPORTING
    ev_is_ok =                  " char1         Is processing OK?
    et_messages =               " hrasr_return_tab  Messages
    ev_process_ref_number =     " asr_reference_number  Process Reference Number
    ev_confirmation_text =      " string        Confirmation text for form scenario stage
* CHANGING
*   ct_attachments =            " hrasr00attachment_tab  Attachments
*   ct_form_field_values =      " hrasr_special_param_tab  Values of the form fields
*   ct_input_help_values =      " hrasr_special_param_tab  Input helps for fields
*   ct_field_ui_attributes =    " hrasr_uiattribute_param_tab  UI Attributes for a Field
*   ct_events =                 " hrasr00form_events_tab  Form events table type
*   ct_link_lists =             " hrasr00link_tab  Hyperlinks
*   ct_history_details =        " hrasr00step_attributes_ui_tab  History details
    .  "  HRASR_PROCESS_EXECUTE

ABAP code example for Function Module HRASR_PROCESS_EXECUTE





The ABAP code below is a full code listing to execute function module HRASR_PROCESS_EXECUTE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ev_is_ok  TYPE CHAR1 ,
ld_et_messages  TYPE HRASR_RETURN_TAB ,
ld_ev_process_ref_number  TYPE ASR_REFERENCE_NUMBER ,
ld_ev_confirmation_text  TYPE STRING .

DATA(ld_ct_attachments) = 'Check type of data required'.
DATA(ld_ct_form_field_values) = 'Check type of data required'.
DATA(ld_ct_input_help_values) = 'Check type of data required'.
DATA(ld_ct_field_ui_attributes) = 'Check type of data required'.
DATA(ld_ct_events) = 'Check type of data required'.
DATA(ld_ct_link_lists) = 'Check type of data required'.
DATA(ld_ct_history_details) = 'Check type of data required'.
DATA(ld_iv_process) = 'Check type of data required'.
DATA(ld_iv_wi_id) = 'Check type of data required'.
DATA(ld_iv_object_key) = 'Check type of data required'.
DATA(ld_iv_initiator_role) = 'Check type of data required'.
DATA(ld_iv_event) = 'some text here'.
DATA(ld_iv_update_in_same_task) = 'some text here'.
DATA(ld_iv_async_background_save) = 'some text here'. . CALL FUNCTION 'HRASR_PROCESS_EXECUTE' EXPORTING * iv_process = ld_iv_process * iv_wi_id = ld_iv_wi_id * iv_object_key = ld_iv_object_key * iv_initiator_role = ld_iv_initiator_role iv_event = ld_iv_event * iv_update_in_same_task = ld_iv_update_in_same_task * iv_async_background_save = ld_iv_async_background_save IMPORTING ev_is_ok = ld_ev_is_ok et_messages = ld_et_messages ev_process_ref_number = ld_ev_process_ref_number ev_confirmation_text = ld_ev_confirmation_text * CHANGING * ct_attachments = ld_ct_attachments * ct_form_field_values = ld_ct_form_field_values * ct_input_help_values = ld_ct_input_help_values * ct_field_ui_attributes = ld_ct_field_ui_attributes * ct_events = ld_ct_events * ct_link_lists = ld_ct_link_lists * ct_history_details = ld_ct_history_details . " HRASR_PROCESS_EXECUTE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ct_attachments  TYPE HRASR00ATTACHMENT_TAB ,
ld_ev_is_ok  TYPE CHAR1 ,
ld_iv_process  TYPE ASR_PROCESS ,
ld_ct_form_field_values  TYPE HRASR_SPECIAL_PARAM_TAB ,
ld_et_messages  TYPE HRASR_RETURN_TAB ,
ld_iv_wi_id  TYPE SWW_WIID ,
ld_ct_input_help_values  TYPE HRASR_SPECIAL_PARAM_TAB ,
ld_ev_process_ref_number  TYPE ASR_REFERENCE_NUMBER ,
ld_iv_object_key  TYPE ASR_OBJECT_KEY ,
ld_ct_field_ui_attributes  TYPE HRASR_UIATTRIBUTE_PARAM_TAB ,
ld_ev_confirmation_text  TYPE STRING ,
ld_iv_initiator_role  TYPE ASR_INITIATOR_ROLE ,
ld_ct_events  TYPE HRASR00FORM_EVENTS_TAB ,
ld_iv_event  TYPE SYUCOMM ,
ld_ct_link_lists  TYPE HRASR00LINK_TAB ,
ld_iv_update_in_same_task  TYPE BOOLE_D ,
ld_ct_history_details  TYPE HRASR00STEP_ATTRIBUTES_UI_TAB ,
ld_iv_async_background_save  TYPE BOOLE_D .

ld_ct_attachments = 'some text here'.
ld_iv_process = 'some text here'.
ld_ct_form_field_values = 'some text here'.
ld_iv_wi_id = 'some text here'.
ld_ct_input_help_values = 'some text here'.
ld_iv_object_key = 'some text here'.
ld_ct_field_ui_attributes = 'some text here'.
ld_iv_initiator_role = 'some text here'.
ld_ct_events = 'some text here'.
ld_iv_event = 'some text here'.
ld_ct_link_lists = 'some text here'.
ld_iv_update_in_same_task = 'some text here'.
ld_ct_history_details = 'some text here'.
ld_iv_async_background_save = 'some text here'.

SAP Documentation for FM HRASR_PROCESS_EXECUTE

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HRASR_PROCESS_EXECUTE or its description.