on 02-29-2008 7:27 AM
hai frds,
plz help me out in this scenario.
i am working on ALV.i am facing with problems in following plz help me out.
1)Iam getting headings in alv using top of page event.
But when Iam trying to maintain headings in alv for fields that we use in selection screen like (plant _____to_____and document type_________________) this two fields are provided in the selection screen of the alv report.i dont understand how to populate the fields used in selection screen to be displayed in heading.
2)I could display the coloum sum in alv using DO-SUM= 'x'
in the reuse_alv_list_disply function module,but in my alv report i have got the field which is displayed and is not refeered to any ddic field (reffering like par_recd TYPE i, ful_recd TYPE i) this have got the values like 0 or 1 and when iam tyring to giive Do_sum its not giving sum but instead 0 for both field even its got some value,iam getting this as iam not refeing to ddic,,,,,so plz tell me how to find sum when we are not refering to ddic...
plz help me urgent gurus.....
i cannot understand your 2nd question.
I just know if you set the DO_SUM in fieldcat to the field(must numerical type), you can use the standard sum function whick provided by ALV.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
汎用モジュール:REUSE_ALV_DISPLAYを使用して帳票出力
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_CALLBACK_PGM
I_CALLBACK_TOP_OF_PAGE = 'FORM_ALV_TOP_OF_PAGE' "it is a form name
................
FORM FORM_ALV_TOP_OF_PAGE.
DATA L_STRING TYPE STRING.
CLEAR WA_HEADER.
WA_HEADER-TYP = C_S. "S
WA_HEADER-INFO = L_STRING.
APPEND WA_HEADER TO IT_HEADER.
"you can use append setence to add mutiply lines to your header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_HEADER.
REFRESH IT_HEADER.
ENDFORM. " ALV_TOP_OF_PAGE
for your from.......to needs
you can use concatenate setence to edit it to your needs then append into Header internal table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
verify the following link
http://www.sapdevelopment.co.uk/reporting/alv/alv_multlist.htm
Regards,
Sreelatha Gullapalli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.