How to Adding Button on POWL dispaly?
I am new to ABAP and WebDynpro. I am currently working on WebDynpro and UI programming in which I am using POWL list for displaying some business objects. I want to add some buttons with some actions for these objects on the POWL display itself...
Please help me..
Thanks in Advance.
find out my answer, rewards if useful
for POWL you need to create a new class with implemeting interface IF_POWL_FEEDER.
in method IF_POWL_FEEDER~GET_ACTIONS you need to write this code.
ls_actions-actionid = 'MATNR'.
ls_actions-cardinality = 'S'.
ls_actions-placement = 'B'.
ls_actions-enabled = 'X'.
ls_actions-placementindx = 3.
cl_wd_utilities=>get_otr_text_by_alias( 'MMPUR_UI_MODEL/DSPMATERIALMASTER' ).
ls_actions-placementindx = 1.
ls_actions-text = text-001.
INSERT ls_actions INTO TABLE mt_actions.
you need to repeat above code if you want some more actions then.
c_action_defs = mt_actions.
to Handle actions for those button:
for this you need to write following code in method IF_POWL_FEEDER~HANDLE_ACTION
Write Code what you want to do at click of that button.
in Above eg i have added one action and coresponding action handling.
hope this help you