Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

regarding subtotals in alv

hi gurus,

i have a small problem i am developing a alv report and i need subtotla of the field fkimg so i wrote the following code

PERFORM CREATE_FIELDCAT USING: '1' 'KUNRG' 'BILL TO PARTY' ' ',

'2' 'VBELN' 'BILL NO' ' ',

'3' 'FKDAT' 'BILL DATE' ' ',

'4' 'XBLNR' 'YOUR ORDER' ' ',

'5' '' '' ' ',

'6' 'VBELV' 'ORD REF NO' ' ',

'7' 'POSNV' 'ITEM NO' ' ',

'8' 'ARKTX' 'ITEM DESC' ' ',

'9' 'MATNR' 'ITEM CODE' ' ',

'10' '' '' ' ',

'11' 'VRKME' 'UNIT' ' ',

'12' 'FKIMG' 'QUANTITY' 'X',

'13' '' '' ' ',

'14' '' '' ' ',

'15' '' '' ' ',

'16' 'NETWR ' 'AMOUNT' '',

'17' 'WERKS ' 'PLANT' ' ',

'18' 'NAME1 ' 'PLANT NAME' ' '.

W_SORTINFO-FIELDNAME = 'VBELN'.

W_SORTINFO-SUBTOT = 'X'.

APPEND W_SORTINFO TO T_SORTINFO.

CLEAR W_SORTINFO.

but i am not getting the output it is going to short dump directly. itried it with out the sub total then the output is coming so please help me with the problem

Tags:
replied
PERFORM CREATE_FIELDCAT USING: '1' 'KUNRG' 'BILL TO PARTY' ' ',
'2' 'VBELN' 'BILL NO' ' ',
'3' 'FKDAT' 'BILL DATE' ' ',
'4' 'XBLNR' 'YOUR ORDER' ' ',
'5' '' '' ' ',          "<----What happened to the fieldname 
'6' 'VBELV' 'ORD REF NO' ' ',
'7' 'POSNV' 'ITEM NO' ' ',
'8' 'ARKTX' 'ITEM DESC' ' ',
'9' 'MATNR' 'ITEM CODE' ' ',
'10' '' '' ' ',  "<----What happened to the fieldname 
'11' 'VRKME' 'UNIT' ' ',
'12' 'FKIMG' 'QUANTITY' 'X',
'13' '' '' ' ',  "<----What happened to the fieldname 
'14' '' '' ' ',  "<----What happened to the fieldname 
'15' '' '' ' ',  "<----What happened to the fieldname 
'16' 'NETWR ' 'AMOUNT' '',
'17' 'WERKS ' 'PLANT' ' ',
'18' 'NAME1 ' 'PLANT NAME' ' '.

if you give like that it will give Dumps. Mention some fieldname.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question