Setting Sales Order Item Price

When adding an item to a Sales Order - No matter what I set the price of the item to - it is changed to the price on the price list for the Business Partner.
Is there a workaround?
SAPbobsCOM.Documents salesOrder = (SAPbobsCOM.Documents)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
salesOrder.GetByKey(Convert.ToInt32(asl.cmbSalesOrder.SelectedValue));
salesOrder.Lines.Add();
salesOrder.Lines.ItemCode = txtItemCode.Text;
salesOrder.Lines.ItemDescription = txtItemDescription.Text;
salesOrder.Lines.VatGroup = cmbVATCode.SelectedValue.ToString();
salesOrder.Lines.Quantity = Convert.ToDouble(txtQuantity.Text);
salesOrder.Lines.WarehouseCode = mbWarehouse.SelectedValue.ToString();
if (cmbProject.SelectedValue.ToString() != String.Empty)
     salesOrder.Lines.ProjectCode = asl.cmbProject.SelectedValue.ToString();
if (GLAccountCode != String.Empty)
     salesOrder.Lines.COGSAccountCode = GLAccountCode;
     salesOrder.Lines.AccountCode = GLAccountCode;
salesOrder.Lines.CostingCode = cmbProfitCentre.SelectedValue.ToString();
salesOrder.Lines.COGSCostingCode = cmbCostCentre.SelectedValue.ToString();
*salesOrder.Lines.Price = Convert.ToDouble(txtPrice.Text);*
// ** Free Of Charge Item
if (freeOfCharge == true)
     salesOrder.Lines.LineTotal = 0;
if (salesOrder.Update() != 0)
     ErrorForm.ShowError(this, company.GetLastErrorDescription());
else
     LoadJobDetail();

Use the other price fields (like 'unit price').
The field 'price' is a calculated field and is ignored when you set it.

