SAP AIC0_HEADER_CREATE Function Module for









AIC0_HEADER_CREATE is a standard aic0 header create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 aic0 header create FM, simply by entering the name AIC0_HEADER_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: AIC0
Program Name: SAPLAIC0
Main Program:
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function AIC0_HEADER_CREATE 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 'AIC0_HEADER_CREATE'"
EXPORTING
I_COMPR_VRSN = "
I_INV_PROG = "
I_APPR_YEAR = "
* I_LOGSYSTEM = ' ' "
* I_FLG_OWN_LOGSYSTEM = 'X' "
* I_FLG_HIER = ' ' "
* I_FLG_DATA = ' ' "

IMPORTING
ES_IMCH = "

EXCEPTIONS
FLAG_ERROR = 1 INPUT_MISSING = 2 OWN_LOGSYSTEM_NOT_ALLOWED = 3 LOGSYSTEM_NOT_EXISTING = 4
.



IMPORTING Parameters details for AIC0_HEADER_CREATE

I_COMPR_VRSN -

Data type: IMCH-COMPR_VRSN
Optional: No
Call by Reference: No ( called with pass by value option)

I_INV_PROG -

Data type: IMCH-INV_PROG
Optional: No
Call by Reference: No ( called with pass by value option)

I_APPR_YEAR -

Data type: IMCH-APPR_YEAR
Optional: No
Call by Reference: No ( called with pass by value option)

I_LOGSYSTEM -

Data type: IMCH-LOGSYSTEM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_OWN_LOGSYSTEM -

Data type: IMIS_TYPE_FLG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_HIER -

Data type: IMIS_TYPE_FLG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DATA -

Data type: IMIS_TYPE_FLG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for AIC0_HEADER_CREATE

ES_IMCH -

Data type: IMIS_TYPE_S_IMCH
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FLAG_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INPUT_MISSING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OWN_LOGSYSTEM_NOT_ALLOWED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LOGSYSTEM_NOT_EXISTING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for AIC0_HEADER_CREATE 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_es_imch  TYPE IMIS_TYPE_S_IMCH, "   
lv_flag_error  TYPE IMIS_TYPE_S_IMCH, "   
lv_i_compr_vrsn  TYPE IMCH-COMPR_VRSN, "   
lv_i_inv_prog  TYPE IMCH-INV_PROG, "   
lv_input_missing  TYPE IMCH, "   
lv_i_appr_year  TYPE IMCH-APPR_YEAR, "   
lv_own_logsystem_not_allowed  TYPE IMCH, "   
lv_i_logsystem  TYPE IMCH-LOGSYSTEM, "   SPACE
lv_logsystem_not_existing  TYPE IMCH, "   
lv_i_flg_own_logsystem  TYPE IMIS_TYPE_FLG, "   'X'
lv_i_flg_hier  TYPE IMIS_TYPE_FLG, "   ' '
lv_i_flg_data  TYPE IMIS_TYPE_FLG. "   ' '

  CALL FUNCTION 'AIC0_HEADER_CREATE'  "
    EXPORTING
         I_COMPR_VRSN = lv_i_compr_vrsn
         I_INV_PROG = lv_i_inv_prog
         I_APPR_YEAR = lv_i_appr_year
         I_LOGSYSTEM = lv_i_logsystem
         I_FLG_OWN_LOGSYSTEM = lv_i_flg_own_logsystem
         I_FLG_HIER = lv_i_flg_hier
         I_FLG_DATA = lv_i_flg_data
    IMPORTING
         ES_IMCH = lv_es_imch
    EXCEPTIONS
        FLAG_ERROR = 1
        INPUT_MISSING = 2
        OWN_LOGSYSTEM_NOT_ALLOWED = 3
        LOGSYSTEM_NOT_EXISTING = 4
. " AIC0_HEADER_CREATE




ABAP code using 7.40 inline data declarations to call FM AIC0_HEADER_CREATE

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 COMPR_VRSN FROM IMCH INTO @DATA(ld_i_compr_vrsn).
 
"SELECT single INV_PROG FROM IMCH INTO @DATA(ld_i_inv_prog).
 
 
"SELECT single APPR_YEAR FROM IMCH INTO @DATA(ld_i_appr_year).
 
 
"SELECT single LOGSYSTEM FROM IMCH INTO @DATA(ld_i_logsystem).
DATA(ld_i_logsystem) = ' '.
 
 
DATA(ld_i_flg_own_logsystem) = 'X'.
 
DATA(ld_i_flg_hier) = ' '.
 
DATA(ld_i_flg_data) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!