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

Help On Smart Forms

Former Member
0 Likes
526

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

4 REPLIES 4
Read only

Former Member
0 Likes
485

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

Read only

Former Member
0 Likes
485

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

Read only

Former Member
0 Likes
485

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.

Read only

Former Member
0 Likes
485

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.