0% found this document useful (0 votes)
117 views

Bapi

The document provides instructions for creating a vendor using BAPI in SAP. It calls the VENDOR_INSERT function, exporting vendor master data like address, company details, and purchasing organization to various tables. If the function call is successful, it commits the work. Otherwise, it indicates there was an error creating the vendor.

Uploaded by

anil
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views

Bapi

The document provides instructions for creating a vendor using BAPI in SAP. It calls the VENDOR_INSERT function, exporting vendor master data like address, company details, and purchasing organization to various tables. If the function call is successful, it commits the work. Otherwise, it indicates there was an error creating the vendor.

Uploaded by

anil
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create vendor using BAPI

Create vendor using BAPI


CALL FUNCTION 'VENDOR_INSERT' "in update task
EXPORTING
i_lfa1
= i_lfa1 "Vendor Master: General data:- address,country etc
i_lfb1
= i_lfb1 "Vendor Master: Company data accounting information
i_lfm1
= i_lfm1 "Vendor Master: Purchasing Data (Purchasing organiz
ation)
TABLES
t_xlfas
= t_xlfas
t_xlfb5
= t_xlfb5
t_xlfbk
= t_xlfbk "Bank details
t_xlfza
= t_xlfza
T_XKNVK
= T_XKNVK
.
IF sy-subrc = 0.
COMMIT WORK.
*Vendor is created
ELSE.
* Error while creating vendor
ENDIF.
http://sapmatrix.blogspot.in/2011/12/sample-alv-report-with-hotspot.html

You might also like