Ansicht
Dokumentation

W_MDS_0006 - BAdI: Definition of Document Type for Collective Purchase Order

W_MDS_0006 - BAdI: Definition of Document Type for Collective Purchase Order

rdisp/max_wprun_time - Maximum work process run time   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) allows you to use your own customer-defined order type in collective purchase orders.

You normally use the document type that is used for the relevant plant in Purchasing Customizing as the default order type for creating a collective purchase order. Should you use an order type that is different to the default order type, you can use this Business Add-In to define and assign your own order type.

When you create the collective purchase order (transaction WF10), the BAdI is called immediately after the standard document type stored in Customizing has been defined. You can then change this standard document type in the BAdI.

Subsequently, no further checks are carried out on the order type that is returned from the BAdI. For example, there is no check on whether the order type is even allowed to be used in the current process. The system tries to create the purchase order with this order type. If the document type is not allowed, then the system terminates the purchase order generation and you will receive an error message.

In the standard system the BAdI is not activated and there is no default coding.

The BAdI cannot be used more than once and is not filter-dependent.

When the BAdI is called, tbe system transfers the defaulted document type A to the BAdI for the current process (for example, the purchase order from distribution center XY is transferred to vendor Z). If you want to restrict purchase orders that have been created manually in a collective purchase order using your own document type, you can change the document type A that was transferred in the BAdI to document type B so that you can control special processes for a collective purchase order, for example.

Furthermore, additional information is delivered to the Business Add-In concerning the vendor, plant, purchasing organization, and so on, and this information can be used to define the document type.

Documentation on the BAdI method DETERMINE_ORDER_TYPE






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

Length: 2238 Date: 20240523 Time: 204946     sap01-206 ( 61 ms )