cancel
Showing results for 
Search instead for 
Did you mean: 

How can i automatically release a Return To Supplier?

Former Member
0 Kudos

i already succeed to create Return to Supplier from Web Service. my question, how could i release the Created Return To Supplier automatically?

regards,

Ayoub

Accepted Solutions (0)

Answers (2)

Answers (2)

arunml
Advisor
Advisor
0 Kudos

Hi Ahmed,

You can use the below sample request to create RTS in the system.

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

Action CodeDescription01 Create; 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.04 Save; the system creates or changes the node element data.05 Remove; the system deletes the node element. If the node element does not exist, the system does not send an error message.06 No Action; the system does not change the node element.

Here is an example web service request to create Returns to Supplier:

<n0:ReturnToSupplierMaintainBundleRequest xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<BasicMessageHeader/>
<ReturnToSupplierMaintBundle actionCode="01">
 <BuyerParty actionCode="01">
  <PartyKey>
   <PartyTypeCode>200</PartyTypeCode>
   <PartyID>MC10000</PartyID>
  </PartyKey>
 </BuyerParty>
 <Item>
  <ItemID>1</ItemID>
  <BusinessTransactionDocumentItemTypeCode>18</BusinessTransactionDocumentItemTypeCode>
  <Quantity unitCode="EA">1</Quantity>
  <DeliveryPeriod>
   <StartDateTime timeZoneCode="UTC-8">2016-11-30T12:00:00.1234567Z</StartDateTime>
   <EndDateTime timeZoneCode="UTC-8">2016-11-30T12:00:00.1234567Z</EndDateTime>
  </DeliveryPeriod>
  <ItemInboundDeliveryReference ActionCode="01">
   <BusinessTransactionDocumentReference>
    <ID>2222</ID>
    <TypeCode>24</TypeCode>
    <ItemID>10</ItemID>
    <ItemTypeCode>14</ItemTypeCode>
   </BusinessTransactionDocumentReference>
  </ItemInboundDeliveryReference>
 </Item>
</ReturnToSupplierMaintBundle>
</n0:ReturnToSupplierMaintainBundleRequest>

Could you please try creating using above action codes?

Best Regards,

Arun

SahalyaBegum
Employee
Employee
0 Kudos

Dear Ayoub,

The release of RTS will automatically happen.

Use the action code 4 "<ReturnToSupplierMaintBundle actionCode="04">" and you have to explicitly trigger save from a A2X service only then it will be released.

Best regards,

Sahalya