cancel
Showing results for 
Search instead for 
Did you mean: 

The API API_PRODUCT_SRV( Method POST) creates a Product but does not update the Gross Weight field

Monisha_Sivaram
Advisor
Advisor
0 Kudos

Hello SAP S/4HANA Cloud Community,

I work in Product Support for S4HANA Cloud and I'd like to share questions I receive through incidents with the Cloud Community as I think it would be beneficial to share the information.

Question : The API API_PRODUCT_SRV ( Method POST) creates a Product but does not update the Gross Weight field

Accepted Solutions (1)

Accepted Solutions (1)

Monisha_Sivaram
Advisor
Advisor
0 Kudos

Calling the API API_PRODUCT_SRV ( Method POST) creates a material but the Gross Weight field is 0 despite being maintained in the payload because of incomplete Payload file,

The field "GrossWeight" is not maintained in the Entity "to_ProductUnitsOfMeasure".

System works as designed.


Sample of a correct Payload :

{

"ProductType": "FERT",

"BaseUnit": "PC",

"GrossWeight":"10.00",
"NetWeight":"5.00",
"WeightUnit":"KG",

"to_Description":

[ { "Language": "EN", "ProductDescription": "SAPTEST" } ],

"to_ProductUnitsOfMeasure":{
"results":[
{
"AlternativeUnit":"EA",
"QuantityNumerator":"2",
"QuantityDenominator":"2",
"GrossWeight": "10",
"UnitSpecificProductLength": "2",
"UnitSpecificProductWidth": "3",
"UnitSpecificProductHeight": "4",
"ProductMeasurementUnit":"M",
"BaseUnit":"PC"

}

Please refer to the below KBA for the same

2955867 - The API API_PRODUCT_SRV ( Method POST) creates a Product but does not update the Gross Wei...

Answers (0)