on 2005 Jul 27 9:28 AM
Dear All,
I am a new ABAP Programmer and learnt Smartforms very recent.
I need to create Smartform to print Labels. Input parameters are Material Doc. Number, Material number and number of copies of labels.
Please provide me hints as how this can be accomplished using Smartforms.
Thanks.
Hi Pratibha,
below links might help you,
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms_detail.htm
http://www.sap-basis-abap.com/sapsf001.htm
regards,
venu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you are getting the input from ABAP report,just declare appropriately in Form interface.
If needed declare variables,internal tables,work areas in global data.Then if you want to do some coding,do it in program lines.Create a loop by giving the internal table and workarea.Create needed text elements inside it.Activate the smartfrom.Execute it from report using 'SSF_FUNCTION_MODULE_NAME'.
Check this link .
http://www.sap-basis-abap.com/sapsf001.htm
If you explain the requirement little bit clearly,I will try to explain.
Please reward points if you find the reply is useful.[click yellow star[2 points],green star[6 points] or blue star[10 points if the problem is solved].
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for answering my query.
As you mentioned earlier, here are the details of my query.
Input parameters are Material Document Number and Material Number and number of copied for each label.
Per page I can display 14 labels only.
Data to be displayed on each label based on selected values are as below.
Material Document number
Material Number and description
Reservation Number
Order Number
Description
Goods Recipient
Unloading point
I can write abab program to generate report and pass on to Samrtforms.
Only problem is not able to decide on what components to be taken in smartform.
Hi,
In the report,I suggest you to use Material Document Number,Material number and number of copies for each label as parameters[or select-options according to your requirement].Then retrive the data from the database table based on the input parameters to an internal table.The internal table should be declared in such a way that,
data itab type standard table of zzz_itab.[zzz_itab should be declared as structure in SE11].
Then go to smartforms transaction.
In Form Interface->table,declare
itab type standard table of zzz_itab.
In Global definition->Global data,wa type zzz_itab.
Then create loop.
Loop->Data
itab into wa.
Create text element for the fields to be displayed in the output by draging it from field list.
Kindly reward points if it is useful.Otherwise,get back.
User | Count |
---|---|
57 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
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.