Passing Net Price (VBAP-NETPR) in BAPI_SALESORDER_CREATEFROMDAT2
Hi All,
I need to pass net price in the Bapi BAPI_SALESORDER_CREATEFROMDAT2.
Where to pass it ...? PLz help.
Hi,
i Think that the price condition should to maintain for the particular material and you see from VK13 for that material take the price form accouting view of the material an use it in bapi in ORDER_CONDITIONS_IN-CONDVALUE and enter the other details condition for the material for basic price..
Trt this.
Similar Messages
-
PRICING: Net Price Condition Unit in sales order
Hello Friends,
Please let me know, on what basis system determines Net Price [VBAP-NETPR] and its Condition Unit [VBAP-KMEIN] in a sales order. Please help, as I am facing a issue due to same as sometimes Condition unit is equal to base unit and some times it is same as sales unit.
Please help.
AmitThanks Saurabh
I am more concerned with Condition Unit, can you throw some light on the same.
Amit -
Net Price does not match Net Value / Qty
In my pricing procedure we have a custom routine for a freight & duty condition so change to an alternative condition base value.
The issue is the the Net Value (KOMV-KBETR) & KOMP-NETWR/qty does not match the Net price (VBAP-NETPR).
The Net price is the total as if the alternative condition base value was not taken into account.
How do we ensure the Net price (VBAP-NETPR) is the same as the Net Value (KOMP-NETWR/qty )Please check what you have in the FROM column of your Freight condition type in your pricing procedure. Please make it blank if any value is maintained there
Also it will be helpful if you can provide what is the logic maintained in the alt cond base value formula, which sub total you are reading in the logic, What all subtotals available in your pricing procedure and how they are assigned.
Regards
Sai -
Programme RM06INP0 is NOT updaing Net price value at in ME13 screen in ECC
Hi Experts ,
We are on ECC 6.04 with SRM 7. We are using PIR as one of the SoS in Shopping cart in Classic scenario.
When we are running the programme RM06INP0 in ECC in foreground /background to update the Net price field ( NETPR), but it is only updating at value at Table Level ( EINE-NETPR) and NOT at Screen Level ( or sometimes it update at Screens level)
It does not affecting any functionality in ECC or SRM, since system propose the Price from EINE-NETPR for PIR in SoS in SRM Shopping Cart & from last PO in ECC PO in ME21N , but user do NOT able to able to see the Price in ME13 ( Display Pur. Info Record)
Can anyone please suggest what should be the issue ?
Thank you .
NAPThanks Patilmallinath .
I saw below information for this programe in "i" in SE38
Short text
Price Determination for Purchasing Info Records
The report calculates the current prices of the info records and (if desired) updates the latter with the results.
Description
For each info record that satisfies the criteria set out in the initial screen, this report calculates the new net and effective prices from the currently valid conditions.
If there is a variance from the prices stored in the info record, the new prices can be adopted in the info record.
If there are no valid conditions, the prices in the relevant info records are not changed.
Requirements
The Test run indicator determines whether the new prices are to be adopted in the info records:
'X' -> the report does not update the info records with the new prices;
' ' -> the report updates the info records with the new prices.
Output
The report generates a list containing only those info records in respect of which the newly calculated prices differ from those of the info record. Included in the output are the old and the new prices.
and according to it it should update the Net Price in the Screen. Well, issue is 'Not updating the Price'...it is updating price at table level...but not at screen level...manytimes...
Can you/anyone please suggest on this ?
Regards
NAP -
ME13 - Net Price (NETPR) not displaying
Dear All,
I have created a conversion using LSMW's IDoc method using "Message Type: INFREC" and "Basic Type INFREC01". Its updating the data with the database in the flat file. But when we display the created Purchasing info Record in ME13, the value in Net Price (NETPR) field under conditions tab in Purchase Organization Data 1 is 0.00 but not the actual value in the database field EINE-NETPR.
This is strange. Please shed some light with solution. Due to this my developed object is incomplete even by being complete. Hope you understand my condition.
Thanks in advance. Relevant solutions will be rewarded for sure.
Warm Regards,
FarooqThought I'd reply to this since it is the top post out here. In order for NETPR to actually make it in you need to pass through a number of other fields that get defaulted if you go into ME11. Comparing the EINE / EINA tables when typing one compared to the fields filled out for the IDOC will give you a good clue as to what you need to fill out. Basically your segments should have the following fields filled out and they should work. Keep in mind the change will not actually add the pricing condition segments if you fail to fill it out originally incorrectly.
EINA:
MATNR
LIFNR
MEINS
UMREZ
UMREN
MAHN1
MAHN2
MAHN3
URZLA
LMEIN
EINE:
EKORG
WERKS
EKGRP
WAERS
NORBM
APLFZ
NETPR
PEINH
BPRME
PRDAT
WEBRE
EFFPR -
Passing Net value through BAPI_SALESORDER_CREATEFROMDAT2
HI All,
I am using BAPI_SALESORDER_CREATEFROMDAT2 to update sales order.
Here Sales order has been creating but without net value. while i am trying to create using BAPI_OUTB_DELIVERY_CREATE_SLS
system throwing an error " sales order is incomplete - maintain order"
If I can fill net value then the order will be completed. how can I pass net value?
Thanks,
kalandarYou cannot pass item NET VALUE to the BAPI directly. Net value is calculated based on the Pricing conditions and the configuration of Pricing procedure.
-
Authorization to display Net Price (NETPR) in purchase orders
Hi,
Where is the authorzation configured to hide the net price in purchse orders? I think it's a configuration setting (the IMG, SPRO) but I don't know where.
Thanks.hi,
chek with your basis person. he shud be able to acord authorisations based on the steps in the pricing procedure. he can withdraw the authorisation of viewing from teh step where the value is calculated.
saurabh -
Change the Scheduling agreement net price through BAPI_SAG_CREATE
Hi all
I want to change the item net price of Purchasing scheduling agreement through bapi BAPI_SAG_CHANGE.I passed the item no ,and the net_price in the table parameters Item, Itemx and i passed the item no , condition record no , condition type ,condition value in the following table parameters Item_condition.Item_conditionx.I passed the validity periods in the Item_cond_validity Para meter.
Once i run the bapi i got the below 3 messages
1.Instance of the object type Purchase SchedAgreement has been changed.
2. Scheduling Agreement changed
3.Change NETPR could not be effected.
The net price change are not effected.
So, what are the mandatory parameters and data i need to pass
to change the net price?
Regards,
KranthiHello Kranthi,
How did you solve this? I am trying to do the same but I get the same message as you do.
Thanks in advance!
Kind regards,
Jamiros -
Net Price is geeting change after BAPI
Hi,
I am paasing netprice value as 1.00 in the line item while creating creating PO by using BAPI BAPI_PO_CREATE1. But the value is getting changed after po created. Please suggest me what to do? immediate response will be appreciated.
Regards,
PriyaranjanHi,
Thanks for your reply. Yes there is some user-exit is there but in that user-exit netprice is not calculated. when i debug the stnadrd bapi at one moment the value is getting changed.As it is a standard program one we can't chnage this value. Please help me in this regards. Is there any other parameter i have to pass?
Please see the below code and suggest me
refresh all the tables before use
refresh bapimepoheader.
refresh bapimepoheaderx.
refresh bapimepoitem.
refresh bapimepoitemx.
refresh bapimepocond.
refresh bapimepocondx.
refresh BAPIMEPOSCHEDULE.
refresh BAPIMEPOSCHEDULX.
refresh bapiret2.
clear WA_ORDER-EBELN.
setup the data interface
sort i_po by ebelp ascending.
read table i_po index 1.
PO header info
clear bapimepoheader.
bapimepoheader-vendor = i_po-lifnr. " vendor no.
bapimepoheader-purch_org = i_po-ekorg. " purch org
bapimepoheader-pur_group = i_po-ekgrp. " purch gp
bapimepoheader-comp_code = i_po-bukrs. " company
bapimepoheader-doc_type = i_po-bsart. " order type
bapimepoheader-created_by = sy-uname.
bapimepoheader-creat_date = sy-datum.
bapimepoheader-doc_date = sy-datum.
bapimepoheader-currency = i_po-waers. " currency
bapimepoheader-currency_iso = i_po-waers. " currency
spec.changed by Chee Kok on 06/27/2003: use Z00 instead of Z000
bapimepoheader-pmnttrms = 'Z00'. " payment term
spec.changed by Chee Kok on 06/27/2003: use exchange rate from ref PO
bapimepoheader-exch_rate = i_po-wkurs. " fx rate
bapimepoheader-ex_rate_fx = 'X'. " fixed fx rate (kufix)
bapimepoheader-zzsubmi = wa_order-zzsubmi. " Collective No DEVK949611
append bapimepoheader.
clear bapimepoheaderx.
bapimepoheaderx-vendor = 'X'. " vendor
bapimepoheaderx-purch_org = 'X'. " purch org
bapimepoheaderx-pur_group = 'X'. " purch gp
bapimepoheaderx-comp_code = 'X'. " company
bapimepoheaderx-doc_type = 'X'. " doc tye
bapimepoheaderx-created_by = 'X'.
bapimepoheaderx-creat_date = 'X'.
bapimepoheaderx-doc_date = 'X'.
bapimepoheaderx-currency = 'X'. " currency
bapimepoheaderx-currency_iso = 'X'. " currency
bapimepoheaderx-pmnttrms = 'X'. " payment term
bapimepoheaderx-exch_rate = 'X'. " fx rage
bapimepoheaderx-ex_rate_fx = 'X'. " fixed fx rate
bapimepoheaderx-zzsubmi = 'X'. "Collective No DEVK949611
append bapimepoheaderx.
PO item info & condition table
loop at i_po.
clear bapimepoitem.
bapimepoitem-po_item = i_po-ebelp. " order item no.
bapimepoitem-tax_code = WA_ORDER-mwskz. " tax code
bapimepoitem-material = i_po-ematn. " material
bapimepoitem-ematerial = i_po-ematn. " material
bapimepoitem-quantity = i_po-menge_for_save. " qty
bapimepoitem-PO_UNIT = i_po-meins. " order unit
bapimepoitem-plant = i_po-werks. " plant
bapimepoitem-item_cat = i_po-pstyp. " item cat.
bapimepoitem-info_upd = 'X'. " info. record
bapimepoitem-stge_loc = i_po-lgort. " storage loc
bapimepoitem-ret_item = 'X'. " return item (retpo)
bapimepoitem-net_price = i_po-netpr. " net price
bapimepoitemx-po_price = '2'. " DEVK954608
for plant 2010, set stock type to "Quality inspection"
(New requirement from Chee Kok 2003/07/24)
if I_PO-WERKS = '2010'.
bapimepoitem-QUAL_INSP = 'X'. " stock type
use "Blocked stock" instead (Chee Kok 2003/07/25)
bapimepoitem-QUAL_INSP = 'S'. " stock type
endif.
append bapimepoitem.
clear bapimepoitemx.
bapimepoitemx-po_item = i_po-ebelp. " order item no.
bapimepoitemx-po_itemx = 'X'." important: OSS note 484692
bapimepoitemx-tax_code = 'X'. " tax code
bapimepoitemx-material = 'X'. " material
bapimepoitemx-ematerial = 'X'. " material
bapimepoitemx-quantity = 'X'. " qty
bapimepoitemx-PO_UNIT = 'X'. " order unit
bapimepoitemx-plant = 'X'. " plant
bapimepoitemx-item_cat = 'X'. " item cat.
bapimepoitemx-info_upd = 'X'. " info. record
bapimepoitemx-stge_loc = 'X'. " storage loc
bapimepoitemx-ret_item = 'X'. " return item (retpo)
bapimepoitemx-net_price = 'X'. " net price
bapimepoitem-po_price = 'X'. " net price DEVK954608
for plant 2010, set stock type to "Quality inspection"
(New requirement from Chee Kok 2003/07/24)
if I_PO-WERKS = '2010'.
bapimepoitemx-QUAL_INSP = 'X'. " stock type
endif.
append bapimepoitemx.
clear BAPIMEPOSCHEDULE.
BAPIMEPOSCHEDULE-PO_ITEM = i_po-ebelp. " order item
BAPIMEPOSCHEDULE-SCHED_LINE = '1'. " sch line no.
BAPIMEPOSCHEDULE-DEL_DATCAT_EXT = 'D'. " deli cat.
BAPIMEPOSCHEDULE-DELIVERY_DATE = l_datum. " current date
BAPIMEPOSCHEDULE-QUANTITY = i_po-menge_for_save. " qty
append BAPIMEPOSCHEDULE.
clear BAPIMEPOSCHEDULX.
BAPIMEPOSCHEDULX-PO_ITEM = i_po-ebelp. " order item
BAPIMEPOSCHEDULX-SCHED_LINE = '1'. " sch line no.
BAPIMEPOSCHEDULX-PO_ITEMX = 'X'. " important: OSS note 484692
BAPIMEPOSCHEDULX-SCHED_LINEX = 'X'. " important: OSS note 484692
BAPIMEPOSCHEDULX-DEL_DATCAT_EXT = 'X'. " deli cat.
BAPIMEPOSCHEDULX-DELIVERY_DATE = 'X'. " date
BAPIMEPOSCHEDULX-QUANTITY = 'X'. " qty
append BAPIMEPOSCHEDULX.
clear bapimepocond.
bapimepocond-itm_number = i_po-ebelp. " order item no.
bapimepocond-cond_type = 'PB00'. " cond type
bapimepocond-cond_value = i_po-netpr. " net price
bapimepocond-cond_value = i_po-kbetr. " net price
bapimepocond-currency = i_po-waers. " currency
bapimepocond-currency_iso = i_po-waers. " currency
bapimepocond-COND_UNIT = i_po-kmein. " price uom
bapimepocond-COND_UNIT = i_po-meins. " order unit
bapimepocond-COND_UNIT = i_po-BPRME. " price UOM (PO or IR)
bapimepocond-COND_UNIT_ISO =
bapimepocond-COND_P_UNT = i_po-kpein. " price unit e.g. 1
bapimepocond-COND_P_UNT = i_po-PEINH_FOR_SAVE.
" price unit from info rec or PO
bapimepocond-change_id = 'I'. " insert mode!
append bapimepocond.
clear bapimepocondx.
bapimepocondx-itm_number = i_po-ebelp. " order item no.
bapimepocondx-cond_type = 'X'. " cond type
bapimepocondx-cond_value = 'X'. " net price
bapimepocondx-currency = 'X'. " currency
bapimepocondx-currency_iso = 'X'. " currency
bapimepocondx-COND_UNIT = 'X'. " price unit
bapimepocondx-COND_UNIT_ISO = 'X'.
bapimepocondx-COND_P_UNT = 'X'.
bapimepocondx-change_id = 'X'. " insert mode
append bapimepocondx.
endloop.
CLEAR: L_SUBMI.
L_SUBMI = WA_ORDER-ZZSUBMI.
EXPORT l_submi TO MEMORY ID 'SUBMI'.
call the bapi function finally
call function 'BAPI_PO_CREATE1'
exporting
NO_PRICE_FROM_PO = 'X' "*DEVK954608
poheader = bapimepoheader
poheaderx = bapimepoheaderx
POADDRVENDOR =
TESTRUN =
importing
exppurchaseorder = WA_ORDER-EBELN " saved return po no.
tables
return = bapiret2
poitem = bapimepoitem
poitemx = bapimepoitemx
POADDRDELIVERY =
POSCHEDULE = BAPIMEPOSCHEDULE
POSCHEDULEX = BAPIMEPOSCHEDULX
POACCOUNT =
POACCOUNTX =
pocond = bapimepocond
pocondx = bapimepocondx
POLIMITS =
POCONTRACTLIMITS =
POSERVICES =
POSRVACCESSVALUES =
POSERVICESTEXT =
Begin of SR20040----DEVK954608
commit work.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = -
Net price to sales unit on Order screen
hi,
We have the following problem.
The order clerks normally place orders and on each line item, they fill in the unit price (ea) in the Rate Field (KOMV-KBETR) on the sales screen. By defaulty it brings up deault condition type ED1. In our previos version (4.6c), when the rate is entered (Say 100) the Net Price field (VBAP-NETPR) also changes to a unit price, however in the new system it is not doing this. Can anybody help ????that is not the solution, the master data is correct, a suggestion on which user exit to use and the coding would be preferable.
-
Net price in R/3 PO differ from the actual local PO net price Urgent
Hi,
I am working on extended classic scenario
I created a local PO, in which the net price of the material is 100 Euro later on I changed the payment terms and when I checked the backend PO which is the copy of the local PO, I found that the net price has been changed from 100 Euro to 212 Euro and when I checked the PO in SRM I could see the same value i.e. 100 Euro.I checked the change document in backend system and found that the net price has been changed by the SRM_RFC user.
This has happened for quite a few number of local PO
I am not able to understand how the backend PO net price can differ from the local PO net price.
Please provide me useful input
Regards,
YatendraHi Yatendra,
I think this is due to R/3.
Can you check the source of supply in R/3 PO ?
especially if a PIR or contract has been assigned ?
Look at price conditions in R/3 PO item, to see the execution plan of pricing.
I think that during ECS PO creation in R/3, the SRM price is correctly passed, but during the change the price is overwritten by R/3.
What are your SRM & R/3 releases ?
Check OSS arround BAPI_PO_CREATE, BAPI_PO_CREATE1 and BAPI_PO_CHANGE.
Rgds
Christophe
PS: please reward points for helpfull answers -
Net Price not Updating Using BAPI : BAPI_CONTRACT_CREATE
Dear Experts,
I am facing an issue while creating CONTRACT using the bapi: BAPI_CONTRACT_CREATE. I am creating the Contract based on data from my excel sheet. And we are maintaining the INFO RECORDS for the same materials.
In the excel sheet we are providing the NetPrice (NETPR) and creating the Contract. My issue is " instead of taking the Net Price from the excel it is taking the Net Price from Info Records". For Example, if for a Particular material the Net Price in our excel file is 125, after bapi execution, the net price is updating as 100 instead of 125 in Contract Creation( ME31k-ME33K). In the Info Records we are maintaining this net price(100) for that material.
Thanks in Advance for your response.
Regards,
Prasadyou can use BAPI_CONTRACT_CREATEFROMDATA
* Create Contract Order Number [BAPI_CONTRACT_CREATEFROMDATA]
CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
EXPORTING
contract_header_in = header
convert = 'X'
IMPORTING
salesdocument = v_order
TABLES
return = t_return
contract_items_in = itab_item
contract_items_inx = itemx
contract_partners = t_partners
contract_conditions_in = t_conds
contract_conditions_inx = t_condsx
contract_data_in = t_contract
contract_text = t_texts. -
Net price update in creation of the purchase order
Guys,
I have a query, please find the details below.
I have created a ABAP for posting the purchase orders using the BAPI function 'BAPI_PO_CREATE1', I am passing the net price value in the input file. But the system is taking the net price from the purchase info record of that material. My own net price is not considered.
Please find my observations below.
1. First of all system is checking whether there is a PIR maintained for the material or not. If PIR is maintained, then system is defaultly considering the net price maintained in the PIR.
2. Later I have deleted the net price maintained in PIR. In this case, system is considering the net price of that material from the previous purchase order.
But my query is that I don't want the system to consider the net price from previous material, I want to update my own net price to line item of the PO.
Could anyone please suggest me how should I proceed further so solve this query?
Thanks in advance.
Regards,
Vijaymadhur.Hi,
Yes, this can be achieved. Don't maintain any price in inforecord. Then in SPRO > Materials Management > Purchasing > Environment Data > Define default value for buyers > Here click on settings on default values > In Inforecord update > Maintain no update fro PO and quotation.
Now the last PO price will not be saved in Inforecord and hence this will not b carried to PO.
Regards,
Prabu -
Line item net price not updated in overview screen net price&line item
Hi ,
We have down payment order with 10 line items
In orders with billing plan, the sales line item net price, if we entered manual condition price (ZPNP) ,gets updated in item condition net value. But it does not simultaneously gets updated at once in 1) Sales order overview screen net value 2) Billing plan header 3)Sales order overview screen line item condition net value. Updation at these three places happens only after clicked on header conditions.
However, in case of the last item in the sales order, the updation happens simultaneously in all the 3 places i.e. 1) item condition net value. 2) Sales order overview screen net value 3) Billing plan header 4) Sales order overview screen line item condition net value.
This is also true for the order with only single line item. We are faced a information popup message every time we change the item net price u201CItem 000100(100 is last line item number in sales order) exists already; the entry ignored u201C. This happens in case of all line items except the last line item. Also this does not happen in case where there is a single line item in order.
Our requirement: The moment the net price of an item is change manually, it should get updated at all the 4 places mentioned above like it does in case of the last line item.
Kindly help me to fix this problem.
Regards,
AdikesavHi,
Can u elaborate ur query ?
By this FM you cannot create a SO . Use FM --> BAPI_SALESORDER_CREATEFROMDAT2
Regards,
MAdhukar Shetty -
Automatic update net price in PO creation
Dear expert,
I just found an issue while creating a new PO.
I fill in all data needed, included net price. And when I press "enter", surprisingly the system automatically update the Net price with last PO price. and I need to manually change again the net price with current price.
Anyone can describe why system automatically update the PO price? is there any setting to inactivate it??
thanks much,
nasikhinHi,
Please read the note:
456691 FAQ: Price determination in purchasing
3. How does price determination determine the conditions via a 'Last
purchase order'?
Answer:
If the info record does not contain any valid conditions, but a "last
document" exists for the info record, the system copies all of the
conditions from this document if the following prerequisites are met:
o The net price must be zero (EKPO-NETPR = 0.00) after the system
has carried out price determination.
Page 5
However, the net price is not zero after price determination has
taken place and the system does not copy the conditions from the
last PO if master conditions that are included in the net price
calculation are maintained at, for example, vendor level or
material group level.
o The last document is not a request for quotation.
o The info record has not been deleted.
o The vendor and the material in the info record are identical to
the vendor and the material in the last document.
o The calculation schema of the last document is the same as the
current schema that has been determined.
The system simply executes a copy function to transfer the conditions
from the last document. The system does not check for requirements for
the calculation schema.
The system does not copy the condition records of the subsequent
settlement (the condition type has the condition class "C"); instead,
they are always determined again to ensure that the condition records
are consistent with the field contents (also see Note 486757).
If you generally do not want the system to transfer the conditions from
the last PO, you can use the user parameter EVO to deactivate this (also
see Note 675523).
So you can use the parameter EVO.
Best Regards,
Arminda Jack
Maybe you are looking for
-
Ad hoc Risk Analysis report is returning incorrect Risk Level for some Risks
We are running GRC AC 10.0 with SP 16. After application of Support Pack 16, some of our ad hoc risk analysis reports are returning incorrect risk levels. For example: Risk F024 Open closed periods and inappropriately post currency or tax entries
-
Multiple e- signatures on single PDF
Hi All - We have a requirement that a document can be uploaded from Web-center portal application and request e-signatures from multiple recipients . Displaying the single water mark e-signature at the end of each page is possible , but how can we ma
-
WIFI and 3g not working very well together on 5s 8.1
Since I have upgraded my iPhone 5s, the wifi conection is too instable and slow. I tried to reset all the settings but not resolve my issue. So, I found in the internet one hint that said to turn off the celular data while using the wifi. Doing this,
-
I have always put <head> part of page in my template, this than makes this part the same on all pages using that template. But I've now been told that the Meta keywords should be match to keywords on individual pages, so how do I now make this part o
-
How do i set that up on my mobile
how can i set up the printer on my mobile phone to print sblair