cancel
Showing results for 
Search instead for 
Did you mean: 

doubt in driver program

Former Member
0 Kudos

Hi all,

in Smartform driver program we have use,

data: fm_name TYPE rs38l_fnam. and below two function modules.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

CALL FUNCTION fm_name .

but in the actual Global settings under global definitions node, we have to use TYPES stmt for declaring TYPES and in Under global Data we declare Internal tables and work area and in under Initialization we write all the select statements etc.

My question is :

in the driver proram also we have to use all types stmts, Itab decalrations and Select stmts.and we comment in the same in the smartform ?

if it is yes, how do we pass the same to smartform?

Thanks in advance

KR

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1.SE11 -> create a global table type.

2.In driver program create a internal table of the table type and populate the internal table.

3. In smartform, GLOBAL SETTINGS -> FORM INTERFACE -> create a INTERNAL TABLE of the global type .

4. GLOBAL SETTINGS -> GLOBAL DEFINITIONS -> create a field string.

Now Smartform will import the internal table from the DRIVER PROGRAM.

In the TABLE NODE -> DATA -> give the internal table name and the field string name.

Thanks,

Nithya.

Answers (5)

Answers (5)

Former Member
0 Kudos

If you are defining the variables and internal tables in the smartform it is not necessary that you also have to declare it in the report and pass it to the smartform

Just you need to pass the internal table to the smartform of the type which is recognized globaly or defined in data dictionary....

Rest all things that you need to declare you can do that in the smartform

Former Member
0 Kudos

Hi KR,

[Label Printing in smartforms|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/printing+invoices]

Regards,

Sravanthi

Former Member
0 Kudos

Hi KR

if you are populating the internal table in your smartform itself ,then you dont want to

define itab or types in the driver program.

but it is alwaya a good practice to populate the internal table in the driver program and

oass to the form.

i have written a wiki on this with an example and screen shots,you can have a look at it.

How to get the function module name automatically in the driver program?WITH EXAMPLE. [https://wiki.sdn.sap.com/wiki/display/ABAP/SMARTFORMguide]

Try this ,this will help you,

Regards

Hareesh.

rejish_balakrishnan
Contributor
0 Kudos

hi,

No its not neccesary to use in driver program also.Unlike sap scripts samrtforms have the option of declaring data and types .But if u still want to declare from the driver program then dont declare the statements in smartforms.

Former Member
0 Kudos

in this case all you internal table strcture are must be created in SE11 ( these strctures are stored in data dictionary) otherwise its not accept your internal table through print program.

all this tyes of strctues you can declare in smartforms--> FORM interface..