on 09-23-2008 3:48 PM
hi
I have to validate a field that is vbeln. if vbeln, bukrs,lifnr and fkdat all these three are in table I should throw some error else I would allow..
(All the four fields are in y table)
Hi,
All you have to do is to write a set of code in WDDOMODIFY or on action of the button which checks for your condition.
If the Y table you mentioned is an internal table then a read statement will do and if sy-surc for the read statement is eq 0 then display the message using message manager.
Is this what you wanted??
Regards,
Kinshuk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupa,
Write your code like this...
Get VBELN value from view.
data:begin of ty_itab,
vbeln type vbak-vbeln,
bukrs type .....
lifnr type ....
fldate type...
end of ty_itab,
wa_stru type ty_itab.
select vbeln bukrs lifnr fldate from vbak into wa_stru
where vbeln = <input value>.
if wa_stru-vbeln is not initial and
wa_stru-bukrs is not initial and
wa_stru-lifnr is not initial and
wa_stru-fldate is not initial.
write logic..
else.
logic to exit.
endif.
Thanks
suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.