Updating Price property of Order lines

Hello,
i can't update Price property of order.
I'm creating a new order document and Add method returns 0 but when I open the document from SAP B1 i see no value in the price column.
Here is the code...
            With oDoc.Lines
                'Articolo...
                If txtArticolo.Value.Trim <> "" Then
                    GetInfoRigaOfferta(GetQuotationDocEntry(), txtArticolo.Value, nQuotLineNumber, nQuotPrice)
                    .ItemCode = txtArticolo.Value
                    .Quantity = Val(txtQuantitaMC.Value) * 10
                    .UserFields.Fields.Item("U_CR_MCRICH").Value = Val(txtQuantitaMC.Value)
                    If nQuotLineNumber = -1 Then
                        bCreaArticoloInOfferta = True
                    Else
                        .Price = nQuotPrice
                    End If
                End If
            End With
            nRetVal = oDoc.Add
Notice that nQuotLineNumber is <> -1
Thanks
Paolo

Hi Trinidad,
sorry but SDN wasn't accessible yesterday.
I said that even if nQuotLineNumber is <> -1 the value assigned the Price property is not saved.
In case of nQuotLineNumber = -1 i don't fill Price property and for me it's not a problem.
GetInfoRigaOfferta looks for an item (txtArticolo.Value) in the given quotation (GetQuotationDocEntry) and return the price from the quotation if the item is found in the quotation (nQuotPrice).
nQuotPrice is declared as double.
Still can't make it work.
Please help
Thank
Paolo

