cancel
Showing results for 
Search instead for 
Did you mean: 

smart form to be printed on a pre-printed stationery

Former Member
0 Kudos

Hi,

All.

can anybody explain as how to proceed to design a template of a form. and the form data should be printed on a pre printed stationery.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

First try to design the smartform similar to your pre-printed stationary.. for example, logo is right create a window for logo on right corner...

If you have lines printed on a pre-printed starionary try create table without border and lines.... etc

Create smartstyle and use paragraph formats and tab spaces and see all data is printing correctly without truncation.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

Sairam

Can u please explain me in some eloborate way as i am very new to this topic

former_member196280
Active Contributor
0 Kudos

Ok, follow this sample example for creating smartform

Smart Form

1) Tcode --> SmartForms

2) Form name --> Z_SF_TEST Create

3) Under Global settings

a) Form Interface

Table Tab

ITAB LIKE EKPO

b) GLOBAL Definitions

WA_NETPR LIKE EKPO-NETPR

In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields

For that we have to create an extra variable in global definitions

Ex: netpr FIELD of EKPO

CREATE program lines and specify WA_NETWR = itab-netpr.

4) RT CLick on main Window

CREATE --> TABLE

Click Table painter

DEFAULT %LTYPE will be Created

a) If you want more like Header footer etc add by rt click on %LTYPE1

Table (Tab)

%LTYPE Radio(SELECT) 5 CM 5 CM 6 CM

CLICK on DATA (Tab)

INTERNAL TABLE ITAB LIKE ITAB

5)RT click on table control and create --> program lines

General attribute (Tab)

INPUT PARAMETER OUTPUT PARAMETER

itab WA_NETPR

Code Area

WA_NETWR = ITAB-NETPR.

6) RT CLcick on table ctl and create 3 text to display the fields

a) % text1 +button(insert field)

FIELD name &itab-ebeln&

Output options (tab)

Check New line LINETYPE %Ltype1

check new cell

b) % text2

& itab-ebelp&

output options

check new cell

c) % text2

& wa_netpr&

output options

check new cell

Report ac

Tables ekpo.

Data: itab1 like ekpo occurs 0 with header line.

select * into table itab1 from ekpo.

Call function module

<b>Note: Also go through the sample examples SF_EXAMPLE_01 & SF_EXAMPLE_02 it will help you in creating smartform.</b>

Close the thread once your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

but i have more hardcoded values so can i create a template instead, and can u also explain me about creating and purpose of template.how to use a template

former_member196280
Active Contributor
0 Kudos

Go through this useful example with screen shots... it will help you to solve your problem...

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985">Smart forms</a>

I guess, your initial question is answered... If yes, close the thread...<b>(reward to all useful answers)</b>

If you have any questions on template try to open a new thread.. so, it will allow others to give you some new ideas for your approach...

Regards,

Sairam

alpesh_saparia3
Active Contributor
0 Kudos

First measure the X & Y position of the details required to be printed.

If required define Page Format & assign to device type.

Create windows and proceed by creating templates & text elements.

-Alpesh

Former Member
0 Kudos

Hi,

there are two cases in this.

1. if u have only header and/or footer on stationery , just leave that gap in ur form. that's enough.

2. if u also have tables,lines,...etc on your stationery and you should prit data in that table or print over the lines,,,etc try this method.

scan the paper on which you are going to print and upload to SAP using SE78

in smartforms goto page node->background picture tab

give the name and details of the picture u have scanned

now the picture will appear as background of your page. now design ur form accordingly. create windows,templates,...etc whtever u want with reference to your background picture. after u r done with designing remove the background picture.

Note: make sure that size of the picture you upload exactly fits to ur smartform page

regards,

ravi