‎2012 Nov 29 11:32 AM
Hi All,
I am creating a Purchase Requisition using BAPI_PR_CREATE and its creating the PR successfully.
But it not picking up the PRICE_UNIT which I am passing in BAPI, instead of that is picking up from MBEW (field PEINH) table based on the Material entered.
Its should consider the PREQ_PRICE, PRICE_UNIT which I am passing in Item Details table of BAPI structure.
For example :
PR should be be created with Valuation Price (PREQ_PRICE): 500
Price Unit : 5
In MBEW table an entry is maintained like
Material PEINH(Price Unit) Price
--------------- -------------------------- --------
Mat1 100 5000
But after the execution of the BAPI I have seen that its picking up the right Valuation Price 500 from the BAPI .. but the PRICE UNIT from MBEW table, instead of this it should pick up the Price from BAPI i.e 5.
Please let me how we can override the value for MBEW?
Looking forward for your suggestions.
Thanks,
Tousif
‎2012 Nov 30 11:59 AM
Hi Tousif,
This issue is in the Standard functionality and it will overwrite the values of UNIT_PRICE each time.
Please implement Note 1676132 - BAPI_PR_CREATE: price unit taken from material master. It will take care the updation of UNIT_PRICE.
Thanks,
Anuraj
‎2012 Nov 29 11:35 AM
‎2012 Nov 29 12:37 PM
‎2012 Nov 29 12:57 PM
Hi,
you must be filling the structure BAPIMEREQITEM with Price unit right.. then fill 'X' in place of same field in structure BAPIMEREQITEMX which indicates the the bapi to use this value.
thanks.
‎2012 Nov 29 1:08 PM
Hi Narayana,
I have already filled the BAPIMEREQITEMX structure with values 'X' for all the corresponding fields. As You can see in my question that, I am able to create PR with Valuation Price successfully but the values of PRICE_UNIT(PEINH) is being picked from Master Data i.e. MBEW table not from the value provided in the BAPI structure.
I want the PR should be created with values of PRICE_UNIT from BAPI.
Thanks
Tousif.
‎2012 Nov 29 1:15 PM
Hello Tousif,
I feel that your MM Functional can help you in that case coz.. there is a configuration of auto Valuation Price adoption for Purchase Req.
I feel that you need not code extra for it.
Thanks an Regards,
Anup Deshmukh
‎2012 Nov 30 11:59 AM
Hi Tousif,
This issue is in the Standard functionality and it will overwrite the values of UNIT_PRICE each time.
Please implement Note 1676132 - BAPI_PR_CREATE: price unit taken from material master. It will take care the updation of UNIT_PRICE.
Thanks,
Anuraj
‎2012 Nov 30 12:18 PM
hi,
while passing the quanity and unit and currency pass from a char datatype it will correctly post.
check in debuggin your process,
hope it helps,
Vinoth Aruldass