SAP Knowledge Base Article - Public

3555422 - Print Preview integrated with Output BAdIs

Symptom

MMPUR_PO_OUTPUT_HEADER_EXT and MMPUR_PO_OUTPUT_ITEM_EXT not called during Print Preview Function in the advanced App

Environment

SAP S/4HANA Cloud Public Edition

Cause

System design

Resolution

As per the current design, the BAdIs MMPUR_PO_OUTPUT_HEADER_EXT and MMPUR_PO_OUTPUT_ITEM_EXT are not triggered during the output preview in the Manage Purchase Orders and Create Purchase Order - Advanced applications, except in the following use case:

  • The BADI is triggered when the Output Preview button is clicked in the Manage Purchase Orders application while in display mode (not in edit mode). In this scenario, the BADI fetches either already saved details or hardcoded values provided in the BADI implementation.
  • Note that this workaround applies only to Purchase Orders that can be opened in the Manage Purchase Orders app. For more information on which Purchase Orders can be opened and which cannot, please refer to this KBA 2372209.

As per the design, the BAdI MMPUR_PO_OUTPUT_HEADER_EXT is intended to be used to fill the custom field value that is meant to be displayed only in the PDF of Print and Email channels.

To update the custom field in any other area, such as email templates or applications, the value of the custom field needs to be updated with other BAdIs, such as MM_PUR_S4_PO_MODIFY_HEADER and MM_PUR_S4_PO_MODIFY_ITEM.

 

See Also

KBA 2372209 - Purchase order opens in the Advanced (WEBGUI) app - SAP Fiori & SAP S/4HANA

Keywords

MMPUR_PO_OUTPUT_HEADER_EXT,  MMPUR_PO_OUTPUT_ITEM_EXT, Output, Preview, Print Preview , KBA , MM-FIO-PUR-PO-OM-2CL , Purchase Order Output Management (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions