0% found this document useful (0 votes)
52 views

API Sales Order (A2X) v2

The document describes the API for creating sales orders (API_SALES_ORDER_SRV) using a POST HTTP method with a JSON request format. It outlines required and optional fields for the sales order, including details about the sales organization, distribution channel, sold-to party, and items. An example request and response structure is provided to illustrate how to use the API effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

API Sales Order (A2X) v2

The document describes the API for creating sales orders (API_SALES_ORDER_SRV) using a POST HTTP method with a JSON request format. It outlines required and optional fields for the sales order, including details about the sales organization, distribution channel, sold-to party, and items. An example request and response structure is provided to illustrate how to use the API effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

API Sales Order (A2X)

Nombre del Servicio: API_SALES_ORDER_SRV

Entidad : A_SalesOrder
HTTP Method: POST

HTTP Request:

- Content-Type: application/json
- Accept: application/json

Cuadro de Configuración del JSON

Nombre Componentes N1 Componentes N2 Descripcion Req. N2 Req. N1


SalesOrderType Clase de Documento SAP Obligatorio
SalesOrganization Organizacion de Ventas Obligatorio
DistributionChannel Canal de distribucion Obligatorio
OrganizationDivision Sector Obligatorio
SoldToParty Solicitante Obligatorio
PurchaseOrderByCustomer Nro. de referencia del pedido del cliente Opcional
CustomerPaymentTerms Condicion de pago Opcional
SDDocumentReason Motivo de pedido Opcional
to_Partner Array para informar los interlocutores comerciales Opcional
PartnerFunction Codigo que identifica la funcion del interlocutor Obligatorio
Customer Codigo que identifica al interlocutor comercial Obligatorio
to_Text Array para insertar textos en la cabecera Opcional
Language Es el idioma en que se muestra el mensaje Obligatorio
LongTextID Id de identificacion de la clase de mensaje Obligatorio
LongText El mensaje propiamente dicho Opcional
to_Item Array para el detalle del pedido Obligatorio
Material Es el codigo del material Obligatorio
RequestQuantity Cantidad solicitada del material Obligatorio
SalesDocumentRjcnReason Motivo de rechazo Opcional
to_PriceElement Array para insertar condiciones de precios Opcional
ConditionType Clase de Condicion de Precios/Dsctos Manuales Obligatorio
ConditionRateValue Importe o Porcentaje de la condicion Obligatorio
En este caso se propone un ejemplo completo en DS4-190

El request:
{
"SalesOrderType": "ZPVA",
"SalesOrganization": "7140",
"DistributionChannel": "C1",
"OrganizationDivision": "00",
"SoldToParty": "1000000067",
"PurchaseOrderByCustomer": "Purchase Order",
"CustomerPaymentTerms": "Z000",
"SDDocumentReason": "206",
"to_Partner":
[
{
"PartnerFunction": "DF",
"Customer": "1000000067"
},
{
"PartnerFunction": "EM",
"Customer": "3200000001"
}
],
"to_Text":
[
{
"Language": "EN",
"LongTextID": "Z000",
"LongText": "Long text of LongTextID TX01"
}
],
"to_Item":
[
{
"Material": "10450007",
"RequestedQuantity": "12",
"to_PricingElement":
[
{
"ConditionType": "ZDP4",
"ConditionRateValue": "4"
},
{
"ConditionType": "ZRP4",
"ConditionRateValue": "3"
}
]
},
{
"Material": "10450009",
"RequestedQuantity": "1",
"SalesDocumentRjcnReason": "00"
}
]
}

El response:

