Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8392

CX_SY_NO_HANDLER Error While executing query in RSRT T-Code

$
0
0

Hi Experts,

 

I have created a data source extraction using function module.

 

Then i have created customer exit variable, dso, infocube and all....

my variable name is ZWBS_VAR and

        query name is WBS_VAR.

 

while executing this query name I'm getting the exception CX_SY_NO_HANDLER.

 

If i use WBS_VAR instead of ZWBS_VAR in when condition.. it is not showing that error.

this is my code i have written in ZXRSRU01 include.

 

DATA:it_wbs_elemt TYPE STANDARD TABLE OF /bic/awbsdsogn00,

     wa_wbs_elemt like line of it_wbs_elemt,

     L_S_RANGE TYPE RSR_T_RANGESID with header line,

     LOC_VAR_RANGE like line of i_T_VAR_RANGE,

     ZLOW TYPE C,

     LV_USER LIKE SY-UNAME,

     lv_user1 LIKE /bic/awbsdsogn00-/BIC/WBSE.

 

 

CASE i_vnam.

*****************************Start of Code for 'ZWBS_VAR' variable******************************

when 'ZWBS_VAR'.

lv_user = sy-uname.

if lv_user CP '/BIC/WBSE'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = lv_user

IMPORTING

output = lv_user1.

CLEAR wa_wbs_elemt.

SELECT * FROM /bic/awbsdsogn00 INTO TABLE it_wbs_elemt WHERE /BIC/WBSE = lv_user1.

READ TABLE it_wbs_elemt INTO wa_wbs_elemt WITH KEY /BIC/WBSE = lv_user1.

IF sy-subrc = 0.

l_s_range-low = wa_wbs_elemt-/BIC/WBSE.

l_s_range-sign = ' I '.

l_s_range-opt = ' EQ'.

APPEND l_s_range TO e_t_range.

ENDIF.

ENDIF.

 

 

ENDCASE.

IF I_STEP = 3.

LOOP at i_t_var_range INTO loc_var_range WHERE vnam = 'ZWBS_VAR'.

CLEAR : l_s_range.

zlow = loc_var_range-low.

lv_user = sy-uname.

CALL FUNCTION 'CONVERSIOn_EXIT_ALPHA_OUTPUT'

EXPORTING

input = loc_var_range-low

IMPORTING

output = loc_var_range-low.

IF lv_user NE loc_var_range-low.

IF lv_user CP '/BIC/WBSE'.

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

I_CLASS = 'RSBBS'

I_TYPE  = 'E'

I_NUMBER = '000'

I_MSGV1 = 'You are not authorized for the WBS ELEMENT'

I_MSGV2 = loc_var_range-low

I_MSGV3 = 'Enetr your valid WBS ELEMENT'

I_MSGV4 = lv_user

EXCEPTIONS

OTHERS = 02.

RAISE Again.

ELSE.

l_s_range-low = loc_var_range-low.

l_s_range-sign = loc_var_range-sign.

l_s_range-opt = loc_var_range-opt.

APPEND l_s_range TO e_t_range.

ENDIF.

ENDIf.

ENDLOOP.

ENDIF.

 

If you find any errors in this piece of code please let me know..

 

 

Thanks&Regads,

Sirisha.


Viewing all articles
Browse latest Browse all 8392

Trending Articles



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