cancel
Showing results for 
Search instead for 
Did you mean: 

Logo in smartforms

Former Member
0 Kudos

Hi all,

I am handling with smartforms. I have a requisite, that based on the comany code logo should be displayed. There are 4 company codes. How to handle the case.

Plese give me some resolutions for the same.

Thanks in advance,

John

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

create two graphics and then select one each and go to tab conditions there u can define fiel dfor comparison like f1 = ABC

and on other graphics do the same and check for f1 = xyz.

so when the condition wil met then only the graphics wil be printed..

u have to declare 1 global variable in form for company code and then based on tht value chekc condition in graphics..

Former Member
0 Kudos

Hi,

You can do it in this way:

Add 4 graphics to your form, each holding a different logo. Inside condition tab check for the compnay code.

Hope it helps you.

Regards,

Shikha

Former Member
0 Kudos

Very simple.

Ur code should go like this.

Example:

Company are:A1

Logo:z_a1

Company are:A2

Logo:z_a2

Company are:A3

Logo:z_a3

Company are:A4

Logo:z_a4

Code:

/: If &T001-BUKRS& = 'A1'

/: INCLUDE Z_A1 OBJECT TEXT ID ST LANGUAGE DE

/: elseif &T001-BUKRS& = 'A2'

/: INCLUDE Z_A2 OBJECT TEXT ID ST LANGUAGE DE

/: elseif &T001-BUKRS& = 'A3'

/: INCLUDE Z_A3 OBJECT TEXT ID ST LANGUAGE DE

/: elseif &T001-BUKRS& = 'A4'

/: INCLUDE Z_A4 OBJECT TEXT ID ST LANGUAGE DE

/: endif

Try in this way and let me know if U face any problem.

Regards

Former Member
0 Kudos

Hi John,

Based on the company code you can send the logo name into a Variable from your Driver program and you can just use it here in the following statement.

Just as I said before you can create a GRAPHIC node where the name of the node is a variable:

Name &V_LOGO&

Object GRAPHICS

ID BMAP

So before of GRAPHIC node you have to insert an ABAP node where u insert the name of the LOGO in according the company code:

CASE BUKRS = ....

WHEN '....'. V_LOGO = .....

WHEN '....'.

ENDCASE.

You can insert two GRAPHIC nodes for the two logo of the two company and insert a condition for the company code in the nodes.

Suggest you to Search in <b>SDN with key - LOGO in SMARTFORMS</b>

Will get few more useful related Posts.

Reward points if this Helps.

Manish

Message was edited by:

Manish Kumar