‎2007 Jun 18 9:51 AM
selection option.
s_ekorg for eine-ekorg.
I have to restrict the user from entering a particular ekorg. How can I do this.
Any suggestions.
‎2007 Jun 18 9:57 AM
Hello,
AT SELECTION-SCREEN ON SO_EKORG.
LOOP AT SO_EKORG.
IF SO_EKORG-LOW = 'XXX or SO_EKORG-HIGH = 'XXX'.
" ERROR MESSAGE.
ENDIF:
ENDLOOP.REgards,
VAsanth
‎2007 Jun 18 9:54 AM
Hi KVC ,
You can check it in the event AT SELECTION SCREEN ON s_ekorg , and inside this check the value entered by the user.
Regards
Arun
‎2007 Jun 18 9:54 AM
Hello,
give error message if a particular ekorg is been entered.
Regards,
Neelambari.
‎2007 Jun 18 9:55 AM
Hi,
AT SELECTION-SCREEN.
if s_ekorg = ' give value here'.
message e001(hk) with 'Invalied ekorg'.
endif.
Thanks.
Hari krishna
‎2007 Jun 18 9:57 AM
Hello,
AT SELECTION-SCREEN ON SO_EKORG.
LOOP AT SO_EKORG.
IF SO_EKORG-LOW = 'XXX or SO_EKORG-HIGH = 'XXX'.
" ERROR MESSAGE.
ENDIF:
ENDLOOP.REgards,
VAsanth
‎2007 Jun 18 9:57 AM
at selection-screen on s_ekorg.
if s_ekorg[] eq <i>Value</i>. " The <i>value</i> you want to restrict the user from entering
message 'Please enter a valid Plant' type 'E'.
endif.
Regards,
Anish Thomas
‎2007 Jun 18 9:57 AM
hi,
At selection-screen.
write here .....message.....
Reward points if helpful,
Regards,
Imran
‎2007 Jun 18 9:59 AM
Hi,
At selection-screen.
loop at s_ekorg.
if eine-ekorg-low eq 'particular ekorg'.
message........
endif.
endloop.
Don't forget to reward if useful
‎2007 Jun 18 10:04 AM
KVC,
After entering values on screen. The control will trigger AT SELECTION-SCREEN Event. Just write a code as follows. In If we will check if that particular value is there in HIGH or LOW options. In ELSE we will check if that Purchase org falls in between the HIGH - LOW options entered by user.
<b>
IF s_ekorg-low eq <Purchase Org> or
s_ekorg-high eq <Particular Purch.Org>
<Error message>
ELSE.
loop at s_ekorg.
IF s_ekorg-low eq <Purchase Org> or
s_ekorg-high eq <Particular Purch.Org>
<Error message>
Endloop.</b>
Wish you all the very best.
- Mohan.
Message was edited by:
MohanVamsi Krishna
‎2007 Jun 18 10:11 AM
The solution is as follows :
AT SELECTION-SCREEN OUTPUT.
PERFORM protect.
.
.
.
FORM protect.
LOOP at SCREEN
CASE screen-name.
WHEN 'UNAME' OR 'UNUMB' OR 'DESCR'. screen-input = 0.
WHEN 'XNAME' OR 'XNUMB' OR 'DESCX'. screen-input = 0.
ENDCASE.
ENDLOOP.
ENDFORM.
Reward points if it is usefull ...
Girish