Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV dump

Former Member
0 Likes
766

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

5 REPLIES 5
Read only

Former Member
0 Likes
718

NO.

we need to do it manually.

Read only

Former Member
0 Likes
718

REPLACE ALL OCCURRENCES OF

might help you

Read only

Former Member
0 Likes
718

Hi ,

No .You have to do it manually.

Declare the field with the proper data type.

Regards,

Rohan.

Read only

Former Member
0 Likes
718

Hi,

you need to convert the fields manually.

ALV does not support automatic conversion.

-Raj

Read only

0 Likes
718

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,