Similar Messages

  • Change sales order item price even if it is partially delivered and billed

    Dear All,
    I have make to order scenario in the industry where the material prices fluctuates a lot.
    In make to order scenario, we sometimes gives the partial delivery to the customer. And once this takes place, the pricing of such items is gred out in sales order.
    As the material prices fluctuates during downward flow, we need to somehow change the sales order price for that item as customer will pay the price according to current date which is less than the price in the sales order during first partial delivery quantity. But as piricing is gred out we no longer change the sales order price.
    The major issue we are facing of credit management as it is getting credit block and we are no longer to proceed further. So kindly request to provide work around for this issue.
    Regards
    Sagar

    Hello Lakshmi,
    Currently we are stuck at PGI due to credit management activation such that if credit limit is exceeded then system will not allow to do PGI thus VTFL wont be useful.
    Also in such instance we are everytime changing the credit limit for such customer and once PGI and billing is done we again set the credit limit to appropriate value, which is not good workaround for end user.
    Please provide good solution if possible.
    Regards
    Sagar

  • System resets the sales order item price changes after save in VA02.

    Hi All,
    We have implemented automatic credit control at sales order level.
    System is blocking the sales order once saved in VA01.
    But if I do any changes in prices at item level in VA02 and save before credit releasing the sales order then system agian reset to the original prices from pricing condition records.
    Can any body tell me why this is happening? I should able to change the sales order prices manually before releasing the sales order credit block. Is it possible?
    Regards,
    Kartheek.

    Like Lakshmipathi said, you should be able to change the prices in the order even if the order is under credit limit block.
    Please check the condition types which are being changed . In the condition type definition( T Code V/06) for the field Manual Changes - the value should be either "Manual entry has priority" or "....should allow to change manually...".
    Also in your pricing procedure ( T Code V/08) , against your pricing procedure , please select the value for pricing type as ..."copy manual conditions and redetermine others".
    Hope this helps
    Regards
    Sai

  • I need to add push button to last extended price unit in sale order item B

    i need to add push button to field  last extended price unit in sale order item additional data B

    i need to add push button to field  last extended price unit in sale order item additional data B

  • How to set "Configuration Variant" for a sales order item using function

    Hello All,
    I use function module 'SD_SALES_DOCU_MAINTAIN'  to create Customer Indep. Requirements but how to set "Configuration Variant" for a sales order item.
    Is their any idea or sample code?

    Hi Zhijun zhang,
    <u>http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm</u>
    <u>http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm</u>
    A variant is simply an SAP report where the parameters for running the report have been set by the user and then saved with unique name. This allows future retrieval and execution of the report faster without reentering the parameters. As a convention the variant name should start with with the digits 50 so searchs for LHU variants is easier and quicker.
    The first link will guide you by screen shot wise.
    Award points if it adds information.
    Thanks
    Mohan

  • Net price calculation for a sales order item

    I am sending the input to BAPI_SALESORDER_CREATEFROMDAT2 for a sales order item with a customer expected price and the material number (pricing group is not being filled in). When the sales order is generated, I see that net price is different from the expected price and the price is being obtained based on the material number that is being given as input. I want to know at what point of code the net price is calculated?  I tried to debug and see but with the numerous userexits and BADIs in the calls I am not successful yet. Any input is appreciated.

    It goes through different pricing routines but the start will be in function module 'PRICING'. Put a break point and run your BAPI or go to tcode VOK0 - find the condition and routines.
    Pricing will be calculated based on customer and material.
    Previous answer is pretty good, you need to fill item conditions in table in bapi also header conditions if you are using header pricing.
    Anyways, first of all create your order from VA01 and see the netprice in conditions. again, the pricing will also depends upon region of customer and material.

  • Sales order item data & sales order schedule data

    Hello,
    I have a Sales Orders cube which is pulling data from two DSOs (one for sales order item data and the other for sales order schedule data). The common fields between these two DSOs is the Sales Order number but in my cube I have dual entries for each Sales Order document (item and schedule info).
    Example of how the data looks now:
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10
    1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15
    2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . . . . . . . . 01/02/2000
    How do I merge the data on the Sales Order number in the cube so it looks like below?
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10 . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15 . . . . . . . . . .2 . . . . . . . . 01/02/2000
    Many thanks,
    Matt

    > Hello,
    >
    > I have a Sales Orders cube which is pulling data from
    > two DSOs (one for sales order item data and the other
    > for sales order schedule data). The common fields
    > between these two DSOs is the Sales Order number but
    > in my cube I have dual entries for each Sales Order
    > document (item and schedule info).
    >
    Two previous remarks:
    1) If you need to report on very detailed data consider doing an info-set joining both datastores. 2 reasons why:
    - not a good idea to report on very detailed information (sales order, GI dates) on cube level, if you have a scenario with lots of data. You end up with big dimension tables a poor report times;
    - there are better alternatives, like drill-through from cube query to DS query with report to report interface or Datastore-based reporting...so...
    With this solution you do not need to change the data model, I think, but test to be sure. See if the reporting times are acceptable. If not...
    2) First confirm your requirements, because what you show in your example as "to-be" have details that do not make sense, probably..
    - if you have more that one schedule line for each item then you would have many times the item information like material/price;
    - if not or if you could cope with that, then you can consider:
    2.1) create a new DS that agregattes from the previous on, with the same key of sales order item; do you have schedule line kf's? if so you these KF's should be additive in DS update; But if you may have more one scheduled line for 1 item then you have to decide what to do with the GI data (keep the last one posted, use code..) and other characteristics.
    2.2) update the shedule line datasource to the sales order item DS; same comments apply.
    2.3) maintain the missing data in the cube update rules from sheduled lines DS. Using code, refer to the respective item in the order item ODS. You would have to make sure that DS's data are correctly activated before updating the infocube.
    What solutions to choose?
    2.1 is better in terms of flexibility and architecture...because you could re-arrange the new DS to answer future needs, without loosing the 1st line DS's data;
    2.2 choose if data volumes and disk space are a concern...
    or
    2.3 it's OK, but i do not like it because of what explained in point 1...
    Message was edited by:
            Miguel Costa

  • How to put some tabs in sales order item level  invisible mode

    Hello Gurus ,
    Good evening everybody ,
    We have some specific requirement from the client - Client does n't want few  end users to see the price details in sales so they want  the condition tab to be  invisible mode in sales order item lvel only for few users  i.e the condition tab  should not be displayed  for that user  is this possible  ?
    Note : I only have idea setting few fields in  sales order  but not tabs in sales order through screen variant -SHD0
    Looking for your inputs
    Thanks and regards
    Venkat

    Hi,
    There are a couple of options you can go with.
    1) You can use Transaction and Screen variants to create your own ZVariant and then put that to user profile.  Allow the user to run only with the variant you setup for the user via authorizations.
    2) Get GUIXT software by Synactive, to perform the above task for you. 
    3) If you happen to have latest version of SAP ECC i.e. 6.0 with EHP3 or above, you can go with NWBC (Netweaver Business Client).
    Thanks
    Kapil Sharma

  • Sales Order Item charge

    In the Sales Order item line have lines charge,
    How to insert the charge ? Is it set in the Item Master or Price List ,please let me know ?
    thanks

    It is not very clear from your post what you actually did. It seems that you applied freight cost during ship confirm. If that is yes, and you haven't done the cost to charge setup then it won't appear as a charge at the line level. When you enter any freight costs associated with the line or delivery during ship confirmation then, those costs are transferred to the order line (during Shipping to OM interface after ship confirm) as price adjustments. Then the conversion of the costs into charges will be triggered, provided the 'cost to charge' conversion setup has been done. The converted charges will be applied to the line. The cost to charge conversion part will require you to define a "Freight and Special Charges List" type modifier to be used along with a seeded (there are many already) / user defined "Cost to charge conversion formula". For details you can refer to "*Setting up Freight and Special Charges For Cost to Charge Conversion*" in OM implementation manual.
    If you want to apply the actual Freight and Special charges at the order/ line level directly then you have to define "Freight and Special charge List" type modifiers and you should have proper security privilege through OM%Charging%Privilege profile to apply the same (as mentioned in my previous post). You can set these modifiers for as automatic application as well.
    Please note these are 2 different functionalities and based on your need you to decide which one is applicable.

  • Free goods determined in Delivery over Order Quantity in Sales Order Item

    Hi Gurus,
    I've a problem about using free goods determination.
    First I created free goods master record with following information
    ZG1010012060075 From 100 PC -> Free good ZG1040012060075 2 PC
    Free goods Category = '2' (Exclusive)
    Free goods delivery control = 'E' (Delivery proportional to quantity in main item)
    Then I've created Sales Order with
    Item 10 ZG1010012060075 4,000 PC.
    Item 11 ZG1040012060075(Free good) has been automatically determined for 80 PC
    Then I've splitted Item 10 into 4 deliveries. The result of free goods determine in each delivery are as follow:
    Delivery#1)
    Item10 ZG1010012060075 = 1,176 PC
    Item20 ZG1040012060075 = 24 PC
    Delivery#2)
    Item10 ZG1010012060075 = 1,176 PC
    Item20 ZG1040012060075 = 24 PC
    Delivery#3)
    Item10 ZG1010012060075 = 1,176 PC
    Item20 ZG1040012060075 = 24 PC
    Delivery#4)
    Item10 ZG1010012060075 = 472 PC
    item20 ZG1040012060075 = 9 PC
    *Remark : Total quantity of 'ZG1040012060075'(free goods) = 92424+24 = 81 PC
    (Greater than 80 PC)*
    I think the system determined free goods in Delivery#4 correctly due to rounding up. But It might not be over the order quantity in Sales Order Item 11. Even though I've set the item category in delivery with Check overdelivery = 'B' (Situation rejected with an error message), the free goods are determined over order qty. BUT if I change delivery qty in delivery#4 Item20 from 9 PC -> 8 PC -> 9 PC, the error message occurred.
    My point is to fix the system not determine free goods in delivery items over order quantity in sales order item.
    Has anyone met this situation before? Do you have any idea about this issue?
    Best Regards,
    Prachya Lalitnorasate

    Dear Sai,
    Thank you for your advice, but it didn't solve my problem.
    I would like the system to determine free goods with proportional to main item AND In the last delivery main item delivered completely free goods must be determined equal to remaining open delivery item.
    Do you have any idea about configuration/customization?

  • How to copy sales order item text in to purchase requisition

    Hi Experts,
    We enter text for the sales order items in the sales order item details.
    we have done settings for the purchase requision to copy text from sales order into purchase requisition and this works for purchase requisitions automatically created from sales order.
    we need to get text from sales order to be copied in purchase requisitions which are created by converting the planned order.
    we have tried SPRO settings SPRO->Materials Management>purchasing--->text for purchase requisition.
    but this settings does not works for Pur Req. created by converting the planned order.
    is this because planned order does not have segment for text like sales order and purchase requisition?
    Please let me know if it is possible through standard SAP or with the lease development, any help will be appreciated.
    Thanks
    Anand

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

  • Missing CO Sales Order Item in 643 Cross Company Movement

    Hi all,
    we are working in a make-to-order scenario in which the company A/plant A sells a finished product produced by company B/plant B.
    The sales order item is a cost object (account assignment category E – “Ind. cust. w. KD-CO” is set in the requirement class in use) and is derived into the Transfer Order (Account Assignment tab) from production company B/plant B to selling company A/plant A.
    When we try to transfer the finished product from plant B to plant A by means of 643 movement the system provides error message  KI 235 – Account xxx requires an assignment to a CO object where xxx is the Cost Of Goods Sold for company B. This is due to the fact that FI is not able to derive the sales order item as a posting cost object.
    We have activated cross company  CO objects by deactivating the Company Code Validation indicator (field TKA00-RKBUK) for controlling area settings.
    Any suggestions?
    Thanks in advance.
    PierGiorgio

    Hi Abhi,
    yes it is: "E" is the entry value in the field consumption of the requirement class involved.
    Thanks, PierGiorgio

  • Rejected sales order item after partial invoice

    Dear All,
    We have a partially invoiced (and paid) sales order. Now the customer (and we) wants to cancel a sales order item. So we set reason for rejection at item level. In VA05 it still displays the SOI as open and status is being processed. How to proceed, it should not be displayed as open when it is rejected in VA05.
    Can I change the billing plan so that the invoice does not mind the items I want to reject should I ste a billing block? Delivery Block?
    Best regards,
    Michaël
    Edited by: spimic on Oct 5, 2010 6:21 PM

    Hi,
    Take the help of ABAP'er, and explain him that as soon as sales order is invoiced(partially), set the rejection reason to sales order.
    And also define the rejection reason and assign these rejection reasons to billing types.
    Regards
    Ashutosh

  • Changes to sales order item not reflected if Call Transaction is used

    I m updating another Sales Order item quantity and reason for rejection programmatically from another sales order.
    The code is working fine and the quantity does get changed as well as the reason for rejection flag get set (if required). But if I go to the change log from the menu in VA02 for the order item which has been changed. It does not record the changes.
    I have tried using both BDC call transaction method as well as BAPI_SALESORDER_CHANGE in neither case the change log for the order which has been changed reflects the programmatically made changes?
    What m I doing wrong. Here is the code.
    IF v_update_order_flg = 'X'.
          REFRESH t_bdcdata.
          CLEAR s_bdcdata.
          REFRESH t_messtab.
          PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
          PERFORM bdc_field  USING 'VBAK-VBELN' <wa_r_rtb_posnrs>-zrtbvbeln.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
       For Going to  specific Item Number
          LOOP AT t_schedule_lines.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POPO'.
            READ TABLE t_item_in WITH KEY itm_number = t_schedule_lines-itm_number.
            PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
            PERFORM bdc_field  USING 'RV45A-POSNR' t_schedule_lines-itm_number.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POSI'.
            PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
            v_ro_qty = t_schedule_lines-req_qty.
            CONDENSE v_ro_qty.
            PERFORM bdc_field  USING 'RV45A-KWMENG(01)' v_ro_qty.
            PERFORM bdc_field  USING 'VBAP-ABGRU(01)' t_item_in-reason_rej.
          ENDLOOP.
          PERFORM bdc_field  USING 'BDC_OKCODE' '=SICH'.
          v_call_transaction_flg = 'X'.
          EXPORT v_call_transaction_flg TO MEMORY ID 'call_transaction'.
          CALL TRANSACTION 'VA02'
                       USING t_bdcdata
                       UPDATE 'S'
                       MODE   'N'
                       MESSAGES INTO t_messtab.
          v_call_transaction_flg = space.
          FREE MEMORY ID 'call_transaction'.

    Hi Srikrisna,
    This is a typical problem with BDC for updating QUANTITY and CURRENCY fields.
    You need to create a character variable of the same length as your quantity field. Move your quantity value to the newly created Character variable.
    Now use this new char variable in the BDC.
    This correction should solve your problem.
    NOTE: BDC RECOGNIZES CHARACTER FIELDS ONLY.
    Regards,
    Prakash Pandey

  • EK01 and EK02 not copied to sales order item

    Dear colleagues,
    Is it possible to have EK01/EK02 transferred to the sales order item for assembly type = "0 no assembly order processing"
    (specified in requirement class definition)? I would like to have planned production costs in EK02/EK01.
    I don't specify costing method, variant and sheet in requirement class definition (transaction ovzg)
    The steps are following:
    1. create sales order
    2. set manually proper item category (which refers to assembly type = "0 no assembly order processing")
    3. MD04 - convert generated planned order (lower-level for HALB) into production order
    4. MD04 - release HALB production order
    5. MD04 - convert generated planned order (higher-level for FERT) into production order
    6. MD04 - release FERT production order
    7. ????? we could expect EK02/EK01 in sales order item coming from production orders ?????
    I have found SAP note 857299 nevertheless it is not stated precisely there.
    Please let me know your observations in this area.
    Regards,
    Wojtek

    Hi..
    Hi
    Small change in the program will copy the PO number from Contract to sales order.In case need take help of ABAPer
    Data which is not copied
    LOCAL: VBKD-FKDAT.
    LOCAL: VBKD-FPLNR.
    LOCAL: VBKD-WKWAE.
    LOCAL: VBKD-WKKUR.
    LOCAL: VBKD-DELCO.
    LOCAL: VBKD-BSTKD.
    LOCAL: VBKD-ABSSC.
    LOCAL: VBKD-BSTDK.
    In your data declaration, you have
    LOCAL: VBKD-BSTDK
    Regds
    MM

