HOW I PRINT A SMARTFORM?
Hi guys, im new in abap, so i need your help, some one can tell me how i can print a smartform?, what functions and parameters i need?, if you can send me an example code it realy helps me.
Thanks & Regrads
Luis
Hi Jose,
Check these program in SE38. These descibes how documents are printed using Smartforms.
<b>SF_EXAMPLE_01
SF_EXAMPLE_02
SF_EXAMPLE_03</b>
Check these links to know about smart forms
http://www.allsaplinks.com/smartform_example.html
http://www.allsaplinks.com/smartforms1.html
Thanks,
Vinay
Similar Messages
-
How to print multiple Smartform Templates
Good day Gurus,
I have 5 Smartform templates combined in one program. During printing if 1 data for each template is available, The pop-up screen also appears 5 times for me to print the templates. My question is how can I print the 5 templates using 1 pop-up screen. What I want is after pressing the PRINT button, all of the templates will automatically print.
Note that P_V_CONTRACTTYPE varies depending on the template to be used. That's why this procedure appear 5 times also.
For the controls, these are my inputs.
- control-no_dialog = ' '.
- control-preview = ' '.
- w_aux-tddest = 'LP01'.
determine smartform function module for service request
call function 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = p_v_contracttype
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
others = 3.
MESSAGE 'For Multiple Contracts, Only First 10 pages will be displayed.' TYPE 'I'.
call function lf_fm_name
EXPORTING
output_options = w_aux
user_settings = space
control_parameters = control
it_noutput = it_noutput2
var_lessee_rep = var_lessee_rep
var_uses = var_uses
var_basic_monthly = var_basic_monthly
var_secdep = var_secdep
var_lessee_add = var_lessee_add
var_other_charge = var_other_charge
TABLES
it_lessee_rep = it_lessee_rep
it_noutputrent = it_noutputrent
it_uses = it_uses
it_basic_monthly = it_basic_monthly
it_percentage_rent = it_percentage_rent
it_secdep = it_secdep
it_noutputrentB = it_noutputrentB
it_lessee_add = it_lessee_add
it_other_charge = it_other_charge
it_noutput = it_noutput2
it_adv_rent = it_adv_rent
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
Thanks in advance.Use tdnewid in the control parameters to create spool number on each template.
-
How to Print the smartform repeatedly
Hello Friends,
Let me say, In my selection screen I am giving the label count as 5 and execute, I get a print options popup window where I can mention how many copies I need to print. If I mention 2 here, then I should get 2 sets of 5 labels to be printed. i.e, totally, 10 labels has to be printed. Could anyone please help me out how to do this in smartform.you are right, Output_options-TDCOPIES is for number of copies. But, here I have one more count, i.e., the label count. Let me say that I give the label count as 3 and Output_options-TDCOPIES = 1. Then it should print 3 labels for 1 time copy. Similarly 6 labels for 2 times copy. You got my problem.
-
Hi, everyone, how to print two smartforms one after one?
first, merry christmas to you all.
the question is that I want to call two smartforms sf1 and sf2, how to use one print program(I use print program to call them) or some other ways to call sf1 and after call sf1 I need to call sf2, finally they are printed one after one! thank you in advance!HI,
You have to call the smartforms one after the other and you have to avoid the pop up that comes while printing the smartforms -
How to print multiple smartforms ( 2 or 3 SM ) in one page serially .
My requirement is - I want bank-branch wise smartforms that too serially one after another . Depending on space of page it should print no. of smartforms on pages upto the last smartform.
for example
smartform1 takes only 10 lines .
smartform2 takes only 15 lines.
and 1st page has 30 lines.
then smartform1 & smartform2 should get printed on the same 1st page serially one after another.
And if smartform3 has 25 LInes then it should printed on next page alone and smartform4 on next page and so on,.
Right now I am getting smartform1 on page1 ,
smartform2 on page2,
smartform3 on page3
correctly branch-wise.
So how to obtain the above requirement , can ANYBODY tell me ?
With Regards,
Ashish G.Hi,
I am sorry, I use wrong word. Similarly like Protect.. end protect there is a same concept like PAGE PROTECTION in smartforms.
So you can use that. PAGE PROTECTION work exactly as Protect.. end protect in script.
You can achieve this functionality through style also ( Just check checkbox of PAGE PROTECTION and add that style in ur loop).
So it will work..
No need of triggering smartforms multiple times. Put ur logic, as if 1 loop will act as 1 smartform and use PAGE PROTECTION and when 2nd time loop will be triggered, will print as 2nd smartform, So you might be able to achive your functionality...
Thanks & regards,
Mihir.
Edited by: mihir6666 on Jul 11, 2011 11:19 AM
Edited by: mihir6666 on Jul 11, 2011 11:23 AM -
How to print the smartform as in the data of tablecontrol...?
Hi,
1.I create 2 tabs in Modulepool Programming.
2.In First Tab, I enter the data and when i click the SAVE button the data should be saved in my custom table ZDILEEP.
3.In Second Tab,I put an Tablecontrol and DISPLAY the data what i have to save in first tab and i do 3 operations as DELETE,UPDATE,ADD A RECORD.
4. I Create a button in Application Toolbar as FORM,whenever i click this button the SMARTFORM will be triggered.
5.In SmartForm, I put an TableControl and display the data and i put SUM of SALARY.
6.Now My Requirement is At run time, if i add a record or update a record that should be displayed in smartform,
without clicking the pushbuttons UPDATE,ADD A RECORD i.e. without using custom table ZDILEEP the data
should be displayed in smartform as of Tablecontrol.
where I want to write these code....? and what code i want 2 write...?
can anybody help me
Moderator message - Cross and duplicate posting is not allowed in the forum. This is at least the second post of yours that I have locked for this reason. If you continue, your userid may be deleted - thread locked
Edited by: Rob Burbank on May 12, 2010 3:23 PMDid u look at the system fields of smartform ?
Look at the structure SFSY.
Amandeep -
Print the smartform to the spool
Hi all,
How to Print the smartform to the spool ?
Thanks in advance
KrupaDATA: p_out LIKE ssfcompop,
p_ctrl LIKE ssfctrlop.
CLEAR: p_out,
p_ctrl.
p_out-tdnoprev = 'X'.
p_out-tdnoprint = 'X'.
p_out-tdnoarch = 'X'.
p_out-tddelete = 'X'.
p_out-tddest = p_dest.
p_out-tdnewid = ''.
p_out-tdimmed = ' '.
p_out-tdcopies = 1.
p_out-tddataset = sy-repid.
p_out-tddelete = ' '.
CALL FUNCTION fm_name
EXPORTING
inv_header = tmp_header
output_options = p_out
control_parameters = p_ctrl
user_settings = ' '
TABLES
t_item = tmp_item
The lines in bold are the main key statements for spool.
tdnewid is the name of the spool.
awrd points if useful
Bhupal -
How to print the superscript in smartform
Hi gurus,
Please tell me the procedure how to print the superscript in middle of the text displaying?
when we are displaying the smartform its converted to some special character like & .
please let me know procedure at the earliest
Regards
RajHi thanks for ur patience.
see my requirment was to print TM as superscript for HLL ,already smartstyle is there, and also a character format with superscript is also defined.
then aftet HLL how it prints as superscript.
for HLL we are using another character format and for superscript we are using the another character format.
If posiible send me the code to write in smartforms
Regards
RAj
Points are awarded for useful answers. -
How to print horizantal lines in smartforms?
hi friends,
how to print horizantal lines in smartforms.
waiting for ur valuble replies.
Thanks,
KiranHI,
If u use templates or table,then use borders to print the horizontal lines.
Eg : Create template-->Table painter->click select pattern button->Display framed pattern->select 3rd one.it will display only horizantal lines.
if want to print horizantal line under the text, then create one paragraph or character formate with Underline in smartstyles.Use that paragraph or character to u r text element -
How to print a bullet in smartforms?
Hi All,
How to print a bullet in smartforms?
I need it urgently.
Any help would be appeciated.
Regards,
Mahesh.Hi,
if i remember correct <600> is the value for bullets.
you can insert this using sap system symbols ---> select bullets (before this place your cursor where ever you want the bullets.
eg:
P1 <600> test.
Thanks,
Sree. -
How to print Check Box in smartform
HI,
How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
Thanks
Raghavendrahi,
u can print a check box in different ways.. by inserting symbols and making window as check box..
once go through the thread u will get to k now differnt ways
putting checkboxes in smartform?
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K -
How to print a tickbox in SAP smartform
Dear All,
Can anyone help as to how to print a tickbox in the smartform.
A tickbox is a blank checkbox with a tick in between.
The symbols <697>(Crossed checkbox) and <727>(Blank Checkbox) do not serve my user requirement.
Regards,
RijurajDear Deepak,
Thanks.This is the closest solution we could get to
[<709>].
With the same line of thinking we can also have,
[<769>]
or
[<799>].
We can also highlight the square brackets to "Bold" if required.
Best Regards,
Rijuraj
Edited by: Rijuraj Raju on Sep 21, 2011 1:00 PM -
How to print table items in column in smartform in 4.6c version.
Hi Experts,
I want to print the items i have in columns (like name invoice number) in smartforms but when i create table in main window there no options for header footer and main area, i have created the template for header and footer but how i print the items in columns. Pls reply ASAP.
Thanks in advance,
Abhishek Pandey.Hi
create a table under main window
Under the Header create a Row or Line
Under the Row create a Cell and Under that Cell create a text field
In that text you can write what ever field name u want to write
Reward if it is helpful to you
Thanks
Krushna -
How to print the barcode in a smartform satisfying specific condition
Hi
I have a requirement where I need to print the barcode System Bar code = BC_93
satisfying the following requirement:
The Bar code is made up of the concatenation of code1 , dash character
and code2. The two codes ( that is some field in a custom table) should be
eight char long each (put leading zero if the length of the code is shorter).
This barcode shall be printed always apart from:
a) code1 material type is ZCPF
b )Is a combi order, with no code2 stored in storage location abc
please help with example . its very urgent , points will be rewarded.
ThanksTo Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
go through these links and cose u r previous threads,
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
smartform - barcode
http://www.erpgenie.com/abap/smartforms.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
Detailed information about SAP Barcodes
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
Re: how to print barcode using smartform and sapscript...? -
How to print window contents at the backside of a page(In scripts&smartform
Hi,
How to print the window contents at the back side of a page
in scripts and smartforms?
regards,
prajwalaCreate a new page with the window and select "duplex" printing. Use Search button to get more information.
Maybe you are looking for
-
Satellite X200: WLan driver does not work using WXP
Hi I'm trying to get the WIFI working under XP on my Satellite X200. I've downloaded these "wlan-intel-1244-7147" drivers but still no luck, also after installing these drivers I get an error when I shut down saying 'Sample program not responding'. T
-
Hi, I had someone tell me that raid 5 is slow for my editing (or with video). Is this true? Will using a raid 0 be faster?
-
Please help me un-drop this float!
This newbie is sure it's something simple. The template for the home page that's still very much under construction came from DW CS3. All I wanted to do is to swap the order of the #menu div with the #mainContent div, so the flow of html is: the head
-
Logic crashes at start after system reinstall
Hi there, After reinstalling my OSX after hard drive failure, I have installed Logic as well. Everything was working fine for a day, I installed most of my plugins too. I did a few software updates. However, after last update Logic started to crash a
-
How to Transfer the Data from ORACLE APPS to SAP
Hi Gurus, Here are my couple of quieries regarding Data Migration from Legacy(Oracle Apps) to SAP. 1. How to link between Legacy system(ORACLE APPS) and SAP ? 2. How to migrate the data from Oracle tables to SAP directly, instead of loading the flat