‎2008 Jul 03 12:27 PM
Hi All.
I have made a program with vendor and purchase order inputs. If I give the correct vendor and PO it works fine. I want to implement validation. For that I have an internal table with vendor and all the PO's raised on him. Now I have to validate 1. vendor, 2. PO and 3. if a PO not of that vendor is entered then to display a message. I tried some option but the error message comparing the vendor and PO doesn't work. Can anyone give an idea please. Tks & Best Regards.
‎2008 Jul 03 12:29 PM
‎2008 Jul 03 12:36 PM
Hi,
Validate Vendor in LFA1-LIFNR , PO in EKKO-EBELN
and combination as :
select EBELN LIFNR
from EKKO
into table itab
where EBELN = p_ebeln
and LIFNR = p_lifnr.
if sy-subrc ne 0.
Message 'error message'.
endif.
Regards,
Sachchidanand