SAP FMFA_DI_DATA_HEADER Function Module for FMFA: Create header data for DI
FMFA_DI_DATA_HEADER is a standard fmfa di data header SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FMFA: Create header data for DI processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fmfa di data header FM, simply by entering the name FMFA_DI_DATA_HEADER into the relevant SAP transaction such as SE37 or SE38.
Function Group: FM_FUNCTIONAL_AREA
Program Name: SAPLFM_FUNCTIONAL_AREA
Main Program: SAPLFM_FUNCTIONAL_AREA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMFA_DI_DATA_HEADER pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FMFA_DI_DATA_HEADER'"FMFA: Create header data for DI.
EXPORTING
I_AKTYP = "Activity type
* I_ROLE8 = "BP Role
* I_ROLE9 = "BP Role
I_FKBER = "FM: Functional Area
* I_ROLE1 = "BP Role
* I_ROLE2 = "BP Role
* I_ROLE3 = "BP Role
* I_ROLE4 = "BP Role
* I_ROLE5 = "BP Role
* I_ROLE6 = "BP Role
* I_ROLE7 = "BP Role
IMPORTING
T_DATA = "Tabellentyp: Direct Input Data
IMPORTING Parameters details for FMFA_DI_DATA_HEADER
I_AKTYP - Activity type
Data type: TBZ0K-AKTYPOptional: No
Call by Reference: Yes
I_ROLE8 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE9 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_FKBER - FM: Functional Area
Data type: FKBEROptional: No
Call by Reference: Yes
I_ROLE1 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE2 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE3 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE4 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE5 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE6 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
I_ROLE7 - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FMFA_DI_DATA_HEADER
T_DATA - Tabellentyp: Direct Input Data
Data type: FMMD_TAB_BUSSDIOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMFA_DI_DATA_HEADER Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_t_data | TYPE FMMD_TAB_BUSSDI, " | |||
| lv_i_aktyp | TYPE TBZ0K-AKTYP, " | |||
| lv_i_role8 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role9 | TYPE BU_PARTNERROLE, " | |||
| lv_i_fkber | TYPE FKBER, " | |||
| lv_i_role1 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role2 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role3 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role4 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role5 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role6 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role7 | TYPE BU_PARTNERROLE. " |
|   CALL FUNCTION 'FMFA_DI_DATA_HEADER' "FMFA: Create header data for DI |
| EXPORTING | ||
| I_AKTYP | = lv_i_aktyp | |
| I_ROLE8 | = lv_i_role8 | |
| I_ROLE9 | = lv_i_role9 | |
| I_FKBER | = lv_i_fkber | |
| I_ROLE1 | = lv_i_role1 | |
| I_ROLE2 | = lv_i_role2 | |
| I_ROLE3 | = lv_i_role3 | |
| I_ROLE4 | = lv_i_role4 | |
| I_ROLE5 | = lv_i_role5 | |
| I_ROLE6 | = lv_i_role6 | |
| I_ROLE7 | = lv_i_role7 | |
| IMPORTING | ||
| T_DATA | = lv_t_data | |
| . " FMFA_DI_DATA_HEADER | ||
ABAP code using 7.40 inline data declarations to call FM FMFA_DI_DATA_HEADER
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single AKTYP FROM TBZ0K INTO @DATA(ld_i_aktyp). | ||||
Search for further information about these or an SAP related objects