Adding images dynamically to SAPScript
by Susmitha
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
|