Sapass

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



Index

Creditor

Creditor


The business object Creditor is a business partner to whom you owe a payable for a particular service.


This service can be, for example, goods delivered, certain services performed or a transferred right.


11-Dec-2005


Methods

Available Methods


  • ChangePassword : Change vendor password [ BAPI_CREDITOR_CHANGEPASSWORD ] (Obsolete in 46A)
  • CheckPassword : Check vendor password [ BAPI_CREDITOR_CHECKPASSWORD ] (Obsolete in 46A)
  • CreatePasswordRegistry : Create entry for vendor password [ BAPI_CREDITOR_CREATE_PW_REG ] (Obsolete in 46A)
  • DeletePasswordRegistry : Delete entry for vendor password [ BAPI_CREDITOR_DELETE_PW_REG ] (Obsolete in 46A)
  • ExistenceCheck : Check existence [ BAPI_CREDITOR_EXISTENCECHECK ] (Obsolete in 46A)
  • Find : Vendor Matchcode [ BAPI_CREDITOR_FIND ] (Obsolete in 46A)
  • GetDetail : Read detailed information [ BAPI_CREDITOR_GETDETAIL ] (Obsolete in 46A)
  • GetPasswordRegistry : Read entry for vendor password [ BAPI_CREDITOR_GET_PW_REG ] (Obsolete in 46A)
  • InitPassword : Initialize vendor password [ BAPI_CREDITOR_INITPASSWORD ] (Obsolete in 46A)

11-Dec-2005


ChangePassword

ChangePassword


This method enables the user to change a vendor password.

Notes

Before attempting to call up this method, you must first check that the vendor number is defined in the vendor master record.

It follows that you cannot call up this function module unless the vendor number is defined in the master record.


The password is stored in encrypted form in central table BAPIUSW01.


11-Dec-2005


CheckPassword

CheckPassword


Functionality

This method enables a password for a vendor to be checked.

Notes

Before attempting to call up the method you must first check that the vendor number is defined in the vendor master record.

It follows that you cannot call up this method unless the vendor number is defined in the master record.


The password is stored in encrypted form in central table BAPIUSW01.


11-Dec-2005


CreatePasswordRegistry

CreatePasswordRegistry


This method is used to create an entry for a vendor in password management.

A password is not generated for the vendor.

Notes

Before attempting to call up this method you must first check that the vendor number is defined in the vendor master record.


It follows that you cannot call up this method unless the vendor number is defined in the master record.

The entry is made in central table BAPIUSW01.


11-Dec-2005


DeletePasswordRegistry

DeletePasswordRegistry


This method enables an entry for a vendor to be deleted from password management.

Notes

Before attempting to call up this method, you must first check that the vendor number is defined in the vendor master record.

It follows that you cannot call up this method unless the vendor number is defined in the master record.


The entry is deleted from central table BAPIUSW01.


11-Dec-2005


ExistenceCheck

ExistenceCheck


This method enables you to check on the existence of a vendor.

If you specify a company code, an additional check is made as to whether this vendor is created in this company code.


11-Dec-2005


Find

Find


This method is obsolete. Instead use the method found in the business object LFA1 or the function module BAPI_VENDOR_FIND.

This method finds all vendors that have stored transferred contents ina transferred field of a transferred table. The search terms are
transferred in table SELOPT_TAB. The vendors found are collected in table RESULT_TAB.

Any blocks or deletion flags found for these vendors are marked.

The number of hits can be limited using parameter MAX_CNT. The figure 0indicates that there is no limit set to the number of hits.


In the standard system, an exact search is run for the field contents(field SELOPT_TAB-FIELDVALUE). If you select the PL_HOLD parameter, youpermit the use of the meta character, which means that "*" masks a character string, and "+" masks a character.


Each search term is processed separately and is not linked with othersearch terms. In each case, therefore, no more than one field is searched in the vendor master record table.

This method is CASE sensitive, with the exception of the matchcode fields maintained in table TFMC.


Example

  1. You want to find the vendors which have the value "23" in fieldLFB1-PERNR (personal number) in company code 0001. The system shoulddisplay all vendors found. The search should be run exactly, that is, without using meta characters.

Required entries:

Table SELOPT_TAB

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

IMPORT parameters
MAX_CNT 0
PL_HOLD SPACE


Transferring the IMPORT parameters MAX_CNT and PL_HOLD is optional,
because the above values are the same as those in the standard
system.

  1. You find to find the vendors whose LFB5-LFRMA field (dunningrecipient's account number) begins with the character string "SAP". The
    search should be run in all company codes, and the hit list should be limited to a mximum of 100. Meta characters may be used.

Required entries:

Table SELOPT_TAB

Field Inhalt
-----------------------------------------
COMP_CODE SPACE

TABNAME LFB5
FIELDNAME LFRMA
FIELDVALUE SAP*

IMPORT parameters
MAX_CNT 100
PL_HOLD X

You must transfer the import parameters MAX_CNT and PL_HOLD because
the above values are different to those in the standard system.



11-Dec-2005


GetDetail

GetDetail


This method enables a vendor's detailed data to be called up.

The following data is provided: general data, a table of bank data and,where a company code is given, company code specific data.


11-Dec-2005


GetPasswordRegistry

GetPasswordRegistry


This method enables status information concerning password management for a vendor to be read.

Notes

Before attempting to call up this method, you must first check that the vendor number is defined in the vendor master record.

It follows that this method cannot be called up unless the vendor number is defined in the master record.


Status information is stored in central table BAPIUSW01.


11-Dec-2005


InitPassword

InitPassword


This method enables a vendor password to be initialized. An initial password is returned.

Notes

Before attempting to call up this method, you must first check that the vendor number is defined in the vendor master record.

It follows that this method cannot be called up unless the vendor number is defined in the master record.


The password is stored in encrypted form in central table BAPIUSW01.


11-Dec-2005