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

document amount

Former Member
0 Likes
847

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
Read only

Former Member
0 Likes
800

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

regards

Prabhu

7 REPLIES 7
Read only

Former Member
0 Likes
801

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

regards

Prabhu

Read only

Former Member
0 Likes
800

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.

Read only

dani_mn
Active Contributor
0 Likes
800

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

Read only

Former Member
0 Likes
800

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

Read only

0 Likes
800

hi subbu

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

plz guide me

regards

sree

Read only

0 Likes
800

hi hra

could you have a look on my query plz

regards

sree

Read only

Former Member
0 Likes
800

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