cancel
Showing results for 
Search instead for 
Did you mean: 

Report question - Set Variables to mandortory

Former Member
0 Kudos

I know we can set up variable to be mandatory entered.

But is it possible to do the follow and how?

If I have two variables A and B, user have to enter A value if they enter B value. But not necessary to enter B if A value gets entered.

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Can anyone help please?

Former Member
0 Kudos

One option is to do this validation in user exit for variables (I_step = 3 ???), where a message can be thrown with the variable screen directing user for appropriate action.

Not sure if there is any other way of achieving this.

Former Member
0 Kudos

Do you have detail steps how to write the code? I don't know user exit. Thanks!

Former Member
0 Kudos

Check <a href="https://forums.sdn.sap.com/click.jspa?searchID=724561&messageID=1676908">this thread</a> for similar example (validation). You will need to change the code to suit your conditions.

Former Member
0 Kudos

Thanks!