09-23-2008 3:47 PM
hi
I have to validate a field that is vbeln. if vbeln, bukrs,lifnr and fkdat all these three are in table I sshould throw some error else I would allow..
(All the four fields are in y table)
09-23-2008 3:53 PM
use the Chain ... Endchain for validating all the fields.
CHAIN.
FIELD: your_field
MODULE validation.
ENDCHAIN.
09-23-2008 4:01 PM
09-23-2008 7:17 PM
Hi,
Try like this:
at selection-screen on vbeln.
select vbeln
bukrs
lifnr
fkdat
from <table name>
into table <internal table>
where vbeln = vbeln.
if sy-subrc eq0.
message.
endif.
Regards,
Bhaskar
09-23-2008 8:11 PM
loop at table itab_y into <fs_y>.
if <fs_y>-vbeln or <fs_y>-bukrs....is intial.
error message...
endif.
endloop.