Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

passing tables in smartforms

Former Member
0 Kudos
74

hi frends,i hav declared itab,jtab,ktab in the form and hav written the select statements in se38.i hav a parameter in the se38.how to pass the tables in

ssf_function_module_name.please provide the solution.

5 REPLIES 5

Former Member
0 Kudos
44

Hello,

Check this link :-

http://www.sap-img.com/smartforms/sap-smart-forms.htm

Regards,

Deepu.K

Former Member
0 Kudos
44

Do u mean that u want to pass these 3 internal tables to the form?

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZAVP_STUDY_SMARTFORMS_3'

IMPORTING

FM_NAME = FM_NAME

FM_NAME contains the name of the smartform that u have created

Now insert a new pattern and in that give the name of the FM as the name of the smartform. This is the name that u get from

Environment->function module name

once the function is inserted in the report program, replace the function name by FM_NAME

Former Member
0 Kudos
44

hi,

DATA : FM_NAME TYPE RS38L_FNAM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZPY_RECON_SAL_SMART' " smt name

IMPORTING

FM_NAME = FM_NAME.

CALL FUNCTION FM_NAME

EXPORTING

WF_GTOT = WF_DIS_GTOT

WF_TTXT = L_DATE

TABLES

ITAB1 = INT_TOP " itab's

ITAB2 = INT_NORMAL

ITAB3 = INT_HOLDS.

With Regards,

S.BARANI

Former Member
0 Kudos
44

Hi,

First call the function module 'SSF_FUNCTION_MODULE_NAME' with importing Smart form name, in export parameter you will get the function module.

Now using CALL '< fucntion module >' that you obtained from above.. pass the import parameters as itab , jtab & other internal table that will do...

Former Member
0 Kudos
44

Hi,

in Smart form declare all your table in global definitions

when calling the FM 'SSF_FUNCTION_MODULE_NAME' pass the ITABs in TABLES section

it will automatically pass the values of ITAB

Regards

Shiva