cancel
Showing results for 
Search instead for 
Did you mean: 

OVS With Select Option

Former Member
0 Kudos

Hi,

I am trying to use OVS with select options. I have gone through many threads but some how none of the questions could resolve my issue.

I am able to use the OVS for single field but when I try to use for Select option it fails.

Below is the code I am using. Can some one please help me on this.

  • create a range table that consists of this new data element

RANGE_TABLE_bank =

wd_this->m_handler->create_range_table(

i_typename = 'PRODH_D' ).

  • add a new field to the selection

wd_this->m_handler->add_selection_field(

i_id = 'PRODH_D'

I_DESCRIPTION = 'NACS'

it_result = RANGE_TABLE_bank

i_read_only = read_only

I_VALUE_HELP_ID = 'OVS'

I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_OVS

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

10 questions limit

Former Member
0 Kudos

Hi,

  • add a new field to the selection

wd_this->m_handler->add_selection_field(

i_id = 'PRODH_D'

I_DESCRIPTION = 'NACS'

it_result = RANGE_TABLE_bank

i_read_only = read_only

*I_VALUE_HELP_ID = 'OVS' -


Check- this is not required

I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_OVS

Have you created the OVS and also the coding for it.

If you are done, keep break point and check onF4 wether this breakpoint is getting triggered.

If this is getting triggered, then check for the coding for the data.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

I have written the coding and it works if its not a select option. It throws the below error.

OVS: Methode SET_OUTPUT_TABLE Cannot Be Called when trying to execute the F4 help.

Any clues?

Thanks,

Former Member
0 Kudos

Hi,

I guess the internal table ie result of the OVS is not filled properly.

Check in debugging for the table entries.

ovs_callback_object->set_output_table( output = lt_emp ).    "Check wether this table is getting filled or not.

Regards,

Lekha.

Former Member
0 Kudos

Lekha,

its not even comming to that position. It's dumping as soon as I press f4 help. Can you paste some sample code if you have already done this

Thanks,

Edited by: p734305 on Aug 24, 2009 3:32 PM

Former Member
0 Kudos

Hi,

Are you facing the same dump.

Please check in debugging for OVS method.

Keep break point in OVS method.

Step by step check in debugging for the entries,

Please check my above code. I used the same.

Regards,

Lekha.