cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a PO with ME_CREATE_PO_ITEM

Former Member
0 Kudos

Hello people,

I´m trying to create a purchase order for a given requisition (that was generated via PM order).

I would like to get the price from the requisition.

I´m using the ME_CREATE_PO_ITEM function module.

I can check the order item created has data in the "Conditions" tab incorrect.

I´m using this syntax:

call function 'ME_CREATE_PO_ITEM'

exporting

i_konnr = p_eban-konnr

i_ktpnr = p_eban-ktpnr

i_pstyp = hpstyp

i_set_ebakz = par-set_ebakz

i_werks = ti_resb-werks

i_meins = ti_resb-meins

i_ci_ekpo = ti_ci_ekpo

i_bpueb = 'X'

i_netpr = p_eban-preis

i_peinh = p_eban-peinh

i_mwskz = ti_resb-yytax_code "RV

i_bwtar = ti_resb-yyval_type "RV

i_plifz = lc_leadtime

tables

xeket = xeket

xekkn = xekkn

exceptions

error_message = 1.

This item has a conversion:

I´m ordering 1 LAT, but the price is 52.78 per 1 liter.

I would like to see in conditions tab:

10 LAT - 36 liters

but I got:

1 LAT - 1 liter

Do you have any ideas?

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It was missing to pass bpumz and bpumn parameters.

Former Member
0 Kudos

I solve this passing two other parameters in this function:

bpumz and bpumn. I can get these values from reservations.

Thanks.

Former Member
0 Kudos

Hi

In which SAP System are you using this coding (In R/3 / ECC /or SRM) ??

<u>Please see related links / pointers -></u>

Note 760992 Conditions/Fees wrongly calculated with ME59

Note 594851 BAPI_PO_CREATE: EBAN-EBAKZ is not set

<b>Do let me know.</b>

Regards

- Atul