Application Development 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: 

document amount

Former Member
0 Kudos

hi friends,

i need to fetch amount in document currencey and print that.

bsid-wrbtr

if document type (bschl) is populated with '01' '02' '03' '04' '05'......'09' wrbtr is positive else negitive so how to populate this with negative sign.

regards

sree

1 ACCEPTED SOLUTION

Former Member
0 Kudos

u have to check SHKZG ( debit / credit indicator ).

regards

Prabhu

7 REPLIES 7

Former Member
0 Kudos

u have to check SHKZG ( debit / credit indicator ).

regards

Prabhu

Former Member
0 Kudos

just use select it automaticaly store .

for +ve it show itab-wrbtr = 123.90

-ve it show itab-wrbtr = 123.90-

now u can shift -ve sighn to front of amont using fm

CALL FUNCTION <b>'CLOI_PUT_SIGN_IN_FRONT'

</b>CHANGING

value = itab-wrbtr.

dani_mn
Active Contributor
0 Kudos

HI,

to make the field nagative simply multiply it with '-1'.

like this.

if bsid-bschl <> '01' OR

bsid-bschl <> '02' OR

bsid-bschl <> '03' OR

bsid-bschl <> '04'.

itab-wrbtr = bsid-wrbtr * '-1'.

ENDIF.

Regards,

HRA

Former Member
0 Kudos

Hi,

If bsid-bschl < '10'.

if bsid-wrbtr < 0.

bsid-wrbtr = -1 * bsid-wrbtr.

endif.

else.

if bsid-wrbtr > 0.

bsid-wrbtr = -1 * bsid-wrbtr.

endif.

endif.

Regards

Subbu

0 Kudos

hi subbu

how to fetch this document amount ie how can we write select statement i am bit confusing

plz guide me

regards

sree

0 Kudos

hi hra

could you have a look on my query plz

regards

sree

Former Member
0 Kudos

select bschl wrbtr wrbtr

into table itab

from bsid.

loop at itab.

if itab-bschl < 10.

itab-wrbtr = itab-wrbtr * -1.

endif.

write : / itab-bschl, itab-wrbtr.

endloop.

Regards,

Anurag