2008 Dec 05 9:35 AM
Hi,
I have a ALV program where I am using the function module REUSE_ALV_GRID_DISPLAY.
The program displays the Output in ALV list and works fine.
The program dumps when I try to take the print preview of the ALV output list by clicking on the tool bar.
The program dumps in standard program SAPLKKBL
and the dump says 'The current statement requires a character-type data object' and the statement where it dumps is
if gs_fc-tech_form ne 99.
gs_out-hlplen = strlen( <field> ).
endif.
There are 2 fields in the internal table which are of DECIMAL data type.
When I try to move the data from the decimal fields to character field , the program doesn't go to dump.
I had a question.
Does ALV doesn't have the inbuilt function to convert any data type to CHaracter data type right?
Regards,
Rajesh
Hi,
I have a ALV program where I am using the function module REUSE_ALV_GRID_DISPLAY.
The program displays the Output in ALV list and works fine.
The program dumps when I try to take the print preview of the ALV output list by clicking on the tool bar.
The program dumps in standard program SAPLKKBL
and the dump says 'The current statement requires a character-type data object' and the statement where it dumps is
if gs_fc-tech_form ne 99.
gs_out-hlplen = strlen( <field> ).
endif.
There are 2 fields in the internal table which are of DECIMAL data type.
When I try to move the data from the decimal fields to character field , the program doesn't go to dump.
I had a question.
Does ALV doesn't have the inbuilt function to convert any data type to CHaracter data type right?
Regards,
Rajesh
2008 Dec 05 9:37 AM
2008 Dec 05 9:38 AM
2008 Dec 05 10:02 AM
Hi ,
No .You have to do it manually.
Declare the field with the proper data type.
Regards,
Rohan.
2008 Dec 05 10:05 AM
Hi,
you need to convert the fields manually.
ALV does not support automatic conversion.
-Raj
2008 Dec 05 10:30 AM
Hi,
If you have decimal fields in the internal table.
Take one variable with 'C'.
and use Write ur decimal fieldd to the declared variable.
And then u can replace the charcter value as you like using Replace All Occurences or First occurence.#
I think then it will work for you.
Thanks,
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |