Skip to Content
author's profile photo Former Member
Former Member

Ovs Help

Hi,

When I press f4 in a table input field and enter it should populate f4 help value in input field and description value in next field.I am getting dump here.Could you please give solution. In phase 3 I am getting dump.

statement getting dump: ASSIGN ovs_callback_object->selection->* TO <ls_selection>.

TYPES: BEGIN OF ty_bid_input ,

ZINCO1 TYPE ZINCO1,

ZINCO2 TYPE ZINCO2,

END OF ty_bid_input.

TYPES: BEGIN OF ty_bid_list ,

ZINCO1 TYPE zinco1,

ZINCO2 TYPE zinco2,

END OF ty_bid_list.

DATA: ls_search_input TYPE ty_bid_input,

lt_select_list TYPE STANDARD TABLE OF ty_bid_list,

ls_select_list TYPE ty_bid_list,

ls_text TYPE wdr_name_value,

lt_label_texts TYPE wdr_name_value_list,

lt_column_texts TYPE wdr_name_value_list,

lv_window_title TYPE string VALUE 'Search help for Incoterm',

lv_group_header TYPE string VALUE 'Selection Criteria',

lv_table_header TYPE string VALUE 'Value list(According to Selection Criteria)'.

FIELD-SYMBOLS: <ls_query_params> TYPE ty_bid_input,

<ls_selection> TYPE ty_bid_list.

FIELD-SYMBOLS:

<lv_ZINCO2> TYPE ZINCO2,

<lv_zinco1> type zinco1,

<lt_ovs_result> LIKE lt_select_list,

<ZINCO2> LIKE LINE OF <lt_ovs_result>,

<lt_sel_opt_result> TYPE STANDARD TABLE.

CASE ovs_callback_object->phase_indicator.

WHEN if_wd_ovs=>co_phase_0.

ovs_callback_object->set_configuration(

" label_texts = lt_label_texts

" column_texts = lt_column_texts

" group_header = lv_group_header

window_title = lv_window_title

table_header = lv_table_header

table_multi_select = 'X'

col_count = 2

row_count = 5

).

WHEN if_wd_ovs=>co_phase_1.

  • IF ls_search_input-ZINCO1 IS INITIAL AND dyn_ZINCO1 IS NOT INITIAL.

  • ls_search_input-ZINCO1 = dyn_ZINCO1.

  • ENDIF.

  • ovs_callback_object->set_input_structure(

  • input = ls_search_input ).

  • WHEN if_wd_ovs=>co_phase_2.

    • If phase 1 is implemented, use the field input for the

    • selection of the table.

    • If phase 1 is omitted, use values from your own context.

    IF ovs_callback_object->query_parameters IS NOT BOUND.

    • TODO exception handling

    ENDIF.

    ASSIGN ovs_callback_object->query_parameters->*

    TO <ls_query_params>.

    IF NOT <ls_query_params> IS ASSIGNED.

    • TODO exception handling

    ENDIF.

    SELECT TINC~INCO1

    TINCT~BEZEI

    INTO TABLE lt_select_list

    from tinc inner join tinct

    on tincinco1 = tinctinco1

    where tinct~Spras = 'E'.

    DELETE lt_select_list where zinco1 = 'TBD'.

    *

    • SELECT SINGLE BEZEI FROM TINCT INTO lv_name

    • WHERE spras = 'E' AND inco1 = lv_inco.

    IF lt_select_list[] IS NOT INITIAL.

    ovs_callback_object->set_output_table( output = lt_select_list ).

    ELSE.

    *

    TYPES:

    BEGIN OF ty_s_standard_message,

    text TYPE string,

    type TYPE i, "siehe if_wd_message_manager=>CO_TYPE_....

    params TYPE wdr_name_value_list,

    msg_object TYPE REF TO if_message,

    msg_user_data TYPE REF TO data,

    END OF ty_s_standard_message .

    TYPES:

    BEGIN OF ty_s_t100_message,

    msgid TYPE syst-msgid,

    msgno TYPE syst-msgno,

    msgty TYPE syst-msgty,

    p1 TYPE syst-msgv1,

    p2 TYPE syst-msgv2,

    p3 TYPE syst-msgv3,

    p4 TYPE syst-msgv4,

    msg_user_data TYPE REF TO data,

    END OF ty_s_t100_message .

    TYPES:

    BEGIN OF ty_s_message,

    standard_message TYPE ty_s_standard_message,

    t100_message TYPE ty_s_t100_message,

    END OF ty_s_message .

    TYPES:

    ty_t_messages TYPE STANDARD TABLE OF ty_s_message .

    DATA:t_messages TYPE STANDARD TABLE OF ty_s_message ,

    s_message TYPE ty_s_message.

    REFRESH t_messages.

    s_message-standard_message-text = 'No values found!'.

    s_message-standard_message-type = '2'.

    APPEND s_message TO t_messages.

    CLEAR s_message.

    CALL METHOD ovs_callback_object->set_messages

    EXPORTING

    messages = t_messages.

    ovs_callback_object->set_output_table( output = lt_select_list ).

    ENDIF.

    WHEN if_wd_ovs=>co_phase_3.

    • apply result

    IF ovs_callback_object->selection IS NOT BOUND.

    • TODO exception handling

    ENDIF.

    ASSIGN ovs_callback_object->selection->* TO <ls_selection>.

    • ASSIGN <ls_selection>-ZINCO1 TO <lv_ZINCO1>.

    *

    • ASSIGN ovs_callback_object->selection->* TO <ls_selection>.

    • ASSIGN <ls_selection>-ZINCO2 TO <lv_ZINCO2>.

    • ASSIGN i_ovs_data-mt_selected_values->* TO <lt_sel_opt_result>.

    • APPEND <lv_ZINCO2> TO <lt_sel_opt_result>.

    IF <ls_selection> IS ASSIGNED.

    ovs_callback_object->context_element->set_attribute(

    name = `ZINCO1`

    value = <ls_selection>-zinco1 ).

    • or

    i_ovs_data-m_ovs_callback_object->context_element->set_static_attributes(

    static_attributes = <ls_selection> ).

    ovs_callback_object->context_element->set_attribute(

    name = `ZINCO2`

    value = <ls_selection>-zinco2 ).

    ENDIF.

    Thanks,

    Uma

    Add a comment
    10|10000 characters needed characters exceeded

    Assigned Tags

    Related questions

    1 Answer

    • author's profile photo Former Member
      Former Member
      Posted on Dec 13, 2011 at 03:24 AM

      Hi,

      When I press f4 in a table input field and enter it should populate f4 help value in input field and description value in next field.I am getting dump here.Could you please give solution. In phase 3 I am getting dump.

      statement getting dump: ASSIGN ovs_callback_object->selection->* TO .

      Please refer code above.

      Thanks

      Uma

      Add a comment
      10|10000 characters needed characters exceeded

    Before answering

    You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
    You must be Logged in to submit an answer.

    Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.