2006 Dec 19 10:10 AM
What is the use of these function modules .....
reuse_alv_fieldcatlog_merge
reuse_alv_commentary_write
2006 Dec 19 10:13 AM
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
What is the use of these function modules .....
reuse_alv_fieldcatlog_merge
reuse_alv_commentary_write
2006 Dec 19 10:12 AM
hi,
<u>reuse_alv_fieldcatlog_merge</u>
http://www.sapdevelopment.co.uk/reporting/alv/alv_variousfcat.htm
<u>reuse_alv_commentary_write</u>
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rephead.htm
rgds
anver
2006 Dec 19 10:12 AM
1) build filed catalog
2) to write header and logo in alv.
plz reward the helpful answer.
kishan negi
2006 Dec 19 10:13 AM
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
2006 Dec 19 10:27 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |