cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms Logo

Former Member
0 Kudos

My requirement is there shud b different logos in the first and second page of the smartform. how can i achieve this?

<MOVED TO CORRECT FORUM BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 20, 2008 9:16 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi SRK,

As Venkat said create two windows and include different logos in these windows.

and use these two windows in different Pages.

Best regards,

raam

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You create required number of logos individually.

Create Program lines add code like below logic.

If Company code = 1.

Logo 1.

elseif comp code = 2.

Logo2.

elseif......etc.

Endif.

Then in logo Conditions tab add conditions.

Definately u'll get logos dynamically.

You can use Case Endcase statement in SAP Script for dynamic printing of logos.

In case of smartforms,

You can use the condition tab in graphic node for selective display.

For Example:

If you want to display a logo in header window, Create 3(for 3 company codes) graphic nodes under it. and in each node's conkdition tab specify the condition.

For first Graphic Node:

Field Name - ITAB-BUKRS

Comparison Value - '001'.

For second Graphic Node:

Field Name - ITAB-BUKRS

Comparison Value - '002'.

For third Graphic Node:

Field Name - ITAB-BUKRS

Comparison Value - '003'.

Regards,

Jagadish

Former Member
0 Kudos

For the logo to be dynamic, in Genaral attributes of the Graphics, give the logo name as a place holder(eg: &W_LOGO&) instead of a static name and select this field as "Dynamic value". Just before calling the Graphics node, have a program lines node and here pass the desired logo(eg: LOGO1) you need to W_LOGO based on the validation(i.e., based on the Company code).

Define W_LOGO in Global definitions and pass this in both Input and Output parameters of the Program lines.

When the smartform processes this code, it assigns the logo name(LOGO1) to the variable W_LOGO. When it comes to Graphics node, it replaces &W_LOGO& with LOGO1 and the logo is printed.

Easiest way is to put an IF condition to print logo based on the Company code.

Hope this helps

***********reward points,if found useful

Former Member
0 Kudos

hi check this ..

you will put the different windows for the first page and second page...then write the coding

check this....