on 06-20-2008 2:12 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.