Application Development 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: 

validation?

Former Member
0 Kudos

HI all,

I need to validate werks on standard t-code.

data:s_werks like t001w-werks.

select single werks into s_werks from t001w

where spart eq '10'.

if s_werks = space.

messsage i001(zi0).

endif.

<b>here how this S_WERKS map to the screen field t001w-werks.</b>

vkr.

1 REPLY 1

Former Member
0 Kudos

hi VKR

see the code below

<b>

//Selection screen</b>selection-screen : begin of block blk1 with frame title text-001.

select-options : s_werks for t001w-werks.

selection-screen : end of block blk1.

<b>//validation</b>

select single werks into s_werks from t001w where spart eq '10'.

if s_werks = space.

messsage i001(zi0).

endif.

here the select-option(range of values can be selected) s_werks is already declared to the field t001w-werks...so now they both are mapped....

reward if useful please.....

cheers

asha