cancel
Showing results for 
Search instead for 
Did you mean: 

Variable screen fields optional-->mandatory

Former Member
0 Kudos

Hi all,

Is it possible to have to optional variables in the selection screen, and then if one of them is filled, turn the other to mandatory? For example:

I have these two optional variables: PO number and PO Doc. type. If the PO number is filled, then the PO doc type should be mandatory.

If is possible, how can it be done?

Thank you.

N.M.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

as Deepu metioned, You can trigger error message from variables exit using 'RRMS_MESSAGE_HANDLING' FM.

Please take look at below threads...<a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=3646935#3646935">https://www.sdn.sap.com/irj/sdn/thread?messageID=3646935#3646935</a>

<a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=3646257#3646257">https://www.sdn.sap.com/irj/sdn/thread?messageID=3646257#3646257</a>

<a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=1990628#1990628">https://www.sdn.sap.com/irj/sdn/thread?messageID=1990628#1990628</a>.

Note: this FM will trigger Error message for Bex Bariable Screen only, not for Web.

Nagesh Ganisetti.

  • Assign Point if it help.

Answers (2)

Answers (2)

Former Member
0 Kudos

You will have to do this using Customer Exit. In I_STEP 3 you can do a check whether the PO Number is filled and PO Doc Type is filled, display an error message for the users if the reqd criteria is not met.

Former Member
0 Kudos

Any suggestions?

Thank you,

N.M.