‎2005 Feb 02 4:30 PM
We have got the same form ... but need to have separate images based on company code. Is it possible to add images dynamically to a SAPscript ?
Rajib
‎2005 Feb 02 4:38 PM
Sure, 2 ways of doing this.
1)You can handle it in the print program, by doing an if statement and filling a variable which the SAPscript will read.
*In your print program,
If company_code = '0010'.
imagename = 'ThisCompany'.
endif.
*In your sapscript,
BITMAP &IMAGENAME& OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
2) You can have the if statements in the SAPscript itself.
*In your sapscript,
IF COMPANY_CODE = '0010'
BITMAP THISCOMPANY OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
ELSEIF
BITMAP THATCOMPANY OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
ENDIF
Either way you will need to load the images via SE78
Regards,
Rich Heilman
‎2005 Feb 02 4:38 PM
Sure, 2 ways of doing this.
1)You can handle it in the print program, by doing an if statement and filling a variable which the SAPscript will read.
*In your print program,
If company_code = '0010'.
imagename = 'ThisCompany'.
endif.
*In your sapscript,
BITMAP &IMAGENAME& OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
2) You can have the if statements in the SAPscript itself.
*In your sapscript,
IF COMPANY_CODE = '0010'
BITMAP THISCOMPANY OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
ELSEIF
BITMAP THATCOMPANY OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
ENDIF
Either way you will need to load the images via SE78
Regards,
Rich Heilman
‎2005 Feb 02 6:49 PM
‎2005 Feb 02 6:57 PM
‎2005 Feb 02 8:03 PM
Rich,
I had one more question.
Can the included image be other than bmp..... I had some images in .tif format. Do I need to convert them to bmp?
About the size, I was referring to the size of the image. Sorry for the confusion.
Thanks again.
Rajib
‎2005 Feb 02 8:07 PM
‎2005 Feb 02 8:41 PM
‎2006 Sep 15 2:47 PM
It is possible to use an image of archiving in a form of SAPscript?
‎2008 Jun 24 2:41 PM
Hi,
Is it possible to add an employee photo dynamically to a form WITHOUT uploading it with SE78 ?
Thanks a lot
Ofer
‎2005 Feb 02 6:23 PM
Rich,
Awesome solution............works great.
Thanks a TON!!
Rajib