cancel
Showing results for 
Search instead for 
Did you mean: 

CDS view Required - S4Hana Public Cloud MD04 - stock functionality (released)

LaurensSteffers
Participant
0 Kudos
797

Hi all,

we would like to use the stock calculation of the MD04 in a separate application (side-by-side). We try to find some CDS views which are actually released and cover the functionality. We can find the actual stock variants (i_materialstock..., I_EWM_AVAILABLESTOCK etc) but we also need to take reservations into account. 

Any option or combination available (released!) which we can use to cover the md04 functionality in a CDS view (API would be ok as well). 

Kind regards

Laurens

 

Addition: Well, we had a look and see we still have issues. It looks like the API (supply/demand) is walking through the MD04 functionality (takes all receipts and issues into account), but we only want to have the CO09 functionality (receipts and issues which much be taken into account regarding the availability check).

LaurensSteffers_0-1715675332676.png

 

 

View Entire Topic
LaurensSteffers
Participant
0 Kudos

Well, we checked with SAP directly and they came up with note: https://me.sap.com/notes/3333633

We discovered that this API does the trick: https://api.sap.com/api/API_PRODUCT_AVAILY_INFO_BASIC/overview

Specifically: 

sap/opu/odata/SAP/API_PRODUCT_AVAILY_INFO_BASIC/DetermineAvailabilityAt?SupplyingPlant='1010'&Material='00000000000000001'&ATPCheckingRule='A'&RequestedUTCDateTime=datetimeoffset'2024-05-17T17:00:00Z'

Hope this helps other people 🙂

So, next stop is to find the CDS view behind it #dontthinkso