{
"d" : {
"__metadata" : {
"id" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')",
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')",
"type" : "API_SALES_ORDER_SRV.A_SalesOrderType",
"etag" : "W/\"datetimeoffset'2023-05-12T20%3A30%3A30.3885560Z'\""
},
"SalesOrder" : "1000013602",
"SalesOrderType" : "ZPVA",
"SalesOrganization" : "7140",
"DistributionChannel" : "C1",
"OrganizationDivision" : "00",
"SalesGroup" : "",
"SalesOffice" : "",
"SalesDistrict" : "",
"SoldToParty" : "1000000067",
"CreationDate" : null,
"CreatedByUser" : "",
"LastChangeDate" : null,
"SenderBusinessSystemName" : "",
"ExternalDocumentID" : "",
"LastChangeDateTime" : "\/Date(1683923430388+0000)\/",
"ExternalDocLastChangeDateTime" : null,
"PurchaseOrderByCustomer" : "Purchase Order",
"PurchaseOrderByShipToParty" : "",
"CustomerPurchaseOrderType" : "",
"CustomerPurchaseOrderDate" : null,
"SalesOrderDate" : "\/Date(1683849600000)\/",
"TotalNetAmount" : "128.28",
"OverallDeliveryStatus" : "",
"TotalBlockStatus" : "",
"OverallOrdReltdBillgStatus" : "",
"OverallSDDocReferenceStatus" : "",
"TransactionCurrency" : "ARS",
"SDDocumentReason" : "206",
"PricingDate" : "\/Date(1683849600000)\/",
"PriceDetnExchangeRate" : "1.00000",
"RequestedDeliveryDate" : "\/Date(1683849600000)\/",
"ShippingCondition" : "Z1",
"CompleteDeliveryIsDefined" : false,
"ShippingType" : "",
"HeaderBillingBlockReason" : "",
"DeliveryBlockReason" : "",
"DeliveryDateTypeRule" : "",
"IncotermsClassification" : "",
"IncotermsTransferLocation" : "",
"IncotermsLocation1" : "",
"IncotermsLocation2" : "",
"IncotermsVersion" : "",
"CustomerPriceGroup" : "",
"PriceListType" : "",
"CustomerPaymentTerms" : "Z000",
"PaymentMethod" : "",
"FixedValueDate" : null,
"AssignmentReference" : "",
"ReferenceSDDocument" : "",
"ReferenceSDDocumentCategory" : "",
"AccountingDocExternalReference" : "",
"CustomerAccountAssignmentGroup" : "01",
"AccountingExchangeRate" : "0.00000",
"CustomerGroup" : "",
"AdditionalCustomerGroup1" : "",
"AdditionalCustomerGroup2" : "",
"AdditionalCustomerGroup3" : "",
"AdditionalCustomerGroup4" : "",
"AdditionalCustomerGroup5" : "",
"SlsDocIsRlvtForProofOfDeliv" : false,
"CustomerTaxClassification1" : "",
"CustomerTaxClassification2" : "",
"CustomerTaxClassification3" : "",
"CustomerTaxClassification4" : "",
"CustomerTaxClassification5" : "",
"CustomerTaxClassification6" : "",
"CustomerTaxClassification7" : "",
"CustomerTaxClassification8" : "",
"CustomerTaxClassification9" : "",
"TaxDepartureCountry" : "",
"VATRegistrationCountry" : "",
"SalesOrderApprovalReason" : "",
"SalesDocApprovalStatus" : "",
"OverallSDProcessStatus" : "",
"TotalCreditCheckStatus" : "",
"OverallTotalDeliveryStatus" : "",
"OverallSDDocumentRejectionSts" : "",
"BillingDocumentDate" : "\/Date(1683849600000)\/",
"ContractAccount" : "",
"AdditionalValueDays" : "0",
"CustomerPurchaseOrderSuplmnt" : "",
"ServicesRenderedDate" : null,
"to_Item" : {
"results" : [

]
},
"to_Partner" : {
"results" : [

]
},
"to_PaymentPlanItemDetails" : {
"__deferred" : {
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')/to_PaymentPlanItemDetails"
}
},
"to_PricingElement" : {
"__deferred" : {
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')/to_PricingElement"
}
},
"to_RelatedObject" : {
"__deferred" : {
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')/to_RelatedObject"
}
},
"to_Text" : {
"results" : [

]
}
}
}
El pedido :

You might also like