on 11-30-2023 1:47 PM
Hello Experts,
I created a custom RAP BO and integrate it with released RAP Purchase Requisition API, following this Excercise: https://learning.sap.com/learning-journey/develop-extensions-using-sap-s-4hana-cloud-abap-environmen...
I implemented the code in S/4 HANA 2021.
All the steps in the exercise are done.
When I preview the Fiori Element App, CRUD operations for the entity are working perfect, and the Purchase Requisition can be generated successfully. But the PR number could not be updated on both the list page and the database table:
because in the additional save method: save_modified, a dump occured in line 168 when convert the %PID to the final key:
I tryied to debug and found the exception at here: IF_RAP_BHV_PRELIM_KEY_CONVERT~CONVERT_PRELIMINARY_KEY
The %Mapped_key could not be mapped by those 2 conditions:
[ (co_techfield_name-pid) = iv_pid (co_techfield_name-key) = is_temp_key ]
I suppose that, in row 1, either the value of the import parameter is_temp_key is not correct, or the value of <t_data_by_preliminary_key>-purchaserequisition is not correct. Therefore the value '0010004490' could not be fetched.
Can you please help to look into this issue? Thanks.
Best regards,
Jessie
Please check note 3007829 - ABAP: CONVERT KEY Statement Fails with Expression
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.