03-24-2008 8:18 AM
Hi,
I have to write some text and insert some variables in subtotals fields using CL_SALV_TABLE method...
how to do that?
i have to give a subtotal field as:
Subtotal for : Variable1 Variable2 Records. 1043543(subtotal).
i have done the subtotal part but unable to implement this??
please help me..
Reward points if useful..
03-24-2008 8:27 AM
ALV Layout there is a field called 'subtotals_text'.
e.g. is_layout-subtotals_text = 'Test'.
The subtotal text will be test.
03-24-2008 8:40 AM
Hi,
Check this code.
concatenate text variable1 variable2 into subtotal.
where variable1 and variable2 are the variables which you are enterin in the subtotal field and 'text' is the text which u want.
Reward if helpful.
Regards.
03-24-2008 8:45 AM
03-24-2008 8:53 AM
Hi,
Check this code.
write : / subtotal
Thats it.. in case you are still facin some problem.. let me know...
Reward if helpful.
Regards.
03-24-2008 8:58 AM
03-24-2008 8:59 AM
Hi,
Ok..then how do you usually display the fields in alv oops..
Regards.
03-24-2008 9:15 AM
DIsplay it by using method's .. it's very complex if u dont know. it can't be done according to me
03-24-2008 9:20 AM
Hi,
well,
Just have subtotal field declared as a string and then write this using oo alv just as you know.
Concatenating the field , should not affect they way you display the output.
Reward if helpful.
Regards.
03-24-2008 9:34 AM
03-24-2008 9:35 AM
Hi,
Sorry buddy,
I dont think i can help you more than this. I dont know much about oo abap.
Regards.
03-24-2008 9:40 AM