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: 

DUMP WHILE SUMMATION IN ALV

Former Member
0 Kudos

Hi experts,

I am working with ALV report .ALl the data is displyed correctly but whn i try to sum the total netvalue or the quantity it is going for

"MESSAGE_TYPE_X" dump error ...but the same alv fromat is working for other programs ..

what may be the reason ...

1 ACCEPTED SOLUTION

former_member188685
Active Contributor

Fieldcatalog Error.

Correct your fieldcatalog.

when you are mentioning the TABNAME mention the Internal table name correctly, or you might have used small letters instead of caps./

If possible post your fieldcatalog code here.

10 REPLIES 10

former_member188685
Active Contributor

Fieldcatalog Error.

Correct your fieldcatalog.

when you are mentioning the TABNAME mention the Internal table name correctly, or you might have used small letters instead of caps./

If possible post your fieldcatalog code here.

0 Kudos

this is my code

PERFORM FIELD_CATELOGUE.

PERFORM DISPLAY_ALV.

FORM FIELD_CATELOGUE.

PERFORM ADD_FCAT USING 'VBELN' 'FINAL' 'REFERENCE NO' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'ERNAM' 'FINAL' 'Created By' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'FKART' 'FINAL' 'Type' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'VKORG' 'FINAL' 'Pur Org' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'VTWEG' 'FINAL' 'Dis Channel' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'FKDAT' 'FINAL' 'Billing Date' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'KUNRG' 'FINAL' 'Payer' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'POSNR' 'FINAL' 'Item' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'MATNR' 'FINAL' 'Material' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'ATKTX' 'FINAL' 'Description' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'WERKS' 'FINAL' 'Plant' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'FKIMG' 'FINAL' 'Billed Qty' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'NETWR' 'FINAL' 'Net VAlue' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'VRKME' 'FINAL' 'Unit' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'ADRNR' 'FINAL' 'Address' '' '' '' '' '10'.

PERFORM ADD_FCAT USING 'NAME1' 'FINAL' 'Payer Name' '' '' '' '' '40'.

ENDFORM.

FORM ADD_FCAT USING

FIELDNAME

TABNAME

SELTEXT_L

DO_SUM

EMPHASIZE

DECIMALS_OUT

EDIT_MASK

OUTPUTLEN.

YA_FIELDCAT-FIELDNAME = FIELDNAME.

YA_FIELDCAT-TABNAME = TABNAME.

YA_FIELDCAT-SELTEXT_L = SELTEXT_L.

YA_FIELDCAT-DO_SUM = DO_SUM.

YA_FIELDCAT-EMPHASIZE = EMPHASIZE.

YA_FIELDCAT-DECIMALS_OUT = DECIMALS_OUT.

YA_FIELDCAT-EDIT_MASK = EDIT_MASK.

YA_FIELDCAT-OUTPUTLEN = OUTPUTLEN.

APPEND YA_FIELDCAT TO T_FIELDCAT.

CLEAR YA_FIELDCAT.

ENDFORM.

FORM DISPLAY_ALV.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

PERCENTAGE = 0

TEXT = 'POPULATING DATA...... '.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = 'SY-REPID'

IS_LAYOUT = S_LAYOUT

IT_FIELDCAT = T_FIELDCAT

I_SAVE = 'A'

TABLES

T_OUTTAB = FINAL.

ENDFORM.

data is fetching properly when i try to sum the total only it ios going for dump and the same when it goes for print privies.

Edited by: manikandan muruganandham on Sep 1, 2008 10:17 AM

0 Kudos

Hi,

U have to use do_sum only for the field for which u want the total (like as in ur case net value) not for all the fields.

Hope this helps.

Regds.

Seema

0 Kudos

You need to check the fieldnames also. all the fields are there in your internal table with the same name.

VBELN, ERNAM, FKART, VKORG,VTWEG,FKDAT,KUNRG,

POSNR,MATNR,ATKTX,WERKS,FKIMG,NETWR,VRKME,ADRNR,NAME1.

I doubt on the bold fields. are they exists in your table. show your internal table definition...

0 Kudos

Hi,

Please go through this thread for sample programs...

/message/6049880#6049880 [original link is broken]

Hope this would help you.

Good luck

Narin

0 Kudos

how to do that can u guide me ...

0 Kudos

hey ur right ....insted of ARKTX i have pur ATKTX....it is working properly now thanx man......

Former Member
0 Kudos

Hi,

Can you please provide the details of the dump the field type you are using??

Regards,

Kunjal

narin_nandivada3
Active Contributor
0 Kudos

Hi,

Have you used the Standard message type in IF statements...if so then replace the message type as 'S'.

Or

If you place the error analysis here so that it would easy to suggest you.

Hope this would help you.

Good luck

Narin

JozsefSzikszai
Active Contributor
0 Kudos

"Total Questions: 243 (220 unresolved)"

seems like you have very difficult questions, which no one is able to answer...