2007 Dec 14 9:01 AM
Hi Gurus,
i wnat to remove credit price from my alv list from were i can find it out & how to remove it plz help me,plz guide me Gurus.
Correct answers will b appreciated with good ponits.
FORM set_initial_field_catalog.
DATA: wa_fieldcat TYPE slis_fieldcat_alv.
FIELD-SYMBOLS: <wa_fieldcat> TYPE slis_fieldcat_alv.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZOS00090'
CHANGING
ct_fieldcat = tg_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT tg_fieldcat ASSIGNING <wa_fieldcat>.
CASE <wa_fieldcat>-fieldname.
WHEN 'VKORG' OR 'VTWEG' OR 'FKDAT' OR 'NAME1_KUNRG' OR 'BZIRK' OR
'KONDA' OR 'REGIO' OR 'UMVKZ' OR 'FKLMG' OR 'PRSDT' OR
'VKBUR' OR 'KVGR1' OR 'KVGR2' OR 'KVGR3' OR 'KVGR4' OR
'KVGR5' OR 'KNUMV' OR 'VBTYP'.
<wa_fieldcat>-no_out = 'X'.
ENDCASE.
IF <wa_fieldcat>-fieldname(1) = 'Z'.
<wa_fieldcat>-no_zero = 'X'.
ENDIF.
ENDLOOP.
ENDFORM.
2007 Dec 14 9:07 AM
Hi,
remove the field in the fieldcatalog
then u will not get that field in the output.
<b>Plzz reward points if it useful</b>
2007 Dec 14 9:07 AM
Hi,
remove the field in the fieldcatalog
then u will not get that field in the output.
<b>Plzz reward points if it useful</b>
2007 Dec 14 9:43 AM
Hi
Fields for the ALV is present in the fieldcatalog.In your case check in tg_fieldcat.
Regards
Shibin