Luis Montero
API Sales Order post- malfunction ?
Luis Montero · over 1 year ago · Question
Answered
Luis Montero

Hi.. Making post with 

https://myXXXXX-api.s4hana.ondemand.com/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder

with this body , I am able to create sales order but "net amount" is not populated in sales orden position.

Any experts could tell me what am I doing wrong ? Thanks a lot.

POST BODY

{"SalesOrderType": "TA", "SalesOrganization": "2410", "DistributionChannel": "10", "OrganizationDivision": "01", "SoldToParty": "CATSALUT", "TransactionCurrency": "EUR", "to_Item": { "results": [ { "SalesOrderItem": "10", "SalesOrderItemCategory": "TAD", "SalesOrderItemText": "Primera Visita", "Material": "P121000", "RequestedQuantity": "1", "RequestedQuantityUnit": "PC", "NetAmount": "10.00" , "TransactionCurrency": "EUR" } ] } }

GET REPLY

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"> <d:SalesOrder>72</d:SalesOrder> <d:SalesOrderItem>10</d:SalesOrderItem> <d:HigherLevelItem>0</d:HigherLevelItem> <d:SalesOrderItemCategory>TAD</d:SalesOrderItemCategory> <d:SalesOrderItemText>Primera Visita</d:SalesOrderItemText> <d:PurchaseOrderByCustomer></d:PurchaseOrderByCustomer> <d:Material>P121000</d:Material> <d:MaterialByCustomer></d:MaterialByCustomer> <d:PricingDate>2019-03-07T00:00:00</d:PricingDate> <d:RequestedQuantity>1</d:RequestedQuantity> <d:RequestedQuantityUnit>PC</d:RequestedQuantityUnit> <d:ItemGrossWeight>0.000</d:ItemGrossWeight> <d:ItemNetWeight>0.000</d:ItemNetWeight> <d:ItemWeightUnit></d:ItemWeightUnit> <d:ItemVolume>0.000</d:ItemVolume> <d:ItemVolumeUnit></d:ItemVolumeUnit> <d:TransactionCurrency>EUR</d:TransactionCurrency> <d:NetAmount>0.00</d:NetAmount> <d:MaterialGroup>YBMM01</d:MaterialGroup> <d:MaterialPricingGroup></d:MaterialPricingGroup> <d:Batch></d:Batch> <d:ProductionPlant>2410</d:ProductionPlant> <d:StorageLocation></d:StorageLocation> <d:DeliveryGroup>0</d:DeliveryGroup> <d:ShippingPoint></d:ShippingPoint> <d:ShippingType></d:ShippingType> <d:DeliveryPriority>0</d:DeliveryPriority> <d:IncotermsClassification></d:IncotermsClassification> <d:IncotermsTransferLocation></d:IncotermsTransferLocation> <d:IncotermsLocation1></d:IncotermsLocation1> <d:IncotermsLocation2></d:IncotermsLocation2> <d:CustomerPaymentTerms>NT30</d:CustomerPaymentTerms> <d:SalesDocumentRjcnReason></d:SalesDocumentRjcnReason> <d:ItemBillingBlockReason></d:ItemBillingBlockReason> <d:WBSElement></d:WBSElement> <d:ProfitCenter></d:ProfitCenter> <d:ReferenceSDDocument></d:ReferenceSDDocument> <d:ReferenceSDDocumentItem>0</d:ReferenceSDDocumentItem> <d:SDProcessStatus>A</d:SDProcessStatus> <d:DeliveryStatus></d:DeliveryStatus> <d:OrderRelatedBillingStatus>A</d:OrderRelatedBillingStatus>

Comments

Comments
Alumni