Application Development 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: 

Bapi_pr_change for service PR issue for updating block indicator only

Former Member
0 Kudos

Hi,

I want to update the blocking indicator(EBAN-BLCKT) for the PR. It works fine in normal case. But when service PR is used then it gives error.

Then accordingly I changed my code to pass the serviceline and servicelinex table which I get from BAPI_PR_GETDETAILS.

Error is 'enter va;uation price'..I am not sure in whihc table sould I pass it..explicitly..becoz I just use the value from get detail BAPI and pass in PR change.

For item , I am passing item no and blocked indicator and corresponding field in item x table as 'X'.

In service line, I am passing item no and srv_line and gross price...which is coming as blank from BAPI get detail..If I change the gross price then it will update at the service line..But I do not want to update any values for service line...just the block indicator. So also not clear which all table should I pass in BAPI_PR_CHANGE.

Provide your input...Help Appreciated...

Thanks

7 REPLIES 7

Former Member
0 Kudos

Hi

Which is the class and number of the message

Max

0 Kudos

ME- ..083....Enter Valuation price

0 Kudos

It's a generic message

Try to check if the item price is from bapi_pr_getdail

Max

0 Kudos

BAPI_pr_getdetails..returns..preq_price for item......from this table...even I populate this in item table for BAPI_PR_Change and correspondng item x for preq_price as 'X'....still no success.

Though In debug,,I see that this error is coming because MEREQ-PREIS is blank...so looks like conflicting ...than even if I pass preq_price in item and set is as 'X'..it gives err......Not sure whre else I should I populate this field for preis.....I see this in the valuation tab...at item wise level..was trying in ME52N manually..keeping the value as blank in valuation tab..then it was giving error..but once populated with value then.....at the item it shows that price....

0 Kudos

you should fill with X only for the flag corresponding to the field you need to change, and you don't want to change the price,, do you?

Max

0 Kudos

no...that what i do not want to change the price,,..it is just BLCKT  field...so say..I just pass the item table with item no and BLCKT = '1'...and corresponding field in itemx as 'X'...and no service line table.....then it should work ..right ? like in normal cases it is working...but for this service PR....it goes to error...not sure why...

0 Kudos

Hi

Yes I should work, so you should check when the price is clear..

Max