on 10-13-2008 9:01 AM
Good day experts..
How could I pass the whole internal table into the smartform?
Thank you for you replies.
Hi,
In the calling program you have to call FM 'SSF_FUNCTION_MODULE_NAME',. You should pass Smart form name to this as Import parameter and get FM generated by Smart form.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZDEMO_SMARTFORM'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
.
IF t_header[] IS NOT INITIAL.
CALL FUNCTION fm_name
EXPORTING
apptype = w_apptype
startdate = s_date-low
enddate = s_date-high
name = p_name
designation = p_desg
TABLES
it_header = t_header[].
ELSE.
MESSAGE i001.
STOP.
ENDIF. " IF t_header[]
In Smart forms, Go to Interface parameters and there in TABLES parameters define tables.
Hope you understand.
Thanks,
Phani Diwakar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
In the driver program,
DATA :
t_vbrk LIKE STANDARD TABLE OF vbrk.
Smartform-->form interface:
Import tab ---> t_vbrk TYPE Y_TY_VBRK.
Create the line type of the y_ty_vbrk.
In se11--> data type :
table type :
line type vbrk
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If your internal table structure is not similar to any database table structure or anyother structure in R3 then define your own structure which is similar to your internal table.
Following link is helpful in creating structure,
http://help.sap.com/saphelp_nw70/helpdata/EN/90/8d7307b1af11d194f600a0c929b3c3/frameset.htm
Now in Smartform click on Form interface and select tables tab then define your internal table.
Regards
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai,
in smartforms in form interface u will be having tab tables in that declare internal table that u want....
system will generate f.m use that f.m in se38 program and pass the internal table from there.
shan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.