cancel
Showing results for 
Search instead for 
Did you mean: 

VirtualProvider with Function module problem !

Former Member
0 Kudos

I implemented virtualprovider with function module. Unfortunately when I run query i get message error :

u201CFunction call of ZT0X failed; the obligatory parameter CHARACTERISTICS

An exception with the type CX_SY_DYN_CALL_PARAM_MISSING occurred, but was

I>> Row: 67 Inc: READ_DATA Prog: CL_RSDRV_VPROV_LOC_NOSIDu201D

Any suggestions ?

Below source code:

u201CFUNCTION ZT0X.

*"----


""Lokalny interfejs:

*" IMPORTING

*" VALUE(INFOCUBE) LIKE BAPI6200-INFOCUBE DEFAULT 'ZT03'

*" VALUE(KEYDATE) LIKE BAPI6200-KEYDATE OPTIONAL

*" EXPORTING

*" VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2

*" TABLES

*" SELECTION STRUCTURE BAPI6200SL

*" CHARACTERISTICS STRUCTURE BAPI6200FD

*" KEYFIGURES STRUCTURE BAPI6200FD

*" DATA STRUCTURE BAPI6100DA

*"----


DATA:

l_r_srv TYPE ref to CL_RSDRV_REMOTE_IPROV_SRV,

l_th_mapping TYPE CL_RSDRV_REMOTE_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.

* break-point ID ZRSDRV_RC1.

* break DEVELOPER.

perform build_mapping_table

changing l_th_mapping.

create object l_r_srv

exporting

i_tablnm = '/BIC/PZPRD_ID'

i_th_iobj_fld_mapping = l_th_mapping.

l_r_srv->open_cursor(

i_t_characteristics = characteristics[]

i_t_keyfigures = keyfigures[]

i_t_selection = selection[] ).

l_r_srv->fetch_pack_data(

importing

e_t_data = data[] ).

return-type = 'S'.

ENDFUNCTION.

&----


<

*& Form build_mapping_table

&----


<

Form build_mapping_table

changing

c_th_mapping TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_TH_IOBJ_FLD_MAPPING.

DATA:

l_s_map TYPE CL_RSDRV_EXTERNAL_IPROV_SRV=>TN_S_IOBJ_FLD_MAPPING.

l_s_map-iobjnm = 'ZPRD_ID'.

l_s_map-fldnm = '/BIC/ZPRD_ID'.

insert l_s_map into table c_th_mapping.

l_s_map-iobjnm = 'ZWARTOSC'.

l_s_map-fldnm = '/BIC/Z_CEN_W'.

insert l_s_map into table c_th_mapping.

+endform.u201D

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello

I experienced the same issue. Were u able to solve it? If yes , kindly ask you to make posting here so that others can benefit as well.

Huge thanks

former_member185181
Active Contributor
0 Kudos

hi,

Try removing the option sid when you create the virtual cube. There are 2 diff codes to be used for these cubes. One for SID and other for packed RFC.