cancel
Showing results for 
Search instead for 
Did you mean: 

RFFOAVIS_FPAYM payment advice print preview and spool not in custom form

ctackett1
Explorer
0 Kudos
207

Hello all,  when the email is generated for the payment advice, it is correct and has the custom form with our company logo, etc.   If I go to RFFOAVIS_FPAYM and do print preview or send to spool it is a blank/generic form.

What we are really looking for is a way to download a payment advice from say 6 months ago so that we can resend to the supplier or a different email.  I know that RFFOAVIS_FPAYM will resend to the email address in the supplier master but sometimes they request we send somewhere else.  We have given business access to SOST but that is only a short term solution as we don't want business to have SOST.  

FBZP > Paying Company Codes has the form set correctly.  As I said, it is working fine for the emails.

Is there something I'm missing to link the Z form to the print preview and spool? 

Thank you for any assistance.

Cheryl

Accepted Solutions (0)

Answers (1)

Answers (1)

Daniel_AC
Explorer
0 Kudos

RFFOAVIS_FPAYM doesn't inherently respect the FBZP configuration for the form when executed standalone and uses the defaults to the standard form (F110_AVIS) unless there is a variant that explicitly sets to the Z-form or the program is enchanced or copied to force the Z-form.
You need to check if your system setup have archiving/output history enabled. If disabled, the way is re-fetching the payment dat and re-redering the form.

I recommend that:
Create a variant for RFFOAVIS_FPAYM them you references the corrct payment method/company code/form.
Ensures that your custom form is picked up during preview/spool.
You need to make sure that the variant explicitly overrides default with your Z-form name in the selection screen (if visible).

Or:
Create a custom Z-repor for Payment Advice Reprint
This works for better long-term.
The report need to accepts payment document number(s) and fetches historical payment data. Calls your Z-form via Smart Forms / Adobe Form

ctackett1
Explorer
0 Kudos
Thank you Daniel. I did create the needed variant and ensured the Z form was in the variant. I still get the correct form in the email but not in the print preview or spool.
ctackett1
Explorer
0 Kudos
Out developers did create a customer Z report but it basically mimics RFFOAVIS_FPAYM. We need a way to export or download the payment advice in the correct for. Or, we need a way to change who the email goes to. Similar to how it works in SOST. My thought was to copy RFFOAVIS_FPAYM and modify from there. The issue is, it does not work as the download and spool aren't in the correct form. If we could get the correct form in download/spool, we wouldn't need the email functionality because we could just email from our desktop.
Daniel_AC
Explorer
0 Kudos
The print logic in RFFOAVIS_FPAYM might be calling the form differently than the email logic. Email output ueses a different routine while print preview uses a more generic... ask your dev to check how the form is being called in the spool logic. Makes sure the Z-form is passed correctly (not just during the email generation). Review your Z report and cofirm if the same form name is used for email and spool (Program sometimes set to standard from unless told otherwise). Devs needs to ensure the correct Z-form is passed in all scenarios and not just email...
Daniel_AC
Explorer
0 Kudos
Email address: Instead of using the master email, enhance your Z-report with a field to manually enter an email and use CL_BCS to send... If you manage to correctly render to spool you can allow to download as PDF using SP01, custom function in Z-form that output directly to PDF...
Daniel_AC
Explorer
0 Kudos
Copying the program RFFOAVIS dont change the logic for form selection. You need to adjust the part that handles the output.
bjansen
Explorer
Another possibility is adding your generic mailaddress of the AP department in de BCC of the original email in BTE 2040.
Ryan-Crosby
Active Contributor
Generally speaking the copying of standard SAP programs is a terrible idea and should be avoided entirely.