2005 Jun 16 7:01 PM
Hi everyone,
I am trying to
Se precisarem ver as tabelas que estou preenchendo me peçam
obrigado
Hi everyone,
I am trying to
Se precisarem ver as tabelas que estou preenchendo me peçam
obrigado
2005 Jun 17 9:08 AM
Price devided by 100 problem can happen if you don't use the currency correctly. I's suggest to double-check if every amount is linked to a currency...I'm not familiar with that BAPI, so I cannot provide you details, but it was just my thought.
Peter
2005 Jun 17 9:10 AM
Hello,
I'm agree with Peter, I had this problem with currency that don't have decimals. With write you must use write .. currency ... but with BAPI ?
Regards
Frédéric
2005 Jun 17 12:56 PM
Hi everyone,
(now let's see if I contribute with my humble knowledge :-D)
whenever I try to write an ABAP program that has something to do with currencies, I'm always using
write bseg-wrbtr currency bkpf-waers.
So if I had 123 ESP (spanish currency before the Euro, with no decimals)...
data: l_string(10) type c.
data: l_curr like bseg-wrbtr.
START-OF-SELECTION.
l_string = '123'.
pack l_string to l_curr.
write l_curr currency 'ESP' to l_string.
then I get '1.23' into l_curr and '123' into l_string. But if I wrote
data: l_string(10) type c.
data: l_curr like bseg-wrbtr.
START-OF-SELECTION.
l_string = '123'.
pack l_string to l_curr.
write l_curr currency 'EUR' to l_string.
...then I got '1.23' into l_curr and <b>also</b> '1.23' into l_string.
I haven't worked with BAPIs so far, but I think you should place the price "divided by 100", and then let SAP to convert it to the right price, depending on the currency associated to the vendor.
I hope it helps. BR,
Alvaro
2005 Jun 17 10:55 AM
Hello,
have a look to the definition of the field NET_PRICE in structure BAPIEKPOC. It's CHAR 23 with 4 (!!) digits.
I don't know a currency with 4 digits but perhaps the guys at SAP thought 'Might happen' .
Regards Wolfgang