Ansicht
Dokumentation
BAPI_PROCOPERATION_GETINFO - Analysis of Objects to Be Generated in Purchasing
CPI1466 during Backup BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
You can use this method to determine which object (requisition, purchase order, or reservation) is to be generated. The method evaluates the item data and the settings in table TMW01 in the Customizing facility for Purchasing.
Example
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 (function exit EXIT_SAPLMEWP_001) is invoked with the item and account assignment data. 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.
Further information
Parameters
PROCUREMENT_ACCOUNTPROCUREMENT_ITEM
RETURN
Exceptions
Function Group
MEWPGeneral Data in Customer Master General Material Data
This documentation is copyright by SAP AG.
Length: 2408 Date: 20240523 Time: 153903 sap01-206 ( 36 ms )