cancel
Showing results for 
Search instead for 
Did you mean: 

Cancelling OVS help

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

former_member182190
Active Participant
0 Kudos

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.