Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>Vendor



Index

Vendor

Vendor


The business object Vendor is a business partner from whom materials or services can be procured.


Structure
The information on a vendor is structured according to purchasing
organization, allowing each purchasing organization to store its own specific data on the vendor concerned.


Integration

In Financial Accounting, a vendor is generally a creditor.


Various roles can be specified for a vendor (such as "ordering address", "goods supplier", or "invoicing party").


11-Dec-2005


Methods

Available Methods


  • ChangePassword : Change Password [ BAPI_VENDOR_CHANGEPASSWORD ]
  • CheckPassword : Check Password [ BAPI_VENDOR_CHECKPASSWORD ]
  • Create : Create Online [ BAPI_VENDOR_CREATE ]
  • CreatePassword : Create Password [ BAPI_VENDOR_CREATEPASSWORD ]
  • Delete : Set Deletion Indicator Online for Vendor [ BAPI_VENDOR_DELETE ]
  • DeletePassword : Delete Password [ BAPI_VENDOR_DELETEPASSWORD ]
  • Display : Display Online [ BAPI_VENDOR_DISPLAY ]
  • Edit : Change Online [ BAPI_VENDOR_EDIT ]
  • ExistenceCheck : Check Existence [ BAPI_VENDOR_EXISTENCECHECK ]
  • Find : Vendor Matchcode [ BAPI_VENDOR_FIND ]
  • GetDetail : Details [ BAPI_VENDOR_GETDETAIL ]
  • GetInternalNumber : Supplies New Internal Vendor Numbers [ BAPI_VENDOR_GETINTNUMBER ]
  • GetPassword : Read Password [ BAPI_VENDOR_GETPASSWORD ]
  • InitPassword : Initialize Password [ BAPI_VENDOR_INITPASSWORD ]
  • SaveCharValueReplicas : Maintain Vendor Characteristic Values [ BAPI_VENDOR_SAVECHARVALREPLICA ]

11-Dec-2005


ChangePassword

ChangePassword


With this method you can change a vendor's password.

Notes

The password is encrypted in the central table BAPIUSW01.


11-Dec-2005


CheckPassword

CheckPassword


Use this method to check a vendor's password.

Notes

The password is stored with encryption in the central table BAPIUSW01.


11-Dec-2005


Create

Create


With this method you can create or extend a vendor online.


11-Dec-2005


CreatePassword

CreatePassword


Use this method to create an entry for a vendor in password management.

A password is not generated for the vendor.

Notes

The entry takes place in the central table BAPIUSW01.


11-Dec-2005


Delete

Delete


Set the delete indicator online for the vendor to be transferred.


11-Dec-2005


DeletePassword

DeletePassword


Use this method to delete and entry for a vendor from password management.

Notes

The entry is deleted from the central table BAPIUSW01.


11-Dec-2005


Display

Display


Starts the display transaction online for vendors.


11-Dec-2005


Edit

Edit


Opens the maintenance transaction online for the required vendor.


11-Dec-2005


ExistenceCheck

ExistenceCheck


Use this method to check if a vendor exists.

If you enter a company code, the method also checks whether the vendor has been created for this company code.


11-Dec-2005


Find

Find


This method searches for all vendors, that store a transferred contentin a transferred table field. The search terms are transferred instructure SELOPT_TAB. The vendors that are found are collected in the table RESULT_TAB.

The probable blocks or deletion flags will be marked for the vendors found.


The number of hits can be restricted by the parameter MAX_CNT. Value "0" means that there is no restriction on the search result.

The standard search is for the exact field content (Field SELOPT_TAB-FIELDVALUE). If the parameter PL_HOLD is selected, the use
of wild cards is allowed. "*" is for any character string and "+" for any character.

The search terms are processed individually and not joined to othersearch terms, that is, only one field from the vendor master table is examined at a time.

The method is case sensitive with the exception of the match code fields that are maintained in the table TFMC.


Example

  1. Vendors should be found that have "23" in the field KNB1-PERNR(personnel number) for the company code 0001. All the vendors that arefound should be displayed. The search should be carried out exactly, that is, without match codes.

The required entries:

Table SELOPT_TAB

Field Content
-----------------------------------------
COMP_CODE 0001
TABNAME LFB1
FIELDNAME PERNR
FIELDVALUE 23


IMPORT Parameter
MAX_CNT 0
PL_HOLD SPACE

The transfer of import parameter MAX_CNT and PL_HOLD is optional, as
the values named above correspond to the standard settings.

  1. Vendors should be found that have that "SAP" at the beginning of field
    KNB5-KNRMA (account number of the dunning recipient). The search shouldbe cross-company code and the number of hits should be restricted to 100. The use of wild cards is allowed.

The required entries:

Table SELOPT_TAB

Field Content
-----------------------------------------
COMP_CODE SPACE

TABNAME LFB5
FIELDNAME LFRMA
FIELDVALUE SAP*

IMPORT Parameter
MAX_CNT 100
PL_HOLD X

The import parameters MAX_CNT and PL_HOLD have to be transferred, asthe values named above do not correspond to the standard settings.



11-Dec-2005


GetDetail

GetDetail


Use this method to call detailed data for a vendor.

The following data is retreived:

  • General data
  • A table from bank data
  • Company code-specific data (if a company code is entered)

  • 11-Dec-2005


    GetInternalNumber

    GetInternalNumber


    This function module is used for internal number assignment and returns the next free vendor number in a selected account group.


    11-Dec-2005


    GetPassword

    GetPassword


    Use this method to read status information about password management for a vendor.

    Notes

    The status information is stored in the central table BAPIUSW01.


    11-Dec-2005


    InitPassword

    InitPassword


    Use this method to initialize a password for a vendor. An initial password is returned.

    Notes

    The password is stored with encryption in the table BAPIUSW01.


    11-Dec-2005


    SaveCharValueReplicas

    SaveCharValueReplicas


    This method enables the maintenance (replacement or deletion) of vendor characteristic values.

    Notes

    All characteristics and characteristic values must exist prior to assigning to them vendor characteristic values.


    11-Dec-2005