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

Regarding ALV Grid

Former Member
0 Likes
761

Hello Every One,

In alv grid top of page we need to display in the form given below.

programname date

I am assigning spaces in between that but the top-of-page event is condensing that spaces.

How should we specify blanks in top-of-page.

Thanks & regards,

Nagalakshmi

Hello Every One,

In alv grid top of page we need to display in the form given below.

programname date

I am assigning spaces in between that but the top-of-page event is condensing that spaces.

How should we specify blanks in top-of-page.

Thanks & regards,

Nagalakshmi

5 REPLIES 5
Read only

amit_khare
Active Contributor
0 Likes
730

Concatenate 'Program Name' 'Date' into v_head seperated by spaces.

Pass this v_head to top-of-page.

Regards,

Amit

Read only

0 Likes
730

i have used in that way but it is condesing spaces

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
730

Hi

Concatenate 'Program Name' 'Date' into v_head seperated by spaces.

Use this in

REUSE_ALV_COMMENTERY_WRITE fm for Relevant Parameter.

Regards,

kumar

Read only

Former Member
0 Likes
730

hi,

It will consider only 1 space , not more than that

Read only

Former Member
0 Likes
730

parameters: p_name type i.

TYPE-POOLS: SLIS.

DATA FS_INFO TYPE SLIS_LISTHEADER.

DATA T_INFO LIKE STANDARD TABLE OF FS_INFO.

FS_INFO-TYP = 'H'.

FS_INFO-KEY = 'LOGO'.

FS_INFO-INFO = 'JUST A SAMPLE TEST FOR THIS FUNCTION MODULE'.

APPEND FS_INFO TO T_INFO.

CLEAR FS_INFO.

TABLES SPFLI.

DATA FS_SPFLI LIKE SPFLI.

DATA T_SPFLI LIKE STANDARD TABLE OF FS_SPFLI.

SELECT *

FROM SPFLI

INTO TABLE T_SPFLI.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = SY-REPID

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

I_CALLBACK_TOP_OF_PAGE = 'SUNIL'

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

I_STRUCTURE_NAME = 'SPFLI'

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT =

  • IT_FIELDCAT =

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • I_HTML_HEIGHT_TOP = 0

  • I_HTML_HEIGHT_END = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • IR_SALV_FULLSCREEN_ADAPTER =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = T_SPFLI

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

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = T_INFO

I_LOGO = 'TRVPICTURE_REC_WIZ04'

  • I_END_OF_LIST_GRID =

  • I_ALV_FORM =

.

ENDFORM.\

through this i am up loading a photo from application server