Hi,
I have created a remodeling rule in order to add a new key figure ZPRECVAL using a customer exit class ZCL_RSCNV_EXIT_ZPRECVAL.
This class is copy of template CL_RSCNV_USER_EXIT_SAMPLE and I have modified the code by my logic: get the calday and access to
other DSO using this calday in order to retrieve the ZPRECVAL.
the code of my class is activated and doesn't show error, but when I check the Remodeling Rule the following error is showed:
"Error in Customer exit" message RSCNV814. Then I can not execute the remodeling rule.
I have been checked the code and the error is in the function RRSI_SID_VAL_SINGLE_CONVERT because if I comment these lines the
remodeling rule does not show error. My code is:
_________________________________________________________________________
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.
*****************************************************
* Assign the references to field symbols
*****************************************************
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_0CALDAY), assign these fields
* to field symbols using the field name.
*****************************************************
ASSIGN COMPONENT 'SID_0CALDAY' OF STRUCTURE <l_s_old> TO <l_fillfield>.
CALL FUNCTION 'RRSI_SID_VAL_SINGLE_CONVERT'
EXPORTING
i_iobjnm = '0CALDAY'
* I_S_COB_PRO =
i_sid = <l_fillfield>
* IMPORTING
* E_CHAVL =
* E_S_NODESID =
* E_S_NODESID_ASO =
* EXCEPTIONS
* NO_VALUE_FOR_SID = 1
* X_MESSAGE = 2
* OTHERS = 3
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
.....
......
_________________________________________________________________________
Note: the rest of the code is not neccesary because the error is in these lines.
I don't know the problem. The infocube is filled, the infoobject 0CALDAY is included in the cube and the class code is active.
I have created other remodeling rules and I had not this problem. Please, could you help me?
Thanks in advance,
regards,
Hi David,
I compared your code with one of my remodeling codes and realized that the data type for your characteristic is not defined in your code. I am not sure if it works but you may give it a try. Add:
DATA: l_0CALDAY_chavl type rschavl,
l_attr type string.
to the beginning of your code. And also in the call function in inporting part change it as:
IMPORTING
e_chavl = l_chavl
Hope it solves the problem
Yasemin...
Hi,
My problem was:
When using a class as user-exit in order to populate a new characteristics with Remodeling rules,you must indicated the new dimension for this new characteristic. In L_S_OLD structure are all the characteristics of the dimension indicated in the remodeling rule, so if you use another field that belongs to another dimension in the code (for example, to do a select table for specific logic) the rule gives an error when run.
I hope to help you,
regards,
Did you ever find resolution? I have the same issue. All code passes check with no error, but when trying to execute remodel I get the error "Error in Customer exit" message RSCNV814.
I can't get past this!
Thanks for any help!
Hi,
Has this issue resolved? Could you please share the solution?
I am facing the same issue.
Would appreciate your response.
Thanks you,
Prem.
Add a comment