2008 Sep 01 9:06 AM
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 ...
2008 Sep 01 9:08 AM
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.
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 ...
2008 Sep 01 9:08 AM
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.
2008 Sep 01 9:16 AM
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
2008 Sep 01 9:22 AM
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
2008 Sep 01 9:22 AM
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...
2008 Sep 01 9:24 AM
Hi,
Please go through this thread for sample programs...
/message/6049880#6049880 [original link is broken]
Hope this would help you.
Good luck
Narin
2008 Sep 01 10:44 AM
2008 Sep 01 11:03 AM
hey ur right ....insted of ARKTX i have pur ATKTX....it is working properly now thanx man......
2008 Sep 01 9:09 AM
Hi,
Can you please provide the details of the dump the field type you are using??
Regards,
Kunjal
2008 Sep 01 9:10 AM
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
2008 Sep 01 9:22 AM
"Total Questions: 243 (220 unresolved)"
seems like you have very difficult questions, which no one is able to answer...
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |