on 11-16-2008 1:26 PM
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
Found my problem,
I should have used &SAPSCRIPT-SUBRC& instead of &SY-SUBRC&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.