cancel
Showing results for 
Search instead for 
Did you mean: 

OCA images

Claudia_Dangers
Advisor
Advisor
0 Kudos

Is it possible to use field image_source of table et_row_actions in feeder class method IF_FPM_GUIBB_LIST~GET_DEFINITION to define the image for the OCA?

I tried it this way, but it is not working

Does anyone knows, why this is not working?

***** Define row actions

  LOOP AT mt_actions INTO ls_action.

    ls_row_action-id           = ls_action-oca_id.

    ls_row_action-image_source = '~Icon/Delete'. 

    CONCATENATE ls_action-oca_id '_ENABLED_REF' INTO ls_row_action-enabled_ref.

    CONCATENATE ls_action-oca_id '_VISI_REF'    INTO ls_row_action-visible_ref.

    APPEND ls_row_action TO et_row_actions.

  ENDLOOP.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Claudia,

Written code seem to be right.

But in row action you are assigning visibility refrence and enability refrence .

Are those refrence field is available in field catalogue structure.??

Because if it is not available in structure then you can't assign the visibility refrence and enability refrence value in GET_DATA method.

Check this and set Visibility refrence to abap_true.

It should work.

Thanks & Regards

Praveen Gupta

Claudia_Dangers
Advisor
Advisor
0 Kudos

Hi Praveen,

I check my coding, and both fields (visibility and enability) seem to be ok.

Here's the code pice:

*       attribute: visible

        CONCATENATE ls_actions-oca_id '_VISI_REF' INTO lv_fieldname.

        ASSIGN COMPONENT lv_fieldname OF STRUCTURE <fs_s_checklist> TO <field>.

        <field> = cl_wd_uielement=>e_visible-visible.



*       attribute: enabled

        CONCATENATE ls_actions-oca_id '_ENABLED_REF' INTO lv_fieldname.

        ASSIGN COMPONENT lv_fieldname OF STRUCTURE <fs_s_checklist> TO <field>.

        IF <fs_worklist>-external_type = ls_actions-wi_rh_task AND ls_actions-active = abap_true.

          <field> = abap_true.

        ELSE.

          <field> = abap_false.

        ENDIF.

former_member193369
Active Participant
0 Kudos

Hello Claudia,

your code should work. My suspicion is that you fill field *_VISI_REF with abap_true ('X') and not

with CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE ('02').

Best regards,

  Christian

Claudia_Dangers
Advisor
Advisor
0 Kudos

Hi Christian,

the _visi_ref field is filled correctly. That's not the mistake.

Thanks,

Claudia