Solution : https://service.sap.com/sap/support/notes/1509009 (SAP Service marketplace login required)
Summary :
In an SAP component for Product Safety under Specification Management, users encounter a program error when using the function modules C1F5_SPECIFICATIONS_MODIFY, C1F2_SUBSTANCES_CREATE, or BAPI_BUS1077_CREATE for modifying identifiers. Specifically, when adding a new identifier sharing the same attributes (identification category, type, language) as an existing one without defining a sort sequence. The system fails to auto-assign this sequence, creating the identifier without it. Solution involves setting the parameter I_FLG_WRNG_IDNT_ORD_0 to 'X', enabling automatic sort sequence assignment. The system will then issue a warning if a duplicate identifier exists. Correction details are provided in the Support Packages listed.
Key words :
function module c1f5_specifications_modify, input parameter i_flg_wrng_idnt_ord_0, terms ehs2005sp19psehs62sp09psehs63sp07psehs64sp08psehs65sp03psc1f2_substances_createbapi_bus1077_create reason, attached correction instructions, system automatically assigns, empty sort sequence, correction instructions, prerequisites reason, system issues, automatically set
Related Notes :
| 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 |
| 838117 | |
| 827093 | Inheritance filter logic ignores future changes |
| 807938 | Inheritance of identifiers cannot be extended |
| 800918 | Rules for API programming with SAPLC1F2, SAPLC1F5 |
| 732628 | Blcks remain actve for unncssrly lng time with specfctn BAPI |
| 699339 | |
| 663941 | Duplicate check for identifiers with long texts |