on 06-27-2008 7:16 AM
what are the steps to add image on sap script dynamically?
Hi,
Adding images to SAPScript can be done in two ways:
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
award points if useful
regards,
Tulasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The standard code to print an image with the name ZLOGO is
BITMAP 'ZLOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL
if you have to print the same replace ZLOGO with the variable that has the Logo Name.
Suppose the variable name that contains the logo name is w_logo then we write
BITMAP &W_LOGO& OBJECT GRAPHICS ID BMAP TYPE BCOL
Warm Regards
R Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sample code
*In your print program,
If company_code = '0010'.
imagename = 'ThisCompany'.
endif.
*In your sapscript,
BITMAP &IMAGENAME& OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.