cancel
Showing results for 
Search instead for 
Did you mean: 

OVS error - Subnode or attribute INPUT already exists

Former Member
0 Kudos

Hi!

I coudn't find the answer for my issue.

I have a component controller with many views. In 2 of them I have OVS events. One for vendor that was there before and the other por gl account that it is the one that I'm creating.

the problem is that my GL account selectiong fields doesn't apper on my screen but the vendors selections fields that are in a view before mine.

I could managed to make the GL account ovs work but I had to comment all the code in the Vendor OVS. If I do that I have everything working for the GL account OVS but I can't do that.

The other thing I did is to delete the

    • ovs_callback_object->set_input_structure(

    • input = it_struct ).

method in the GL account OVS and leave all the code for the vendor OVS, so in the GL account OVS help I have the fields for the vendors OVS, thaqt is wrong.

If I uncomment that code I get an error while trying to execute the GL account.

The following error text was processed in the system DSR : Subnode or attribute INPUT already exists .

What I'm thinking is that I have to call a method to clear the input attribute or delete it to create a new one.

This is the code that I have in the GL account OVS (it is not the final code.)

CASE OVS_CALLBACK_OBJECT->PHASE_INDICATOR.

WHEN if_wd_ovs=>co_phase_0.

DATA : wa_TEXT1 TYPE STRING,

wa_TEXT2 TYPE STRING.

wa_text1 = 'Find'.

wa_text2 = 'GL Account'.

data: ls_text TYPE wdr_name_value,

lt_label_texts TYPE wdr_name_value_list,

lt_column_texts TYPE wdr_name_value_list.

refresh: lt_column_texts, lt_label_texts.

CLEAR ls_text.

ls_text-name = `KTOPL`. "must match a field name of search

ls_text-value = `Chart of accounts`.

INSERT ls_text INTO TABLE lt_label_texts.

CLEAR ls_text.

ls_text-name = `KTOPL`.

ls_text-value = `Chart of accounts`.

INSERT ls_text INTO TABLE lt_column_texts.

ovs_callback_object->set_configuration(

label_texts = lt_label_texts

column_texts = lt_column_texts

group_header = wa_TEXT2

window_title = wa_TEXT1

  • table_header = lv_table_header

col_count = 4

row_count = 10 ).

WHEN if_wd_ovs=>co_phase_1.

types: begin of ty_struct,

ktopl(4),

end of ty_struct.

data: it_struct type ty_struct,

it_output type TABLE OF ty_struct,

wa_output type ty_struct.

*pass this structure to the OVS Component

ovs_callback_object->context_element->get_static_attributes(

IMPORTING static_attributes = it_struct ).

it_struct-ktopl = '*'.

    • ovs_callback_object->set_input_structure(

    • input = it_struct ).

WHEN if_wd_ovs=>co_phase_2.

types: begin of ty_struct_2,

ktopl(4),

end of ty_struct_2.

*dereferencing the data contained in the query_parameters of callback object

FIELD-SYMBOLS: <F_INPUT_QUERY> TYPE ty_struct_2.

ASSIGN OVS_CALLBACK_OBJECT->QUERY_PARAMETERS->* TO <F_INPUT_QUERY> CASTING.

wa_output-ktopl = 'APPL'.

APPEND wa_output to it_output.

*exporting data to be displayed as value help list to the OVS component

CALL METHOD ovs_callback_object->set_output_table

EXPORTING

output = it_output.

.

when if_wd_ovs=>co_phase_3.

*dereferencing the data contained in the selection parameter

*of callback object

field-symbols: <f_selection_struct> type ty_struct.

ASSIGN OVS_CALLBACK_OBJECT->selection->* TO <f_selection_struct> CASTING.

endcase.

Hope someone had this error before and can help me.

Thanks.

Ina.

Edited by: Ina on Jul 28, 2009 10:17 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I used OVS_CALLBACK_OBJECT->CONTEXT_ATTRIBUTE to decide which structure pass to the ovs.

Former Member
0 Kudos

I am getting the same error. Can you please elaborate on how you solved this problem? Do you have a code example? I have been looking evreywhere for an answer to this problem. Your help would be much appreciated. Thank you.

Former Member
0 Kudos

Any clue?