on 07-30-2008 5:29 PM
Hi Gurus,
I have designed a Zsmartforms for the and the form is attaqched to a report program
the layout is designed and it is working fine , Now the customer wants the selection screen to be passed to the smart form
At the fotter the customer wants the selection screen parameters to be printed ,
It should should all theparameters of hte selection screen and its values which were entered on the selection screen.
Please help me how to ge the selestion screen.
Thanking you,
Raju S,
hi,
first write the parameters what are they wanted by ur user and then pass those values
as import parameters of function module of generated smartform.
while doing u must define interface parameters of smartform with same type what u pass the in print program as import parameters.
regards
Jagadeesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if the selection-screen values are parameters take variables and pass that valut to that variable or if it is a select-options declare range and pass those values to thar range and pass to fm....
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'YH1142_SMARTFORM_01'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FNAME.
CALL FUNCTION FNAME
EXPORTIng
t_adrc = t_adrc
IMPORTING
JOB_OUTPUT_INFO = V_SSFCRESCL
TABLES
t_adrc = t_adrc..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi try this..
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = <smartform name>
IMPORTING
fm_name = v_form_fm
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
Call Smartfrom to print the document
CALL FUNCTION v_form_fm
EXPORTING
p_compensation = p_comp <--parameter list
p_skill = p_skill
p_deci_auhtority = p_da
TABLES
s_job = s_job <--select option list
s_level = s_level
s_date = s_date
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
declare the paramters of your selection screen in the form interface section of the smartform.
If you have a parameter in teh selection screen then declare it in the smartform as:
P_matnr TYPE matnr (in form interface ->import)
If you have a select option then
S_LEVEL LIKE <dictionary structure like a range>
this u declare it in the tables section of the form interface. For the select option , the dictionary sructures should be like a range (see RNGE_OBJID as an example). If you dont have a dictionary structure
then u need to declare it in the dictionary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
change the interface of the smartform to accept the selection screen details.
all selection parameters you can get populate into table using the function RS_REFRESH_FROM_SELECTOPTIONS
now pass this to smartform.
and in smart using the data you design the layoutt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pass the selection screen parameter in ssf.... FM tables tab and get this table in smartform's interface table tab than simply print the data at footer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.