‎2006 Jul 07 12:56 PM
HI ,
how to print a different logos for different company codes in scripts.
Exclusive answer will be rewarded.
thanks and regards
sandy
‎2006 Jul 07 1:07 PM
First, ALL good answers should be rewarded
Second, what type of scripting are talking about if you are referring to SAPScript then I'll be happy to move your thread to the ABAP forum.
‎2006 Jul 07 2:20 PM
hi
am developing sap script for official statement.in this we have to display the diffent logos for different company codes.so how to handle this scenario in sapscripts.
thanks and regards
sandy
‎2006 Jul 07 3:11 PM
Hello Sandya,
In the form CHeck for the BUKRS field.
ie) /: case &L_F_BUKRS&.
/: when '1060'.
/: INCLUDE <Logo for 1060> OBJECT TEXT ID ST LANGUAGE DE
/: ENDCASE.
U can try like this.
Reward points if it is useful
Regards,
Vasanth
‎2006 Jul 07 4:36 PM
Hi,
you can try with IF and ENDIF on BUKRS.
/: IF &BUKRS& = '1000'
/: BITMAP 'LOGO1' OBJECT GRAPHICS ID BMAP TYPE BMON
/: ENDIF
/: IF &BUKRS& = '5000'
/: BITMAP LOGO2 OBJECT GRAPHICS ID BMAP TYPE BCOL
/: ENDIFRegards
vijay
‎2006 Jul 07 3:18 PM
Hi
Try like this
If &company_code& = 'XX1'
INCLUDE OBJECT LOGO1...
ELSEIF &company_code& = 'xx2'
INCLUDE OBJECT LOGO2...
ELSEIF..
..
Bala
‎2006 Jul 07 3:29 PM
Balakrishnan is exactly right. You need to do an IF statement around your INCLUDE or BITMAP statements.
/: IF &BUKRS& = '0010'
/: BITMAP 'Z0010LOGO' OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
/: ENDIF
/: IF &BUKRS& = '0020'
/: BITMAP 'Z0010LOGO' OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
/: ENDIFRegards,
Rich Heilman
‎2006 Jul 07 3:22 PM
hi
good
i dont think there is any realtion ship between printing the logo and the company code , you can print as many logoes in the sap script from as you want , you have to upload the logo and use it in a appropriate window.
thanks
mrutyun
‎2006 Jul 07 4:23 PM
Hai Sandya
Check the following
You can achieve as per below:
1) I want to upload a coloured logo from my desktop to SAP
- Upload your logo via SE78.
- Select 'Import' button from application toolbar of SE78, and perform upload.
2) Then i want to upload that coloured Logo into my SAP Script output
- At SE71, goto Text Element from your window logo (window where you locate your company logo), and place the following statement:
/: BITMAP 'COMPANY_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 150
3) Then i want to make that Coloured logo to be Printed on Layout screen visible as with same color as i uploaded.
Thanks & regards
Sreeni
‎2006 Jul 07 4:31 PM
hi,
You just need to write the if statement in the window in which you want to print the logo. as you want different logo based on different company code, the company code will be the field that should be checked.
if company_code is '100'.
insert logo1
endif.
if company_code is '200'.
insert logo2
endif.
if company_code is '300'.
insert logo3
endif.
Hope this info is useful.
Regards,
Richa