How to setup the default warehouse in Sales Order Lines

I have 3 organizations in one OU like A, B, C.
and I created a new sales order type for A, the shipping from warehouse is also setup C, but when I create SO, in order lines, the default warehose is A, how to change to C?
thanks
Fangquan

You can write a simple pl/sql logic to get the correct org id. I am assuming that you have two responsibilities in the same operating unit and one should default with A and one should default with C. Both use the same order type.
When the resp that is responsible for org A, will have org A from order type.
For resp that is responsible for org C, you can create a pl/sql logic where you read the current responsibility using fnd_profile.value('RESP_ID'). If the resp_id is responsible for C then return organization_id of C.
You can find example code for order line entity for attribute tax code.
Let me know if you need anymore info.
Thanks
Nagamohan

Similar Messages

  • To Default Warehouse In Sales Order Based On GOP Results

    Hi
    The Business requirements are
    During the import or manual entry of sales order,based on customer ship to address the warehouse field in the sales order should default from gop results.
    Gop can show you the availability from the ATP inquiry form attached to sales order.But how to default or populate the warehouse field automatically.
    No standard functionality is there.Enhancement request has been raised.Can anybody suggest any workaroounds.
    Thanks

    Take out the defaulting rules for Sales Order Line and the regular gop setups,the during scheduling it calls for the assignment set specified.and the warehouse field is populated.
    by the rank one warehouse in the sourcing rule.

  • How to setup the default run page in WAR file

    Can anyone please tell me how to setup the default run page in WAR file using JDeveloper? I want the login page to be the default page of the application. Thanks!

    This is usually done in an .XML or other configuration file based on the particular web application container you are using.
    For example, in Tomcat Java Container, its the following parameter in the /conf/web.xml file:
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    You will need to look at the documentation for your server container.
    thanks

  • How to clear the delivery group in sales order?

    Dear All: 
          My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order ,  how to clear the delivery group in the sales order ?
    Regards
    Peter.

    Thread Locked - Reason Duplicate Post
    How to clear the delivery group in sales order?
    Please dont post the same query twice.  Continue all your queries in one thread
    G. Lakshmipathi

  • How to change the Profit Center in Sales Order

    Hi Gurus,
    Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
    So, could you guide me how to change the profit center in sales order.
    Thank you for your replies.....
    Thanks & Regards,
    Chandrababu.B
    Edited by: Chandrababu Naidu on May 25, 2011 12:44 PM

    Hi
    If this SO is processed partially - i.e. transactions happened - You cant change it
    You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
    br, Ajay M
    Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM

  • How to pack the More than one sales order delivery qty in one packing

    Hi Folks,
    How to pack the more than one sales order quantity combinely during packing?
    Thansk in advance and points wil be rewarded for the reply.
    Best Regards
    Srinivas

    Packing is done during Delivery.
    In Sales order also Packing function is available but as a Packing proposal.
    So actual packing is done in Delivery.
    When you process several sales orders together, the sales order items having same Ship-to-party, Shipping point, Route, Delivery due date & Incoterm are combined into one Delivery in the standard system.
    In the delivery overview screen,do the picking by subsequent function rom the menu bar, you will get a button "PACK", click on this system will take you to the packing screen.
    In the packing screen, give the packaging mterial number, select the materials to be packed, select the packaging material also and the click on the "PACK" button.

  • How to make the status of a sales order complete of which PART DELIVERY

    How to make the status of a sales order complete of which PARTIAL DELIVERY has already done. <b>(Assigning rejection status not accepted)</b>

    Hi Gyana
    There is no document with me. But I can confidently say that because I am using this functionality.
    In my case I have created a Order Reason as "Short Closed". once you short close this order only the balance quantity gets rejected (provided you have already made previous delivery and PGI).
    Try it in one of your test clients if you have. Once it is short Closed it wont also show in the orders due for processing in Production.
    Also you can generate reports based on this if your customer wants to know how many order he has short closed, qty of item short closed etc.
    Try it.
    Rgds
    Sunil

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • How to keep the same cost in Sales order and return order?

    Hi experts,
    When I create a sales order with item cost 100 USD.
    Then the cost of item changed and down to 90 USD.
    When I do goods return refer to the sales order. How can I keep the same cost (VPRS) 100 USD but not 90 USD?
    I made a test the cost in sales order is 100 USD but 90 USD in return sales order.
    I want the cost in return sales order is 100 USD.
    How can I do?
    Thanks,
    Lance

    Hi,
    Let me tell u my understanding of your requirement, after the sales the cost of the item is changed to some thing low than it was in sales order or invoice, in this scenario you need to transfer the cost of the material as it is in the sale order or invoice (which you are taking as reference to create a Return Order), am i right?
    If so, you can proceed like this.
    In the copy controls of Billing to Sales orders ( F2 to RE) we have the pricing type N assigned to it ( Transfer pricing components unchanged, New Cost) here the system is reading the change of the cost again from the material master. if you don' t want it to read the material master data again we can have a change try with pricing type 'D'  (Copy Pricing elements unchanged), and try now.
    let me know the result.
    hope this will solve your problem.

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • How to make the connection between a sale order and an invoice in SDK

    Hi,
    Im trying to make the connection between a sales order and an invoice using the SDK.
    Here is how i create each of them:
    Invoice:
    public int SalesInvoiceInternalSave(string buisnesspartnerCardCode, DateTime dueDate, double discountPercent, string id, IList<InternalItem> items, ref int invoiceId)
          int res = 0;
          SAPbobsCOM.Documents invoice_entry = (SAPbobsCOM.Documents)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);     
          invoice_entry.CardCode = buisnesspartnerCardCode;
          invoice_entry.DocDueDate = dueDate;
          invoice_entry.DiscountPercent = discountPercent;
          invoice_entry.Reference2 = id;
          foreach (InternalItem item in items)
            invoice_entry.Lines.WarehouseCode = item.Shopid;
            invoice_entry.Lines.ItemCode = item.Code;
            invoice_entry.Lines.ItemDescription = item.Name;
            invoice_entry.Lines.Quantity = item.Quantity;
            invoice_entry.Lines.UnitPrice = item.Price;
            invoice_entry.Lines.Add();
          res = invoice_entry.Add();
          return res;
    Sales order:
        public Boolean SalesOrderInternalSave(string orderId, string buisnesspartnerCardCode, DateTime dueDate, IList<InternalItem> items)
          SAPbobsCOM.Documents order_entry = (SAPbobsCOM.Documents)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
          order_entry.CardCode = buisnesspartnerCardCode;
          order_entry.DocDueDate = dueDate;
          foreach (InternalItem item in items)
            order_entry.Lines.WarehouseCode = item.Shopid;
            order_entry.Lines.ItemCode = item.Code;
            order_entry.Lines.ItemDescription = item.Name;
            order_entry.Lines.Quantity = item.Quantity;
            order_entry.Lines.UnitPrice = item.Price;
            order_entry.Lines.Add();      
          int res = order_entry.Add();
          return res == 0;
    What do i need to change to get the connection between the two of them?
    And how do you insert a amount (not percent) discount into an invoice?
    Regards,
    Torben

    Hi,
    Add the sale order, then add the invoice. and while adding the invoice please add the following details to the invoce documen
    invoice_entry.Lines.BaseEntry = 'Doc entry of the newly created SO
    invoice_entry.Lines.BaseLine = 'Line No of the SO
    invoice_entry.Lines.BaseType = 17 'For sales order document type.
    Hope it helps,
    Vasu Natari.

  • How to personalize the Actions LOV in Sales Order Form.

    Hi All,
    I've a requirement wherein I need to remove the "Payments" fuction from the Actions button( from list of values) in Sales Order lines Form.
    Navigation: Order management Super User--> query or enter a Sales Order-->Line Items--> Click on Actions button--> Lov is popped up. Now from this LOV I want to remove the Payments Function. User should not be able to see this value in the Actions LOV.
    Please let me know if there is a way to achieve this requirement.
    Regards,
    Tech D.

    See if this helps
    Go to System Adminstartor->Menus
    query ONT_SALES_ORDERS
    go down to find the payments function..mostly prompt and submenu will be empty..
    Uncheck the grant option and save it..it should compile the menu
    Now check by going to resp..
    HTH
    Mahendra

  • How to validate the quantity booked in sales order

    Hi,
    When a sales order is booked for a customer, a validation should be done for the quantity ordered on this particular customer,
    If any order placed for an item beyond max order quantity for this customer, system should pop up some message or alert to the user.
    This should take care of multiple entries of that item in the sales order lines.
    Awaiting your valuable reply,
    Regards,
    Prasad

    Hi,
    If I understood correctly, a customer “C” can order at most 10 units, for example, in one order, however, “C“ can order 20 units divided in two orders, 10 units each.
    If you use blanket sales order, you can define the maximum quantity that can be entered in each release. I made some tests here and it’s performing the validation only at the line level, not across all order lines as you require. I don’t know if this is the intended functionality. If it is, maybe a forms personalization could be used in order to validate the total ordered quantity against the quantity defined in the blanket sales order.
    Another issue is that you will not enter the sales order directly into Sales Order form; you will need to find the blanket sales order and then create a release (sales order linked to the blanket).
    In order to prevent user from entering orders to this customer with no reference to the blanket, it’s possible to define a security rule in OM preventing orders to this customers without a blanket sales orders reference.
    Regards,
    Ketter Ohnes

  • How to setup the defaults (font, fontsize, fontcolor) for the Content Editor in Acrobat Pro 11.0.4?

    Hi folks, maby you can tell me if there is a way to edit the default font of Acrobat's Content Editor, especial in the add text mode.
    As default, my Acrobat uses Minion Pro in size 12. This drives me crazy, because i have to change this every time i add Text.
    Thanks!

    Unfortunately there isn't but it would make an excellent Feature Request.

