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

Problem with BAPI_PO_CREATE1

Former Member
0 Likes
961

Hi to all,

I have some problem with this Bapi.

I want to force the quantity in each item but during the creation the system applies the rounding rules. I have put BAPIMEPOITEM-NO_ROUNDING = 'X' (I dont' know if it's the correct field...) but nothing happened....

I have also a problem wtih the delivery date....I 'm forcing the value BAPIMEPOSCHEDULE-DELIVERY_DATE without result.

Thank you

Ezio

4 REPLIES 4
Read only

Former Member
0 Likes
640

Hello Ezio,

TABLES

return = bapi_return

poitem = bapi_poitem

poitemx = bapi_poitemx

Fill poitemx table to with flags ie.

BAPIMEPOITEMX-NO_ROUNDING = 'X' .

Let me for further assistance on this.

Rgds,

Mano Sri

Read only

0 Likes
640

Hi Mano Sri,

I'm using bapimepoitem-no_rounding = 'X' and also

bapimepoitemx-no_rounding = 'X' but it seems not working.

You can see my reply to Rui.

Thank you!

Ezio

Read only

Former Member
0 Likes
640

Hello Ezio,

About two questions:

What do you mean with rounding rules? Can you put here one real example?

Are you using the X structures in the BAPI?

Example for the delivery date:

l_schedule-po_item = '00001'.

l_schedulex-po_item = '00001'.

l_schedulex-po_itemx = 'X'.

l_schedule-delivery_date = '20050621'.

l_schedulex-delivery_date = 'X'.

APPEND l_schedule TO lt_schedule.

APPEND l_schedulex TO lt_schedulex.

This is working for me.

Read only

0 Likes
640

Hi Rui,

yes, I'm using the X structures.

For rounding rules I mean this:

I'm putting:

bapimepoitem-quantity = quantity.

bapimepoitemx-quantity = 'X'.

bapimepoitem-no_rounding = 'X'.

bapimepoitemx-no_rounding = 'X'.

And the same quantity in bapimeposchedule.

For example if in MM03 or ME13 there is a fixed quantity of 100 and I put 1 in bapimepoitem-quantity, my po is created with the value 100.

How can avoid this?

For the delivery date I'm filling the fields like you, but also in this case the po is created with different delivery dates for each items.

Thank you.

Ezio