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. NotesTransfer
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.
|