cancel
Showing results for 
Search instead for 
Did you mean: 

smartform declarations

Former Member
0 Kudos

Hai

Iam new to smatforms, can any one explain what is form interface and global definitions,and how to declare them in a smartform

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pavan,

Smartform works like a Function module.

Form interface provides interface between Smatform & print program. Here you can delcare a structures & tables to be imported form print program. Tables will be defined in tables tab of form interface. These structure you can directly use in smartform & Internal tables can be used in loop & table control. You can also read the data of structure & tables by using program lines like read table or loop & endloop.

Global defination are use to declare local variables, sturcutes, types etc.

These variabls & structure or Work area can be filled by the strucutes or tables you have imported in from interface. Initialization section you can initialze the values of variables etc.

For more details check out the following links:

http://www.satoworldwide.com/labelgallery/downloads/WhitePapers/Printing%20labels%20from%20SAP%20R3....

http://www.zebra.com/id/zebra/na/en/index/industry_solutions/alliances/sap_new/sapsmartforms.html

http://www.datamaxcorp.com/_assets/library/pdf/sap_91803.pdf#search=%22LABEL%20PRINTING%20IN%20SAP%2...

Reward points if usepful answers.

Ashvender

Answers (4)

Answers (4)

Former Member
0 Kudos

<b>global definations</b> are all those declarations which u r going to use in u r different windows

eg for form interface

in u driver program u have

parameter:p_vbeln type vbap-vbeln.

u r smartform needs this parameter.

go to ur smartform . in form interface write <name>(which u desire) type vbap-vbeln.

hence u r smart form will take that parameter in driver program.

Former Member
0 Kudos

hi ,

form interface is required when u r calling u r smartform through driver program .

example :

all u r select queries are in a report program ,then u call the function module of u r smart form

now the smart form should understand what data needs to be printed which u selected through u r select queries. hence u declare all those parameters in u r form interface .

award pts if useful

Former Member
jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

If you are passing some variable or internal tables from print program,then you should include it in form interface.

If you are declaring the variables or internal tables which is to be used inside the smartform,declare it in global definitions.

Kindly reward points by clicking the star on the left of reply,if it helps.