on ‎2023 Aug 11 1:53 PM
Dear Experts,
BTP - ABAP Environment
Below error is encountered during Service binding and Metadata load if an action is defined with deep table parameter in a Behaviour definition but it works with deep Parameter.
Error in entity 'YYY': 'T' is not a valid value of the enumeration type "TY_ACTION_PARAMETER_DEPTH'.
Upon checking exceptions further , It is noticed that the relevant logic is commented out in RAP framework. please see below screen shots.
But the RAP documentation and F1 help is updated on usage of it. Not sure if I am missing something here on how to use.
Base behaviour :
action Partial_PR_To_PC deep table parameter ZRK_A_PartialPrToPCHead;
define root abstract entity ZRK_A_PartialPrToPCHead
{
key ObjectId : zrk_object_id ;
Buyer : zrk_buyer_id;
_Items : composition [0..*] of ZRK_A_PartialPrToPC ;
}
@EndUserText.label: 'Partial PR to PC'
define abstract entity ZRK_A_PartialPrToPC
{
key item_no : zrk_item_no;
part_no : zrk_part_no;
comm_code : zrk_category_id;
plant : zrk_plant_no;
supplier : zrk_sup_no;
_Parent : association to parent ZRK_A_PartialPrToPCHead ;
}<br>



As we can see in below screen shot, value for deep table parameter is commented and not allowing further.

Best wishes,
Ramjee Korada
Request clarification before answering.
Hello,
we have the same problem in release 2022.
A workaround would be to use a deep abstract structure with the actual table as child entity and use it as a flat deep parameter in action like "action <the action> deep parameter <abstract entity>" as described here .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tobias,
Thank you for feedback. I have already applied this workaround.
I raised this question as the documentation says that the feature is supported.
BW,
Ramjee
Hi,
I am facing the same issue on release 2023 system and have used this same workaround suggested in earlier comment. Looking at documentation it does say deep table parameters are not supported, although the language is not very convincing ( maybe because it depends on the oData service being UI or Webservice ).
https://help.sap.com/docs/abap-cloud/abap-rap/modeling-parameters-for-non-standard-operations
The following restrictions apply on exposing operations with deep parameters:
OData V2 only allows non-standard operations with flat parameters. The service binding shows an error message if a non-standard operation with a deep parameter is included in the service.
Fiori Elements UIs can't represent hierarchical structures by default. So deep parameters can't be consumed by these UIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Section "Deep Parameters in Non-Standard Operations"
https://help.sap.com/docs/abap-cloud/abap-rap/development-constraints?q=deep&locale=en-US
Hi Ramjee,
I was following the documentation https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenbdl_action_input_param... and arrived to the same problem, so I suppose we're not missing something but it seems that I'll not really work even it's documented otherwise because it was suppressed by code. I'll escalate the topic to SAP using my company periodical meetings with them but one doubt came to me, at any point it was working for you an then stopped working? Or since the very first time you tried never worked?
Also, if you have any update would be fine to know.
Regards,
Jorge Luis.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.