Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

problem with RSDRI_INFOPROV_READ, E_T_DATA IS NOT POPULATED,SY-SUBRC = 11

$
0
0

Hi experts,

 

        am using f.m RSDRI_INFOPROV_READ to fetch the data, but it is giving sy-subrc = 11, as i read many posts in SCN,but still not corrected the issue.please advise what mistake am doing.

 

TYPES : BEGIN OF TY_INFO,

        YMATDE TYPE /BIC/OIYMATDE,

        YPLANTD TYPE /BIC/OIYPLANTD,

        ZFISCWEK TYPE /BIC/OIZFISCWEK,

        0FISCPER TYPE /BI0/OIFISCPER,

        0INFOPROV TYPE RSINFOPROV,

        0CURRENCY TYPE /BI0/OICURRENCY,

        0UNIT TYPE /BI0/OIUNIT,

        ZASLSBU TYPE /BIC/OIZASLSBU,

        ZRKPRCCS TYPE /BIC/OIZRKPRCCS,

        END OF TY_INFO.

 

 

DATA : L_T_DATA TYPE TABLE OF TY_INFO ,

       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,

       gv_flg_firstcall TYPE rs_bool value 'X'.

DATA : E_END_OF_DATA TYPE RS_BOOL VALUE 'X'.

DATA : RS_C_TRUE type RS_BOOL VALUE 'X'.

 

 

CLEAR g_th_sfc.

CLEAR g_s_sfc.

g_s_sfc-chanm    = 'YMATDE'.

g_s_sfc-chaalias = '/BIC/OIYMATDE'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

CLEAR g_s_sfc.

g_s_sfc-chanm    = 'YPLANTD'.

g_s_sfc-chaalias = '/BIC/OIYPLANTD'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

*CLEAR g_s_sfc.

*g_s_sfc-chanm    = '0CALMONTH'.

*g_s_sfc-chaalias = 'Calendar year'.

*g_s_sfc-orderby  = 0.

*INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

CLEAR g_s_sfc.

g_s_sfc-chanm    = 'ZFISCWEK'.

g_s_sfc-chaalias = '/BIC/OIZFISCWEK'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

CLEAR g_s_sfc.

g_s_sfc-chanm    = '0FISCPER'.

g_s_sfc-chaalias = '/BI0/OIFISCPER'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

CLEAR g_s_sfc.

g_s_sfc-chanm    = '0INFOPROV'.

g_s_sfc-chaalias = 'RSINFOPROV'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

CLEAR g_s_sfc.

g_s_sfc-chanm    = '0CURRENCY'.

g_s_sfc-chaalias = '/BI0/OICURRENCY'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

CLEAR g_s_sfc.

g_s_sfc-chanm    = '0UNIT'.

g_s_sfc-chaalias = '/BI0/OIUNIT'.

g_s_sfc-orderby  = 0.

INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

*CLEAR g_s_sfc.

*g_s_sfc-chanm    = '0FISCVARNT'.

*g_s_sfc-chaalias = 'Fiscal year variant'.

*g_s_sfc-orderby  = 0.

*INSERT g_s_sfc INTO TABLE g_th_sfc.

 

 

*****KEY FIGURES

CLEAR g_th_sfk.

CLEAR g_s_sfk.

*g_s_sfk-kyfnm    = 'YQTYDE'. "'/BIC/DPFVOL'.

*g_s_sfk-kyfalias = 'QUANTITYD'.

*g_s_sfk-aggr     = 'SUM'.

*INSERT g_s_sfk INTO TABLE g_th_sfk.

*

*CLEAR g_s_sfk.

*g_s_sfk-kyfnm    = 'YPLAN_QTY'. "'/BIC/DPFVOL'.

*g_s_sfk-kyfalias = 'PLANN QTY'.

*g_s_sfk-aggr     = 'SUM'.

*INSERT g_s_sfk INTO TABLE g_th_sfk.

 

 

g_s_sfk-kyfnm    = 'ZASLSBU'. "'/BIC/DPFVOL'.

g_s_sfk-kyfalias = '/BIC/OIZASLSBU'.

g_s_sfk-aggr     = 'SUM'.

INSERT g_s_sfk INTO TABLE g_th_sfk.

 

 

CLEAR g_s_sfk.

g_s_sfk-kyfnm    = 'ZRKPRCCS'. "'/BIC/DPFVOL'.

g_s_sfk-kyfalias = '/BIC/OIZRKPRCCS'.

g_s_sfk-aggr     = 'SUM'.

INSERT g_s_sfk INTO TABLE g_th_sfk.

 

 

 

CALL FUNCTION 'RSDRI_INFOPROV_READ'

  EXPORTING

    I_INFOPROV                   = 'YCUR_TST'

    I_TH_SFC                     = g_th_sfc

    I_TH_SFK                     = g_th_sfk

    I_USE_DB_AGGREGATION         = RS_C_TRUE

    I_ROLLUP_ONLY                = RS_C_TRUE

    IMPORTING

   E_T_DATA                     = L_T_DATA

   E_END_OF_DATA                = E_END_OF_DATA

*   E_AGGREGATE                  =

*   E_SPLIT_OCCURRED             =

*   E_T_MSG                      =

**   E_STEPUID                    =

  CHANGING

    C_FIRST_CALL                 = gv_flg_firstcall

EXCEPTIONS

   ILLEGAL_INPUT                = 1

   ILLEGAL_INPUT_SFC            = 2

   ILLEGAL_INPUT_SFK            = 3

   ILLEGAL_INPUT_RANGE          = 4

   ILLEGAL_INPUT_TABLESEL       = 5

   NO_AUTHORIZATION             = 6

   ILLEGAL_DOWNLOAD             = 7

   ILLEGAL_TABLENAME            = 8

   TRANS_NO_WRITE_MODE          = 9

   INHERITED_ERROR              = 10

   X_MESSAGE                    = 11

   OTHERS                       = 12

          .

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.


Viewing all articles
Browse latest Browse all 3125

Trending Articles



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