Supply Chain Management Blogs by SAP
Expand your SAP SCM knowledge and stay informed about supply chain management technology and solutions with blog posts by SAP. Follow and stay connected.
cancel
Showing results for 
Search instead for 
Did you mean: 
robinthakral
Advisor
Advisor
0 Kudos

INTRODUCTION:

For the last few weeks, I have been working on a requirement that required a custom Adobe form for a standard GR label through NACE but later, we had to opt for new BRF+ O/P management. The ideal approach is to use fragmented Adobe form, but the number of fields was not there in the standard service interface. So, we opted for the DDIC interface option available in ‘Assign Form Templates’.

Challenge: To achieve this requirement, I had faced a couple of challenges:

    1. Spool request could not be found - APOC_OR_MESSAGES (145): Discussed in this blog.
    2. Dump - /BOBF/CX_FRW_FATAL – CLASS CL_APOC_OR_A_ITEM_GET_DOCUMENT: Create a Z* Driver program for the form individually and check the issue there – for my case, ADS Configuration was the issue, handled by me and basis tech guy
    3. Bar code center alignment: Centre Alignment of BARCODE blog.


In this blog post we will cover the steps to print GR Label and handle Spool request could not be found - APOC_OR_MESSAGES (145).

MAIN CONTENT:

    1. Firstly, get the name of the standard program – subroutine (Form routine) that you would be triggered in the back-end from the business process. You can later, choose any other sub-routine as well, if that one has better parameters as per your requirement. Make sure the sub-routine you are choosing has *PDF or ADOBE* naming pattern to have the FP_JOB_OPEN/CLOSE else you must manually change the printout subroutine.

** In my case, I have used Program – SAPM07DR, Routine - ENTRY_WE03_PDF.

2. Create an executable report ZAB_IM_SAPM07DR replicating subroutine-pool SAPM07DR, Includes ZIN_IM_M07DRTOP, ZIN_IM_M07DRSON_PDF from M07DRTOP, M07DRSON_PDF resp. and replace the std. includes with them in program ZAB_IM_SAPM07DR.

3. Go to SFP, create a DDIC interface as per the parameters exported in the sub-routine, handle the required processing logic, and create the required layout in ADOBE form to the interface.

4. Point of solution: In the subroutine, FORM_OPEN_PDF, just before FP_JOB_OPEN – handle the output parameters as below, as per SAP KBA 3016791 - Error 'Spool request could not be found.':

 

  gs_outputparams-getpdf   = abap_false.
  gs_outputparams-reqnew   = abap_true.
  gs_outputparams-covtitle = nast-tdcovtitle.
  gs_outputparams-nodialog = abap_true.
  gs_outputparams-preview  = abap_false.​

 


Activate the program.


5. Share the name to functional or manage it in SPRO.

    • Application Area: 'Cross-Application Components'

 

    • Sub Application Area: 'Output Control'

 

    • Select the configuration step 'Assign Form Templates' (SSCUI 102313)

 

    • Maintain

        • Application Object Type - GOODS_MOVEMENT

        • Output Type - GOODS_RECEIPT_LABEL

        • Form type – 2 – Output Forms (DDIC Interface)

        • Form Template ID - ZAF_IM_GR_LABEL

        • Program – ZAB_IM_SAPM07DR

        • Routine - ENTRY_WE03_PDF

(Don’t forget to transport the config data with customizing transport in testing client – Tcode SCC1).

    1. Now functional will go to transaction OPD or below process, that will trigger Fiori launchpad.

And edit the entry for the configured form under ‘Form Template’ for Rules for ‘GOODS_MOVEMENT’ replacing the standard form and activate it. 

Outcome:

Now create a document in the test client for Material document and go to MIGO, enter MBLNR -> output-> Display Outputs.

Enter a row with Preparation status & and details as per configuration.

Select the row and click Display document (pdf icon)

GR_LABEL - Z*FORM*


Reference links:

2736938 - Settings for processing program and form templates in billing document in new output manag...

2294198 - SAP S/4HANA output control - customized forms

2608890 - Standard S/4HANA Output Control settings for Purchasing (output forms and processing progr...

Topic page:

ABAP Topic: https://community.sap.com/topics/abap,

post and answer questions https://answers.sap.com/tags/833755570260738661924709785639136.


Follow me at  Robin Thakral

1 Comment