cancel
Showing results for 
Search instead for 
Did you mean: 

Netwr issue in PO creation with BAPI_PO_CREATE1

priya_ramani
Participant
1,094

Hi Team,

I'am using BAPI_PO_CREATE1 to create PO , i'm passing NET_PRICE in POITEM-NET_PRICE as 0.01

But once the PO is created i could see 30 in NETPR field.

Note : I'm not passing any conditions(POCOND) to BAPI.

Still i want my passed 0.01 to be reflected in PO netpr.

Analysis did : When we pass Conditions POCOND to BAPI its picking 0.01 in NETWR .

I need to 0.01 to be reflected without passing conditions to BAPI.

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor

Could you provide more information (or perform some tests using the questions as hints)

  • Did you set parameter NO_PRICE_FROM_PO to abap_true
  • Which value did you pass in POITEM-BAPI_PO_PRICE (use 2 'Net')
  • Are there some purchase Inforecords for your material and vendor (ME13) - In this case conditions are required
priya_ramani
Participant
0 Kudos

raymond.giuseppi : Thanks for your reply.

Great details i have got from you 🙂

Replying to your questions :

  • Did you set parameter NO_PRICE_FROM_PO to abap_true ----> NO , we are passing space
  • Which value did you pass in POITEM-BAPI_PO_PRICE (use 2 'Net') ----> NO , we have not passed anything to this field
  • Are there some purchase Inforecords for your material and vendor (ME13) - In this case conditions are required ----> YES for our material and supplier inforecords are maintained and in that(ME13) Net Price is also maintained :

But requirement here is we should not give any conditions and also we need to bypass the Inforecords and the NETWR in new PO should be coming from BAPI_PO_CREATE1--> POITEM-NET_PRICE Value.

Can you suggest any points here.
Thanks,
Priya Ramani.

raymond_giuseppi
Active Contributor

Try first with PO_PRICE = '2' and don't pass any data in POCOND[X] as this would override the effect of this parameter.

(Your current program pass initial value, so your net price would only be used for records where system is unable to fill conditions)

priya_ramani
Participant
0 Kudos

raymond.giuseppi : Thanks for your suggestions,

i have executed in the same way by passing 2 in po_price in the POITEM , its same , NETWR is taking still from inforecords rather than from POITEM-NET_PRICE value.

Can you help on this 🙂

raymond_giuseppi
Active Contributor

As I wrote in my first answer not using conditions is not an option when info records exist, conditions are required : I found this note 2115641 - BAPI_PO_CREATE1: price overwritten from info record that confirms it.

priya_ramani
Participant
0 Kudos

raymond.giuseppi agree that if we dont maintain then it will take from infor records , but still cant we overwrite the values with any enhancement or badi ?

raymond_giuseppi
Active Contributor
0 Kudos

Of course, you can change the price and conditions in a BAdI such as ME_PROCESS_PO_CUST or ME_PO_PRICING_CUST or with the customer exits of the SAPL2012 enhancement

But this will probably require more effort than modifying the BAPI call (unless you have many calls to this BAPI from different systems)

Answers (0)