cancel
Showing results for 
Search instead for 
Did you mean: 

RAP action deep result: Field not found in the data container of complex type

jrtr
Explorer
0 Kudos
264

Hi,

I have a problem implementing a static action with deep result in RAP managed scenario. At the end of my coding I fill the respective result structure, but I get a gateway error "/IWBEP/CM_V4_COS/009" that says "Field __VALUE_CONTROL_VCS-REFERENCEDOCUMENT not found in the data container of complex type CT_61661C579EEBDFC5D97EFEC39FA ".

The complex type has no structure __VALUE_CONTROL_VCS. Debugging I found a problem in /IWBEP/CL_V4_RESPONSE_INFO->/iwbep/if_v4_response_info~set_busi_data. In this method there is a call for /iwbep/cl_v4_converter=>convert_structure_outbound and I realized that source data and target data structures differ in this point. The source data structure has a Structure %control (as the result structure I filled in my coding) and the target structure is missing the %control structure, but has this __VALUE_CONTROL_VCS structure that looks quite similar to the %control structure.

What did I miss here?

View Entire Topic
junwu
Active Contributor

I had the issue in one of my system, when I try to replicate the same in other system, the issue is not happening.

for the system which has the issue, you can remove "with control" in the behavior definition of the abstract entity, that should solve your issue.

jrtr
Explorer
0 Kudos
Thanks for your answer, in my case (input parameter and result differ) this is a workaround. So it solved my problem. Strange thing that you were not able to replicate it in another system...
junwu
Active Contributor
0 Kudos
yes, I am also puzzled. my action is very simple, just passing a deep structure and passing out a deep structure as return. when replicating the issue, I didn't recreate all the data element, i just use abap.char, not sure if that makes the difference.
jrtr
Explorer
0 Kudos
In my case I had just 8 of about a hundred properties that threw the error. A couple of them could be resolved by casting to a predefined dict type like abap.char, but that didn't work as soon as the error was thrown for a hole sub-structure. So yes I think it has something to do with the elements inside the structure.
junwu
Active Contributor
0 Kudos
thanks for the input, I checked your error msg again, it mentioned the field(Field __VALUE_CONTROL_VCS-REFERENCEDOCUMENT). for my case, it mentioned the nested structure. I will recreate the data element to test the issue again.
junwu
Active Contributor
0 Kudos

@jrtr

do you mind to share the detail data element REFERENCEDOCUMENT?

I created two data element for my deep structure, the issue is still not happening.

jrtr
Explorer
0 Kudos
I think it is typed VGBEL, I can have a look as soon as I'm back in the office on monday. I should have the list in the ADT.
jrtr
Explorer
0 Kudos
The data elements of the properties in question are: VBELN_VA, VGBEL, WAERS_CM, VALTG, WAERK, VBELN_GRP and a nested structure.