Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9063

Re: is not type compatible.

$
0
0

Hi Arun.

 

There are two problems:

- The first one is, that your select-option parameter s_plnt has a structured line type (because of defining it by SELECT-OPTIONS). The structure contains the fields SIGN, OPTION, LOW, HIGH (LOW and HIGH have the length of z_cds_purc-plant). So it does not work to transfer the select-option table to a parameter which contains only the  plnt field.

- The second one is, that a select-option table defined with SELECT-OPTIONS has a header line. So only the body of the select-option table has to be transferred.

 

You can solve the issue in different ways. One option would be to define a table type for DDIC structure SELOPT (or use an existing one). This table type can be used in your interface. The values of s_plnt can be moved to a table with that type using a value expression (e.g. lt_so_plnt = VALUE <your_table_type>( FOR ls_so IN s_plnt ( sign = ls_so-sign option = ls_so-option low = ls_so-low high = ls_so-high ) ) ).

 

Best Regards,

Florian

 

PS: Maybe the discussion should be moved to the general ABAP Development space, because there is not specific ABAP on HANA content affected .


Viewing all articles
Browse latest Browse all 9063

Trending Articles



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