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

Query on ALV

Former Member
0 Likes
618

I have a query on ALV.

When am doing a addition for a currency field with some negative amounts and positive amounts, the Sumation of all amounts are not happening.

Could someone please help me on this.

Thanks in advance.

Prince

I have a query on ALV.

When am doing a addition for a currency field with some negative amounts and positive amounts, the Sumation of all amounts are not happening.

Could someone please help me on this.

Thanks in advance.

Prince

4 REPLIES 4
Read only

Former Member
0 Likes
570

Hi Price,

Currency field length is 5 chars only.

so when you assign '-10000' value it is goign to take

'-1000' only so check the length while passing.

-Anu.

Read only

Former Member
0 Likes
570

Hi,

In ALV fieldcatalog, please pass the CFIELDNAME and CTABNAME.

CFIELDNAME = Currency Key,

CTABNAME = Currency key table name.

like use below code in the fieldcatalog

LS_FIELDCAT-CFIELDNAME = 'WAERK'.

LS_FIELDCAT-CTABNAME = 'VBAP'.

I think summation is working fine.

rewards if helpful.

Regards,

Subbarao

Read only

Former Member
0 Likes
570

hi

good

check out with the -(negative) sign of the currency field wheather it is coming in the exact format or not, sometime it happend that the -(negative)sign didn't come properly and it give you the wrong result.

thanks

mrutyun

Read only

Former Member
0 Likes
570

Hi Prince,

Please check the data type of the field. also make sure that you have set the field DO_SUM to 'X' in the field catlog.

Regards,

Prabhas.