on 08-02-2007 9:29 AM
Hi,
I have created a dynamic editable ALV table and also assigned OVS dynamically to some fields of the table. I have the following code in event handler of ON_OVS
CASE ovs_callback_object->phase_indicator.
WHEN if_wd_ovs=>co_phase_2.
.....
ovs_callback_object->set_output_table( output = <help_tables> ).
Here <help_tables> is computed dynamically at runtime. For certain cases <help_tables> will not assigned. Since the field symbol <help_tables> is not assigned I get a dump on execution. This is as expected.
If I do not call ovs_callback_object->set_output_table() whenever <help_tables> is initial, I get a dump again saying that the call to the above method is mandatory.
Is there any way that I avoid calling ovs_callback_object->set_output_table() whenever <help_tables> is not assigned?
I made a workaround by creating a dummy structure and table and passing it as
ovs_callback_object->set_output_table( output = dummy_table ). This works. But is there any better approach?
Thanks & Regards,
Reena
I dont think there is any other way out. The OVS event will be triggered automatically when the F4 is pressed, and it cannot be canceled. You can only display a dummy table which says 'No values available' or something like that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Before ovs_callback_object->set_output_table( output = <help_tables> ).
check whether <help_tables> is assigned or not.
if <help_tables> is assigned.
ovs_callback_object->set_output_table( output = <help_tables> ).
Regards,
ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.