08-20-2007 9:27 AM
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.
08-20-2007 9:35 AM
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