Application Development 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: 

ALV GRID short dump issue

Former Member
0 Kudos

could anybody advice, ALV GRID FM(field catalog issue)is getting short dump, but workig fine for ALV LIST.

PERFORM create_field_catalog USING:

'TRAFFIC_LIGHT' ' ' 15 'Status' 'Status' ' ',

'VKORG' ' ' 15 'Sales Org' 'Sales Org' ' ',

'VTWEG' ' ' 15 'Dist Channel' 'Dist Channel' ' ',

'KUNRG' ' ' 15 'Payer' 'Payer' ' ',

'PAYER' ' ' 15 'Payer Name' 'Payer Name' ' ',

'KUNAG' ' ' 15 'Ship-To' 'Ship-To' ' ',

'SHIPTO' ' ' 15 'Ship-To Name' 'Ship-To Name' ' ',

'SHIPTOPAR' ' ' 15 'Bill to Party' 'Bill To Party' ' ',

'KDGRP' ' ' 15 'Customer Grp' 'Customer Grp' ' ',

'ZCUSTPO' ' ' 15 'Customer PO' 'Customer PO' ' ',

'VBELN' ' ' 15 'Billing Doc' 'Billing Doc' ' ',

'FKDAT' ' ' 15 'Billing Date' 'Billing Date' ' ',

'FKART' ' ' 15 'Billing Type' 'Billing Type' ' ',

'ZOUTPUT' ' ' 15 'Output Type' 'Output Type' ' ',

'NETWR' ' ' 15 'Net Value' 'Net Value' 'X',

'KWERT' ' ' 15 'Total VAT' 'Total VAT' 'X',

'WAERK' ' ' 15 'Currency' 'Currency' ' ',

'XBLNR' ' ' 15 'Reference' 'Reference' ' ',

'DELNO' ' ' 15 'Delivery #' 'Delivery #' ' ',

'TLINE' ' ' 15 'Manifest #' 'Manifest #' ' ',

'ZBOL' ' ' 15 'Bill Of Ldng' 'Bill of Ldng' ' ',

'LIFEX' ' ' 15 'Ext Del #' 'Ext Del #' ' ',

'POSNR' ' ' 15 'Item' 'Item' ' ',

'MATNR' ' ' 18 'Material' 'Material' ' ',

'KDMAT' ' ' 15 'Cust Matl' 'Cust Matl' ' ',

'WERKS' ' ' 15 'Plant' 'Plant' ' ',

'ZZPLAT' ' ' 10 'Platform' 'Platform' ' ',

'ZZPRONUM' ' ' 10 'Program' 'Program' ' ',

'ZZPROCODE' ' ' 10 'Prod Code' 'Prod Code' ' ',

'FKIMG' ' ' 15 'Qty' 'Qty' ' ',

'VRKME' ' ' 15 'UoM' 'UoM' ' ',

'ARKTX' ' ' 15 'Description' 'Description' ' ',

'KBETR' ' ' 15 'Price' 'Price' ' ',

'VATRT' ' ' 15 'VAT Rate' 'VAT Rate' ' ',

'KWERT_D' ' ' 15 'Item VAT' 'Item VAT' 'X',

'NETWR_D' ' ' 15 'Item Net Value' 'Item Net Value' 'X',

'VGBEL' ' ' 15 'Ref Document' 'Ref Document' ' ',

'VGPOS' ' ' 13 'Ref Doc Line' 'Ref Doc Line' ' ' .

**************************

FORM create_field_catalog USING fieldname TYPE c

inttype TYPE c

outputlen TYPE i

coltext TYPE c

seltext TYPE c

do_sum TYPE c.

----


DATA: l_f_fieldcat TYPE slis_fieldcat_alv.

----


l_f_fieldcat-fieldname = fieldname.

l_f_fieldcat-inttype = inttype.

l_f_fieldcat-outputlen = outputlen.

l_f_fieldcat-seltext_m = coltext.

l_f_fieldcat-seltext_l = seltext.

l_f_fieldcat-reptext_ddic = coltext.

l_f_fieldcat-do_sum = do_sum.

APPEND l_f_fieldcat TO t_field_catalog.

CLEAR l_f_fieldcat.

ENDFORM. "CREATE_FIELD_CATALOG

**********************************

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = v_repid

i_callback_user_command = 'F_USER_COMMAND'

i_grid_settings = f_grid_settings

is_layout = f_grid_layout

is_print = f_print_settings

i_background_id = 'BACK'

it_events = t_events[]

it_fieldcat = t_field_catalog

it_sort = t_sortcat[]

i_default = 'X'

i_save = 'A'

is_variant = f_variant

TABLES

t_outtab = t_output4

EXCEPTIONS

program_error = 1

OTHERS = 2.

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

Try to pass the t_sortcat and t_events tables without the [].

REgards,

ravi

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Can you show how t_output4 is defined?

Regards

Rich Heilman

0 Kudos

I think u have declared i_sort or i_events or fieldcatalog type of alv_list parameters type.

change it to alv grid parameters and it will work fine...

0 Kudos

hi,

psl chk this .

pls put <b>[ ]</b>

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = v_repid

i_callback_user_command = 'F_USER_COMMAND'

i_grid_settings = f_grid_settings

is_layout = f_grid_layout

is_print = f_print_settings

i_background_id = 'BACK'

it_events = t_events[]

<b>it_fieldcat = t_field_catalog[ ]</b>

it_sort = t_sortcat[]

i_default = 'X'

i_save = 'A'

is_variant = f_variant

TABLES

t_outtab = t_output4

EXCEPTIONS

program_error = 1

OTHERS = 2.

rgds

anver

if hlpd mark points

Former Member
0 Kudos

BEGIN OF t_output4 OCCURS 0,

traffic_light TYPE c,

vkorg LIKE vbrk-vkorg,

vtweg LIKE vbrk-vtweg,

kunrg LIKE vbrk-kunrg,

payer LIKE adrc-name1,

kunag LIKE vbrk-kunag,

shipto LIKE adrc-name1,

shiptopar LIKE likp-kunnr,

kdgrp LIKE vbrk-kdgrp,

zcustpo LIKE vbkd-bstkd,

vbeln LIKE vbrk-vbeln,

fkdat LIKE vbrk-fkdat,

fkart LIKE vbrk-fkart,

zoutput LIKE dnast-kschl,

netwr LIKE vbrk-netwr,

kwert LIKE konv-kwert,

waerk LIKE vbrk-waerk,

xblnr LIKE vbrk-xblnr,

delno LIKE likp-vbeln,

t_line LIKE tline-tdline,

zbol LIKE likp-bolnr,

lifex LIKE likp-lifex,

posnr LIKE vbrp-posnr,

matnr LIKE vbrp-matnr,

kdmat LIKE lips-kdmat,

werks LIKE vbrp-werks,

zzplat LIKE vbrp-zzplat,

zzpronum LIKE vbrp-zzpronum,

zzprocode LIKE a802-zzprocode,

fkimg LIKE vbrp-fkimg,

vrkme LIKE vbrp-vrkme,

arktx LIKE vbrp-arktx,

kbetr LIKE konv-kbetr,

vatrt TYPE p DECIMALS 1,

kwert_d LIKE konv-kwert,

netwr_d LIKE vbrp-netwr,

vgbel LIKE vbrp-vgbel,

vgpos LIKE vbrp-vgpos,

END OF t_output4,