Skip to Content
0
Former Member
Oct 16, 2006 at 12:51 PM

ALV GRID short dump issue

24 Views

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.