cancel
Showing results for 
Search instead for 
Did you mean: 

RE-FX Correspondence - Does the dynamic URLGR logo work in Adobe Forms?

afordham
Participant
0 Kudos
748

Hi,

I am trying to get the Adobe Form RE_CN_200 (Adjustments) to ouptut a different logo depending on the Company Code. The details for the logo's URL are held in table TIVCPTM in field URLGR. Nothing I've tried seems to work.

I have used images in the MIME repository (e.g. /sap/public/bc/mylogo.jpg), full URLs (e.g. https://site.domain.com/mylogo.bmp) but none of them renders the image.

Debugging the code, I can see where the call is made to functional module FPCOMP_WRITE_GRAPHIC_URL to overwrite the default IDES logo:

CLEAR %URL.
CONCATENATE %URL SENDER-URLGR ' ' into %URL.
CALL FUNCTION 'FPCOMP_WRITE_GRAPHIC_URL'
EXPORTING
I_NAME = 'LOGO'
I_URL = %URL
I_MIME = SPACE
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4.
%FPCOMP_ERROR.

but this just disappears off into the kernel. Is the fact that the MIME type is hardcoded to SPACE going to cause a problem with the Form, or should it be able to work out the Content Type automatically?

Any help would be greatly appreciated!

Many thanks,

Andrew

Accepted Solutions (0)

Answers (1)

Answers (1)

MvW
Participant
0 Kudos

SAP Help delivers some information how to include graphics via URL:

https://help.sap.com/doc/saphelp_nw73ehp1/7.31.19/en-US/4a/92512e66193898e10000000a42189c/frameset.h...