on 05-10-2012 10:27 PM
Hello all,
I have 3 command lines:
/: IF = &W_PRINTER_DEVICE_TYPE& = 'MICR'
/: BITMAP Z_KIM OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100 XPOS 50 CH
/: ENDIF
I want the bitmap printed conditionally, based on the value of &W_PRINTER_DEVICE_TYPE&.
I the debugger, I can see the BITMAP command getting executed, even when the value does not equal 'MICR". It seems like the BITMAP command will always be executed.
Is there some way to conditionally print the BITMAP?
Thanks
Bruce
Hi,
Remove the = symbol in between IF and &W_PRINTER_DEVICE_TYPE&.
/: IF &W_PRINTER_DEVICE_TYPE& = 'MICR'
/: BITMAP Z_KIM OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100 XPOS 50 CH
/: ENDIF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the answer. I missed the 1st = in the If statement. I mistake was painfully obvious when it was pointed out to me.
Bruce
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
I hope ur if condition is wrong plz se ethe below links
http://scn.sap.com/thread/2065800
http://scn.sap.com/thread/1364271
or
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
Regards
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
see this thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.