SAP Function Modules

F110_INSERT_T042U SAP Function module







F110_INSERT_T042U 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 F110_INSERT_T042U 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 F110_INSERT_T042U - F110 INSERT T042U





CALL FUNCTION 'F110_INSERT_T042U' "
  EXPORTING
    i_laufd =                   " f110v-laufd   Date on Which the Program Is to Be Run
    i_laufi =                   " f110v-laufi   Additional Identification Characteristic
    i_zbukr =                   " reguh-zbukr   Paying Company Code
    i_koart =                   " regup-koart   Account Type
    i_ktonr =                   " konko         Open item account number
    i_zlspr =                   " reguh-zlspr   Payment block key
    i_xsimu =                   " c
  IMPORTING
    e_t042u =                   " t042u         Block Entries for Debit Customers/Credit Vendors
    .  "  F110_INSERT_T042U

ABAP code example for Function Module F110_INSERT_T042U





The ABAP code below is a full code listing to execute function module F110_INSERT_T042U 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_e_t042u  TYPE T042U .


DATA(ld_i_laufd) = 20210129

DATA(ld_i_laufi) = some text here

SELECT single ZBUKR
FROM REGUH
INTO @DATA(ld_i_zbukr).


SELECT single KOART
FROM REGUP
INTO @DATA(ld_i_koart).

DATA(ld_i_ktonr) = 'Check type of data required'.

SELECT single ZLSPR
FROM REGUH
INTO @DATA(ld_i_zlspr).

DATA(ld_i_xsimu) = 'Check type of data required'. . CALL FUNCTION 'F110_INSERT_T042U' EXPORTING i_laufd = ld_i_laufd i_laufi = ld_i_laufi i_zbukr = ld_i_zbukr i_koart = ld_i_koart i_ktonr = ld_i_ktonr i_zlspr = ld_i_zlspr i_xsimu = ld_i_xsimu IMPORTING e_t042u = ld_e_t042u . " F110_INSERT_T042U
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_e_t042u  TYPE T042U ,
ld_i_laufd  TYPE F110V-LAUFD ,
ld_i_laufi  TYPE F110V-LAUFI ,
ld_i_zbukr  TYPE REGUH-ZBUKR ,
ld_i_koart  TYPE REGUP-KOART ,
ld_i_ktonr  TYPE KONKO ,
ld_i_zlspr  TYPE REGUH-ZLSPR ,
ld_i_xsimu  TYPE C .


ld_i_laufd = 20210129

ld_i_laufi = some text here

SELECT single ZBUKR
FROM REGUH
INTO ld_i_zbukr.


SELECT single KOART
FROM REGUP
INTO ld_i_koart.

ld_i_ktonr = 'Check type of data required'.

SELECT single ZLSPR
FROM REGUH
INTO ld_i_zlspr.

ld_i_xsimu = '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 F110_INSERT_T042U or its description.