cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForms

Former Member
0 Kudos
247

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
jayanthi_jayaraman
Active Contributor
0 Kudos

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].

Former Member
0 Kudos

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.

jayanthi_jayaraman
Active Contributor
0 Kudos

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.