on 11-26-2007 8:49 PM
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!
It was missing to pass bpumz and bpumn parameters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I solve this passing two other parameters in this function:
bpumz and bpumn. I can get these values from reservations.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.