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

Net price devided by 100

Former Member
0 Likes
1,140

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

4 REPLIES 4
Read only

Peter_Inotai
Active Contributor
0 Likes
976

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

Read only

0 Likes
976

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

Read only

0 Likes
976

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

Read only

Former Member
0 Likes
976

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