SAP Knowledge Base Article - Public

3636847 - Tax item information on Purchase Order Output Forms

Symptom

In SAP S/4HANA Cloud Public Edition, no standard CDS views are available to retrieve tax information during purchase order creation. As a result, tax values cannot be transferred to output messages at this stage.

Environment

SAP S/4 HANA Cloud Public Edition

Cause

Data from CDS I_PurOrdItmPricingElementAPI01 cannot be retrieved  because the Purchase Order number does not exist during the Purchase Order creation.

Resolution

If Tax values need to be printed on Purchase Order Forms , a custom logic implementation is required. 

Here is a potential workaround for this missing functionality:


1. Create custom field at item level for the Purchase Order.

2. Populate this custom field with the tax amount to be printed. Note that in the current SAP S/4HANA Cloud Public Edition release, there are no standard CDS views available to directly retrieve tax rates or tax codes.

Workaround 1:

To implement the desired code logic, BAdI MM_PUR_S4_PO_MODIFY_ITEM can be utilized.

  • Use this BAdI to calculate the tax amount as needed.
  • I_PurOrdItmPricingElementAPI01 is not filled while the order is saved.
  • Implement the  BADI calculating the values on your own logic code. 


Workaround 2:

To implement the required code logic, the BAdI MMPUR_PO_OUTPUT_HEADER_EXT/ITEM can be used.

The BAdI MMPUR_PO_OUTPUT_HEADER_EXT/ITEM can be used to implement custom logic for VAT calculation during output generation. It should be noted that this BAdI does not update the custom fields at the database level; changes will only be reflected on the output form.

This BAdI is invoked during output determination, which takes place after the purchase order is created. At that stage, the structure I_PurOrdItmPricingElementAPI01 already contains the relevant condition type values.

3. Enable custom field for output as demonstrated in this blog.

4. Adjust custom form template with the new field included.

Disclaimer : The Custom logic used on BADIS is out of the scope of SAP Technical Support.

Keywords

Tax item information, tax information, tax value, BAdI, MMPUR_PO_OUTPUT_ITEM_EXT, MM_PUR_S4_PO_MODIFY_ITEM, purchase order output , KBA , MM-FIO-PUR-PO-OM-2CL , Purchase Order Output Management (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions