Skip to Content

Error in code: CMOD using Badi

Hi all,

I am trying to implement the CMOD using BADI using below blog.

However, I am facing 2 issues in code syntax.

In the CMOD code when I have entered following code as per the blog, I get error as follows.

and in BADI I get that I_STEP is unknown.

Please help.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 06, 2015 at 03:19 PM

    Resolved this by posting same question in ABAP space.

    Answers can be checked at below link.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2015 at 06:02 AM

    Hi Swati,

    Did you use this exit with any code before? Are you sure that it works for other variables filled in this exit? What does it write when you click on the red colored error?

    I didnot use any enhancement spot in cmod before, but what you can do is add a breakpoint with your username in the beginning of the code (something like: break swati.)  Then comment the outlines for your new code. Run your query with analyzer and see if i_step exists.

    Hope it gives an idea



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member swati gawade

      Hi Swati,

      I think there is something wrong with how you have defined the enhancement project. As I said in my previous post, try to comment the lines you have added. Don't use the badi, just try to write a simple code for a variable, add a code such as

      break your_username.

      if i_step = 1.

      case i_vnam.


      l_s_range-opt = 'EQ'.


      l_s_range-sign = 'I'.

      append l_s_range to e_t_range.



      Try this very simple code in the include. When you run your query it will come to the breakpoint. there, check if there exist i_step.