Similar Messages

  • Update price on sales order

    Hi All,
    we have this requirement as below:
    Update price master data every half year, once the price is updated, all price on the sales order should be refreshed. Does SAP have standard function to update price on sales order?  We don't want to refresh sales order one by one, after the price master is updated.
    Thank you!

    Hi,
    You can try with t-code MASS but you'll not have an option of Pricing Update over there, but I can suggest you one wayout in this situation as below:
    - Go to MASS
    - Select object type BUS2032
    - Select Sales Order Header data
    - Click on fields
    - You will see Pricing Date field
    - Select and execute
    Logic behind this option is as below
    - your old sales orders would have old pricing date on which old pricing records were existing.
    - once you prices are updated half yearly and if you change the pricing date system will again look for the condition records and then it will update the prices as per new pricing date
    I have not done this actually, but this may work because logic seems to be right.
    Hrishi

  • Mass Update price of Purchase Order from Info Record

    Dear guru ,
    I have created many purchase orders.
    After this creation I change the prices of linked info records.
    Does exist a transaction that mass update the price of purchase order from info record ?
    Thanks.

    Use transaciton MEI2 for price update in Mass.

  • How to update UDF of sales order line of closed sales order header

    Hello experts,
    We are using SAP 8.81.313  PL 05  and we noticed that through SDK using businessobject SAPbobsCOM.BoObjectTypes.oOrders,  we can't update an user defined field on sales order line for a sales order with header closed.
    calling the method  Update()   it returns 0  but actually the table field  was not changed !
    Also we noticed that It's possible to make an update of UDF of delivery line for a delivery with header closed.
    I don't understand why.
    Is it a bug or the expected behavior ?
    Our customer needs to change some UDF of sales order line even when the order header is CLOSED.
    Please help me.
    Many thanks for your time.
    Best regards
    Andrea

    Hi Elio,
    Yes from UI it's the expected behavior but through DI API  I could update an user defined field of sales order line even if the LineStatus is equal to "C" (Closed) but only if the order header is not closed.
    Regards
    Andrea

  • Update LineNum in Sales Order line Details

    Dear All,
    I have imported a sales order into a database from another database on SAP B1 2005A using DTW. The sales order has only one line item.
    However, after importing, the linenum of the target table RDR1 is 0 while the source has it as 1. All the other fields have been updated with the correct data.
    I am trying to update the same sales order's LineNum to 1 using DTW with the 'update' option ticked and the process runs successfully. However upon checking the database I find out that it has added another line item with the same details. Can a linenum field be changed/updated? The reason behind my need to change the linenum is because after trying to import a sales delivery linking it to that sales order it gives me an error :[DLN1.BaseEntry][Line: 1] 'No matching records found [ODBC:2028]'.
    Kind Regards,
    Asif

    Asif,
    The number of lines in the Sales Order does not neccesarily co-relate to the line number.
    Just a simple example:
    Create a Sales Order....Add a line item..add Sales Order
    Open the same sales order..delete the line item (delete row) and add the same item / another item.  Though the Sales Order seems to have only one item..now if you check RDR1 the linenum would be 1.
    The architecture of SAP B1 is to generate a new linenum each time you add a row.
    Thats probably why you are seeing the difference.
    If you want to match the target linenum. simply delete the row and add the same line item and Update SO.
    DTW will not update the linenum as it is system managed. 
    My recommendation for your situation is - if you do not have the same item more than once on a Sales Order - then it is better to get the BaseLine from the Database you imported the Sales Orders to.
    Let me know if you need any further direction with this.
    Suda

  • Modifying Unit Price of Parchase Order Line by the Receiving Open Interface

    I’m using the” Receiving open Interface” to make receptions of standard purchase orders line by interface (RCV_TRANSACTIONS_INTERFACE) and what I need is to change the unit price of the item in the line of Purchase Order,
    the idea is that it takes the value that I’m populating by the interface table “RCV_TRANSACTIONS_INTERFACE” and not the value that is in the Standard purchase Order line (unit_price)
    It´s possible to do that in this way?? How can I do that??
    Message was edited by:
    alejandrojrc

    Any sugestion??

  • Issue with Net price at Purchase order / Line item

    Dear All,
    I have an issue in the Purchase order, given below is the detail of the issue.
    PO/LI1 Consists a material A (Grid based), and with a condition record i have maintained sizewise pricing.
    Eg:  Size L - 1usd per 1, Size M - 2usd per 1 and Size S - 3usd per 1. Assume the quantity for each size been 10
    Thus at a Schedule line item level it would be as follows
    Grid   |  Schedule Qty  |  Net Price
    S              10                  3
    M              10                  2
    L               10                  1
    Thus at a PO/ Line item level the net price should be (6/30)that is (net value/net quantity)  = 0.2 per 1, in my system it doesnt show like as 02. per 1, it shows the net price of size L (in this instance it picks the price of size L and shows it as the NET PRICE at PO/LI Level
    What could be the possible reason this could happen, i believe this is a problem.Is there a place in configure where i can change the system to capture Net price at PO Line item =(Net Value / Net quantity) rather than picking the price of the size L.
    Other info
    Size L is the last Delivery Schedule line number
    Hope my question is clear.
    Thanks & Regards
    Shabeen
    Shabeen Buhary
    Edited by: shabenn on Dec 17, 2010 10:13 AM

    Hi,
    Even though you maintained different Prices for Different grids only default grid value only displayed at line item level. But if you do GR for those grids valuation will happened at as you mentioned the purchase order.
    regards,
    Siva reddy

  • Updated price in sales order

    Hello all
    my requirement is when I am changing inco terms in SO freight is getting re-determined bcz it has its effect on freight cost
    my requirement is when I change inco terms the price also should also update i should  not select cary out new pricing option is there any such option
    ur response on the above said matter will be really helpful to me pls

    hi kiran,
    u can do that by selcting incoterms option in condition table as key combination.
    so, when ever u make condition record u have to enter the inco terms, so the system will give that price when ever that incorems comes in the sales document for the particular material.
    thanks and regards
    kranthi

  • Manual override option for Unit selling price in Order line level.

    In OM R-12
    Our client wants manual override option for Unit selling price in Order line level.
    But there is no solution available to fulfill this requirment. To be able to manually override the price on a Sales Order line you
    must have defined a manual modifier that qualifies for the Sales Order line in question. Without a suitable manual modifier the price cannot be changed.
    This is current standard functionality.
    Anybody can give some suggestion/workaround to override selling price in Order header level without using the modifiers.
    regards,

    Hi Kashif,
    I'm finding it little difficult to buy Oracle Support's feedback with regards to R12 functionality for direct List Price update without using any modifier (manual or whatever). After all it is Oracle's product and they should know better. But test results in Solution Beacon's Vision 12.0.6 instance (http://www.solutionbeacon.com/tools_r12vision.htm) and documentation updates in R12 (R12.0.4) OM user guide & implementation manuals potray a different picture.
    After your last post, I did a test in Solution Beacon's Vision 12.0.6 instance with following details:
    OM: List Price Override Privilege = "Unlimited Access" at user level
    OM: Discounting Privileges = "None" at user level
    No manual modifiers defined and Order status = "Entered"
    I could display the "List Price" field from folder under Line Items >> Main tab, override the list price to a new value and save. The unit selling price showed the new value based on updated List Price as soon as I tabbed out of the list price field after overriding. After saving it showed the new selling price. _Please note that under Line Items >> Pricing tab there is another "List Price" field and that is not editable_. For such overrides "View Adjustments" (from Line >> Actions) will not show any adjustment details as it is a direct update of list price.
    Also please note that, if "Enforce List Price" checkbox is selected for the order type, the list price cannot be overridden even if the profile option is set to "Unlimited Access".
    Document References:
    Oracle® Order Management User's Guide
    Release 12, Part No. B28099-03, September 2007 >> R12.0.4
    Page No. 10-74
    +Note: Note: If any order line for an order has the Calculate Price Flag value equal to Partial Price or Freeze Price new order level adjustments will not be applied or allowed to be overridden. _The profile option OM: List Price Override  Privilege controls your ability to override the unit list price. If you have this profile set to Unlimited, you may modify the unit list price by editing the current value displayed_. The original list price is saved in a hidden folder field, so you can display it if necessary+.
    Page No. 10-94
    User Procedures
    _A new profile option, OM: List Price Override Privilege controls whether or not you can update the List Price_. It is enabled and updated at the application, responsibility and user level. It is not user visible and updatable. The values include+:
    - View Only: This is the default value. If set to this value, the current behavior is retained, which means unit list price field is protected.
    - Unlimited Privilege: If set to this value, you can override the unit list price field from the main tab and immediately see selling price adjusted accordingly.
    To use Override List Price:
    +1. Navigate to the Sales Orders/Quick Sales Orders window.+
    +2. Enter the header and line information, including the ordered item and quantity, then tab to the next field. The Selling Price and List Price display+.
    +3. If the profile is set to Unlimited Privilege, you can enter a new list price in the List Price field. You can either proceed to the next line or save your work+.
    +4. You can see the new, entered list price, and if there are automatic discounts applied, they will be based on the new list price+.
    +5. If the folder has been modified to show the Original List Price, the original list price displays+.
    +6. To change the List Price again, go to the list price field and enter a new value, replacing a previously entered value. If Audit Trail is enabled for List Price and a reason is required, a window appears to enter a reason and optional comments+.
    Note: Subsequent overrides of the List Price, after the order line is saved, can be captured by Audit Trail, depending on the setup of Audit Trail (entered or booked state) and any processing constraints that have been set up.
    In the OM Implementation Manual also there are notes related to this.
    OM Implementation Manual
    Release 12, Part No. B25975-03, September 2007 >> R12.0.4
    You can refer to page no. 2-59, C-4 etc.
    Thanks
    Supro

  • Updating price in already created sales order

    Hi all,
    I have an issue. When we create sales order, system will display current date pricing on sales order, for example total value of sales order is 9000. Now before delivery, prices change and we have to manually update price on sales order individually. Is there any report available that can update price of all already created sales orders instead of going on sales order and update one by one.
    Please respond.
    Best Regards,
    AI.

    Hello,
    You can update the pricing for all the created orders at a time in VA05 .
    Goto Transaction code VA05 and give all the sales orders and then in the MENU click on
    EDIT->MASS CHANGE>NEW PRICING
    And update the New pricing, then will carry out new pricing for all the sales orders at a time.
    OR,
    There is also one function module  SD_BULK_CHANGE , Create your own Query in SQV1 and make changes.
    Hope it will resolve , Please revert if you need further details
    thanks,
    santosh

  • Update price in IW32

    Hi all,
            I want to change the RESBD-GPREIS ( prices ) value with net price in Purchase order.
    I know how to get the net price value based PR.
    I am trying to change the resbd-gpreis value using BADI WORKORDER_UPDATE ,  but it is not allowing to change IT_COMPONENT.
    Anyone help me to solve the requirement using this badi or any other user-exit or badi.
    Thanks
    Udaya madhav

    Hi,
    Refer below link
    Update price on sales order
    Regards
    Md.MahaboboKhan

  • Update Unit Price at Order Line Level

    Hi Sir, Ma'am,
    Is there a way to enable user to update the Unit Price at Order Line Lever without updating the Price List?
    Thanks in Advance,
    Nuel

    You can also enable the different adjustment (Manaully update allowed) so that you can use the same and update the unit selling price.
    This will keep the price list as it is and it will show unit list price for item as Origanl Price.
    Regards,
    Aks

  • Unable to copy the Price Modifiers associated with a Sales Order Line

    Dear All,
    I am copying Sales Order Line using the process_order API. I was not able to copy the Price Modifiers associated with the Lines. How can I accomplish this..?
    Is there any API available for copying the Price Modifier info associated with the Sales Order Line..?
    Environment is 11i and OS is SUN Solaris
    Please update...
    Many thanks in advance..

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Modifying line item price in Purchase Order

    Hi guys,
    Need your help regarding pricing modification in purchase order.  I know the below explanation is quite long enough, but still if you can look into it and put some thoughts:
    The price picked for a line item from PIR, needs to be modified depending on total price.
    Say for example, in a PO there are two line items
    Mat1     10PC 10 usd/1pc
    Mat2     10PC 20 usd/1pc
    so total price for PO goes as 300 usd.
    Now, if PO price exceeds 250 usd a different price needs to be picked from a custom table for line items. Say it should now become 8 usd/1PC and 18 usd/1PC for Mat1 and Mat2 respectively.
    So, after entering PO items if the user presses the 'check' button, new price should be picked, as per the above example the new lines should be shown as
    Mat1     10PC 8 USD/1PC
    Mat2     10PC 18 USD/1PC
    so total price for PO goes as 260 USD.
    Hope I've made you clear about the requirement.
    Now, what we are able to do so far is:
    We have used the 'check' method BADI 'me_process_po_cust'. And we are calculating the total price and changing the item conditions.
    But it's not reflecting on the me21n screen even after execution of the 'check' method successfully.
    It still shows the line items as
    Mat1     10PC 10 USD/1PC
    Mat2     10PC 20 USD/1PC
    But, now if we make any changes in the line items (say we add the requisitioner name) and hit ENTER the changed prices are reflected. And the items become
    Mat1     10PC 8 USD/1PC
    Mat2     10PC 18U SD/1PC
    This is a thing we are stuck into.
    Please express if you have any idea how to come out of this issue.
    Thanks in advance.
    Anupam

    Hi Anupam,
    Flow Logic of the screen.
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      LOOP AT ITAB WITH CONTROL TABC.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT ITAB.
        MODULE READ_TABLE_CONTROL.
      ENDLOOP.
    Write the read_table_control module like below
    MODULE read_table_control INPUT.
       MODIFY itab INDEX tabc-current_line.
       "The above will update the entered data on table control
    ENDMODULE.
    Kindly check if this table control gets updated in PAI or not.... if not... try to find an exit where  this can be done on PAI.....
    Regards,
    Deeba

  • Updating the Price for a PO Line ... What's Wrong?

    Both MsgBoxes return the correct values.  So, the B1 Purchase Order object appears to be functioning correctly.  However, the POR1 table is not updated in the database.  What am I doing wrong?
    Dim oPO As SAPbobsCOM.Documents
    Dim oPO_Lines As SAPbobsCOM.Document_Lines
    oPO = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
    oPO.GetByKey(lBaseRef)
    oPO_Lines = oPO.Lines
    oPO_Lines.SetCurrentLine(lBaseLine)
    MsgBox("Before Update: Price = " & oPO_Lines.Price)
    oPO_Lines.Price = dPrice
    MsgBox("After Update: Price = " & oPO_Lines.Price)
    oPO.Update()
    oPO.Close()
    lBaseRef and lBaseLine were assigned from a Purchase Invoice before this code was executed.

    Ah!  I figured this out.  The Purchase Order is Closed (and unedittable at the database level) once the Purchase Invoice is created for these items.  Therefore, the assignement of dPrice to the Price column is "NOT" updated in the POR1 table.
    Too bad that exceptions are not raised for such errors.  Also, it is confusing that the 2nd MsgBox() shows a misleading "updated" value.  Apparently, data validation is being handled at two layers in the application.  Why?  I would assume SAP would implement the validation at the business logic layer, especially given the recommendations to develop all customizations through the SDK.
    I can perform the update using a recordset query; but, this direct editting of the table would require modifying several lines in both the POR1 and OPOR tables.  Thus, this solution (my only solution for this project) would be extraordinarily difficult to maintain.  Therefore, I am going to recommend dropping this implementation requirement.

Maybe you are looking for

  • Unable to login to IB - again com.sap.engine.services.rmi_p4.P4IOException

    We have installed a new PI 7.1 system and at he moment I have the problem that I can't login into the IB tools. I found a lot of threads with this problem but I can't find a solution for my specific problem. Have a look at the well known error log: c

  • I have installed new firefox - how do i get bookmarks etc. from old computer discs as old pc now broken.

    My old PC running Windows XP broke and was not repairable but we managed to salvage the drives. I have a new PC running Wondows 8.1 and have installed Firefox. Can you please tell me how I can get all my bookmarks, passwords etc. from the old disc on

  • TOC and anchored objects

    Hi! I'm experiencing some problems generating the TOC. I design the chapter titles to stay into an anchored object before the first paragraph title but generating the TOC the chapter title is putted after the first paragraph title! There's a way to m

  • IPhoto-importing images

    IPhoto '09 Version 8.1.2 (424) While in iphoto, when I click on images imported from emails or websites I get a message saying that the "image can not be found". This does not occur on images that have been imported directly from a device (eg: phone,

  • How to delete and start again?

    I've finished ripping my collection of 480+ CDs but I really think a big mistake I made was signing-up to Match before I'd finished. I've got various minor problems (such as mismatched art which won't synchronize) and some bigger problems (such as so