Message type: E = Error
Message class: ACI_API - EXPERIMENTAL, DON'T USE (Messages raised by the ACI's API)
Message number: 021
Message text: XMLNODE accepts only IF_IXML_ELEMENT or IF_IXML_DOCUMENT instances
Valid AST nodes can only correspond, in the XML DOM, to instances of the
IF_IXML_ELEMENT or IF_IXML_DOCUMENT interfaces. This is why no other
values can be passed to the XMLNODE parameter.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
ACI_API021
- XMLNODE accepts only IF_IXML_ELEMENT or IF_IXML_DOCUMENT instances ?The SAP error message ACI_API021 indicates that there is an issue with the XML processing in your ABAP program. Specifically, it means that the method or function you are trying to use expects an instance of the interface IF_IXML_ELEMENT or IF_IXML_DOCUMENT, but it received an incompatible type instead. Cause This error typically occurs when: You are trying to pass an object that is not of the expected type to a method that requires an XML element or document. There may be a mismatch in the expected and actual data types in your XML processing logic. The XML structure you are working with is not being correctly instantiated or manipulated. Solution To resolve this error, you can follow these steps: Check Object Type: Ensure that the object you are passing to the method is indeed an instance of IF_IXML_ELEMENT or IF_IXML_DOCUMENT. You can use the TYPEOF statement to check the type of the object before passing it. DATA: lo_xml_element TYPE
Get instant SAP help. Sign up for our Free Essentials Plan.
ACI_API020
Parameter XMLNODE is initial
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACI_API011
Could not parse the XML code
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACI_API022
CL_ACI_RESULT does not support the TO_XMLNODE() operation
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACI_API052
Syntax error: &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.