Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to make mandatory optin for a field when particlr rbutton is selected

Hi All,

I am having one requirement.

In my selection screen i am having three fields they are plant , product group and purchase group. Here plant is the mandatory field in my selection screen and i am having 2 radiobuttons they are normal(r1) and live share(r2). when i select the live share radiobutton by that time plant and purchase group should be mandatory . when i select normal radiobutton plant should be mandatory. anybody can send me the code how to do this.

thanks,

maheedhar

Tags:
Former Member
Former Member replied

Hi

write in at selection-screen event

if Rad1_share = 'X'.

if p_werks is initial and p_ekgrp is initial.

message e000 with ; enter plant and pur group'.

endif.

else.

if p_werks is initial.

message e000 with ; enter plant'.

endif.

endif.

Regards

Anji

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question