Ansicht
Dokumentation

EXIT_SAPLVAL1_001 -

EXIT_SAPLVAL1_001 -

Addresses (Business Address Services)   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

This function module is called when a purchase order is to be automatically generated from a customer order via a purchase requisition.

It allows the following to be done:

o The vendor of the material can be changed.

o A contract can be specified for the purchase order.

Interface

Import parameters

SALES_ORDER
This parameter contains the number of the underlying customer order.

SALES_ORG_ATTRIBUTES
This field string contains the contents of the TVKO table for the sales organization which is given in the customer order.

PURCHASE_REQUISITION
This field string contains the fields of the purchase requisition item.

Export parameters

ITEM_FIELDS
This field string should be filled firstly by MOVE-CORRESPONDING from PURCHASE_REQUISITION. Then the fields can be changed:

FLIEF - fixed vendor
EKORG - purchasing organization
KONNR - contract number
KTPNR - item number in the contract
PSTYP - item type for the purchase order

Exceptions

ERROR_OCCURRED
This exception causes the calling program to start the error event, parameterized with the error message; i.e. a MESSAGE ... RAISING ERROR_OCCURRED should always be used.

Usage

Changing the vendor

If the customer exit is not called, the vendor of the material is determined as follows: when the FLIEF field (fixed vendor) has been filled from the purchase requisition, this is then used for the purchase order together with the purchasing organization out of the field EKORG in the purchase requisition. If the FLIEF field is empty, the vendor and the purchasing organization are those which are found in the SALES_ORG_ATTRIBUTES field string (fields LIFNR and EKORG).

Therefore the customer exit will change or determine the vendor in the sense that the FLIEF and EKORG fields of the ITEM_FIELDS export parameter are changed or supplied.

Determining the contract

The purchase order item can refer to a contract item by supplying values for the KONNR und KTPNR fields in ITEM_FIELDS.






ROGBILLS - Synchronize billing plans   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2256 Date: 20240419 Time: 103740     sap01-206 ( 37 ms )