‎2006 Jun 29 9:33 AM
Hi friends,
I am new to Smart forms,
Now i am customizing the standard Smartform for Purchase order, in this i want to insert the logo based on the company code .
ie; if Company code is 1000 then logo is logo1.
if company code is 1010 then logo is logo2.
how to do this ?
Can you please explain me in detail ?
Thanks & regards,
Joseph
‎2006 Jun 29 9:37 AM
Hi
You have to insert two nodes of kind GRAPHIC with validation:
- First one: validation: BUKRS = 1000
- Second one: validation: BUKRS = 1010
BUKRS is your variable where the company code is stored.
After inserting a node you can see the TAB for validation on right side of the screen.
Max
‎2006 Jun 29 9:40 AM
There are two ways.
1. Have two picture objects with condition specified on the conditions tab.
2. You can specify the name of the picture dynamically using a varialbe. Click on the button at the end of the name of the picture field and now you can specify the variable name in the field.
regards,
Ravi
‎2006 Jun 29 9:40 AM
Hi Joseph,
Right click on the window created for the logo - > create - > graphic.Double click on the graphic.Go to general attribute write the name of your logo.Object - > Graphics.ID - > BMAP.Go to condition and put your condition (BUKRS = '1000')here.Repeat the same process and load another logo and in condition put BUKRS = '1010'.Activate your form and run your print program or transaction.
‎2006 Jun 29 9:56 AM
Hi Joseph,
Create a "Program Lines" before the "Graphics" Node.
In the program Lines create a variable for Logo name.
ex:
<b>DATA: V_LOGO_NAME(30) TYPE C.</b>
In the coding,
IF BUKRS = '1000'.
<i><V_LOGO_NAME></i> = 'LOGO1'
ELSEIF BUKRS = '1001'.
<i><V_LOGO_NAME></i> = 'LOGO2'.
ENDIF.
Then in GRAPHICS nOde,
Select <b>"General Attributes"</b> Tab.
Give the NAME as &<i><V_LOGO_NAME></i>.
Note:
LOGO! & LOGO2 are already uploaded using SE78.