Fonction SAP BAPI_EXPENDITUREPROGDEF_CHANGE - Change Inv. Program Definition

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
APPROVALYEAR BAPIPROGID-APPROVALYEAR N 4 Approval Year of Program
LANGUAGE BAPIPROGAUX-LANGU C 1 X Logon Language in SAP Format
LANGUAGE_ISO BAPIPROGAUX-LANGU_ISO C 2 X Logon Language in ISO Format
PROGDEF_NEW BAPIPROGDEFNEW u 68 Details of Program Definition - New
PROGDEF_OLD BAPIPROGDEFOLD u 68 Details of Program Definition - Old
PROGRAM BAPIPROGID-PROGRAM C 8 Program Name
TEST_RUN BAPIPROGAUX-TEST_RUN C 1 ' ' X Test Run before Changes

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Messages

Function
Using this method, you can change the master data of the programdefinition entered. The program type and program ID cannot be changed.
The system takes into account only those fields that have changedentries, that is you only have to enter the fields that are to bechanged. Other fields can remain empty.
Before the change to the program definition is made, there is anautomatic check of the consistency of the data in the local and externalsystems.
Set the TEST_RUNindicator to have the system check if changing the data is possiblewithout errors. You receive a list showing any errors. In this way, youavoid the situation in which multiple errors cause the change of data tobe interruped each time. The change itself is not made when thisindicator is set.

Notes
The program definition consists of thePROGRAM andAPPROVALYEARparameters.
The data to be changed is transferred using both thePROGDEF_OLD andPROGDEF_NEW structures.PROGDEF_OLD contains the unchanged data, as it was in the externalsystem before the change. The PROGDEF_NEW structure contains the changeddata.
During the consistency check, the system compares the unchanged data ofthe fields to be changed in the PROGDEF_OLD structure with thecorresponding data in the local system. The system makes the changesonly if the data is the same.

Additional information
For more information, refer to the SAP Library IM under InvestmentPrograms.
INCLUDE IM_APPROVALYEAR OBJECT DOKU ID TX
INCLUDE IM_LANGUAGE OBJECT DOKU ID TX
INCLUDE IM_LANGUAGE_ISO OBJECT DOKU ID TX
INCLUDE IM_PROGDEF OBJECT DOKU ID TX
INCLUDE IM_PROGDEF OBJECT DOKU ID TX
INCLUDE IM_PROGRAM OBJECT DOKU ID TX
INCLUDE IM_TEST_RUN OBJECT DOKU ID TX

Meaning
The follwing list contains the return messages from calling the method(TYPE.ID.NUMBER).

Value area
INCLUDE IM_AP003 OBJECT DOKU ID TX
INCLUDE IM_AP015 OBJECT DOKU ID TX
INCLUDE IM_AP017 OBJECT DOKU ID TX(PROGDEF_NEW-RESPONSIBLE field)
INCLUDE IM_AP120 OBJECT DOKU ID TX
INCLUDE IM_AP124 OBJECT DOKU ID TX(PROGDEF_NEW-BUDG_CATEG_INDIC field)
INCLUDE IM_AP152 OBJECT DOKU ID TX(PROGDEF-YEAR_DIST_INDIC, PROGDEF-BUDG_CATEG_INDIC fields)
INCLUDE IM_APBAPI013 OBJECT DOKU ID TX(PROGDEF_NEW-CURRENCY or PROGDEF_NEW-CURRENCY_ISO fields)
INCLUDE IM_APBAPI014 OBJECT DOKU ID TX
INCLUDE IM_APBAPI031 OBJECT DOKU ID TX
INCLUDE IM_APBAPI032 OBJECT DOKU ID TX(PROGDEF_NEW-CURRENCY or PROGDEF_NEW-CURRENCY_ISO field)
INCLUDE IM_APBAPI033 OBJECT DOKU ID TX(PROGDEF_NEW-BUDG_CATEG_INDIC field)
INCLUDE IM_APBAPI034 OBJECT DOKU ID TX(PROGDEF_NEW-RESPONSIBLE field)
INCLUDE IM_B1882 OBJECT DOKU ID TX(PROGDEF-CURRENCY_ISO field).
INCLUDE IM_B1886 OBJECT DOKU ID TX(LANGUAGE_ISO or PROGDEF-DEF_LANGU_ISO field).
INCLUDE IM_TL080 OBJECT DOKU ID TX(LANGUAGE oder PROGDEF-DEF_LANGU field).