on 2024 Jun 04 9:03 AM
Hello guys, I have an unmanaged scenario of a web API that has to create an equipment. I am using the RAP BO Interface for the Equipment which is I_EquipmentTP ( CDS View also released for Cloud ).
The RAP BO Interface successfully creates the Equipment, but I do not have access to the Equipment ID ( the key of the RAP BO I_EquipmentTP ) as the Equipment RAP BO has a late numbering applied. I've found the way to retrieve the key fields by using the 'CONVERT KEY' option ( ref. https://github.com/SAP-samples/abap-platform-rap-workshops/blob/main/rap6xx/rap610/exercises/ex4/REA... ) but the %PID of the successful creation is quite empty. I've spent little time to open the create implementation of the RAP BO and to my surprise I do not see a %pid assigned for the operation.
As a payload I am only passing the mandatory field of the RAP BO Interface, and later I can find the newly created Equipment if I run ( let's say read all entities, or SELECT * from ), but I cannot provide the Equipment ID directly after creation, since CONVERT KEY fails to get the newly created key.
My question is this an error on my side ( taking into consideration that the Equipment is successfully created and existing, I would say no ) or this is an expected behavior of the RAP BO and I have to do additional steps to retrieve the key?
Hi,
I know this is an old question, but I was having the same issue and it seems that, for my case, it was a program error.
There is a SAP note to correct the fact that %PID is not returned: SAP note 3509081
Regards,
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.