Quantcast
Channel: SCN : Unanswered Discussions - SAP Gateway
Viewing all articles
Browse latest Browse all 1745

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

$
0
0

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.

 

2014-12-08 15_17_05-SAP NetWeaver Gateway Service Builder.png

2014-12-08 15_16_49-SAP NetWeaver Gateway Service Builder.png

2014-12-08 15_03_51-ABAP Debugger(1)  (Exclusive) - HTTP -(sapad2a0_AD2_01).png

 

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?

 

2014-12-08 15_04_46-ABAP Debugger(1)  (Exclusive) - HTTP -(sapad2a0_AD2_01).png


Viewing all articles
Browse latest Browse all 1745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>