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 listheader problem

Former Member
0 Likes
299

Just pls check this code once. the problem i getting is.. after displaying the output list. when i m coming back..again i m getting the header as 'Frieght Register' . and it is hapening only one time in a day. if i have login again in SAP .. again it will happen. means for every new loging it hapens...

i hav cleared the coometry eventhough...

kindly revert me back asap..

FORM FRIEGHT .

WA_COMMENTRY-TYP = 'H'.

WA_COMMENTRY-INFO = 'Frieght Register'.

APPEND WA_COMMENTRY TO IT_COMMENTRY.

CLEAR WA_COMMENTRY.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = IT_COMMENTRY

  • I_LOGO =

  • I_END_OF_LIST_GRID =

  • I_ALV_FORM =

.

REFRESH IT_COMMENTRY.

CLEAR IT_COMMENTRY.

ENDFORM. " FRIEGHT

&----


*& Form GET_DISPLAY

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM GET_DISPLAY .

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

I_BACKGROUND_ID = 'ALV_BACKGROUND'

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

IS_LAYOUT = IT_LAYOUT

IT_FIELDCAT = IT_FIELD

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

IT_EVENTS = IT_EVENT

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • IR_SALV_FULLSCREEN_ADAPTER =

*

TABLES

T_OUTTAB = IT_MAIN

  • 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.

ENDFORM. " GET_DISPLAY

1 REPLY 1
Read only

Former Member
0 Likes
278

I am not enough clear with the form freight is it calling from

the form 'TOP_OF_PAGE'?

if not then you have to write

I_CALLBACK_TOP_OF_PAGE = 'FREIGHT'

but if it is calling from 'TOP_OF_PAGE' then refresh IT_COMMENTRY before calling the form FREIGHT.

It may help you