Maybe you are looking for

  • Looking for a TAP (Telelocator Alphanumeric Protocol) replacement?

    Looking for a TAP (Telelocator Alphanumeric Protocol) replacement? We can help with our cloud TAP service. 1. Quick setup 2. Great customer support 3. 40% cheaper 4. Ability to send 10's of thousands of messages 5. Works in WiFi and in all mobile net

  • Laserjet 200 Pro 200 color M251nw wont power up

    Havent used this device in about a year,  went to power it up today,  pushed the power button, it flashes white and there is a red X on the screen that also just flashes for about a second.   Have unplugged, have disconnected USB,  have changed outle

  • Opening word document in a browser

    Hi Friends, I am working on a web application which has a websphere as a web server. I want to open a word document or any other MIME type file in a browser. I know how to open a word document by setting the content type in a response. But I dont wan

  • Tutorial to build a comments page

    I am looking for a comments tutorial that I can put on my webpage for a particular subject. Such as people wanting to make a comment on a movie and the ability to quote other people. I would like not to require people to login to leave a comment. Tha

  • Receiver RFC synchronouse scenario question:

    Dear All, I have a doubt in Receiver RFC sync scenario. for example file to XI to RFC. Question: when ever Response RFC is triggered in R/3 Side. How the data reaches XI. By just creating Synch Communication channel for the RFC in XI, will  the data