Skip to Content
avatar image
Former Member

validation?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 20, 2007 at 08: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

    Add comment
    10|10000 characters needed characters exceeded