2007 May 25 12:35 PM
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.
2007 May 25 12:37 PM
2007 May 25 12:41 PM
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
2007 May 25 12:46 PM
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
2007 May 25 12:48 PM
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...
2007 May 25 1:09 PM
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