‎2006 Sep 11 4:58 AM
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
‎2006 Sep 11 5:03 AM
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.
‎2006 Sep 11 5:03 AM
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.
‎2006 Sep 11 5:05 AM
the question is how to convert the value of
BAPIWRBTR into WRBTR value?.
100.0000 -> 100.00 ???
‎2006 Sep 11 5:10 AM
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
‎2006 Sep 11 5:32 AM
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.
‎2006 Sep 11 5:32 AM
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?
‎2006 Sep 11 5:39 AM