SAP HRHAP_RFC_DOCUMENT_SAVE Function Module for









HRHAP_RFC_DOCUMENT_SAVE is a standard hrhap rfc document save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hrhap rfc document save FM, simply by entering the name HRHAP_RFC_DOCUMENT_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRHAP_IF_RFC
Program Name: SAPLHRHAP_IF_RFC
Main Program: SAPLHRHAP_IF_RFC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HRHAP_RFC_DOCUMENT_SAVE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HRHAP_RFC_DOCUMENT_SAVE'"
EXPORTING
PLAN_VERSION = "
S_HEADER_TEXTS = "
S_HEADER_DATES = "
S_HEADER_STATUS = "
S_HEADER_DISPLAY = "
* NO_ACTION_LOG = ' ' "

IMPORTING
S_RETURN = "

CHANGING
* S_APPRAISAL_ID = "
S_DOC_PROCESSING = "

TABLES
T_HEADER_APPRAISER = "
T_HEADER_APPRAISEE = "
T_HEADER_OTHERS = "
T_BODY_COLUMNS = "
T_BODY_ELEMENTS = "
T_BODY_CELLS = "
T_HEADER_PART_APPRAISERS = "
T_BODY_CELL_NOTES = "
* T_STATUS_NOTES = "
.



IMPORTING Parameters details for HRHAP_RFC_DOCUMENT_SAVE

PLAN_VERSION -

Data type: HAP_PLAN_VERSION
Optional: No
Call by Reference: No ( called with pass by value option)

S_HEADER_TEXTS -

Data type: HAP_S_HEADER_TEXTS
Optional: No
Call by Reference: No ( called with pass by value option)

S_HEADER_DATES -

Data type: HAP_S_HEADER_DATES
Optional: No
Call by Reference: No ( called with pass by value option)

S_HEADER_STATUS -

Data type: HAP_S_HEADER_STATUS
Optional: No
Call by Reference: No ( called with pass by value option)

S_HEADER_DISPLAY -

Data type: HAP_S_HEADER_DISPLAY
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ACTION_LOG -

Data type: BOOLE_D
Default: ' '
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HRHAP_RFC_DOCUMENT_SAVE

S_RETURN -

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for HRHAP_RFC_DOCUMENT_SAVE

S_APPRAISAL_ID -

Data type: HAP_S_APPRAISAL_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_DOC_PROCESSING -

Data type: HAP_S_DOC_PROCESSING
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HRHAP_RFC_DOCUMENT_SAVE

T_HEADER_APPRAISER -

Data type: HAP_T_HEADER_APPRAISER
Optional: No
Call by Reference: Yes

T_HEADER_APPRAISEE -

Data type: HAP_T_HEADER_APPRAISEE
Optional: No
Call by Reference: Yes

T_HEADER_OTHERS -

Data type: HAP_T_HEADER_OTHERS
Optional: No
Call by Reference: Yes

T_BODY_COLUMNS -

Data type: HAP_T_BODY_COLUMNS
Optional: No
Call by Reference: Yes

T_BODY_ELEMENTS -

Data type: HAP_T_BODY_ELEMENTS
Optional: No
Call by Reference: Yes

T_BODY_CELLS -

Data type: HAP_T_BODY_CELLS
Optional: No
Call by Reference: Yes

T_HEADER_PART_APPRAISERS -

Data type: HAP_T_HEADER_PART_APPRAISERS
Optional: No
Call by Reference: Yes

T_BODY_CELL_NOTES -

Data type: HAP_T_BODY_CELL_NOTES
Optional: No
Call by Reference: Yes

T_STATUS_NOTES -

Data type: HAP_T_RFC_STATUS_NOTE
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for HRHAP_RFC_DOCUMENT_SAVE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_s_return  TYPE BAPIRET2, "   
lv_plan_version  TYPE HAP_PLAN_VERSION, "   
lv_s_appraisal_id  TYPE HAP_S_APPRAISAL_ID, "   
lt_t_header_appraiser  TYPE STANDARD TABLE OF HAP_T_HEADER_APPRAISER, "   
lv_s_header_texts  TYPE HAP_S_HEADER_TEXTS, "   
lv_s_doc_processing  TYPE HAP_S_DOC_PROCESSING, "   
lt_t_header_appraisee  TYPE STANDARD TABLE OF HAP_T_HEADER_APPRAISEE, "   
lv_s_header_dates  TYPE HAP_S_HEADER_DATES, "   
lt_t_header_others  TYPE STANDARD TABLE OF HAP_T_HEADER_OTHERS, "   
lt_t_body_columns  TYPE STANDARD TABLE OF HAP_T_BODY_COLUMNS, "   
lv_s_header_status  TYPE HAP_S_HEADER_STATUS, "   
lt_t_body_elements  TYPE STANDARD TABLE OF HAP_T_BODY_ELEMENTS, "   
lv_s_header_display  TYPE HAP_S_HEADER_DISPLAY, "   
lt_t_body_cells  TYPE STANDARD TABLE OF HAP_T_BODY_CELLS, "   
lv_no_action_log  TYPE BOOLE_D, "   ' '
lt_t_header_part_appraisers  TYPE STANDARD TABLE OF HAP_T_HEADER_PART_APPRAISERS, "   
lt_t_body_cell_notes  TYPE STANDARD TABLE OF HAP_T_BODY_CELL_NOTES, "   
lt_t_status_notes  TYPE STANDARD TABLE OF HAP_T_RFC_STATUS_NOTE. "   

  CALL FUNCTION 'HRHAP_RFC_DOCUMENT_SAVE'  "
    EXPORTING
         PLAN_VERSION = lv_plan_version
         S_HEADER_TEXTS = lv_s_header_texts
         S_HEADER_DATES = lv_s_header_dates
         S_HEADER_STATUS = lv_s_header_status
         S_HEADER_DISPLAY = lv_s_header_display
         NO_ACTION_LOG = lv_no_action_log
    IMPORTING
         S_RETURN = lv_s_return
    CHANGING
         S_APPRAISAL_ID = lv_s_appraisal_id
         S_DOC_PROCESSING = lv_s_doc_processing
    TABLES
         T_HEADER_APPRAISER = lt_t_header_appraiser
         T_HEADER_APPRAISEE = lt_t_header_appraisee
         T_HEADER_OTHERS = lt_t_header_others
         T_BODY_COLUMNS = lt_t_body_columns
         T_BODY_ELEMENTS = lt_t_body_elements
         T_BODY_CELLS = lt_t_body_cells
         T_HEADER_PART_APPRAISERS = lt_t_header_part_appraisers
         T_BODY_CELL_NOTES = lt_t_body_cell_notes
         T_STATUS_NOTES = lt_t_status_notes
. " HRHAP_RFC_DOCUMENT_SAVE




ABAP code using 7.40 inline data declarations to call FM HRHAP_RFC_DOCUMENT_SAVE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_no_action_log) = ' '.
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!