Ansicht
Dokumentation

MM_PUR_S4_SES_REDCOM - BAdI: Determination of Account Assignment for Commitment Reduction

MM_PUR_S4_SES_REDCOM - BAdI: Determination of Account Assignment for Commitment Reduction

General Material Data   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This Business Add-In (BAdI) is used in the Service Entry Sheet (MM-PUR-SVC-SES) component. You can use this Business Add-In (BAdI) to define for which account assignment of the referenced purchase order item the commitment should be reduced when the goods receipt is posted.

The BAdI is called when you change the account assignment in a service entry sheet. This applies to both single account assignment and multiple account assignment. For example, if multiple account assignment is defined in the referenced purchase order and you add a new account assignment in the service entry sheet, you can use this BAdI to define for which account assignment of the referenced purchase order item the commitment is to be reduced.

With single account assignment, you can use this BAdI to delete the account assignment reference so that no commitment is reduced for the service entry sheet when the goods receipt is posted.

Note: We recommend taking a look at the implementation example class: CL_MM_PUR_EXMP_S4_SES_RED_COMM (also see section Example).

Requirements

You must create and activate your own implementation of this BAdI and give the implementation a short text.

For this you need the following authorizations:

  • Administrator Role for Custom Fieldsapp
  • When implementing the BAdI, use Procurement: Service Entry Sheet Account Assignment as the filter for the business context.

Standard settings

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

Activities

After you have implemented this BAdI, you must carry out the following customizing activities:

  • SES Account Assignment: Reduce the Commitment of the PO Item (REDUCE_COMMITMENT)

The following parameters are provided:

  • SERVICEENTRYSHEET:

Contains information about the service entry sheet currently being processed (for example: name of service entry sheet, reference purchase order, approval status)

  • SERVICEENTRYSHEETITEM:

Contains information about the service entry sheet item that is currently being processed (for example: item numbers, stated quantity, date of service performance)

  • SESACCOUNTASSIGNMENT:

Contains information about the account assignment of the service entry sheet item that is currently being processed (for example, cost centers, G/L Account numbers, controlling areas)

  • REFDOCACCOUNTASSIGNMENT:

ID of the account assignment of the purchase order that should be reduced.

Example

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classes section.

The following example implementations are available:

  • CL_MM_PUR_EXMP_S4_SES_RED_COMM,,

In the example, an additional account assignment was added in the service entry sheet. The implementation determines that the commitment of account assignment '01' of the referenced purchase order item should be reduced for the new account assignment when the goods receipt is posted.

MORE INFORMATION

For information about implementing BAdIs as part of the enhancement framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View → Application Server → Application Server ABAP → Application Development on AS ABAP → ABAP Customer Development → Enhancement Framework.






ROGBILLS - Synchronize billing plans   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 4396 Date: 20240523 Time: 185150     sap01-206 ( 88 ms )