on 09-13-2015 8:24 PM
Hi all,
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
Background,
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.
Sorry its portal iviews
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Hi Former Member Former Member
Thank you for this, this is exactly what i wanted, these strange character are IDs which i am interested in.
However i am not able to call this in my BADI. How have you called this in your programs? Your help is greatly appreciated.
I am callign this in a BADI which is then called when the application is launched.
Thanks
Andy
Hi all,
This is what I have done and yet i am not getting anything, I would like to the return to be something like this pcdshort:/VpKidawKvzy but it is always initial. Please help.
This method is called when teh BAdi HRESS_MENU (interface IF_EX_HRESS_MENU).
Please note that when i debug my method in lt_keys i have the following
C_REFRESH
FPM_HIDE_CLOSE
G_REFRESH
MV_ESS_SERVICES
May be these are wrogn but i am not sure..
Method GET_APPLICATION_PROPERTIES.
Data: lo_fpm type ref to if_fpm,
lo_fpm_parameter type ref to if_fpm_parameter,
lt_keys type standard table of string with default key,
lv_key type string.
ev_par_value type string,
eo_par_value type ref to data.
" Gets reference to FPM API
lo_fpm = cl_fpm_factory=>get_instance( ).
" Gets application parameters keys
lo_fpm_parameter = lo_fpm->mo_app_parameter.
if lo_fpm_parameter is bound.
" Gets web application parameters key list
lt_keys = lo_fpm_parameter->get_keys( ).
read table lt_keys into lv_key with key table_line = lv_key.
lo_fpm_parameter->get_value(
exporting
iv_key = 'sap-ep-iviewid' "lv_key
importing
ev_value = ev_par_value
er_value = eo_par_value
).
endif.
endif.
endmethod.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.