cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass internal table data from Smartform to Driver pgm

Former Member
0 Kudos

Hi,

I m working on smartform. I have a driver program , in this driver program I have an output internal table. I need to pass this internal table values to the smartform.

Please let me know how to pass it to smartform from the driver program and how to retrieve the internal table values in the smartform.

Regards

Sarvan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

First ensure that the type of the internal table exists in the dictionery ( It shud be a DDIC global structure ), then pass the internal table to the smartform's function module in the tables interface.

Then in the smartform, global settings>form interface-> tables , declare the table and the same type as in the driver program,

then create a workarea for this table in the global definitions-->global data and use these in the window required with loop .

raymond_giuseppi
Active Contributor
0 Kudos

First, read some documentation like [Passing Data to the Form|http://help.sap.com/saphelp_nw04/helpdata/EN/fa/0c144dd30111d3b568006094192fe3/frameset.htm] and [Defining the Form Interface|http://help.sap.com/saphelp_nw04/helpdata/EN/1c/f40c58ddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw04/helpdata/EN/a5/de6838abce021ae10000009b38f842/frameset.htm]. For your driver program look at [Integrating the Smart Form into the Application|http://help.sap.com/saphelp_nw04/helpdata/EN/1c/f40c5bddf311d3b574006094192fe3/frameset.htm].

Regards,

Raymond

Former Member
0 Kudos

hi,

in smartform , global settings there is a option called form interface. in that there is a tab called tables . u can declare ur internal table there.

then in program SSF_FUNCTION_MODULE_NAME function module to the fm name of the smartform,

then call that smartform function module ,there the itab declared in smartform will be in exporting parameters . pass the itab frm program u can use it in smartform