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...
The BAPI should be used in customer own programs according to the following schema:
(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