SAP Function Modules

FI_PAY_GROUP_SPLIT SAP Function module







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

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


Pattern for FM FI_PAY_GROUP_SPLIT - FI PAY GROUP SPLIT





CALL FUNCTION 'FI_PAY_GROUP_SPLIT' "
  EXPORTING
    it_xzahlb =                 " table
    it_zzahlg =                 " table
    i_f111 =                    " boole_d       Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
*   i_zlsch =                   " t042e-zlsch
    i_rwbtr =                   " reguh-rwbtr   Amount Paid in the Payment Currency
    i_t042b =                   " t042b         Details on the company codes that must pay
    i_x001 =                    " x001          Derived Company Code Additional Data
*   i_payrq_xkdfb = ' '         " t042b-xkdfb   Do not Post any Exchange Rate Differences
*   i_zhlg2_prq =               " fiprq_zhlg2
    i_kursfaktor =              " p
    i_kursfaktor2 =             " p
    i_kursfaktor3 =             " p
    i_kursteiler =              " p
    i_kursteiler2 =             " p
    i_kursteiler3 =             " p
  IMPORTING
    et_xzahlb =                 " table
    et_zzahlg =                 " table
* CHANGING
*   ct_reguh =                  " table
    .  "  FI_PAY_GROUP_SPLIT

ABAP code example for Function Module FI_PAY_GROUP_SPLIT





The ABAP code below is a full code listing to execute function module FI_PAY_GROUP_SPLIT 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_et_xzahlb  TYPE TABLE ,
ld_et_zzahlg  TYPE TABLE .

DATA(ld_ct_reguh) = 'Check type of data required'.
DATA(ld_it_xzahlb) = 'Check type of data required'.
DATA(ld_it_zzahlg) = 'Check type of data required'.
DATA(ld_i_f111) = 'Check type of data required'.

SELECT single ZLSCH
FROM T042E
INTO @DATA(ld_i_zlsch).


SELECT single RWBTR
FROM REGUH
INTO @DATA(ld_i_rwbtr).

DATA(ld_i_t042b) = 'Check type of data required'.
DATA(ld_i_x001) = 'Check type of data required'.

SELECT single XKDFB
FROM T042B
INTO @DATA(ld_i_payrq_xkdfb).

DATA(ld_i_zhlg2_prq) = 'Check type of data required'.
DATA(ld_i_kursfaktor) = 'Check type of data required'.
DATA(ld_i_kursfaktor2) = 'Check type of data required'.
DATA(ld_i_kursfaktor3) = 'Check type of data required'.
DATA(ld_i_kursteiler) = 'Check type of data required'.
DATA(ld_i_kursteiler2) = 'Check type of data required'.
DATA(ld_i_kursteiler3) = 'Check type of data required'. . CALL FUNCTION 'FI_PAY_GROUP_SPLIT' EXPORTING it_xzahlb = ld_it_xzahlb it_zzahlg = ld_it_zzahlg i_f111 = ld_i_f111 * i_zlsch = ld_i_zlsch i_rwbtr = ld_i_rwbtr i_t042b = ld_i_t042b i_x001 = ld_i_x001 * i_payrq_xkdfb = ld_i_payrq_xkdfb * i_zhlg2_prq = ld_i_zhlg2_prq i_kursfaktor = ld_i_kursfaktor i_kursfaktor2 = ld_i_kursfaktor2 i_kursfaktor3 = ld_i_kursfaktor3 i_kursteiler = ld_i_kursteiler i_kursteiler2 = ld_i_kursteiler2 i_kursteiler3 = ld_i_kursteiler3 IMPORTING et_xzahlb = ld_et_xzahlb et_zzahlg = ld_et_zzahlg * CHANGING * ct_reguh = ld_ct_reguh . " FI_PAY_GROUP_SPLIT
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_reguh  TYPE TABLE ,
ld_et_xzahlb  TYPE TABLE ,
ld_it_xzahlb  TYPE TABLE ,
ld_et_zzahlg  TYPE TABLE ,
ld_it_zzahlg  TYPE TABLE ,
ld_i_f111  TYPE BOOLE_D ,
ld_i_zlsch  TYPE T042E-ZLSCH ,
ld_i_rwbtr  TYPE REGUH-RWBTR ,
ld_i_t042b  TYPE T042B ,
ld_i_x001  TYPE X001 ,
ld_i_payrq_xkdfb  TYPE T042B-XKDFB ,
ld_i_zhlg2_prq  TYPE FIPRQ_ZHLG2 ,
ld_i_kursfaktor  TYPE P ,
ld_i_kursfaktor2  TYPE P ,
ld_i_kursfaktor3  TYPE P ,
ld_i_kursteiler  TYPE P ,
ld_i_kursteiler2  TYPE P ,
ld_i_kursteiler3  TYPE P .

ld_ct_reguh = 'Check type of data required'.
ld_it_xzahlb = 'Check type of data required'.
ld_it_zzahlg = 'Check type of data required'.
ld_i_f111 = 'Check type of data required'.

SELECT single ZLSCH
FROM T042E
INTO ld_i_zlsch.


SELECT single RWBTR
FROM REGUH
INTO ld_i_rwbtr.

ld_i_t042b = 'Check type of data required'.
ld_i_x001 = 'Check type of data required'.

SELECT single XKDFB
FROM T042B
INTO ld_i_payrq_xkdfb.

ld_i_zhlg2_prq = 'Check type of data required'.
ld_i_kursfaktor = 'Check type of data required'.
ld_i_kursfaktor2 = 'Check type of data required'.
ld_i_kursfaktor3 = 'Check type of data required'.
ld_i_kursteiler = 'Check type of data required'.
ld_i_kursteiler2 = 'Check type of data required'.
ld_i_kursteiler3 = '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 FI_PAY_GROUP_SPLIT or its description.