Skip to Content
0
Dec 08, 2014 at 02:24 PM

Function import needs to return 0...n values for complex type

2581 Views

Hi,

we implemented a function import which retrieves a set of sales orders and related fields. The return type is a complextype based on a ABAP DDIC structure. In SEGW we modelled a function import with Return Type Kind as 'Complex Type' and Cardinatlity '0...n'. At runtime we retrieve the correct values in the EXECUTE_ACTION method and put the table of records of our complextype into the returning parameter ER_DATA of our _DPC_EXT class.

While debugging I see that SAP is not able to move my data into a table (see <ls_source_structure> and <ls_target_structure>, hence the return is empty. (/IWBEP/CL_MGW_ABS_DATA->EXEC_SERVICE_OPERATION. We receive no error whatsoever... I guess this is a bug of SAP or are we doing something wrong?