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
615

What is the use of these function modules .....

reuse_alv_fieldcatlog_merge

reuse_alv_commentary_write

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
574

reuse_alv_fieldcatlog_merge - Generate Field catelog as per structure

reuse_alv_commentary_write - Write Comments usually used for Top of page.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = p_structure

CHANGING

ct_fieldcat = p_fieldcat[]

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE i000(zo_spa) WITH text-073. "Error in Field catalog creation

LEAVE LIST-PROCESSING.

ENDIF.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = IT_LISTHEADER

i_logo = Logo name

  • I_END_OF_LIST_GRID =.

ENDFORM. "TOP_OF_PAGE

Reward points if this Helps.

Manish

reuse_alv_fieldcatlog_merge - Generate Field catelog as per structure

reuse_alv_commentary_write - Write Comments usually used for Top of page.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = p_structure

CHANGING

ct_fieldcat = p_fieldcat[]

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE i000(zo_spa) WITH text-073. "Error in Field catalog creation

LEAVE LIST-PROCESSING.

ENDIF.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = IT_LISTHEADER

i_logo = Logo name

  • I_END_OF_LIST_GRID =.

ENDFORM. "TOP_OF_PAGE

Reward points if this Helps.

Manish

4 REPLIES 4
Read only

anversha_s
Active Contributor
0 Likes
574
Read only

Former Member
0 Likes
574

1) build filed catalog

2) to write header and logo in alv.

plz reward the helpful answer.

kishan negi

Read only

Former Member
0 Likes
575

reuse_alv_fieldcatlog_merge - Generate Field catelog as per structure

reuse_alv_commentary_write - Write Comments usually used for Top of page.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = p_structure

CHANGING

ct_fieldcat = p_fieldcat[]

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE i000(zo_spa) WITH text-073. "Error in Field catalog creation

LEAVE LIST-PROCESSING.

ENDIF.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = IT_LISTHEADER

i_logo = Logo name

  • I_END_OF_LIST_GRID =.

ENDFORM. "TOP_OF_PAGE

Reward points if this Helps.

Manish

Read only

Former Member
0 Likes
574

Hi Balu,

The use of function module is as Follows.

1 . reuse_alv_fieldcatlog_merge - If you have a user defined or standard structure and want the fieldcatalog to be builded and then modify according to your logic you can use the function module

Create field catalog from dictionary structure or internal table

Use the sample program BCALV_TEST_FULLSCREEN and go through the Function Module Documentation.

2 reuse_alv_commentary_write - This is used to print the list or logo into the header .

Use the sample program BCALV_FULLSCREEN_DEMO and go through the Function Module Documentation.

Please reward points if useful