cancel
Showing results for 
Search instead for 
Did you mean: 

coding in smartforms

Former Member
0 Kudos

Suppose I'm doing the coding in smartforms, then how to make a selection screen.Please explain with a sample code.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member196280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

former_member196280
Active Contributor
0 Kudos

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