Skip to end of metadata
Go to start of metadata

Problem

You are using one of the BAPIs BAPI_BUS1077_CREATE, BAPI_BUS1077_CHANGE or BAPI_BUS1077_DELETE in a custom program to make updates in the specification data, however the update is not successful and errors occur, or the data is not saved, or orphan entries are created, etc...

Solution

The BAPI should be used in customer own programs according to the following schema:


   CALL FUNCTION 'BAPI_BUS1077_CREATE/CHANGE/DELETE'
      EXPORTING
        ...
        FLG_BUFFER = ' ' "default
        ...
      ....
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.
    CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER'
      EXPORTING
        FLG_LUW_CLOSE_FOR_BAPI = 'X'
      TABLES
        RETURN = ....
    CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER'
      TABLES
        RETURN = ....


(Attributes PRIMARYKEY, FOREIGNKEY, FLGPRIMKEY and FLGFRGNKEY must be specified correctly at CREATE case (see "Solution" section in note 2120309). If you want to delete an inheritance relation and all inherited data as well by function module BAPI_BUS1077_DELETE, you must assign value 'X' to parameter FLG_INHED_DATA_DEL.)

Furthermore, see example programs RC1_1077_BAPI_EXAMPLE_* and SAP Note 1111161.

1726346 - Example program for specification BAPIs issues errors

1492413 - Example programs for specification BAPIs with change no.

1247216 - Specification BAPI/API and inheritance: Important notes

1111161 - FAQs when you are working with specification BAPIs

1074977 - Example programs for specification BAPIs

1071008 - Sample code for AT_SAVE_CHECK of BAdI EHSS_SPEC_CHECKS

968778 - BAdI EHSS_SPEC_CHECKS and enhancements C1F20001, C1F20100

862751 - SAP enhancement C1070001

732628 - Blcks remain actve for unncssrly lng time with specfctn BAPI

  • No labels