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

BAPI_PR_CREATE - UNIT_PRICE issues.

former_member652338
Participant
0 Likes
2,070

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

1 ACCEPTED SOLUTION
Read only

anuraj_rana
Explorer
0 Likes
1,567

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,567

Search In Se19 or else Cmod

Read only

Former Member
0 Likes
1,567

Hi,

     Can you provide your code .

Regard's

Smruti  

Read only

Former Member
0 Likes
1,567

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.

Read only

0 Likes
1,567

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.

Read only

anup_deshmukh4
Active Contributor
0 Likes
1,567

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

Read only

anuraj_rana
Explorer
0 Likes
1,568

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

Read only

vinoth_aruldass
Contributor
0 Likes
1,567

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