BAPI_VENDER_CREATE - looks weird

Question: Hi,
I'm trying to get a BAPI to create vendors from outside SAP. I found the bapi BAPI_VENDOR_CREATE. But very surprisingly is calling the transaction directly with CALL TRANSACTION 'XK01'. It is not even using BDC but instead calling the screen directly. How can the SAP screen can be shown outside the SAP GUI? It is not having any import parameters but only exports the Vendor number.
As per my understanding, a BAPI should not make a Call transaction directly to a Transaction. But this BAPI looks weird and confusing.
Anyone have any idea why it is like this and any other way of creating verdors directly from outside the SAP GUI?

Thanks,
Siva

Answer:
Try reading the function module documentation!

"Functionality
With this method you can create or extend a vendor online"

Or the short text for the function module:

"Create Vendor Master Online"

I don't know of a vendor creation BAPI.

Answer:
Create your own RFC enabled function module. Do a BDC over XK01 in the function module.

Regards,
R Heilman
Copyright ?2007 - 2008 www.jt77.com