SAP Knowledge Base Article - Preview

3107203 - Print preview result can be different comparing already processed and not yet processed BRF+ outputs

Symptom

You have such a Purchasing document (for example Purchase Order), in which you use the S/4hana output control output (a.k.a BRF+ based) determination logic.
You have such a document in which you have already succesfully processed outputs (completed status), and you also have not yet processed output type(s) ("to be processed" or "in preparation" status)

You notice that previewing these two status typed outputs behaves differently.

In debugging you also notice that the call stack is fully different at previewing such outputs:

Callstack (from bottom to top) of not yet processed output's preview (in this case this is an example of a legacy output form's processing, not PDF with fragements case, but the overall logic is same):

...
FORM RENDER APOC_RENDER_DOC_LEGACY_FORMS
METHOD RENDER_DOCUMENT CL_APOC_LEGACY_OM_NAST========CP
METHOD IF_APOC_OR_H_UTILITY~RENDER_DOCUMENT CL_APOC_OR_H_UTILITY==========CP
METHOD /BOBF/IF_FRW_ACTION~EXECUTE CL_APOC_OR_A_ITEM_GET_DOCUMENTCP
METHOD EXECUTE_ACTION /BOBF/CL_FRW==================CP

Callstack (from bottom to top) of already processed output's preview:

FORM BOPF_ACTION_ITEM_GET_DOCUMENT SAPLAPOC_OUTPUT_REQUEST_UI 
FORM FCODE_BEARBEITEN SAPLV00F
FUNCTION SCREEN_SEQUENCE_CONTROL SAPLV00F
FORM EXECUTE_FCODE SAPLAPOC_OUTPUT_REQUEST_UI
MODULE (PAI) PAI_EXECUTE_FCODE SAPLAPOC_OUTPUT_REQUEST_UI
PAI SCREEN 0100 SAPLAPOC_OUTPUT_REQUEST_UI
FUNCTION APOC_OR_MAINTENANCE_UI SAPLAPOC_OUTPUT_REQUEST_UI
FUNCTION ME_MESSAGES_MAINTAIN SAPLMEDR
METHOD IF_OUTPUT_MM~OVERVIEW CL_PO_HEADER_HANDLE_MM========CP
METHOD PROCESS_OUTPUT SAPLMEGUI
METHOD IF_COMMAND_MM~EXECUTE SAPLMEGUI
METHOD IF_COMMAND_MM~EXECUTE CL_COMMAND_PROCESSORS_MM======CP
METHOD EXECUTE CL_CONTROLLER_MM==============CP


Read more...

Environment

  • SAP S/4HANA On-Premise and Cloud

Product

SAP S/4HANA all versions

Keywords

s4hana output control BRF+ contract purchase order PO kontract bestellung lieferplan scheduling agreement preview printpreview druckansicht me23n me22n me32k me33l me33k me32l advanced manage APOC_RENDER_DOC_LEGACY_FORMS BOPF_ACTION_ITEM_GET_DOCUMENT , KBA , MM-PUR-GF-OC , Message determination and printing , CA-GTF-OC , SAP S/4HANA output management , MM-PUR-ADB , Adobe document services in purchasing , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.