
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:
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).
** 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.
(Don’t forget to transport the config data with customizing transport in testing client – Tcode SCC1).
And edit the entry for the configured form under ‘Form Template’ for Rules for ‘GOODS_MOVEMENT’ replacing the standard form and activate it.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |