SAP Function Modules

PYKR_SET_SW_INT_TAKE_INT SAP Function module - Setzen loan-sw_int_per & Zinsen abziehen, falls Zinsen fällig







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

Associated Function Group: HRPAYKR03
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM PYKR_SET_SW_INT_TAKE_INT - PYKR SET SW INT TAKE INT





CALL FUNCTION 'PYKR_SET_SW_INT_TAKE_INT' "Setzen loan-sw_int_per & Zinsen abziehen, falls Zinsen fällig
  EXPORTING
    pf_lle =                    " maxbt         HR Payroll: Amount
    ps_p0045 =                  " p0045         HR Master Record: Infotype 0045 (Company Loans)
*   pf_dltyp =                  " dltyp         Loan category
*   pt_p0045 =                  " pclo_p0045    Infotyptabelle: Darlehen
  IMPORTING
    pf_swint =                  " char1         Single-character flag
  TABLES
    ptx_lo =                    " pclo_lo_tab   Loan Wage Types Table
  CHANGING
    psx_loan =                  " pclo_loan_data  Loan Data in Payroll
  EXCEPTIONS
    PFX_RCODE = 1               "
    .  "  PYKR_SET_SW_INT_TAKE_INT

ABAP code example for Function Module PYKR_SET_SW_INT_TAKE_INT





The ABAP code below is a full code listing to execute function module PYKR_SET_SW_INT_TAKE_INT 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_pf_swint  TYPE CHAR1 ,
it_ptx_lo  TYPE STANDARD TABLE OF PCLO_LO_TAB,"TABLES PARAM
wa_ptx_lo  LIKE LINE OF it_ptx_lo .

DATA(ld_psx_loan) = 'Check type of data required'.
DATA(ld_pf_lle) = 'Check type of data required'.
DATA(ld_ps_p0045) = 'Check type of data required'.
DATA(ld_pf_dltyp) = 'Check type of data required'.
DATA(ld_pt_p0045) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptx_lo to it_ptx_lo. . CALL FUNCTION 'PYKR_SET_SW_INT_TAKE_INT' EXPORTING pf_lle = ld_pf_lle ps_p0045 = ld_ps_p0045 * pf_dltyp = ld_pf_dltyp * pt_p0045 = ld_pt_p0045 IMPORTING pf_swint = ld_pf_swint TABLES ptx_lo = it_ptx_lo CHANGING psx_loan = ld_psx_loan EXCEPTIONS PFX_RCODE = 1 . " PYKR_SET_SW_INT_TAKE_INT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_psx_loan  TYPE PCLO_LOAN_DATA ,
ld_pf_swint  TYPE CHAR1 ,
ld_pf_lle  TYPE MAXBT ,
it_ptx_lo  TYPE STANDARD TABLE OF PCLO_LO_TAB ,
wa_ptx_lo  LIKE LINE OF it_ptx_lo,
ld_ps_p0045  TYPE P0045 ,
ld_pf_dltyp  TYPE DLTYP ,
ld_pt_p0045  TYPE PCLO_P0045 .

ld_psx_loan = 'Check type of data required'.
ld_pf_lle = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptx_lo to it_ptx_lo.
ld_ps_p0045 = 'Check type of data required'.
ld_pf_dltyp = 'Check type of data required'.
ld_pt_p0045 = '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 PYKR_SET_SW_INT_TAKE_INT or its description.