cancel
Showing results for 
Search instead for 
Did you mean: 

Error executing CCAP_ECN_CREATE BAPI from SAP MII

0 Kudos
419

Im trying to generate a Change Number from MII using this BAPI but I get this error when executing: [ERROR] Unable to make RFC call Exception: [ERROR]


My Request:

<CCAP_ECN_CREATE> <INPUT> <CHANGE_HEADER> <CHANGE_NO>ECP18/02/022</CHANGE_NO> <STATUS>1</STATUS> <AUTH_GROUP/> <VALID_FROM>2018-02-22T08:19:58</VALID_FROM> <DESCRIPT>Test</DESCRIPT> <REASON_CHG/> <DELETION_MARK/> <INDATE_RULE/> <OUTDATE_RULE/> <FUNCTION/> <CHANGE_LEADER/> <EFFECTIVITY_TYPE/> <OVERRIDING_MARK/> <RANK/> <RELEASE_KEY/> <STATUS_PROFILE/> <TECH_REL/> <BASIC_CHANGE/> </CHANGE_HEADER> <FL_ALE/> <FL_COMMIT_AND_WAIT/> <FL_NO_COMMIT_WORK/> <OBJECT_BOM> <ACTIVE>X</ACTIVE> <LOCKED/> <OBJ_REQU>X</OBJ_REQU> <MGTREC_GEN>X</MGTREC_GEN> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM> <OBJECT_BOM_CUS> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_CUS> <OBJECT_BOM_DOC> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_DOC> <OBJECT_BOM_EQUI> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_EQUI> <OBJECT_BOM_LOC> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_LOC> <OBJECT_BOM_MAT> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_MAT> <OBJECT_BOM_PSP> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_PSP> <OBJECT_BOM_STD> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_BOM_STD> <OBJECT_CHAR> <ACTIVE>X</ACTIVE> <LOCKED/> <OBJ_REQU>X</OBJ_REQU> <MGTREC_GEN>X</MGTREC_GEN> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_CHAR> <OBJECT_CLS> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_CLS> <OBJECT_CLS_MAINT> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_CLS_MAINT> <OBJECT_CONF_PROF> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_CONF_PROF> <OBJECT_DEP> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_DEP> <OBJECT_DOC> <ACTIVE>X</ACTIVE> <LOCKED/> <OBJ_REQU>X</OBJ_REQU> <MGTREC_GEN>X</MGTREC_GEN> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_DOC> <OBJECT_HAZMAT> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_HAZMAT> <OBJECT_MAT> <ACTIVE>X</ACTIVE> <LOCKED/> <OBJ_REQU>X</OBJ_REQU> <MGTREC_GEN>X</MGTREC_GEN> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_MAT> <OBJECT_O75> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O75> <OBJECT_O76> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O76> <OBJECT_O77> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O77> <OBJECT_O78> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O78> <OBJECT_O79> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O79> <OBJECT_O80> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O80> <OBJECT_O81> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O81> <OBJECT_O82> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O82> <OBJECT_O83> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O83> <OBJECT_O84> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O84> <OBJECT_O85> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O85> <OBJECT_O86> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O86> <OBJECT_O87> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O87> <OBJECT_O88> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O88> <OBJECT_O89> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O89> <OBJECT_O90> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O90> <OBJECT_O91> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O91> <OBJECT_O92> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O92> <OBJECT_O93> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O93> <OBJECT_O94> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O94> <OBJECT_O95> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O95> <OBJECT_O96> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O96> <OBJECT_O97> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O97> <OBJECT_O98> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O98> <OBJECT_O99> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_O99> <OBJECT_PHRASE> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_PHRASE> <OBJECT_PVS> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_PVS> <OBJECT_PVS_ALT> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_PVS_ALT> <OBJECT_PVS_REL> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_PVS_REL> <OBJECT_PVS_VAR> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_PVS_VAR> <OBJECT_SUBSTANCE> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_SUBSTANCE> <OBJECT_TLIST> <ACTIVE>X</ACTIVE> <LOCKED/> <OBJ_REQU>X</OBJ_REQU> <MGTREC_GEN>X</MGTREC_GEN> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST> <OBJECT_TLIST_2> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_2> <OBJECT_TLIST_A> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_A> <OBJECT_TLIST_E> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_E> <OBJECT_TLIST_M> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_M> <OBJECT_TLIST_N> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_N> <OBJECT_TLIST_Q> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_Q> <OBJECT_TLIST_R> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_R> <OBJECT_TLIST_S> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_S> <OBJECT_TLIST_T> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_TLIST_T> <OBJECT_VALID_MATVERS> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_VALID_MATVERS> <OBJECT_VAR_TAB> <ACTIVE/> <LOCKED/> <OBJ_REQU/> <MGTREC_GEN/> <GEN_NEW/> <GEN_DIALOG/> </OBJECT_VAR_TAB> <VALUE_ASSIGN> <VALID_FROM/> <VALID_TO/> <DATE_MARK/> <MATERIAL/> <SERIALNR_LOW/> <SERIALNR_HIGH/> <PRODUCT/> <CLASS/> <CLASSTY/> <STARTUP/> <PLANT/> <LOCNO/> <SERNR_OI/> <FL_DELETE/> </VALUE_ASSIGN> </INPUT> <TABLES> <ALT_DATES> <item> <ALT_DATE/> <VALID_FROM/> <FL_DELETE/> </item> </ALT_DATES> <EFFECTIVITY> <item> <VALID_FROM/> <VALID_TO/> <DATE_MARK/> <MATERIAL/> <SERIALNR_LOW/> <SERIALNR_HIGH/> <PRODUCT/> <CLASS/> <CLASSTY/> <STARTUP/> <PLANT/> <LOCNO/> <SERNR_OI/> <FL_DELETE/> </item> </EFFECTIVITY> <OBJMGREC> <item> <ALT_DATE/> <CHG_OBJTYP/> <BOM_CAT/> <BOM_STD_OBJECT/> <BOM_USAGE/> <CHGTYPEOBJ/> <DESCR_OBJ/> <DOC_TYPE/> <DOC_NUMBER/> <DOC_VERS/> <DOC_PART/> <EQUIPMENT/> <FUNC_LOC/> <MATERIAL/> <PLANT/> <PSP_ELEMENT/> <PVS_GUID/> <PVS_TYPE/> <PVS_NODE/> <PVS_CLASS_NUMBER/> <PVS_CLASS_TYPE/> <PVS_VARIANT/> <SD_ORDER/> <SD_ORDER_I/> <TEXTKEY/> <TLIST_TYPE/> <TLIST_GRP/> <OBJ_CHGLOCK/> <STATUS_PROF_OBJ/> <FL_DELETE/> </item> </OBJMGREC> <TEXTHEADER> <item> <TEXTKEY/> <TDNAME/> <TDID/> <TDSPRAS/> </item> </TEXTHEADER> <TEXTLINES> <item> <TEXTKEY/> <TDFORMAT/> <TDLINE/> </item> </TEXTLINES> </TABLES> </CCAP_ECN_CREATE>


Please assist.

0 Kudos

My MII version: 15.1 SP3 Patch 0 (Nov 7, 2016)

0 Kudos

Same error comes up even before I map any values.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185280
Active Contributor
0 Kudos

Could be a couple of things you can look at.

According to the docs linked below you have to call an init bapi, probably in the same session as your call to CCAP_ECN_CREATE.

CALO_INIT_API

If you have that sorted out then pay attention to the formatting of your inputs. It really depends on the specific bapi and can vary a bit but things like your status value can often require a leading zero like '01' and your date value may need to be in specific format etc.

Regards,
Christian

0 Kudos

Thanks Christian,

I tried both your suggestions and I still get the same error. If I try creating an existing ECP Number I get the message back that it already exists but even that comes back as an error:

  • [ERROR] Unable to make RFC call Exception: [CHANGE_NO_ALREADY_EXISTS]