Skip to Content
author's profile photo Former Member
Former Member

Customer exit (cmod) logic not working in ZXRSRU01

Hi Gurus,

I'm trying to assign Plan Version '0' as the value in the logic below, but it falis with this error:

Value "0" for user-exit variable CTPFV_111 is invalid

0 is a valid plan version in master data (0version) and works fine when the value is input manually.

If I set the logic below using an alpha value it works fine, e,g, 'AOP'.

Should it be converted to alpha? Any ideas?

WHEN 'CTPFV_111'. "Select plan version '0' for SAP Plan data

READ TABLE i_t_var_range WITH KEY iobjnm = '0VERSION'

vnam = 'CTPFV_40'

INTO l_s_var..

IF sy-subrc = 0.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

l_s_range-low = '0'. <= This is the line which fails

APPEND l_s_range TO e_t_range.

CLEAR l_s_range.

ENDIF.

Appreciate any suggestions!

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Dec 10, 2011 at 12:19 PM

    Hi,

    Try this:----


    l_s_range-opt = 'BT'. instead of 'EQ'.

    Regards,

    Suman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 07:57 AM

    Hi,

    Check the data type of variable you declared, remove quotes and try, may be data mismatch.

    Thanks

    Riyez

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2011 at 02:59 AM

    Although the Plan Version is '0' from the application, the value stored in the database is '000'.

    It works fine now.

    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.