cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Button Action defined in GET_ACTIONS of POWL Feeder Class

Former Member
0 Kudos

Hi All,

I have defined an Action in method GET_ACTIONS in my Feeeder Class as follows:

IF c_action_defs IS INITIAL.

    ls_action_def-actionid      = 'JOHANNES'.
    ls_action_def-cardinality   = c_feeder_action_sel_req.
    ls_action_def-placement     = c_feeder_action_toolbar.
    ls_action_def-enabled       = 'X'.
    ls_action_def-placementindx = 1.
    ls_action_def-text          = text-001.
    ls_action_def-add_separator = 'X'.

    INSERT ls_action_def INTO TABLE ltab_action_def.

    e_actions_changed =  'X'.
    c_action_defs     = ltab_action_def.

  ENDIF.

My problem ist, that the Button that is created on the toolbar keep being DISBALED... What am I doing wrong? How can I set the button to enabled. I thought this was done using parameter

ls_action_def-enabled       = 'X'.

but this obvisouly doesn't work...

Does anybody have a tip here?

THANKS, Johannes

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello ,

You have used ls_action_def-cardinality = c_feeder_action_sel_req.

Please check this also.

as based on this also, enabling will take effect as it may be based on some lines selected in table.

Best regards,

Rohit