SAP CIF_IMODEL_SAVE Function Module for NOTRANSL: Speichert Daten eines Integrationsmodells
CIF_IMODEL_SAVE is a standard cif imodel save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Speichert Daten eines Integrationsmodells 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 cif imodel save FM, simply by entering the name CIF_IMODEL_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMOD
Program Name: SAPLCMOD
Main Program: SAPLCMOD
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CIF_IMODEL_SAVE 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 'CIF_IMODEL_SAVE'"NOTRANSL: Speichert Daten eines Integrationsmodells.
EXPORTING
* IV_ATPCS = "Generic Type
IV_ACTIVE = "Flag, if Entry Active
* IV_DELETE_OLDVERSIONS = "Generic Type
IS_CIF_IMODK = "Key for CIF_IMOD
TABLES
* IT_MATWRK_KEY = "Help structure for mass access to material
* IT_PO_KEY = "Structure for CIF_IMPO Keys
* IT_PLO_KEY = "Structure for CIF_IMPLO Keys
* IT_SLS_KEY = "Structure for CIF_IMSLS Keys
* IT_RSV_KEY = "Structure for CIF_IMRSV Keys
* IT_PCM_KEY = "Structure for CIF_IMPCM Keys
* IT_ORD_KEY = "Structure for CIF_IMORD Keys
* IT_GSTRU_KEY = "Structure for CIF_IMGST Table Keys
* IT_KOSCH_KEY = "Structure for CIF_IMKSC Table Keys
* IT_ATP_KEY = "Help structure for mass access to material
* IT_CHAR_KEY = "Reference Structure for Class/Characteristics Combinations
* IT_PPM_KEY = "Internal Key for PPM Mapping
* IT_KEY_GENERIC = "Generic Structure for Filter Object Keys
* IT_RES_KEY = "Structure for table with capacities
* IT_PLANT_KEY = "Transfer structure for determining plant keys
* IT_CUS_KEY = "Transfer structure for determining customer keys
* IT_VEN_KEY = "Transfer structure for determining vendor keys
* IT_STOCK_KEY = "List with Keys for APO Stock Selection
* IT_MSL_KEY = "Structure for Keys for CIF_IMCOV
* IT_PIR_KEY = "Structure for CIF_IMPIR Keys
EXCEPTIONS
ERROR_MODEL_SAVE = 1
IMPORTING Parameters details for CIF_IMODEL_SAVE
IV_ATPCS - Generic Type
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ACTIVE - Flag, if Entry Active
Data type: CIF_IMOD-ACTIVEOptional: No
Call by Reference: No ( called with pass by value option)
IV_DELETE_OLDVERSIONS - Generic Type
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IS_CIF_IMODK - Key for CIF_IMOD
Data type: CIF_IMODKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CIF_IMODEL_SAVE
IT_MATWRK_KEY - Help structure for mass access to material
Data type: PRE01Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_PO_KEY - Structure for CIF_IMPO Keys
Data type: CIF_IMPOKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PLO_KEY - Structure for CIF_IMPLO Keys
Data type: CIF_IMPLOKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_SLS_KEY - Structure for CIF_IMSLS Keys
Data type: CIF_IMSLSKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_RSV_KEY - Structure for CIF_IMRSV Keys
Data type: CIF_IMRSVKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PCM_KEY - Structure for CIF_IMPCM Keys
Data type: CIF_IMPCMKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ORD_KEY - Structure for CIF_IMORD Keys
Data type: CIF_IMORDKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GSTRU_KEY - Structure for CIF_IMGST Table Keys
Data type: CIF_IMGSTKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_KOSCH_KEY - Structure for CIF_IMKSC Table Keys
Data type: CIF_IMKSCKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ATP_KEY - Help structure for mass access to material
Data type: PRE01Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_CHAR_KEY - Reference Structure for Class/Characteristics Combinations
Data type: CIF_CLCHAROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PPM_KEY - Internal Key for PPM Mapping
Data type: PPM_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_KEY_GENERIC - Generic Structure for Filter Object Keys
Data type: CIF_GENKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_RES_KEY - Structure for table with capacities
Data type: KAPA_OBJOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PLANT_KEY - Transfer structure for determining plant keys
Data type: WERK01Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_CUS_KEY - Transfer structure for determining customer keys
Data type: KUND01Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_VEN_KEY - Transfer structure for determining vendor keys
Data type: LIEF01Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_STOCK_KEY - List with Keys for APO Stock Selection
Data type: MBSTOCKKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_MSL_KEY - Structure for Keys for CIF_IMCOV
Data type: CIF_IMMSLKOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PIR_KEY - Structure for CIF_IMPIR Keys
Data type: CIF_IMPIRKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_MODEL_SAVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CIF_IMODEL_SAVE 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_iv_atpcs | TYPE C, " | |||
lt_it_matwrk_key | TYPE STANDARD TABLE OF PRE01, " | |||
lv_error_model_save | TYPE PRE01, " | |||
lt_it_po_key | TYPE STANDARD TABLE OF CIF_IMPOK, " | |||
lt_it_plo_key | TYPE STANDARD TABLE OF CIF_IMPLOK, " | |||
lt_it_sls_key | TYPE STANDARD TABLE OF CIF_IMSLSK, " | |||
lt_it_rsv_key | TYPE STANDARD TABLE OF CIF_IMRSVK, " | |||
lt_it_pcm_key | TYPE STANDARD TABLE OF CIF_IMPCMK, " | |||
lt_it_ord_key | TYPE STANDARD TABLE OF CIF_IMORDK, " | |||
lt_it_gstru_key | TYPE STANDARD TABLE OF CIF_IMGSTK, " | |||
lt_it_kosch_key | TYPE STANDARD TABLE OF CIF_IMKSCK, " | |||
lt_it_atp_key | TYPE STANDARD TABLE OF PRE01, " | |||
lt_it_char_key | TYPE STANDARD TABLE OF CIF_CLCHAR, " | |||
lv_iv_active | TYPE CIF_IMOD-ACTIVE, " | |||
lt_it_ppm_key | TYPE STANDARD TABLE OF PPM_KEY, " | |||
lt_it_key_generic | TYPE STANDARD TABLE OF CIF_GENKEY, " | |||
lt_it_res_key | TYPE STANDARD TABLE OF KAPA_OBJ, " | |||
lv_iv_delete_oldversions | TYPE C, " | |||
lv_is_cif_imodk | TYPE CIF_IMODK, " | |||
lt_it_plant_key | TYPE STANDARD TABLE OF WERK01, " | |||
lt_it_cus_key | TYPE STANDARD TABLE OF KUND01, " | |||
lt_it_ven_key | TYPE STANDARD TABLE OF LIEF01, " | |||
lt_it_stock_key | TYPE STANDARD TABLE OF MBSTOCKKEY, " | |||
lt_it_msl_key | TYPE STANDARD TABLE OF CIF_IMMSLK, " | |||
lt_it_pir_key | TYPE STANDARD TABLE OF CIF_IMPIRK. " |
  CALL FUNCTION 'CIF_IMODEL_SAVE' "NOTRANSL: Speichert Daten eines Integrationsmodells |
