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

-ve sign missing while downloading

Former Member
0 Likes
542

Hi all,

I am working on ALV using oops concepts. I am not getting the -ve sign of amounts while downloading data to excel sheet. It is shown in ALV output correctly. Please help.

Hi all,

I am working on ALV using oops concepts. I am not getting the -ve sign of amounts while downloading data to excel sheet. It is shown in ALV output correctly. Please help.

4 REPLIES 4
Read only

Former Member
0 Likes
503

are you sure , double check it once.

Read only

0 Likes
503

hi vijay,

-ve sign is missing. i have checked it.

Read only

Former Member
0 Likes
503

Hi Jayasri,

I will tell a scenario where i downloaded the values in an excel sheet with negative sign at the end instead at the front. e.g 4551653-. But this negative sign appeared automatically after downloading.I have to display this negative sign at the front.For this i have used the following function module.

IF <source-field> LT 0.

MOVE <source-field> TO w_negative.

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'

CHANGING

value = w_negative.

MOVE w_negative TO <target-field>.

CLEAR w_negative.

ELSE.

MOVE <source-field> TO <target-field>.

ENDIF.

I guess you can use this code before calling your function module for downloading. Pass the table after appending this field value with negative sign to the download function module.Hope it works.

With Regards,

Sasikala

Read only

0 Likes
503

Hi, my problem is solved. I have used REUSE_ALV_GRID_DISPLAY.Then automatically my problem is solved . Earlier it was developed with oops concepts.