on 03-05-2007 8:55 AM
hi everybody,
in my smartform, one of the requirements is...in the selection screen there should be two radio buttons...if i select first radio button data should come from one table1(eg)) and if i select second one data should come from table2....the final data should be displayed on my output form...can any one help hw could i achieve this one......thanks in advance....
santosh..
if I'm correct, then use this condion:
If p_rb1 and p_rb2 are radio-buttons then use this logic:
if p_rb1 = 'X'.
select * from table1 into table itab where...
else.
select * from table2 into table itab1 where...
endif.
First call the FM generated by smarform when activated and then reuse_function_module_name.
regards,
shamim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
plz correct me if I'm wrong before I proceed further: You have radio buttons on the selection screen and if you click on first radio button then the data from table 1 should be selected and displayed on the smartform and if you select radio button 2, the data is selected from table 2 and displayed on the smartform for print. Is this analysiz correct?
regards,
shamim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
before you pass the data to the smartform function module that gets generated when you create the smartform, you shoule poplate the table data conditionally.
If p_rb1 and p_rb2 are radio-buttons
if p_rb1 = 'X'.
select * from table1 into table itab where...
else.
select * from table1 into table itab where...
endif.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
variant = ' '
direct_call = ' '
importing fm_name = fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
call function fm_name
exporting
archive_index =
archive_parameters =
control_parameters = control
mail_appl_obj =
mail_recipient =
mail_sender =
output_options =
user_settings = 'X'
tables
itab = itab
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
Regards,
Ravi
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 | |
9 | |
7 | |
7 | |
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.