Skip to Content
0
Former Member
Dec 16, 2015 at 09:05 AM

Getting sy-subrc = 11 while executing FM 'RSDRI_INFOPROV_READ'.

205 Views

Hello Gents,


kindly help me. after executing FM 'RSDRI_INFOPROV_READ' getting sy-subrc = 11.

below is the code. please suggest me where is the mistake.


TYPES: BEGIN OF ty_cube_data,

zioe_sku TYPE /BI0/9AOIMATNR,

zioe_depo TYPE /BI0/9AOILOCNO,

zioe_srsid TYPE /BIC/OIZIO_SRCID,

zioe_prod TYPE /BI0/9AOIFPROD,

END OF ty_cube_data.

DATA: g_s_sfc TYPE rsdri_s_sfc,

g_th_sfc TYPE rsdri_th_sfc,

g_s_sfk TYPE rsdri_s_sfk,

g_th_sfk TYPE rsdri_th_sfk,

it_cube_data TYPE STANDARD TABLE OF ty_cube_data,

wa_cube_data TYPE ty_cube_data,

g_end_of_data TYPE rs_bool,

g_first_call TYPE rs_bool.

CONSTANTS: rs_c_false TYPE rs_bool VALUE ' ',

rs_c_true TYPE rs_bool VALUE 'X',

c_max_record TYPE i VALUE '100'.

REFRESH: g_th_sfc.

CLEAR: g_s_sfc.

g_s_sfc-chanm = '9AMATNR'.

g_s_sfc-chaalias = '9AMATNR'.

g_s_sfc-orderby = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

CLEAR: g_s_sfc.

g_s_sfc-chanm = '9ALOCNO'.

g_s_sfc-chaalias = '9ALOCNO'.

g_s_sfc-orderby = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

REFRESH: g_th_sfk.

CLEAR: g_s_sfc.

g_s_sfc-chanm = 'ZIO_SRCID'.

g_s_sfc-chaalias = 'ZIO_SRCID'.

g_s_sfc-orderby = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

CLEAR: g_s_sfk.

g_s_sfk-kyfnm = '9AFPROD'.

g_s_sfk-kyfalias = '9AFPROD'.

g_s_sfk-aggr = 'MAX'.

INSERT g_s_sfk INTO TABLE g_th_sfk.

* --- this variable will be set to FALSE when the last data

* package is read

g_end_of_data = rs_c_false.

* --- this variable indicates whether this is an initial call

g_first_call = rs_c_true.

*WHILE g_end_of_data = rs_c_false.

CALL FUNCTION 'RSDRI_INFOPROV_READ'

EXPORTING

i_infoprov = 'ZIC_PLO'

i_th_sfc = g_th_sfc

i_th_sfk = g_th_sfk

* i_t_range =

i_save_in_table = rs_c_false

i_save_in_file = rs_c_false

i_packagesize = c_max_record " The maximum records is set to 100 only

IMPORTING

e_t_data = it_cube_data

e_end_of_data = g_end_of_data

CHANGING

c_first_call = g_first_call

EXCEPTIONS

illegal_input = 1

illegal_input_sfc = 2

illegal_input_sfk = 3

illegal_input_range = 4

illegal_input_tablesel = 5

no_authorization = 6

ncum_not_supported = 7

illegal_download = 8

illegal_tablename = 9

OTHERS = 11.

IF sy-subrc EQ 0.

ENDIF.

*ENDWHILE.



B/Regards,

Jamal.