Ansicht
Dokumentation

PRCG_DOCUMENT_ITEM_R - Define Requirement in Pricing for Document Item

PRCG_DOCUMENT_ITEM_R - Define Requirement in Pricing for Document Item

BAL_S_LOG - Application Log: Log header data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Pricing and Conditions (SD-BF-PR) component. You can use this BAdI to check the fields of the document item for pricing requirements.

The method IS_PRCG_REQUIREMENT_FULFILLED allows you to check if the pricing requirement is fulfilled for the step in the pricing procedure or the access in the access sequence.

Import Parameters

  • DOC_ATTRIBUTES
Contains several attributes of the document for which pricing is executed. For example, the local currency or the document currency can be accessed.
  • DOC_DATES
The pricing date of the document condition is transferred to the method.
  • ITEM_ATTRIBUTES
Contains several attributes of the document for which pricing is executed. For example, the division, plant, or the material can be accessed.
  • ITEM_QUANTITIES
Weights, volumes, and quantities associated with the condition item can be read using this parameter. Here, the ordered quantity and the ordered quantity unit are retrieved from this parameter.

Changing Parameters

  • PRICINGREQUIREMENTISFULFILLED
This parameter specifies whether the requirement is fulfilled. If the parameter is initial, the requirement is not fulfilled, and the corresponding condition type is not considered in the pricing calculation.

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

Once you have implemented the BAdI, you must configure the following:

  1. In the Define Requirement in Pricing activity, you assign a routine number to the Requirement used in Pricing(PRICING_REQUIREMENT) process enhancement option.
  2. In the same activity, you assign the filter value of the BAdI implementation as enhancement identifier (ID) for the Requirement for Document Item(PRCG_RQMT_FOR_DOCUMENT_ITEM) process enhancement option task.
  3. In the Set Pricing Procedures or Maintain Access Sequencesactivity, you assign the routine number to your custom pricing procedure or custom access sequence in the Requirement field.

Caution: You should use the statement RAISE EXCEPTION only for critical business errors or programming runtime errors. This statement causes a pricing error and therefore might block the processing of business documents.

You can find an example implementation in the BAdI Builder on the Enhancement Spot Definitionstab in the Implementation Example Classessection.

CL_PRCG_DOC_ITEM_RQMT_EXAMPLE is available as an example implementation.






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

Length: 3336 Date: 20240523 Time: 220534     sap01-206 ( 59 ms )