Solution : https://service.sap.com/sap/support/notes/1564132 (SAP Service marketplace login required)
Summary :
In customer-specific SAP programs utilizing function modules such as C1F2_SUBSTANCES_READ_WITH_REF, an error may occur where authorization fails when not permitted for class type 100 with respect to C_TCLA_BKA. Initially, an appropriate error CL 051 is triggered, but on subsequent calls, the error fails to reappear. Additionally, modules like C1F5_SPECIFICATIONS_READ might record duplicate error entries in E_ERROR_TAB, compromising data integrity. The issue stems from a coding error, applicable corrections are available in the mentioned Support Packages or via the provided correction instructions.
Key words :
specification managementin customer-specific programs, function modules c1f2_substances_read_with_ref, module correctly issues, c1f5_specifications_delete output records, table parameter e_error_tab, -initial column values, function modules c1f5_specifications_read, attached correction instructions, authorization object c_tcla_bka, error message cl 051
Related Notes :
| 1247216 | Specification BAPI/API and inheritance: Important notes |
| 1122700 | FAQ: Note about EH&S authorizations |
| 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 |
| 800918 | Rules for API programming with SAPLC1F2, SAPLC1F5 |
| 732628 | Blcks remain actve for unncssrly lng time with specfctn BAPI |