Sapass

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



Index

ProcurementOperation

ProcurementOperation


Definition


The business object procurement transaction provides services in support of a business transaction.


Integration


The object is responsible for collecting information from the objects involved in the procurement transaction.


11-Dec-2005


Methods

Available Methods


  • GetCatalogs : Determine valid catalogs as F4 help [ BAPI_PROCOPERATION_GETCATALOGS ]
  • GetInfo : Analysis of objects to be generated in Purchasing [ BAPI_PROCOPERATION_GETINFO ]

11-Dec-2005


GetCatalogs

GetCatalogs


This method enables you to list the allowed catalogs, depending on thematerial group and the plant. The method evaluates the settings in table TMW02 in Customizing for Purchasing.

Notes

Transfer

The material group and the plant are passed on in the import parameters.


Return

The allowed catalogs are returned in the table VALID_CATALOGS.

Treatment of errors

If errors occur during processing, the relevant error messages are returned in the table Return
. Information messages are also logged in this table.


11-Dec-2005


GetInfo

GetInfo


You can use this method to determine which object (requisition, purchase order, or reservation) is to be generated. The methodevaluates the item data and the settings in table TMW01 in the Customizing facility for Purchasing.

Notes

Transfer


The item data is passed on in table PROCUREMENT_ITEM; the account assignment data in table PROCUREMENT_ACCOUNT.

Return

The result is returned in the field OBJ_TO_GEN in the table PROCUREMENT_ITEM. The following values are possible:

Value Object

1 Reservation

2 Purchase requisition

3 Purchase order

4 Other usage

If the method is unable to determine an object, the field OBJ_TO_GEN remains empty and the indicator NO_OBJ_POS is set.


When the object has been determined, the enhancement LMEWPU06 (functionexit EXIT_SAPLMEWP_001) is invoked with the item and account assignmentdata. Using the enhancement, customers can program their own dependencies (e.g. a reservation is always generated depending on a
certain material type). When this has been done, the field OBJ_TO_GEN must be changed (in the example, to 1).

Treatment of errors

If errors occur during processing, they are returned in the table Return. Information messages are also logged in this table.



11-Dec-2005