Dear Experts,
We have a requirement to add a new button("SAVE") in header level on lead buyer screen while view is in edit mode.
We need to use standard functionality of save/hold button i.s. saving the changed data in edit mode.
The Action for standrad button SAVE is defined in SPRO "Meta data configuration for header Actions" as below :
PDO Action :SAVE
Process : EDIT
Object Type : BUS2121
Active : yes
I have created SAVE button in two ways :
i) In first way,created a new button called SAVE in toolbar using below configuration using Other_functions:
WDC - FPM_OIF_COMPONENT
Configuration name - /SAPSRM/WDCC_FPM_OIF_SC_PROFNL
The new button is having EventID as "SAVE" and ElementID as "SAVE" and it is same as used for Hold button.
Initially This save button is invisible mode.
I need to set visible this save button in Edit mode. So how we will achieve this in configuration or in programming?
If it will be done in programming, then without changing in FPM_OIF_COMPONENT(used for toolbar header). can visibility of button be changed in main view using method define_button of if_oif interface.
ii) In the second approach, using define_button of if_oif interface in WDDOMODIFYVIEW of child view(not in CNR_VIEW of FPM_OIF_COMPONENT), i 'm able to create a new button which has element_id and Action as "SAVE".
This button is visible with EDIT button, how this dynamically created button should only be visible after we click EDIT button .
My third question is can we have the reference of toolbar button in child view to control visibility of toolbar button ? then how?
Regards,
Partha