EXPORTING | ||
IV_ATPCS | = lv_iv_atpcs | |
IV_ACTIVE | = lv_iv_active | |
IV_DELETE_OLDVERSIONS | = lv_iv_delete_oldversions | |
IS_CIF_IMODK | = lv_is_cif_imodk | |
TABLES | ||
IT_MATWRK_KEY | = lt_it_matwrk_key | |
IT_PO_KEY | = lt_it_po_key | |
IT_PLO_KEY | = lt_it_plo_key | |
IT_SLS_KEY | = lt_it_sls_key | |
IT_RSV_KEY | = lt_it_rsv_key | |
IT_PCM_KEY | = lt_it_pcm_key | |
IT_ORD_KEY | = lt_it_ord_key | |
IT_GSTRU_KEY | = lt_it_gstru_key | |
IT_KOSCH_KEY | = lt_it_kosch_key | |
IT_ATP_KEY | = lt_it_atp_key | |
IT_CHAR_KEY | = lt_it_char_key | |
IT_PPM_KEY | = lt_it_ppm_key | |
IT_KEY_GENERIC | = lt_it_key_generic | |
IT_RES_KEY | = lt_it_res_key | |
IT_PLANT_KEY | = lt_it_plant_key | |
IT_CUS_KEY | = lt_it_cus_key | |
IT_VEN_KEY | = lt_it_ven_key | |
IT_STOCK_KEY | = lt_it_stock_key | |
IT_MSL_KEY | = lt_it_msl_key | |
IT_PIR_KEY | = lt_it_pir_key | |
EXCEPTIONS | ||
ERROR_MODEL_SAVE = 1 | ||
. " CIF_IMODEL_SAVE |
ABAP code using 7.40 inline data declarations to call FM CIF_IMODEL_SAVE
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 ACTIVE FROM CIF_IMOD INTO @DATA(ld_iv_active). | ||||
Search for further information about these or an SAP related objects