on 10-19-2011 11:31 AM
Hi Experts,
I have one requirement in POWL. For one Column in ALV i need to add ICON.
Can any body help in this problem.
Regards,
Sri
Hi,
you can use method GET_FIELD_CATALOG of Feeder class. you can set the various properties by changing paramter(C_FIELDCAT) values of type POWL_FIELDCAT_TTY.
It has structure of type POWL_FIELDCAT_STY and has field ICON_SRC. Set this value to add Icon.
I hope this will help you.
Thanks,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thx Chandra for promt reply,
I know your given field name. But i am not getting 100% clarity.
Let me explain what i have return in my progrm.
In FieldCatalog method:
*Comments
wa_fieldcat-colid = 'COMMENT'.
wa_fieldcat-colpos = '13'.
wa_fieldcat-col_visible = abap_true.
wa_fieldcat-enabled = abap_true.
wa_fieldcat-icon_src_ref = 'COMMENT'.
wa_fieldcat-header = 'Approver Comments'.
wa_fieldcat-allow_filter = abap_true.
wa_fieldcat-allow_sort = abap_true.
INSERT wa_fieldcat INTO TABLE it_fieldcat[].
can clarify in this one.
Advance thx for helping.
Hi,
Refer Class CL_MMPUR_UI_FEEDER_PO and method IF_POWL_FEEDER~GET_FIELD_CATALOG and get the related logic.
Once you are able to change the field catalog.
Use below code,
e_fieldcat_changed = ABAP_TRUE.
c_fieldcat [ ] = lt_fcat [ ].
c_fieldcat is the changing parameter of the method. I hope this will help you.
Thanks,
Chandra
It can be as below,
wa_fieldcat-colid = 'COMMENT'.
wa_fieldcat-colpos = '13'.
wa_fieldcat-col_visible = abap_true.
wa_fieldcat-enabled = abap_true.
wa_fieldcat-icon_src = 'ICON_CHANGE_TEXT'.
wa_fieldcat--icon_first = c_true.
wa_fieldcat-header = 'Approver Comments'.
wa_fieldcat-allow_filter = abap_true.
wa_fieldcat-allow_sort = abap_true.
INSERT wa_fieldcat INTO TABLE it_fieldcat[].
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.