on 2022 Oct 18 3:13 PM
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
Request clarification before answering.
SAP Help delivers some information how to include graphics via URL:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.