Application Development and Automation 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: 
Read only

alv

Former Member
0 Likes
694

what are the parameters we used in reuse_alv_fieldcatalog_merge?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
671

HAI

these are the paramter is enough,

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

exporting

i_structure_name = 'VBAK'

changing

ct_fieldcat = it_fieldcat[]

.

5 REPLIES 5
Read only

Former Member
0 Likes
671

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

exporting

i_internal_tabname = 'ILINE'

i_structure_name = 'ZSTOCK'

changing

ct_fieldcat = fieldcat.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
671

Also have a look at this:

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = i_repid

I_INTERNAL_TABNAME = 'IMAT' "capital letters!

I_INCLNAME = i_repid

CHANGING

CT_FIELDCAT = int_fcat

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

PROGRAM_ERROR = 2

OTHERS = 3.

*explanations:

  • I_PROGRAM_NAME is the program which calls this function

*

  • I_INTERNAL_TABNAME is the name of the internal table which you want

  • to display in ALV

*

  • I_INCLNAME is the ABAP-source where the internal table is defined

  • (DATA....)

  • CT_FIELDCAT contains the Fieldcatalouge that we need later for

  • ALV display

Have a look at below links for sample code.

http://www.erpgenie.com/abap/code/abap28.htm

http://www.sapdevelopment.co.uk/reporting/alv/alv_variousfcat.htm

I hope it helps.

Best Regards,

Vibha

Read only

0 Likes
671
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
   EXPORTING
     i_program_name               =  l_repid
     i_internal_tabname           =  'IT_DELNOTE'
*     i_structure_name             = IT_DELNOTE[]
*     i_client_never_display       = 'X'
     i_inclname                   = l_repid
     i_bypassing_buffer           = 'X'
*   I_BUFFER_ACTIVE              =
    CHANGING
      ct_fieldcat                  = IT_FCAT[]
   EXCEPTIONS
     inconsistent_interface       = 1
     program_error                = 2
     OTHERS                       = 3
            .
  IF sy-subrc <> 0.
Read only

Former Member
0 Likes
672

HAI

these are the paramter is enough,

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

exporting

i_structure_name = 'VBAK'

changing

ct_fieldcat = it_fieldcat[]

.

Read only

Former Member
0 Likes
671

hi balu,

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = V_REPID

I_INTERNAL_TABNAME = 'ITAB'

  • I_STRUCTURE_NAME =

  • I_CLIENT_NEVER_DISPLAY = 'X'

I_INCLNAME = V_REPID

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

CHANGING

CT_FIELDCAT = ITAB_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.

hope this helps,

do reward if it helps,

priya.