Maybe you are looking for

  • Questions regarding how I pay my Line Rental Bill ...

    Hi BT,  I'm currently a BE Broadband customer,  I was a BT Broadband customer back in the days when you had BT Home Hub 1.0 and 8mb packages which i was only getting like 5-6mb, 0.3mb upload and constant speed caps on my connection to 1mb.  You guys

  • Code to retrive the sender and receiver interface names using custome adapter module

    Hello Team, I want to develop an custom adapter module which could retrieve the names of the sender and receiver interfaces of the scenario and for that i am trying to use com.sap.aii.af.service.administration.api.monitoring.ProcessContextFactory.Par

  • 26 inch display

    ive got a 26inch widescreen display which im trying to plug into my mew macbook. however, the screen recamends a resolution of 1920 X 1600. my macbook wont let me select this resolution for some reason. i'm sure there must be a way however as apple o

  • Weird problem with role assignment in Portal

    Hi, In our newly installed Portal for eRecruitment Production System we encounter a weird problem with assigning roles to users. When I open User Administration and search for roles, it displays the Portal roles perfectly. However, when I search for

  • Add review enabled and enforce single service requisitions

    Is there a way/option to make "Add review enabled" for the service, but not allow adding additional services to the requisition once Add & Review Order is clicked? Reason being there may be services that should not be ordered together with other serv