I_STEP = 1 and I_STEP = 3 User exit code placement

Question: Hi,

I am writing code for the user exit to check for user entry and then display an error message if the entry is in correct. the User Exit already has a I_STEP = 1 for the variable. I believe I have to write code for I_STEP = 3 to check for the user entries. Would the I_STEP = 3 code be placed before or after the I_STEP = 1 code?

Thanks in advance

Zabry

Answer:
Following to your post in another one...

I don't exactly understand what you intend to do :
do you have code like

if I_step = 1.
perform some actionsA
endif ?

and do you want to add some actions in case i_step = 3 ?

if this is the case, you should write :

Case i_step.
when 1.
perform some actionsA.
when 3.
perform some actionsB.
when others.
perform warningyoudidnotenternor1nor3.
endcase.

no matter wether when 1 is before or after when 3

if this is not answering your question please be more detailed

'hope this helps
Ch

by the way, fore question about pure ABAP issues, why don't you use the other forum ?
_________________
_
There are only 10 types of people in the world :
those who understand binary and those who don't.

Answer:
Thank you so much for your reply!! Great idea.

BTW, I_STEP = 1 or I_STEP = 3 and Bex variables won't make any sense to the ABAPers on the other forum.
Copyright ?2007 - 2008 www.jt77.com