on 09-26-2007 7:04 AM
Suppose I'm doing the coding in smartforms, then how to make a selection screen.Please explain with a sample code.
There is no way you can develop your selection screen inside your smartform, you have to create your selection screen in the program which is calling your smartform and if you are building all your code inside your smartform you have to pass the selection screen field values to smartform.
regards,
sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gaurav,
Actually, SmartForm is just a tool to print forms. In order to empower itself, it provides Program Line nodes to allow developers to integrate ABAP codes into SmartForm. Therefore, it doesn't make sense if you use that node to create a selection screen with Parameters or Select Options.
As Sai Ram Reddy and Changsheng Shi said above, you must develop a report with desired selection screen. Then, prepare data and pass it to SmartForm for display.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you must create a common report program to do the select-screen
then at last to call the smartform and importing parameter
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = lf_formname 'your smartforms name
variant = ' '
direct_call = ' '
importing fm_name = lf_fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
error handling
cf_retcode = sy-subrc.
perform protocol_update.
endif.
endif.
call smartform invoice
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = 'X'
is_bil_invoice = ls_bil_invoice
is_vbdkr = vbdkr
is_komk = komk
is_catsxt_data = i_catsxt_flow_back
importing document_output_info =
job_output_info =
job_output_options =
tables is_vbdpr = t_vbdpr
is_komv = tkomv
is_komvd = tkomvd
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
error handling
cf_retcode = sy-subrc.
perform protocol_update.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Develop your selection screen from where you call your smartform and pass the selection screen parameters to your smartform and use them in your smartform coding.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.