cancel
Showing results for 
Search instead for 
Did you mean: 

problem in ALV heading

Former Member
0 Kudos

hi ,

i have problem in ALV heading, am getting only some of the fields,

dnt know why am gettin glike this,

thanks in advance.

ganesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ganesh,

we all welcome you to SDN .

try the following code.

TYPE-POOLS SLIS.

DATA: FIELDCAT TYPE slis_t_fieldcat_alv,

WA LIKE LINE OF FIELDCAT.

wa-fieldname = 'INV_NO'.

wa-tabname = 'ZINVOICE_H'.

wa-seltext_l = 'INVOICENO'.

wa-outputlen = 12.

append wa to FIELDCAT.

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 = 'report'

I_CALLBACK_USER_COMMAND = 'abc'

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

I_STRUCTURE_NAME = 'ZINVOICE_H'

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT =

IT_FIELDCAT = 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 = IT_REP

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

like this pass value for each fields this is the case if u have fields from different table.

also i think if u had given field name in ur data element created by u and if it is in activated state ,u will automatically get the fiels name.

but i prefer 1 st option.

shan

Answers (2)

Answers (2)

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ganesh,

Welcome to SDN!

Double check the piece of code wherein u r building the fieldcatalog.

Hope this helps.

sandeep

Former Member
0 Kudos

can u paste the code for fieldcatalog

may be u r not using the options

seltext_s , seltext_m , seltext_l