cancel
Showing results for 
Search instead for 
Did you mean: 

How to Adding Button on POWL dispaly?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Manish,

Thanks a lot for the answer, It was very helpful and fully answers my question.

Thanks and regards

Vineet

Answers (0)