cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API_PRODUCT_SRV not creating the Purchasing View

Thandi
Newcomer
0 Likes
260

Good Day,

I am using the API_PRODUCT_SRV TO create a material in the backend everything creates fine but the Purchasing View is not available.

Please is my sample Payload

{
    "Product": "test123",
    "ProductType": "FERT",
    "ProductGroup": "NP000000",
    "IndustrySector": "M",
    "BaseUnit": "EA",
    "ProductManufacturerNumber": "140170050104A",
    "ManufacturerNumber": "18023127",
    "SizeOrDimensionText": "XTR64P8",
    "to_Plant": [
        {
            "Product": "test123",
            "Plant": "010",
            "ProcurementType": "F",
            "MaintenanceStatusName": "DE",
            "PurchasingGroup": "",
            "MRPType": "ND"
        },
        {
            "Product": "test123",
            "Plant": "040",
            "ProcurementType": "F",
            "MaintenanceStatusName": "DE",
            "MRPType": "ND",
            "PurchasingGroup": "",
            "to_ProductPlantProcurement": {
                "Product": "test123",
                "Plant": "040"
            }
        }
    ],
    "to_ProductBasicText": [
        {
            "Product": "test123",
            "Language": "DE",
            "LongText": "test123"
        },
        {
            "Product": "test123",
            "Language": "EN",
            "LongText": "test123"
        }
    ],
    "to_Description": [
        {
            "Product": "test123",
            "Language": "DE",
            "ProductDescription": "test123"
        },
        {
            "Product": "test123",
            "Language": "EN",
            "ProductDescription": "test123"
        }
    ]
}

Accepted Solutions (0)

Answers (1)

Answers (1)

VinithTSQ
Explorer
0 Likes

Hi @Thandi ,

The API you are using is correct, but the payload format does not match the schema. I have provided a sample schema below. Modify your schema (only plant data) and try uploading it again, this will create the purchasing view.

"to_Plant": {
"results": [
               {
                 "Plant": "XXXX",
                 "PurchasingGroup": "XXXX",
                 "ProfitCenter": "",
                 "ConsumptionTaxCtrlCode": "85011011"
              }
       ]
}