cancel
Showing results for 
Search instead for 
Did you mean: 

API_PRODUCT with Internal Number Assignment

jeff_2022
Explorer
0 Kudos

Hi,

We need to be able to create Materials in SAP Public Cloud from the API_Product service using Internal Numbering on our Material Master. From what I've read (Note 2565362, etc) this can not be done using the Migration Cockpit. When I look at the specifications on API_Product (Product API Page) it shows Product as a Mandatory field, and the example call has an externally assigned product number.

I can imagine some ways that this could still potentially work: a temporary $00001 type value for material number, exposing the NUMBER_GET_NEXT as an API and then filling in the next number in the Create Call, Custom Logic at the start of the Material Creation to look up the real number, etc. But I don't see any documentation on any of those options actually being done for this process, and I don't see access to Custom Logic in that area in Public Cloud.

Sorry, I have not exhaustively tested this yet, and am only looking for a general guideline and can't find anything definitive in the documentation or online. I'm wondering if someone has done this already before I waste a lot of time going down a road that will lead to failure...

Thanks,

Jeff

Accepted Solutions (1)

Accepted Solutions (1)

Enda
Product and Topic Expert
Product and Topic Expert

Hello ,

The API Product Master (A2X) currently supports only external number ranges

Best Regards

Enda

Answers (1)

Answers (1)

Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello ,

The API Product Master (A2X) currently supports only external number ranges

Best Regards

Enda

 

jeff_2022
Explorer
0 Kudos

Hi,

Thank you for the response, but I think I need a bit more detail. I did switch from the Odata V4 service that I was originally attempting (Product-OData V4) with the V2 version that you refer to in the previous answer (API_Product_SRV-V2). I am calling <myhost>/sap/opu/odata/sap/API_PRODUCT_SRV/A_ProductSupplyPlanning with the following payload:

{"Product":"","Plant":"US01"}

I know that this is not going to be enough, I know that at least Product Description will be required at some point. However, when I run the API with just that payload and a valid csrf token in the header, I get the following in the oData message log:

When I do not supply the Plant, I get a very similar message except that it says: "Key field PLANT cannot be empty" rather than PRODUCT...

Can you please share the payload that you used to be able to create a material with internal numbering useing the API_PROUCT service.