Skip to Content

Error in Customer Exit for Remodeling Rule

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,

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2013 at 04:57 AM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 05:52 PM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 03, 2012 at 10:53 AM

    Hello David,

    The best way to test this to create a small report to call the user exit and pass the expected parameters. You can then debug it to find where in 'RRSI_SID_VAL_SINGLE_CONVERT' the problem occurs.

    Best Regards,

    Vincent

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I have tried create a small report in order to debug this function but is very complicated because the standar logic for remodeling rule fill several parameters as c_r_newfield or i_r_old and I can't populate it correctly.

      And the other hand, when I check the remodeling rule, one message is showed in ST22:

      _________________________________________________

      Category ABAP Programming Error

      Runtime Errors GETWA_NOT_ASSIGNED

      ABAP Program SAPLRRSI

      Application Component BW-BEX-OT

      Short text

      Field symbol has not yet been assigned.

      _________________________________________________

      I think that the field-symbol <l_fillfield> in the statement is not assigned correctly:

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

      Thanks!

      Regards,

  • Posted on May 02, 2013 at 07:36 PM

    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!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2014 at 08:28 PM

    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
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 10:09 AM

    such error comes when you have field symbol which is not assigned before you are using it to move data.

    Put a break point inside your method and then execute your remodeling steps again.

    Thanks & Regards,

    Mahen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.