on 10-12-2007 12:29 PM
Hi All,
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.
Vineet
Hi Vineet,
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.
ls_actions-text =
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
CASE i_actionid.
WHEN 'MATNR'.
Write Code what you want to do at click of that button.
endcase
in Above eg i have added one action and coresponding action handling.
hope this help you
Regards
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.