cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Delivery Block/Invoice Block in Sales Orders using web-service

0 Kudos

Hello everyone,

I am using web service ManageSalesOrderIn to massively update Delivery Block reason and Invoice Block reason, based on the Customer Master Data.

Its working great when I have any Invoice/Delivery Block Reason. The problem is when I need to remove the Delivery/Invoice Block from the Sales Order.

I was trying to put just space as a value, but didnt work. Does anyone have any experience with this ?

Many Thanks,

Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

HarshalVakil
Active Contributor
0 Kudos

Hi Peter,

Can you try sending the empty tag for Delivery/Invoice Block in the web service. (i mean without space no content).

Regards,

Harshal

0 Kudos

Hi Harshal,

Yeah, I´ve tried that also, but with the same result - nothing changes in the sales order.

Thanks,

Peter

HarshalVakil
Active Contributor
0 Kudos

Hi Peter,

We also set the delivery/Invoice block on the sales order via web service. and later once the conditions are fulfilled we remove the block from the sales order via web service and passing the empty tag in the web service. In our case this is working. So I am not sure why it is not working in your case.

Can you try with the action code 03 to delete the block from the sales order.

The ActionCodes "01" (Create), "02" (Change), "03" (Delete),

For example : you can maintain Action code 03 fro invoice terms node to remove the Invoice blocking reason code, if empty tags apprach is not working.

<InvoiceTerms actionCode="">
               <!--Optional:-->
               <ProposedInvoiceDate>?</ProposedInvoiceDate>
               <!--Optional:-->
               <InvoicingBlockingReasonCode>?</InvoicingBlockingReasonCode>

Thanks.

Harshal

HarshalVakil
Active Contributor
0 Kudos

Also check more details :

https://help.sap.com/viewer/34de7a7c1a7e43178141074817068fb1/1811/en-US/37faab74f63049d7816184add807...

Action Code

Action codes represent an instruction to the recipient of the Web service request to process transmitted message node elements.

Action Code

Description

01Create; the system returns an error message if the node element already exists.02Update; the system returns an error message if the node element does not exist.03Delete; the system returns an error message if the node element does not exist.04Save; the system creates or changes the node element data.05Remove; the system deletes the node element. If the node element does not exist, the system does not send an error message.06No Action; the system does not change the node element.

Default action code: 04 (Save).

NoteAction code 04 (Save) creates business documents if the system could not identify a matching target business document. This applies in particular if no business document ID or UUID is provided by the Web service consumer. The Web service consumer (external application) is responsible for providing correct business document IDs or UUIDs and to avoid accidental creation of duplicate business documents.

List Processing

The processing of node elements with cardinality > 1 (for example, a list of descriptions in different languages or a list of telephone numbers) can be controlled using List Complete Transmission Indicators (LCTI). The LCTI indicates whether a list of node elements is transmitted completely. The LCTI of a node element with cardinality > 1 is modeled as an attribute of its parent node element (attribute name: <name of child element>ListCompleteTransmissionIndicator).

LCTI

Description

falseThe list of node elements is not transmitted completely and hence all node elements that are not transmitted remain unchanged. If the transmitted node elements in the list can be identified uniquely, the system processes the node elements according to the action code. If transmitted node elements in the list cannot be identified uniquely, the system appends the node element to the corresponding list of node elements in the target business document.trueThe list of elements is transmitted completely and hence all node elements that are not transmitted are removed. If no node element is transmitted, the complete list is removed.

Default list complete transmission indicator: false