SAP BAPI_UTILINSTALLATION_CHANFACT Function Module for BAPI_UTILINSTALLATION_CHANFACT: Change Installation Facts
BAPI_UTILINSTALLATION_CHANFACT is a standard bapi utilinstallation chanfact SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI_UTILINSTALLATION_CHANFACT: Change Installation Facts 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 bapi utilinstallation chanfact FM, simply by entering the name BAPI_UTILINSTALLATION_CHANFACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: UTILINSTALLATION
Program Name: SAPLUTILINSTALLATION
Main Program: SAPLUTILINSTALLATION
Appliation area: E
Release date: 31-Jul-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_UTILINSTALLATION_CHANFACT 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 'BAPI_UTILINSTALLATION_CHANFACT'"BAPI_UTILINSTALLATION_CHANFACT: Change Installation Facts.
EXPORTING
NUMBER = "Installation
* UPDFORCE = ' ' "Overwriting Existing Entries is Permitted
* AUTO_DELETE = ' ' "Delete Operands After a Certain Date (Installation Facts)
IMPORTING
RETURN = "Structure for Error Messages
OVERWRITE = "Overlapping with Existing Entries
TABLES
* AMOUNTTABLE = "Fact Table from Operand Category AMOUNT
* USERDEFTABLE = "Fact Table for Operand Category USERDEF
* TPRICETABLE = "Fact Table for Operand Category TPRICE
* SPRICETABLE = "Fact Table for Operand Category SPRICE
* LPRICETABLE = "Fact Table for Operand Category LPRICE
* ADISCABSTABLE = "Fact Table from Operand Category ADISCABS
* ADISCPERTABLE = "Fact Table from Operand Category ADISCPER
* DDISCNTTABLE = "Fact Table from Operand Category DDISCNT
* PDISCNTTABLE = "Fact Table from Operand Category PDISCNT
* QDISCNTTABLE = "Fact Table from Operand Category QDISCNT
* SEASONTABLE = "Fact Table for Operand Category SEASON
* QUANTTABLE = "Fact Table for Operand Category QUANT
* DEMANDTABLE = "Fact Table from Operand Category DEMAND
* TQUANTTABLE = "Fact Table for Operand Category TQUANT
* FACTORTABLE = "Fact Table for Operand Category FACTOR
* FLAGTABLE = "Fact Table for Operand Category FLAG
* INTEGERTABLE = "Fact Table for Operand Category INTEGER
* RATETYPETABLE = "Fact Table for Operand Category RATETYPE
* QPRICETABLE = "Fact Table for Operand Category QPRICE
IMPORTING Parameters details for BAPI_UTILINSTALLATION_CHANFACT
NUMBER - Installation
Data type: BAPI_INSTLN_PARA-NUMBEROptional: No
Call by Reference: No ( called with pass by value option)
UPDFORCE - Overwriting Existing Entries is Permitted
Data type: BAPI_INSTLN_PARA-UPDFORCEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTO_DELETE - Delete Operands After a Certain Date (Installation Facts)
Data type: BAPI_INSTLN_PARA-AUTO_DELETEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_UTILINSTALLATION_CHANFACT
RETURN - Structure for Error Messages
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
OVERWRITE - Overlapping with Existing Entries
Data type: BAPI_INSTLN_PARA-OVERWRITEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_UTILINSTALLATION_CHANFACT
AMOUNTTABLE - Fact Table from Operand Category AMOUNT
Data type: BAPI_INSTLN_AMOUNTOptional: Yes
Call by Reference: No ( called with pass by value option)
USERDEFTABLE - Fact Table for Operand Category USERDEF
Data type: BAPI_INSTLN_USERDEFOptional: Yes
Call by Reference: Yes
TPRICETABLE - Fact Table for Operand Category TPRICE
Data type: BAPI_INSTLN_TPRICEOptional: Yes
Call by Reference: Yes
SPRICETABLE - Fact Table for Operand Category SPRICE
Data type: BAPI_INSTLN_SPRICEOptional: Yes
Call by Reference: Yes
LPRICETABLE - Fact Table for Operand Category LPRICE
Data type: BAPI_INSTLN_LPRICEOptional: Yes
Call by Reference: Yes
ADISCABSTABLE - Fact Table from Operand Category ADISCABS
Data type: BAPI_INSTLN_DISCOptional: Yes
Call by Reference: Yes
ADISCPERTABLE - Fact Table from Operand Category ADISCPER
Data type: BAPI_INSTLN_DISCOptional: Yes
Call by Reference: Yes
DDISCNTTABLE - Fact Table from Operand Category DDISCNT
Data type: BAPI_INSTLN_DISCOptional: Yes
Call by Reference: Yes
PDISCNTTABLE - Fact Table from Operand Category PDISCNT
Data type: BAPI_INSTLN_DISCOptional: Yes
Call by Reference: Yes
QDISCNTTABLE - Fact Table from Operand Category QDISCNT
Data type: BAPI_INSTLN_DISCOptional: Yes
Call by Reference: Yes
SEASONTABLE - Fact Table for Operand Category SEASON
Data type: BAPI_INSTLN_SEASONOptional: Yes
Call by Reference: Yes
QUANTTABLE - Fact Table for Operand Category QUANT
Data type: BAPI_INSTLN_QUANTOptional: Yes
Call by Reference: No ( called with pass by value option)
DEMANDTABLE - Fact Table from Operand Category DEMAND
Data type: BAPI_INSTLN_DEMANDOptional: Yes
Call by Reference: No ( called with pass by value option)
TQUANTTABLE - Fact Table for Operand Category TQUANT
Data type: BAPI_INSTLN_TQUANTOptional: Yes
Call by Reference: No ( called with pass by value option)
FACTORTABLE - Fact Table for Operand Category FACTOR
Data type: BAPI_INSTLN_FACTOROptional: Yes
Call by Reference: No ( called with pass by value option)
FLAGTABLE - Fact Table for Operand Category FLAG
Data type: BAPI_INSTLN_FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
INTEGERTABLE - Fact Table for Operand Category INTEGER
Data type: BAPI_INSTLN_INTEGEROptional: Yes
Call by Reference: No ( called with pass by value option)
RATETYPETABLE - Fact Table for Operand Category RATETYPE
Data type: BAPI_INSTLN_RATETYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
QPRICETABLE - Fact Table for Operand Category QPRICE
Data type: BAPI_INSTLN_QPRICEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_UTILINSTALLATION_CHANFACT 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_number | TYPE BAPI_INSTLN_PARA-NUMBER, " | |||
| lv_return | TYPE BAPIRETURN1, " | |||
| lt_amounttable | TYPE STANDARD TABLE OF BAPI_INSTLN_AMOUNT, " | |||
| lt_userdeftable | TYPE STANDARD TABLE OF BAPI_INSTLN_USERDEF, " | |||
| lt_tpricetable | TYPE STANDARD TABLE OF BAPI_INSTLN_TPRICE, " | |||
| lt_spricetable | TYPE STANDARD TABLE OF BAPI_INSTLN_SPRICE, " | |||
| lt_lpricetable | TYPE STANDARD TABLE OF BAPI_INSTLN_LPRICE, " | |||
| lt_adiscabstable | TYPE STANDARD TABLE OF BAPI_INSTLN_DISC, " | |||
| lt_adiscpertable | TYPE STANDARD TABLE OF BAPI_INSTLN_DISC, " | |||
| lt_ddiscnttable | TYPE STANDARD TABLE OF BAPI_INSTLN_DISC, " | |||
| lt_pdiscnttable | TYPE STANDARD TABLE OF BAPI_INSTLN_DISC, " | |||
| lt_qdiscnttable | TYPE STANDARD TABLE OF BAPI_INSTLN_DISC, " | |||
| lt_seasontable | TYPE STANDARD TABLE OF BAPI_INSTLN_SEASON, " | |||
| lv_updforce | TYPE BAPI_INSTLN_PARA-UPDFORCE, " SPACE | |||
| lv_overwrite | TYPE BAPI_INSTLN_PARA-OVERWRITE, " | |||
| lt_quanttable | TYPE STANDARD TABLE OF BAPI_INSTLN_QUANT, " | |||
| lv_auto_delete | TYPE BAPI_INSTLN_PARA-AUTO_DELETE, " SPACE | |||
| lt_demandtable | TYPE STANDARD TABLE OF BAPI_INSTLN_DEMAND, " | |||
| lt_tquanttable | TYPE STANDARD TABLE OF BAPI_INSTLN_TQUANT, " | |||
| lt_factortable | TYPE STANDARD TABLE OF BAPI_INSTLN_FACTOR, " | |||
| lt_flagtable | TYPE STANDARD TABLE OF BAPI_INSTLN_FLAG, " | |||
| lt_integertable | TYPE STANDARD TABLE OF BAPI_INSTLN_INTEGER, " | |||
| lt_ratetypetable | TYPE STANDARD TABLE OF BAPI_INSTLN_RATETYPE, " | |||
| lt_qpricetable | TYPE STANDARD TABLE OF BAPI_INSTLN_QPRICE. " |
|   CALL FUNCTION 'BAPI_UTILINSTALLATION_CHANFACT' "BAPI_UTILINSTALLATION_CHANFACT: Change Installation Facts |
| EXPORTING | ||
| NUMBER | = lv_number | |
| UPDFORCE | = lv_updforce | |
| AUTO_DELETE | = lv_auto_delete | |
| IMPORTING | ||
| RETURN | = lv_return | |
| OVERWRITE | = lv_overwrite | |
| TABLES | ||
| AMOUNTTABLE | = lt_amounttable | |
| USERDEFTABLE | = lt_userdeftable | |
| TPRICETABLE | = lt_tpricetable | |
| SPRICETABLE | = lt_spricetable | |
| LPRICETABLE | = lt_lpricetable | |
| ADISCABSTABLE | = lt_adiscabstable | |
| ADISCPERTABLE | = lt_adiscpertable | |
| DDISCNTTABLE | = lt_ddiscnttable | |
| PDISCNTTABLE | = lt_pdiscnttable | |
| QDISCNTTABLE | = lt_qdiscnttable | |
| SEASONTABLE | = lt_seasontable | |
| QUANTTABLE | = lt_quanttable | |
| DEMANDTABLE | = lt_demandtable | |
| TQUANTTABLE | = lt_tquanttable | |
| FACTORTABLE | = lt_factortable | |
| FLAGTABLE | = lt_flagtable | |
| INTEGERTABLE | = lt_integertable | |
| RATETYPETABLE | = lt_ratetypetable | |
| QPRICETABLE | = lt_qpricetable | |
| . " BAPI_UTILINSTALLATION_CHANFACT | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_UTILINSTALLATION_CHANFACT
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 NUMBER FROM BAPI_INSTLN_PARA INTO @DATA(ld_number). | ||||
| "SELECT single UPDFORCE FROM BAPI_INSTLN_PARA INTO @DATA(ld_updforce). | ||||
| DATA(ld_updforce) | = ' '. | |||
| "SELECT single OVERWRITE FROM BAPI_INSTLN_PARA INTO @DATA(ld_overwrite). | ||||
| "SELECT single AUTO_DELETE FROM BAPI_INSTLN_PARA INTO @DATA(ld_auto_delete). | ||||
| DATA(ld_auto_delete) | = ' '. | |||
Search for further information about these or an SAP related objects