Its better to use
BAPI_VENDOR_CREATE " Create Vendor Master Online
This BAPI will create One vendor
or check these links
This depends on your needs.
Mass creation or single creation.
The BAPI provided above is usually useless because it is a direct call to transaction XK01.
You may think about :
single but automated creation : transaction XK99
batchinput creation : RFBIKR00 is a good option. using LSMW with it is also a good option too. This will let you process your master data input CSV files easily. You will define yourself the mapping.
LSMW with virtual CREMAS idoc: I would prefer this case. The mapping is a bit harder BUT quite a lot of advantages. Despite batchinput, CREMAS idoc processing takes care of the transaction XK01 field settings. In other words, you will have less errors during the mass processing.
[LSMW in help.sap.com|http://help.sap.com/saphelp_nw04/helpdata/en/87/f3ae63e68111d1b3ff006094b944c8/frameset.htm]