Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select options

Former Member
0 Likes
1,096

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,055

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055

Hello,

give error message if a particular ekorg is been entered.

Regards,

Neelambari.

Read only

Former Member
0 Likes
1,055

Hi,

AT SELECTION-SCREEN.

if s_ekorg = ' give value here'.

message e001(hk) with 'Invalied ekorg'.

endif.

Thanks.

Hari krishna

Read only

Former Member
0 Likes
1,056

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

Read only

former_member150733
Contributor
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055

hi,

At selection-screen.

write here .....message.....

Reward points if helpful,

Regards,

Imran

Read only

Former Member
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055
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