cancel
Showing results for 
Search instead for 
Did you mean: 

Bitmap: Error message

Former Member
0 Kudos

Hi

When i debug the sapscript prints logo1 and overwrite it with logo2..

I tried to use sy-subrc to trap the error but the second bitmap always overwrite the first bitmap even if the first bitmap does exist.

When i delete logo1 i get the following error. INCLUDE GRAPHICS,logo1...,BMAP,BM is not available

Where does it store this message?

 DEFINE &BMAP1& = ''                                                                                
&BMAP1& = &logo1& 
                                          
 BITMAP &BMAP1& OBJECT GRAPHICS ID BMAP TYPE BMON DPI 150            

******if logo1 does not exist, print logo2.                                   
******
 IF &SY-SUBRC& NE 0.  
 &BMAP1& = &logo2&                                                                                
BITMAP &BMAP1& OBJECT GRAPHICS ID BMAP TYPE BMON DPI 150              
 ENDIF                                                                                

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Found my problem,

I should have used &SAPSCRIPT-SUBRC& instead of &SY-SUBRC&