SAP HRCA_GET_FI_DOC_ITEMS Function Module for Get FI document items for third party remittance









HRCA_GET_FI_DOC_ITEMS is a standard hrca get fi doc items SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get FI document items for third party remittance processing and below is the pattern details for this FM, 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 hrca get fi doc items FM, simply by entering the name HRCA_GET_FI_DOC_ITEMS into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRCA_THIRD_PARTY
Program Name: SAPLHRCA_THIRD_PARTY
Main Program: SAPLHRCA_THIRD_PARTY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRCA_GET_FI_DOC_ITEMS 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 'HRCA_GET_FI_DOC_ITEMS'"Get FI document items for third party remittance
EXPORTING
P_BUKRS = "Company Code
* P_GSBER = "Business Area

IMPORTING
NO_FI_ITEMS_FOUND = "Number of FI items found
NO_HR_PAYEES_FOUND = "Number of HR payees found
NO_HR_NFND_PAYEES = "Number of HR payees not found
NO_T51R5_NO_VENDOR = "Number of T51R5 entries with no vendor

TABLES
P_T51R5_NEW = "HR payees to find FI items
P_T51R5_NFND = "HR payees with no FI items
P_HR3PRNA_DOC_ITEMS = "FI documents found

EXCEPTIONS
NO_COMPANY_CODE = 1 ERROR_IN_FILTEROBJECTS = 2 ERROR_IN_ALE_CUSTOMIZING = 3 NOT_UNIQUE_RECEIVER = 4 NO_RFC_DESTINATION_MAINTAINED = 5 OTHER_ALE_ERROR = 6 NO_FUNCTION_FI_GET = 7
.



IMPORTING Parameters details for HRCA_GET_FI_DOC_ITEMS

P_BUKRS - Company Code

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

P_GSBER - Business Area

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

EXPORTING Parameters details for HRCA_GET_FI_DOC_ITEMS

NO_FI_ITEMS_FOUND - Number of FI items found

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

NO_HR_PAYEES_FOUND - Number of HR payees found

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

NO_HR_NFND_PAYEES - Number of HR payees not found

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

NO_T51R5_NO_VENDOR - Number of T51R5 entries with no vendor

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

TABLES Parameters details for HRCA_GET_FI_DOC_ITEMS

P_T51R5_NEW - HR payees to find FI items

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

P_T51R5_NFND - HR payees with no FI items

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

P_HR3PRNA_DOC_ITEMS - FI documents found

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

EXCEPTIONS details

NO_COMPANY_CODE - No company code given

Data type:
Optional: No
Call by Reference: Yes

ERROR_IN_FILTEROBJECTS - ALE Error: wrong filter objects

Data type:
Optional: No
Call by Reference: Yes

ERROR_IN_ALE_CUSTOMIZING - ALE Error: wrong customizing

Data type:
Optional: No
Call by Reference: Yes

NOT_UNIQUE_RECEIVER - ALE Error: no unique receiver

Data type:
Optional: No
Call by Reference: Yes

NO_RFC_DESTINATION_MAINTAINED - ALE Error: no destination maintained

Data type:
Optional: No
Call by Reference: Yes

OTHER_ALE_ERROR - ALE Error: other

Data type:
Optional: No
Call by Reference: Yes

NO_FUNCTION_FI_GET - FI_DOC_ITEMS_FIND does not exist in remote system

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRCA_GET_FI_DOC_ITEMS 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_p_bukrs  TYPE BUKRS, "   
lt_p_t51r5_new  TYPE STANDARD TABLE OF T51R5, "   
lv_no_company_code  TYPE T51R5, "   
lv_no_fi_items_found  TYPE I, "   
lv_p_gsber  TYPE GSBER, "   
lt_p_t51r5_nfnd  TYPE STANDARD TABLE OF T51R5, "   
lv_no_hr_payees_found  TYPE I, "   
lv_error_in_filterobjects  TYPE I, "   
lv_no_hr_nfnd_payees  TYPE I, "   
lt_p_hr3prna_doc_items  TYPE STANDARD TABLE OF HR3PRNA_DOC_ITEMS, "   
lv_error_in_ale_customizing  TYPE HR3PRNA_DOC_ITEMS, "   
lv_no_t51r5_no_vendor  TYPE I, "   
lv_not_unique_receiver  TYPE I, "   
lv_no_rfc_destination_maintained  TYPE I, "   
lv_other_ale_error  TYPE I, "   
lv_no_function_fi_get  TYPE I. "   

  CALL FUNCTION 'HRCA_GET_FI_DOC_ITEMS'  "Get FI document items for third party remittance
    EXPORTING
         P_BUKRS = lv_p_bukrs
         P_GSBER = lv_p_gsber
    IMPORTING
         NO_FI_ITEMS_FOUND = lv_no_fi_items_found
         NO_HR_PAYEES_FOUND = lv_no_hr_payees_found
         NO_HR_NFND_PAYEES = lv_no_hr_nfnd_payees
         NO_T51R5_NO_VENDOR = lv_no_t51r5_no_vendor
    TABLES
         P_T51R5_NEW = lt_p_t51r5_new
         P_T51R5_NFND = lt_p_t51r5_nfnd
         P_HR3PRNA_DOC_ITEMS = lt_p_hr3prna_doc_items
    EXCEPTIONS
        NO_COMPANY_CODE = 1
        ERROR_IN_FILTEROBJECTS = 2
        ERROR_IN_ALE_CUSTOMIZING = 3
        NOT_UNIQUE_RECEIVER = 4
        NO_RFC_DESTINATION_MAINTAINED = 5
        OTHER_ALE_ERROR = 6
        NO_FUNCTION_FI_GET = 7
. " HRCA_GET_FI_DOC_ITEMS




ABAP code using 7.40 inline data declarations to call FM HRCA_GET_FI_DOC_ITEMS

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!