on 08-28-2007 8:15 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.