Skip to Content

How to delete top of page in main display ?

Hi, i just want to know how to delete this capture.png . This issue appears when i use the code below. I need to use i_callback_top_of_page = 'TOP' because i want my header will be displayed into the display before print. I get the right display in the view before print but there is a header in normal view.

 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
 i_callback_program = sy-repid
 is_layout = gd_layout
 it_fieldcat = I_fieldcatalog[]
 it_sort = IT_SORT[]
 i_callback_top_of_page = 'TOP'
 I_DEFAULT = 'X'
 I_SAVE = 'A'
 is_variant = i_variant1
 TABLES
 t_outtab = TB_iRESULT
 EXCEPTIONS
 program_error = 1
 others = 2.
 IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
 ENDIF.
FORM TOP.
  CALL FUNCTION 'Z_EGF_TOP_OF_PAGE'
    EXPORTING
      P_BOTTON_LINE = ''.
ENDFORM.
"This function is a standart display of a header.
capture.png (23.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 25, 2017 at 02:27 PM

    Does your "local standard" FM Z_EGF_TOP_OF_PAGE use FM REUSE_ALV_COMMENTARY_WRITE, in that case the TOP form will also create a HTML TOP for online display.

    Add comment
    10|10000 characters needed characters exceeded

    • FM Z_EGF_TOP_OF_PAGE is on the below form for all elements displayed in my header. I don't use FM

      REUSE_ALV_COMMENTARY_WRITE in FM Z_EGF_TOP_OF_PAGE or in my main program because it display a ULINE between the header and my data in the print preview.

       *-> Nom de la société
      if P_BUKRS = space.
       L_BUKRS = '1155'.
      else.
       L_BUKRS = P_BUKRS.
      endif.
      ASSIGN W_TEXTL(25) TO <FS>.
      T001-BUKRS = L_BUKRS.
      READ TABLE T001.
      concatenate SY-VLINE T001-BUTXT into <FS>.
      *-> Date
      W_OFFST = TLINE - 18.
      ASSIGN W_TEXTL+W_OFFST(10) TO <FS>.
      WRITE SY-DATUM TO <FS> USING EDIT MASK '__.__.____'.
      *-> Heure (HH:MM)
      W_OFFST = TLINE - 6.
      ASSIGN W_TEXTL+W_OFFST(5) TO <FS>.
      WRITE SY-UZEIT TO <FS> USING EDIT MASK '__:__'.