Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Scripts

Former Member
0 Likes
937

HI ,

how to print a different logos for different company codes in scripts.

Exclusive answer will be rewarded.

thanks and regards

sandy

9 REPLIES 9
Read only

Former Member
0 Likes
892

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.

Read only

0 Likes
892

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

Read only

Former Member
0 Likes
892

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

Read only

0 Likes
892

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  
/:  ENDIF

Regards

vijay

Read only

Former Member
0 Likes
892

Hi

Try like this

If &company_code& = 'XX1'

INCLUDE OBJECT LOGO1...

ELSEIF &company_code& = 'xx2'

INCLUDE OBJECT LOGO2...

ELSEIF..

..

Bala

Read only

0 Likes
892

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 
/:  ENDIF

Regards,

Rich Heilman

Read only

Former Member
0 Likes
892

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

Read only

Former Member
0 Likes
892

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

Read only

Former Member
0 Likes
892

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