SAP Function BAPI_0050_REVERSE - Reverse FM Budgeting Entry document

Parameter Reference Type Length Default Optional Text
DOCUMENTNUMBER BAPI_0050_FIELDS-DOCUMENT C 10 Budget entry document number
DOCUMENTYEAR BAPI_0050_FIELDS-DOC_YEAR N 4 Document year
FMAREA BAPI_0050_FIELDS-FM_AREA C 4 Financial management area
LANGUAGE BAPI_0050_FIELDS-LANGUAGE C 1 X Language
REVERSAL_DATA BAPI_0050_REVERSAL_DATA u 136 Reversal data
TESTRUN BAPI_0050_FIELDS-TESTRUN C 1 'X' X Switch to Simulation Session for Write BAPIs

Parameter Reference Type Length Text
REV_DOCUMENT_NUMBER BAPI_0050_FIELDS-DOCUMENT C 10 Budget entry document number
REV_DOCUMENT_YEAR BAPI_0050_FIELDS-DOC_YEAR N 4 Document year
REV_FM_AREA BAPI_0050_FIELDS-FM_AREA C 4 Financial management area

Parameter Reference Length Optional Text
EXTENSION_IN BAPIPAREX 990 X ExtensionIn
LONG_TEXT BAPI_0050_LONGTEXT 138 X Long text
RETURN BAPIRET2 548 Return messages

Functionality
This method enables you to reverse a budget entry document.

Example

Notes
The following authorization objects are checked with activity 02(change):

  • F_FICB_FKR Financial management area

  • F_FMBU_VER Version and budget category

  • The following authorization objects are checked with activity 10 (post)or activity 09 (prepost), depending on the document status involved:
    ,,F_FMBU_DOC Document type
    ,,F_FMBU_STA Status
    ,,F_FMBU_ACC Account assignment
    INCLUDE BAPI_RET
    INCLUDE BAPI_KEYFIELD
    As the key field name is already used to specify the entry document toreverse, the prefix 'REV' has been added to the parameter name.
    INCLUDE BAPI_KEYFIELD
    As the key field name is already used to specify the entry document toreverse, the prefix 'REV' has been added to the parameter name.
    INCLUDE BAPI_KEYFIELD
    Since the key field name is already used to specify the entry documentyou want to reverse, the prefix 'REV' has been added to the parametername.

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    This parameter allows you to specify the language in which data (longtexts) is transferred.
    For further information, see Language.

    Value range

    Default
    By default, the language will be set to the logon language.

    Description
    The parameter contains header data of the reversal document. It is animport parameter. Header data not proposed in the parameter is takenfrom the original document.
    INCLUDE BAPI_DATAELEMENT
    At least the following data is required:

    • Document status (field DOCSTATE). Status should be set to '1' for a
    • posted document or to '2' for a preposted document.
      • Document date (field DOCDATE)
      • Description
        This parameter is an input parameter.
        INCLUDE BAPI_DATAELEMENT
        For further information, also see Testrun.

        Description
        This parameter is an import parameter. It enables you to defineadditional fields in the object to be created. The table extensionprovided is called BAPI_TE_FMBH.
        INCLUDE BAPI_DATAELEMENT

        Value range

        Description
        This table contains a long text for the entry document. It is an importparameter.
        INCLUDE BAPI_DATAELEMENT

        Value range

        Default
        The text identifier (field TEXT_ID) is not taken into account. The textidentifier for the entry document long text is 'FMED'.

        Description
        INCLUDE BAPI_TABLE

        Value range

        Authorization messages
        TYPE ,,ID ,,NUMBER ,,MESSAGE
        E,,F6,,702,,No authorization for FM area &1 activity &2
        E,,FMKU,,162,,No authorization for FM area &1 doc. type &2activity &3
        E,,FMKU,,163,,No authoriz. for FM area &1 version &2 budgetcat. &4 activity &3
        E,,FMKU,,164,,No authorization for FM area &1 author. group2 activ. 3,,
        E,,F6,,705,,No authoriz. for FM area &1 author. group &2activity &3,,

        Processing messages
        TYPE ,,ID ,,NUMBER ,,MESSAGE
        S,,BAPI,,000,,&1 &2 &3 has been created. Externalreference: &4
        I,,FMBAPI,,001,,Test run process (&1 &2)
        E,,FMBAPI,,004,,Errors occurred. See other messages for detail.
        S,,FMBAPI,,005,,No error. Succesful processing.
        E,,BAPI,,001,,No instance of object type &1 created. Ext.reference: &4

        Other possible messages
        You may see messages from other function modules or programs,especially:

        • customizing messages

        • master data messages

        • consistency checks messages

        • availability control messages