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

wrbtr format?

Former Member
0 Likes
1,548

i have a field in my cust fn module BAPIWRBTR dec 23 4.

i have to convert into bseg-wrbtr 13 2.

how to convert?.

eg if 100.0000 entered in fn module, it is taking as 10,000.00

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,315

Hi

The amount is always stored with absulte value, the sign is defined by SHKZG (Debit/Credit Indicator).

SHKZG = S => SIGN = +

SHKZG = H => SIGN = -

So

IF BSEG-SHKZG = 'H'.

BSEG-WRBTR = BSEG-WRBTR * -1.

ENDIF.

Regards,

Ram

Pls reward points if helpful.

6 REPLIES 6
Read only

Former Member
0 Likes
1,316

Hi

The amount is always stored with absulte value, the sign is defined by SHKZG (Debit/Credit Indicator).

SHKZG = S => SIGN = +

SHKZG = H => SIGN = -

So

IF BSEG-SHKZG = 'H'.

BSEG-WRBTR = BSEG-WRBTR * -1.

ENDIF.

Regards,

Ram

Pls reward points if helpful.

Read only

0 Likes
1,315

the question is how to convert the value of

BAPIWRBTR into WRBTR value?.

100.0000 -> 100.00 ???

Read only

0 Likes
1,315

Hi,

Actually, currency field contains like '123.45 USD' try to use the offset to spilit like

data c_amount(10) type c.

d = 123.5 USD

concatenate d0(10) d11(3) into c_amount separated by space.

Regards,

Ram

Read only

0 Likes
1,315

use like that...

declare variable type p than it will work look at example it is workin.

data:p type BAPIWRBTR value '1003.0000' .
data:p1(15) type p decimals 2.
p1 = p.

write: p1.

Read only

0 Likes
1,315

i'm getting as input 100.0000 which has format BAPIWRBTR

dec 23 4.

i have to convert it as 100.00 for bseg-wrbtr.

am i explaining correctly my requirements?

Read only

0 Likes
1,315

thanks kishan negi..prob solved..pts given