09-18-2008 5:33 AM
Hi Experts,
New to ABAP Objects!! I need to write a method which will have two input parameters Vendor number and company code. and i have check wether company code exist for given vendor number.
Can any one send the code for the above validation.
Thanks in advance for your help.
-Chris.
09-18-2008 6:07 AM
Hello Chris
I have checked on ERP 6.0 and there is no standard class available for checking vendors.
However, within your method simply call BAPI_VENDOR_EXISTENCECHECK.
If the vendor exists but not for the company code the BAPI returns the message E522(FN):
Vendor &1 exists, but is not created in company code &2
You may have a look at classes beginning with CL_REEX..., e.g.:
CL_REEXC_COMPANY_CODE Company Code (T001)
CL_REEXC_CONTROLLING_AREA Controlling Area (TKA01)
Regards
Uwe