SAP Function Modules

ACCOUNT_DI_DATA_HEADER SAP Function module







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

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


Pattern for FM ACCOUNT_DI_DATA_HEADER - ACCOUNT DI DATA HEADER





CALL FUNCTION 'ACCOUNT_DI_DATA_HEADER' "
  EXPORTING
    i_aktyp =                   " tbz0k-aktyp
*   i_vkonto =                  " fkkvk-vkont
*   i_partner =                 " fkkvkp-gpart
*   i_vktyp =                   " fkkvk-vktyp
*   i_applk =                   " fkkvk-applk
*   i_vkona =                   " fkkvk-vkona
*   i_valdt =                   " sy-datum      Validity date of changes
  TABLES
    t_data =                    " bussdi
    .  "  ACCOUNT_DI_DATA_HEADER

ABAP code example for Function Module ACCOUNT_DI_DATA_HEADER





The ABAP code below is a full code listing to execute function module ACCOUNT_DI_DATA_HEADER 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:
it_t_data  TYPE STANDARD TABLE OF BUSSDI,"TABLES PARAM
wa_t_data  LIKE LINE OF it_t_data .


SELECT single AKTYP
FROM TBZ0K
INTO @DATA(ld_i_aktyp).


SELECT single VKONT
FROM FKKVK
INTO @DATA(ld_i_vkonto).


SELECT single GPART
FROM FKKVKP
INTO @DATA(ld_i_partner).


SELECT single VKTYP
FROM FKKVK
INTO @DATA(ld_i_vktyp).


SELECT single APPLK
FROM FKKVK
INTO @DATA(ld_i_applk).


SELECT single VKONA
FROM FKKVK
INTO @DATA(ld_i_vkona).

DATA(ld_i_valdt) = '20210129'.

"populate fields of struture and append to itab
append wa_t_data to it_t_data. . CALL FUNCTION 'ACCOUNT_DI_DATA_HEADER' EXPORTING i_aktyp = ld_i_aktyp * i_vkonto = ld_i_vkonto * i_partner = ld_i_partner * i_vktyp = ld_i_vktyp * i_applk = ld_i_applk * i_vkona = ld_i_vkona * i_valdt = ld_i_valdt TABLES t_data = it_t_data . " ACCOUNT_DI_DATA_HEADER
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_i_aktyp  TYPE TBZ0K-AKTYP ,
it_t_data  TYPE STANDARD TABLE OF BUSSDI ,
wa_t_data  LIKE LINE OF it_t_data,
ld_i_vkonto  TYPE FKKVK-VKONT ,
ld_i_partner  TYPE FKKVKP-GPART ,
ld_i_vktyp  TYPE FKKVK-VKTYP ,
ld_i_applk  TYPE FKKVK-APPLK ,
ld_i_vkona  TYPE FKKVK-VKONA ,
ld_i_valdt  TYPE SY-DATUM .


SELECT single AKTYP
FROM TBZ0K
INTO ld_i_aktyp.


"populate fields of struture and append to itab
append wa_t_data to it_t_data.

SELECT single VKONT
FROM FKKVK
INTO ld_i_vkonto.


SELECT single GPART
FROM FKKVKP
INTO ld_i_partner.


SELECT single VKTYP
FROM FKKVK
INTO ld_i_vktyp.


SELECT single APPLK
FROM FKKVK
INTO ld_i_applk.


SELECT single VKONA
FROM FKKVK
INTO ld_i_vkona.

ld_i_valdt = '20210129'.

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