cancel
Showing results for 
Search instead for 
Did you mean: 

POWL assign action_id to button in a list?

Florian
Active Contributor
0 Kudos

Hi there,

I have a problem I don't see the wood because of too much trees in front of me. After a lot of searching I decided to ask, because I do not find the correct key-words to get a step forward.

Here is my problem:

I want to assign a action_id to a button in my powl.

I have added the button at the fieldcatalog with the following code:

METHOD if_powl_feeder~get_field_catalog.

* 1. Button

    CLEAR ls_fieldcat.

    ls_fieldcat-colid = 'BUTTON'.

    add_colpos.

    ls_fieldcat-col_visible = 'X'.

    ls_fieldcat-enabled = 'X'.

    ls_fieldcat-enabled_ref = 'AUTH'.

    ls_fieldcat-display_type = 'BT'.

    ls_fieldcat-text = text-015.

    ls_fieldcat-editable = ' '.

    ls_fieldcat-width = 5.

    INSERT ls_fieldcat INTO TABLE mt_fieldcat.

everything is working fine and my result looks like that:

My problem is, that I also need a specific action_id which I can use at METHOD if_powl_feeder~handle_action.

At the moment the method is triggered, but I do not have an action_id, of course

So I'm pretty sure I have forgot something and hope someone can give me a hand.

If I have to provide more details, just let me know.

Thanks in advance.

~Florian

Accepted Solutions (1)

Accepted Solutions (1)

Florian
Active Contributor
0 Kudos

Hi Rohit,

your codesnippet shows how to add a button at the statusbar, that isn't that what I wanted to archive.

I found the solution by my and here is a link to my wikipage where I described how to handle it.

POWL - Personal Object Worklist - ABAP Development - SCN Wiki

Thank you.

~Florian

Answers (2)

Answers (2)

Florian
Active Contributor
0 Kudos

I think this is the hint I needed. As I wrote, I didn't saw the wood because of too much trees in front.

Thank you in advance.

~Florian

rohit_singhal
Active Contributor
0 Kudos

Hi Florian,

You can define the action ids for buttons in the following method: IF_POWL_FEEDER~GET_ACTIONS

Below is a sample code to show how action id has been assigned.

Let me know if this was able to resolve your query...

Best Regards.

Rohit Singhal