Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can i use field catlog merge in hierseq ALV

Former Member
0 Kudos

MY REQUIREMENT IS I AM USING HIERSEQ ALV

IN HEADER TABLE I AM HAVING SOME FIELDS WHICH ARE NOT DATA BASE FIELDS THEY ARE PERCENTAGE RELATED FIELDS.

HOW CAN I MENTION FIELDCAT-TABNAME = HEADER

FIELDCAT-TABNAME = ITEM

IN FIELDCAT IF I AM USING MERGE.

2 REPLIES 2

Former Member
0 Kudos

Hi Venu,

*Populate the header fieldcatalog

perform get_fldcat_detail using 'IT_HEADER'.

*Populate the item fieldcatalog

perform get_fldcat_detail using 'IT_ITEM'.

****px_tabnam is a variable where the IT_HEADER & IT_ITEM tables get populated.

form get_fldcat_detail using px_tabnam type slis_tabname.

*Populate the fieldcatalog

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = SY-REPID

i_internal_tabname = px_tabnam

i_inclname = SY-REPID

CHANGING

ct_fieldcat = it_fldcat

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

others = 3.

if sy-subrc <> 0.

message i000(ZZ) with 'Error in Field Catalog merging'(023).

stop.

endif.

endform. " GET_FLDCAT_DETAIL

Thanks

Vikranth Khimavath

Message was edited by: Khimavath Vikranth

Former Member
0 Kudos

Hi,

Go thru this link it may help you

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Thanks

Sunil