on 2018 Jan 08 3:21 PM
Hi all,
we have a project in which we are calling a MII transaction via webservice and we are committing the input parameters of the MII transaction in a XML soapenv:Envelope.
Now, one of the MII transaction input parameters does have a default value defined inside the MII transaction, e.g. the parameter NAME does have the default value “Eva Musterfrau”.

Now, we are calling the MII transaction from JavaScript. In the JavaScript we are setting the previously mentioned MII transaction input parameter NAME to an empty value “”.
The JavaScript Code that calls our MII transaction looks like this:
var xmlHTTPRequest = new XMLHttpRequest();
var url = "URL_TO_OUR_TRANSACTION";
xmlHTTPRequest.open("POST", url, false);
xmlHTTPRequest.send(soapEnvelope);
While the “soapEnvelope” contains the following XML:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xmii="http://www.sap.com/xMII">
<soapenv:Body>
<xmii:XacuteRequest>
<xmii:InputParams>
<xmii:E_MAIL>Max.Mustermann@mustermann.de</xmii:E_MAIL>
<xmii:NAME></xmii:NAME>
<xmii:STAFF_NO>12345</xmii:STAFF_NO>
</xmii:InputParams>
</xmii:XacuteRequest>
</soapenv:Body>
</soapenv:Envelope>
Even we are sending the XML with an empty parameter NAME, the MII transaction is always using the default value (“Eva Musterfrau”) of the input parameter NAME.
There seem to be no way to set the input parameter to an empty value.
Can you check, please?
Kind Regards
Bjoern
Request clarification before answering.
I would recommend deleting the default parameter value from the transaction. It isn't a best practice and it doesn't look like it has any functional value in the example you provided.
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.