Skip to Content
0
Former Member
Sep 23, 2014 at 11:27 AM

Cube Remodelling - EXIT Error

39 Views

Hi Gurus,

I have to add 0CALDAY to infocube & get it populated from 0PSTNG_DATE. But the thing is 0PSTNG_DATE is in a diff customer defined dimension & 0CALDAY I can only add to the time dimension. So this way both the info objects are in different dimensions.

below is the code i am using to populate...

when i check the syntax there is no error in the code, but when i try to schedule the remodel rule, I get the error msg - error in customer exit

I am unable to get the error, pl help...

method IF_RSCNV_EXIT~EXIT.

FIELD-SYMBOLS: <l_s_old> TYPE ANY,

<l_fillfield> TYPE ANY,

<l_newfield> TYPE ANY.

DATA: l_chavl TYPE rschavl,

L_CALDAY TYPE rschavl,

l_attr TYPE string.

BREAK-POINT 90552.

ASSIGN c_r_newfield->* TO <l_newfield>.

ASSIGN i_r_old->* TO <l_s_old>.

*****************************************************

* To use the individual fields of the old table

* structure (e.g. SID_0PSTNG_DATE), assign these fields

* to field symbols using the field name.

*****************************************************

ASSIGN COMPONENT 'SID_0PSTNG_DATE' OF STRUCTURE <l_s_old> TO <l_fillfield>.

CALL FUNCTION 'RRSI_SID_VAL_SINGLE_CONVERT'

EXPORTING

i_iobjnm = '0PSTNG_DATE'

i_sid = <l_fillfield>

IMPORTING

e_chavl = l_chavl.

IF sy-subrc <> 0.

l_attr = text-001.

RAISE EXCEPTION TYPE cx_rscnv_exception

EXPORTING

attr1 = 'CL_RSCNV_USER_EXIT_SAMPLE'

attr2 = 'EXIT-1'

attr3 = l_attr.

ENDIF.

SELECT SINGLE DATE0 FROM /BI0/SDATE INTO L_CALDAY WHERE DATE0 EQ L_CHAVL.

IF SY-SUBRC EQ 0.

CALL FUNCTION 'RRSI_VAL_SID_SINGLE_CONVERT'

EXPORTING

i_iobjnm = '0PSTNG_DATE'

i_chavl = L_CALDAY

IMPORTING

e_sid = <l_newfield>.

IF sy-subrc <> 0.

l_attr = text-002.

RAISE EXCEPTION TYPE cx_rscnv_exception

EXPORTING

attr1 = 'CL_RSCNV_USER_EXIT_SAMPLE'

attr2 = 'EXIT-2'

attr3 = l_attr

.

ENDIF.

CLEAR L_CALDAY.

endif.

endmethod.


Rgds,

Vandana.

Attachments

remodel.png (16.0 kB)