on 08-05-2015 1:51 PM
Hi all,
I am trying to implement the CMOD using BADI using below blog.
http://scn.sap.com/docs/DOC-31271
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.
-Swati.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Regards
Yasemin..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yasemin,
This is a new implementation and this is the first CMOD being written in the system. I have also never worked with BADI before hence I have been following various threads on SCN for creating an exit for a BeX variable.
The code is currently giving syntax error so I am not sure how the break-point will help.
Please let me know if any other solution.
-Swati.
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.
when 'YOUR_VARIABLE_NAME_IN_BEX'
l_s_range-opt = 'EQ'.
l_s_range-low = 'ANY_VALUE_SUIABLE_FOR_YOUR_VARIABLE'
l_s_range-sign = 'I'.
append l_s_range to e_t_range.
endcase.
endif.
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.
Regards
Yasemin...
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.