Fonction SAP BAPI_0038_CHANGE - Change a Funded Program

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FMAREA FIKRS C 4 Financial Management Area
FMMEASURE BAPI_0038_DATA u 39 FMMEASURE complient structure for BAPIs ( BOR: BUS0038 )
FMMEASURE_NEW BAPI_0038_DATA u 39 FMMEASURE complient structure for BAPIs ( BOR: BUS0038 )
MEASURE FM_MEASURE C 24 Program in Funds Management
TESTRUN BAPI_0038_FIELDS-TESTRUN C 1 'X' X Switch to Simulation Session for Write BAPIs

Paramètre Reférence Long. Facultatif Description
EXTENSION_IN BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
EXTENSION_OUT BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
FMMEASURET BAPI_0038_TEXT 73 Funded Program text structure
FMMEASURET_NEW BAPI_0038_TEXT 73 Funded Program text structure
RETURN BAPIRET2 548 Return Parameter

Functionality
You can use this method to change funded programs.

Example

Notes

  • The authorization for changing a funded program is checked.

  • Use the TESTRUN parameter for testing.
  • Customer Enhancements
    INCLUDE BAPI_CUST_INOUT OBJECT DOKU ID TX
    INCLUDE BAPI_CUST2 OBJECT DOKU ID TX

    Return Messages
    INCLUDE BAPI_RET OBJECT DOKU ID TX

    Hint
    Change by comparison is supported in this parameter. This means that twostructures for one funded program are passed as parameters. Onedescribes the existing function program (FMMEASURE), the other(FMMEASURE_NEW) describes how the funded program should look after theupdate.
    Basically the BAPI compares the two given structures and marks thefields that have not as 'not relevant'. This reduces the amount of datathat needs to be transported.
    If you always want to update the whole program, you do not need to usethe structure FMMEASURE and the text table FMMEASURET.
    To change an existing funded program, you should read it first using theBAPI_0038_GETDETAIL method and fill the FMMEASURE parameter with theresult of this method. Since the FMMEASURE parameter of the methodBAPI_0038_GETDETAIL includes other structures also, you can assign bothparameters like this:
    BAPI_0038_CHANGE Parameter Result parameter fromBAPI_0038_GETDETAIL
    FMMEASURE = FMMEASURE-DETAIL
    If you do not want to read the program first, there is no need to usethe FMMEASURE and FMMEASURET parameters.
    INCLUDE BAPI_0038_FMAREA OBJECT DOKU ID TX
    INCLUDE BAPI_0038_DATA OBJECT DOKU ID TX

    Note
    Since the BAPI uses the change by comparison approach, this structureshould be filled with the funded program already on the database
    INCLUDE BAPI_0038_DATA OBJECT DOKU ID TX

    Note
    Since the BAPI uses the change by comparison approach, this structureshould be filled with the updated funded program.
    INCLUDE BAPI_0038_MEASURE OBJECT DOKU ID TX
    INCLUDE BAPI_0038_TESTRUN OBJECT DOKU ID TX
    INCLUDE BAPI_0038_EXTENSIONIN OBJECT DOKU ID TX
    INCLUDE BAPI_0038_EXTENSIONOUT OBJECT DOKU ID TX

    Note
    Since the BAPI uses the change by comparison approach, this table shouldbe filled with the text entries of the updated funded program
    INCLUDE BAPI_0038_TEXT OBJECT DOKU ID TX

    Note
    Since the BAPI uses the change by comparison approach, this table shouldbe filled with the text entries of the funded program already on thedatabase.
    INCLUDE BAPI_0038_TEXT OBJECT DOKU ID TX
    INCLUDE BAPI_0038_CHANGE_RETURN OBJECT DOKU ID TX