cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic help for webdynpro table

Former Member
0 Kudos

Dear experts,

i have one input field - plant and one table with equipment details in webdynpro appl.

depents on plant selection i need to assign the value set of equipment code to web-dynpro

table field. depent on equip_code i have to set equip_description automatically.

i know the OVS help method.But How can i use for this logic.

could u explain ovs-phase-0,1,2,3.

Regars,

Anuvidhya T.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1151507
Participant
0 Kudos

Hi Anuvidhya,

As per my understading, your requirement is:

Based on the plant entered in the input field, you want to fill the EQUIP_CODE and EQIP_DESC.

1. If you want to show plant, EQUIP_CODE and EQUIP_DESC in the F4 help, you can use Search help or OVS. If you want to use OVS then :

-> In OVS method, Get the plant and EQUIP_CODE related data into an internal table.

-> CASE ovs_callback_object->phase_indicator.

WHEN if_wd_ovs=>co_phase_0.

  • Configure the F4 help.

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

col_count = 2

row_count = 10 ).

WHEN if_wd_ovs=>co_phase_2.

  • From the internal table, fill plant, EQUIP_CODE and EQUIP_DESC values

ovs_callback_object->set_output_table( output = lt_select_list ).

WHEN if_wd_ovs=>co_phase_3.

  • Based on the row selected from F4, set plant, EQUIP_CODE and EQUIP_DESC

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

IF <lf_selection> IS ASSIGNED.

ovs_callback_object->context_element->set_attribute(

name = 'PLANT'

value = <lf_selection>-plant ).

ovs_callback_object->context_element->set_attribute(

name = 'EQUIP_CODE'

value = <lf_selection>-EQUIP_CODE )

ovs_callback_object->context_element->set_attribute(

name = 'EQUIP_DESC'

value = <lf_selection>-EQUIP_DESC )

ENDIF.

ENDCASE.

2. But, as the user can enter plant manually (without selecting from F4 help), we have to write the related code in WDDOMODIFYVIEW.

-> Get PLANT attribute entered and based on the plant, get EQUIP_CODE and EQUIP_DESC (from some DB table) and set the attributes EQUIP_CODE and EQUIP_DESC accordingly.

Hope this helps you.

Regards,

Manogna

Former Member
0 Kudos

Thank Manogna.

My Ovs method always go for if_wd_ovs=>co_phase_0 and if_wd_ovs=>co_phase_1.

But It's not go for if_wd_ovs=>co_phase_2 and .if_wd_ovs=>co_phase_3.

I'm selecting all the inputs by F4 help only.

Regards,

Anuvidhya T.

former_member1151507
Participant
0 Kudos

Hi Anuvidhya,

Have you mentioned any code in if_wd_ovs=>co_phase_1? we can directly use if_wd_ovs=>co_phase_2 to bind values to OVS.

When ever you select any value from OVS, then if_wd_ovs=>co_phase_3 gets executed.

How ever, we can avoid using OVS to fullfill your requirement. you can use Search Help and write the code of getting EQUIP_CODE & EQUIP_DESC based on PLANT in MODIFYVIEW.

Regards,

Manogna.

Former Member
0 Kudos

Hi Manogna.,

Thanks for ur reply.Now my OVS method working fine. but my problem is for all the table lines input help

it pick the first line input only.

ie. i hav table fields like

EQTYP EQUNR MPOINT

For EQUNR ovs help i'm picking EQTYP by get attribute method & it is working fine for first line.

But for 2 line of table it picks the first line EQTYP only (normal get attribute method).

Here i need to pick EQTYP of current line. Please tell me the method to pick current input line values.

Thanks & Regards,

Anuvidhya T.