How to get iView properties programatically
Can you please point me to some classes/Methods that can be used to access iView properties pragmatically. In my program i need to retrieve things like sap-ep-iviewid, sap-ep-iviewhandle,sap-ep-iviewid ,sap-ep-pcdunit . I need this information so that i can use it in my process logic. The image below shows the properties i would especially the ones in yellow
Basically within BADI HRESS_MENU (interface IF_EX_HRESS_MENU) I would like to know on which view I am on so that I can hide and show items on the launchpad.
I am able to do everything else but I just need help on how to get the iview properties.
Your help will be greatly appreciated.
Chandra Indukuri replied
THIS IS IN FPM
In the initialize method of the feeder class you can have the following code:
io_app_parameter->get_value( exporting iv_key = 'SAP-EP-IVIEWHANDLE' " You can have others as well
importing ev_value = lv_value ).
The values that are coming here for SAP-EP-IVIEWHANDLE is good but the values are weird (like guid 16 eg: pcdshort:/VpKidawKvzy) for others.
In Normal Web Dynpro.....
You can try the WDEVENT methods in the Window HANDLEDEFAULT method but I am not sure.