SAP Function Modules

HRXSS_IN_LOANS_TRANS_DATA SAP Function module - RFC to fetch Loans ESS transaction data







HRXSS_IN_LOANS_TRANS_DATA 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 HRXSS_IN_LOANS_TRANS_DATA into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM HRXSS_IN_LOANS_TRANS_DATA - HRXSS IN LOANS TRANS DATA





CALL FUNCTION 'HRXSS_IN_LOANS_TRANS_DATA' "RFC to fetch Loans ESS transaction data
* EXPORTING
*   loan_type =                 " subty         Subtype
*   mode =                      " char1         Single-Character Indicator
*   approver =                  " persno        User Name
*   workitem_id =               " sww_wiid      Work item ID
  IMPORTING
    error_tab =                 " bapiret2_tab  Return Parameter
* CHANGING
*   loan_requests_emp =         " hrpbsin_loan_req_emp  Loan request data  for ESS
*   repayment_requests_emp =    " hrpbsin_rpmt_req_emp  Repayment Request data for ESS
*   valid_loan_types_emp =      " hrpbsin_valid_ln_tab  Valid Loan type for ESS
*   approver_comments =         " hrpbsin_appr_comment   Approver's Comment per request
*   pernr =                     " persno
*   emp_name =                  " emnam         Formatted Name of Employee or Applicant
*   begin_date =                " begda         Start Date
*   end_date =                  " endda         End Date
*   ctry_grp =                  " molga         Country Grouping
    .  "  HRXSS_IN_LOANS_TRANS_DATA

ABAP code example for Function Module HRXSS_IN_LOANS_TRANS_DATA





The ABAP code below is a full code listing to execute function module HRXSS_IN_LOANS_TRANS_DATA 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_error_tab  TYPE BAPIRET2_TAB .

DATA(ld_loan_requests_emp) = 'Check type of data required'.
DATA(ld_repayment_requests_emp) = 'Check type of data required'.
DATA(ld_valid_loan_types_emp) = 'Check type of data required'.
DATA(ld_approver_comments) = 'Check type of data required'.
DATA(ld_pernr) = 'Check type of data required'.
DATA(ld_emp_name) = 'Check type of data required'.
DATA(ld_begin_date) = 'Check type of data required'.
DATA(ld_end_date) = 'Check type of data required'.
DATA(ld_ctry_grp) = 'Check type of data required'.
DATA(ld_loan_type) = 'Check type of data required'.
DATA(ld_mode) = 'Check type of data required'.
DATA(ld_approver) = 'Check type of data required'.
DATA(ld_workitem_id) = 'Check type of data required'. . CALL FUNCTION 'HRXSS_IN_LOANS_TRANS_DATA' * EXPORTING * loan_type = ld_loan_type * mode = ld_mode * approver = ld_approver * workitem_id = ld_workitem_id IMPORTING error_tab = ld_error_tab * CHANGING * loan_requests_emp = ld_loan_requests_emp * repayment_requests_emp = ld_repayment_requests_emp * valid_loan_types_emp = ld_valid_loan_types_emp * approver_comments = ld_approver_comments * pernr = ld_pernr * emp_name = ld_emp_name * begin_date = ld_begin_date * end_date = ld_end_date * ctry_grp = ld_ctry_grp . " HRXSS_IN_LOANS_TRANS_DATA
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_loan_requests_emp  TYPE HRPBSIN_LOAN_REQ_EMP ,
ld_error_tab  TYPE BAPIRET2_TAB ,
ld_loan_type  TYPE SUBTY ,
ld_repayment_requests_emp  TYPE HRPBSIN_RPMT_REQ_EMP ,
ld_mode  TYPE CHAR1 ,
ld_valid_loan_types_emp  TYPE HRPBSIN_VALID_LN_TAB ,
ld_approver  TYPE PERSNO ,
ld_approver_comments  TYPE HRPBSIN_APPR_COMMENT ,
ld_workitem_id  TYPE SWW_WIID ,
ld_pernr  TYPE PERSNO ,
ld_emp_name  TYPE EMNAM ,
ld_begin_date  TYPE BEGDA ,
ld_end_date  TYPE ENDDA ,
ld_ctry_grp  TYPE MOLGA .

ld_loan_requests_emp = 'Check type of data required'.
ld_loan_type = 'Check type of data required'.
ld_repayment_requests_emp = 'Check type of data required'.
ld_mode = 'Check type of data required'.
ld_valid_loan_types_emp = 'Check type of data required'.
ld_approver = 'Check type of data required'.
ld_approver_comments = 'Check type of data required'.
ld_workitem_id = 'Check type of data required'.
ld_pernr = 'Check type of data required'.
ld_emp_name = 'Check type of data required'.
ld_begin_date = 'Check type of data required'.
ld_end_date = 'Check type of data required'.
ld_ctry_grp = 'Check type of data required'.

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 HRXSS_IN_LOANS_TRANS_DATA or its description.