cancel
Showing results for 
Search instead for 
Did you mean: 

add image in sap script

Former Member
0 Kudos

what are the steps to add image on sap script dynamically?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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