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

negative amount

Former Member
0 Likes
786

Hello ,

I get amount from cluster.

How to get sign of amount( BETRG field ) from cluster?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
746

Have you declared your field of type BETRG itself...as this domain will have sign along with it then you should be getting the sign..

6 REPLIES 6
Read only

Former Member
0 Likes
747

Have you declared your field of type BETRG itself...as this domain will have sign along with it then you should be getting the sign..

Read only

0 Likes
746

Thanks for reply...

But how can I separate amount from sign.

eg amount may be -1234.99 or 1234.99-

Thanks.

Read only

0 Likes
746

IF wa_betrg < 0.

wa_betrg = wa_betrg * (-1). " and u know the number is negative

ENDIF.

Read only

0 Likes
746

Hello,

data in field is xx,yy.zz. having length 8.

want to convert it to fix length with adding 00 ie it should be 00xxyyzz without , & .

how to do that.

Thanks.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
746

Hello,

You want to remove the decimals seprator as well.

I mean if you have value as 12,345.67, output you want as 001234567.

Plz revert.

BR,

Suhas

Read only

Former Member
0 Likes
746

Try with number2 = abs ( number1 ).