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 REPORT

Former Member
0 Likes
548

HI EXPERTS,

I AM WORKING ON ALV GRID REPORT.

MY REPORT LOOKS LIKE BELOW .

I NEEED TO DISPLAY REPORT HEADING ON TOP ,BELOW THAT DATE/TIME AS SHOWN BELOW

BELOW THAT ITEM HEADINS AND BELOW ITEM DETAILS.

CAN U PLZ HELP HOW TO DO THIS IN ALV GRID REPORT.

<b>MATERIAL REPORT</b>

DATE/TIME 8/25/06 10.30AM PAGE 1

MATERIAL DESCRIPTION BATCH GOODS PERCENTAGE

RECIEPT

DATE

_________________________________________________________

210 STEEL 10 8/25/06 100

REGARDS,

SIRI

HI EXPERTS,

I AM WORKING ON ALV GRID REPORT.

MY REPORT LOOKS LIKE BELOW .

I NEEED TO DISPLAY REPORT HEADING ON TOP ,BELOW THAT DATE/TIME AS SHOWN BELOW

BELOW THAT ITEM HEADINS AND BELOW ITEM DETAILS.

CAN U PLZ HELP HOW TO DO THIS IN ALV GRID REPORT.

<b>MATERIAL REPORT</b>

DATE/TIME 8/25/06 10.30AM PAGE 1

MATERIAL DESCRIPTION BATCH GOODS PERCENTAGE

RECIEPT

DATE

_________________________________________________________

210 STEEL 10 8/25/06 100

REGARDS,

SIRI

3 REPLIES 3
Read only

Former Member
0 Likes
517

For dipalying header, you can use REUSE_ALV_COMMENTARY_WRITE fm:

check the link:

http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm

Regards,

Ravi

Read only

Former Member
0 Likes
517

check sample programs

BALVST03_GRID or BALV* IN SE38.

  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_background_id         = 'ALV_WALLPAPER2'
            i_callback_program      = g_repid
            i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'
            i_structure_name        = 'SFLIGHT'
            is_layout               = gs_layout
            it_fieldcat             = gt_fieldcat[]
*           IT_EXCLUDING            =
            it_special_groups       = gt_sp_group[]
            it_sort                 = gt_sort[]
*           IT_FILTER               =
*           IS_SEL_HIDE             =
*           i_default               = g_default
            i_save                  = g_save
            is_variant              = g_variant
            it_events               = gt_events[]
*           IT_EVENT_EXIT           =
            is_print                = gs_print
*           I_SCREEN_START_COLUMN   = 0
*           I_SCREEN_START_LINE     = 0
*           I_SCREEN_END_COLUMN     = 0
*           I_SCREEN_END_LINE       = 0
*      IMPORTING
*           E_EXIT_CAUSED_BY_CALLER =
       tables
            t_outtab                = gt_sflight.

Read only

Former Member
0 Likes
517

DATA: C_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.

&----


*& Form TOP_OF_PAGE

&----


  • Top Of Page for the ALV format

----


LS_LINE-TYP = 'H'.

LS_LINE-INFO = 'MATERIAL REPORT'.

ls_line-info = 'date/time' sy-datum,sy-uziet.

APPEND LS_LINE TO TB_COMMENTS.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = TB_COMMENTS.

  • I_LOGO =

  • I_END_OF_LIST_GRID =

.

CLEAR TB_COMMENTS.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = V_REPID

I_CALLBACK_PF_STATUS_SET = C_PF_STATUS

  • I_CALLBACK_USER_COMMAND = ' '

I_CALLBACK_TOP_OF_PAGE = C_TOP_OF_PAGE