Dear Experts,
As i Mentioned above, I have a requirement as below,,
IN SRM Purchase Order Screen, If the user clicks the EDIT button in the toolbar, then there is a custom field in HEADER TAB of Header part needs to be cleared. THis action should process only if the edit button is pressed.
I Have done some coding in /SAPSRM/WDC_DODC_PO_H_BD1 View V_PO_DODC_HD_GN_BD as below for ur reference,
method _PST_00O2TOFWZE8YL5BLCB7S9B9CN . "Exit of WDDOMODIFYVIEW (in ZSATEST )
DATA lo_nd_local_ui_control TYPE REF TO if_wd_context_node.
DATA lo_el_local_ui_control TYPE REF TO if_wd_context_element.
DATA ls_local_ui_control TYPE wd_this->element_local_ui_control.
DATA lo_nd_node TYPE REF TO if_wd_context_node.
DATA lo_el_node TYPE REF TO if_wd_context_element.
DATA: lv_id TYPE string,
lv_event_id TYPE fpm_event_id,
lr_event TYPE REF TO cl_fpm_event.
lv_event_id = cl_fpm_event=>gc_event_edit.
*wd_comp_controller->mv_focus_uielement_id = wdevent->get_string( 'ID' ).
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_header ).
lo_el_node = lo_nd_node->get_element( ).
lo_el_node->set_attribute(
name = `ABCDEF`
value = 'X' ).
endmethod.
The above code was done in WDMODIFYVIEW POST-EXIT and its working perfectly whenever the header tab is pressed or refreshed.but i want to do this action only if the user clicked the EDIT button in PO Screen.
As im new to WEB DYNPRO im not aware of passing variables from FPM to PO header views,,I request kindly give some code snippet or a step by step process to done the same.
My EDIT button is in FPM_OIF_COMPONENT
and custom filed is in /SAPSRM/WDC_DODC_PO_H_BD1 components,,,
ill attach the screen for reference.
Regards,