Quantity and Price Totals on Sale Order and Delivery Order

Dear ABAP Gurus,
I want to add totals of line items (Quantity and Price) in sale order and delivery order screens. Can you please guide me how to do this. The price can be any from pricing procedure ie exclusive or inclusive price of sales tax.
regards,
RSA
Moderator message : Requirements dumping not allowed, show the work you have already done, thread locked.
Edited by: Vinod Kumar on Jan 28, 2012 9:23 PM

Hi,
Try this :
IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='22')
BEGIN
If exists (SELECT t3.docentry FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry left join POR1 T2 on T2.[U_JONum] = T0.[OriginNum] and  T0.[ItemCode] =  t2.U_SubConItem] INNER JOIN OPOR T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[PlannedQty] <> T2.[Quantity] and  T1.[ItemCode]  = 'subcon' and  T3.DocEntry = @list_of_cols_val_tab_del )
Begin
SET @error = 10
SET @error_message = 'Not allowed to add more than planned'
End
End
Thanks & Regards,
Nagarajan

Similar Messages

  • Dates and quantities copied from Scheduling Agreement to Delivery Order

    Hi everybody,
    we're experiencing a problem with copying control for dates/quantities between Scheduling Agreement and Delivery Order.
    If we define a Forecast Delivery Schedule with more lines/dates into a Scheduling agreement, when I create a Delivery Order with reference to a specific date the system always copies the first forecast delivery schedule date, disregardful the date specified in the selection criteria for delivery creation and with the fact that this could have already been carried out.
    Here's an example:
    Forecast Delivery Schedule into Scheduling agreement:
    (Date) 12.03.07   (Quantity)  10 TO
    (Date) 13.03.07   (Quantity)  12 TO
    (Date) 14.03.07   (Quantity)  15 TO
    When delivery has to be created with reference to Scheduling Agreement, the system doesn't about the date specified in selection parameters (e.g. 14.03.07) and copies the quantity of the first forecast delivery schedule line (10 TO).
    Does anybody knows how to maintain Copying Control for dates and quantities between Scheduling agreement to Delivery Order?
    Thank you!
    Luca

    Dear Pattanaik,
    check data transfer from copy controls.for this T-code is VTLA
    here select your doc type and select details and check also item.check inside both types data trasfer wich is assigned change from this item to header.your problem may ve coming from here.
    hope this will helps you
    Prem

  • Pros and Cons for single sales organization and multiple sales organization

    Hi!
    Does anybody have a good data of Pros and Cons for Single Sales Organization vs. Multiple Sales Organization.
    Thank you!

    Hi,
    Actuall it all depends on the business process.
    I will explain the answer to you through a practical example
    like Ford, it has sales and services all across globe.
    It is not advisable to manage all of its activities under only one sales organization, say Ford Inc.
    So what it does is de-centralises the whole process according to the country, region so that the whole process is divided and hence can be managed more effeciently.
    Hope this helps you in understanding the basics.
    One sales org always provides you with very less data to update and maintain, while many sales org makes the scenario more complex.
    One sales org always gives you the flexibility to bring any changes to the current scenario, while in multiple sales org to bring a change its a tiresome job.
    These are some of the advantages and disadvantages of one to many sales org.
    regards,
    Siddharth.

  • Difference between Sales Order and Stock Transfer Order(STO)

    Hi Gurus,
    What exactly is a diference between Sales Order and STO?
    Thanks and Regards
    Rohit

    Hi,
    Sales Order Stock
    Sales Order Stock are stock with Special Stock type E. It can fall into the usual stock categories such as unrestricted, blocked etc. but "belongs" to a sales order.  For example, you create a sales order for a part and assign a sales item category that generates an individual requisition, the requirement has an account assignment linking it to the sales order schedule line, you convert that requisition to a Purchase Order.
    When you receive the Purchase Order, the stock is placed in sales order stock. It will show against the sales order/sales order line. It can only be delivered against that sales order line. Any availability check etc for that material on any other sales order will not take it into account as it is not available except to the sales order line the stock is assigned to.
    Stock Transfer Order
    the cross company Stock Transport Orders can be done by:
    - Configure using transaction OMGN
    - Depending upon the sending and receiving plants, maintain sales organization and customer data in customizing.
    - Maintain the supplying plant as a vendor and attach the plant to the vendor in the Vendor Master.
    - Material type has to be HALB or HAWA.
    - Ensure that the company with sales Organization has a plant to take care of stocking.
    - The PO used is NB and not Stock Transfer PO.
       Configure SD for inter-company billing to enable picking up the pricing procedure for billing.
    - Carry Out delivery through process delivery due list and billing through process billing due list.
    Otherwise, You need  to configure your Stock Transport Order settings for your Cross-Company:
    Business Transaction to work.
    1. Customer No. for the Goods Receiving Plant - OMGN
    2. Availability Check- Checking Rule (if necessary) - OMGN
    3. Assign a Delivery Type for the Delivering Plant - OMGN (for Stock Transport Orders, NLCC)
    4. PO type (which i belive you have done) - OMGN
    5. Assign Vendor No. to the Supplying Plant (done) - VK02
    6. Assign Customer No. to the Purchasing Plant for the Inter-Compnay Invoice (but you need to assign this to the Sales Organization pre-assigned to the Purchasing Plant),
    IMG-SD-Billing-InterCompany Billing-Define Internal Customer No. by Sales Org
    ***and by the way for the Invoice to work between Cross-Compnay Plants, you need also to have a Sales Org for the Supplying Plant and a Pricing Determination Procedure.
    REgards,
    vineela

  • Get Sales organisation and Corresponding Distribution channel and Division

    Hello,
    My requirement is to is to retrieve Sales organisation and Corresponding Distribution channel and Division.
    Was going through the thread : [sales organization and distribution channel |Re: sales organization and distribution channel;
    to find the FM : CRM_BUPA_SALES_AREA_GET_ALL.
    I do not have a CRM system to check what this FM does.
    Is there any similar function module?
    Regards,
    Remi

    Hi,
    Based on what data you want to retrieve thsese fields?
    Can you please give more details on your requirement?
    I think from table KNVV you will get these info.
    Best Regards,
    Deepa Kulkarni

  • Determine Discount and Price details for Materials in CRM

    Hi,
    I am looking for a standard program / function module which can provide information on Discounts and Prices for any given Material and Customer in SAP-CRM 7.0.
    Any help on this will be highly appreciated.
    Regards,
    Prasanna

    Hi ,
         You can find the price and the discount  for a product in the table CNCCRMPRSAP172 .
    Regards,
    Mithun

  • Can we have more than One DC for the sales organization and Plant combo?

    Can we have more than One DC for the sales organization and Plant combination?
    If yes can you please site a practical example to clear the picture

    Hi
    First of all in SAP sales orgs are assigned to distribution channels and the combination of sales org and distribution channel which is called distribution chain is assigned to plant
    There is  no direct link  between sales org  and plant or distribution channel and plant
    So  sales org  and plant combination doesnot exists and
    it is only sales org and dist channel combination which is  called as distribution chain only exists
    Nowhere in SAP we are assigning sales org to plant
    It is because sales org alone doesnot make sense and its combination with dist channel only makes sense
    because sales org is a selling org and the distribution channel is the route to sell and this combination has only to pick the material from plant to process sales to customers
    The relation between sales org and distribution channels is many to many and also vice versa
    Multiple sales orgs can be assigned to one distribution channel and
    Multiple distribution channels  can be assigned to one sales org
    Similarly the relation ship between Distribution chain (sales org+dist channel) to plant is also many to many and vice versa
    Similarly plants from other company codes can also be assigned to Distribution chain to facilitate intercompany processes
    In whatever way look at it the multiple distribution channels can be fit anywhere
    Regards
    Raja

  • Header text to be copied from the sales order to delivery

    Hi Gurus,
    I have a requirement in which  header text "Customer order text " needs to be copied from the sales order to the delivery.After copying the text we need to print on the packing slip.
    Can anyone advise me as how to copy the text from the sales order header to delivery  and then print on the packing slip.
    Thanks ,
    Smitha.

    Maintain the Text ID @ Sales Documnet Header level and add it to your Text Procedure. Also ensure you assign the access sequence to your Text ID in your procedure.
    Access Seuquence should have VBBK and the text ID number and check All Languages and use Requirement 1.
    Then in the Delivery Header Text Procudure add this text ID and assign the same access sequence as above.
    This will copy the Text ID from Sales Order to Delivery Order Header.
    You can configure the output for packing slipduring the delivery process  and in the output program read this Text ID and print it.
    Note" Copy Controls do not copy text from preceeding documents to succeeding documents. Only the Access Sequences used in the Text Procedure will do that with the help of the reuqirement assigned in the same.
    Thanks and Hope this helps.
    Sai

  • Not to include item from purchase order to the delivery order

    Hi,
    i need some guidance on above topic. The user requested to have the functionality not to include the item from purchase order to delivery order when the item having  order balance quantity more than the available stock.
    In other words, if a PO contains several items, those order balance quantity which is more than the available stock will not be included in the DO.
    is the above scenario possible?
    please advise.
    Thanks.

    Hi Yue ,
    u can do it , but in this case u have to make use of user exit or BADI.
    option 1 .
    by using user exit , u can delete/change picking/confirm qty .
    option2:
    while doing  the PGI , do can cross check stock avail with PO qty and raise error messages.
    LE_SHP_GOODSMOVEMENT --> see its documentations in se18.
    Regards
    Peram

  • Delivery order - deleted line items details

    Dear All,
    i want the list of materials and qty which are deleted from the delivery order, i have tried with the CDHDR & CDPOS but there i am getting only changed details, if the material is deleted im unable to get the material number and qty..
    is there any other table where can i get the deleted materials details..
    kindly reply id u have the solution.
    thanks.

    Hi,
    To find out the table, you can do one thing,
    firstly create a dummy material,
    then activate the SQL Trace from ST05 transaction,
    and then delete the dummy material which you had created.
    Now deactivate the SQL Trace from the same transaction,
    And click on Display trace...
    You wll get all the tables which are used when deleting the material.
    Just check for insert statement in the statement column of the SQL trace.
    that will the table which stores the deleted materials information.
    Regards,
    Siddarth

  • Credit Management not activated in Delivery Order

    Hi,
    I've made relevant configurations in SPRO such that during the creation of sales order, credit management is activated. A warning message popup to warn user of the credit exceeded.
    However, during delivery order creation, such warning message does not get popup.
    I'm using the simple credit checks. In spro->sales & distribution ->basic functions->credit management->assign sales docs & delivery docs-> credit limit check for delivery types, i've set the relevant delivery type to have credit group 02 (Delivery) & 03 (PGI). Under the item cat for delivery order, i've also checked the active credit checkbox.
    Any config i've missed out?
    Thanks
    Regards,
    HweeLing

    Hi,
    According to your reply, I can only set credit checks popup message at only 1 place - Either sales order OR delivery order?
    Does it mean that if i have the check in sales order, I cannot have the same popup message in delivery order?
    Currently, i have the popup message in sales order.
    I do not want to block delivery order. I only want a warning message thats all.
    Thanks

  • 11.5.10 Orders Import - line quantity and price

    Hi
    We have a custom ordering web system that accepts the sales orders from users. I am trying to import orders into Oracle EBS. The custom web system calculates taxes and price and displays line total for the end user.
    I need to import the orders as below:
    1. Show the order quantity as the quantity selected by the end user
    2. I should not recalcuate the price in EBS and whatever the total they send me should be the price of the line (shouldnt multiply with quantity). Basically display line total from custom system as price (not sure which column to poplulate from API?)
    3. No tax calculation in EBS, tax_value should be 0 all the time for these orders. Which column of oe_order_pub.line_rec_type to populate to achieve the same.
    I am using oe_order_pub.process_order API to import these orders.
    Appreciate your help

    Now I just realized the old servers were RHEL4 32-bit and the new servers were by default created on RH 5 64-bit.
    I'm pretty sure I can't just fire it up on a 64-bit OS without doing some extra work like export/import on the database.
    App server not sure what I would do as libraries etc. would be different also.The apps tier node of EBS 11i is not certified on 64-bit Linux OS -- Frequently Asked Questions: Oracle E-Business Suite Support on x86-64 [ID 343917.1]
    My thought is to get the servers rebuilt using RH5 32-bit and everything should work hopefully as long as packages are there.
    Sound right or should I just go with what it runs on now (RHEL4) to be on the safe side.What is your database version? Please note that Oracle9i is not certified on RHEL5, so if you are running on 10g/11g database you should be good to go with RHEL5
    Thanks,
    Hussein

  • Max.cond.base value - wrong line totals in Sales Order and Invoice

    Dear Experts,
        In my pricing procedure, I have set the field Max.cond.base value as 1 in VK12 (in additional data) for one of my condition type ZR16 . If Max.cond.base value is set as 1 for ZR16 condition type, the value for ZR16 will be considered only for the 1st quantity for that item. All subsequent quantities for that item will not be considered. This works fine in Sales Order and when I enter the same material in 2 line items with qty 1 each, only the first line item considers ZR16 value in total net value and the second line item does not consider the value of ZR16 in the total, which is correct.
        Problem arises when I create individual deliveries and individual invoices for each line item. Although the ZR16 value is not considered in the total for the second line item in the sales order the value is being considered in the invoice which is wrong. I tried various scenarios and found this issue arises only with domestic customer and not with overseas customer. Issue is that the line total value value calculated correctly in sales order is reflecting wrongly in Invoice when I use Max.cond.base value. I am confused if this is a pricing procedure related issue or copy control related. Please share your valuable inputs.
    Regards,
    Madhavan

    I tried various scenarios and found this issue arises only with domestic customer and not with overseas customer
    Compare the access sequence combination and condition record in both the above cases and check which one is differing and creating issue.
    the line total value value calculated correctly in sales order is reflecting wrongly in Invoice
    Again here also, compare the Analysis tab which should be self explanatory to find out the root cause of the issue.
    G. Lakshmipathi

  • Quantity is different from sale order and delivery

    Hi,
    Gurus,
    Quantity is different from sale order and delivery.
    I identified the Material in the sales order, the item category for this material as BOM.
    I have also checked the bill of material display header overview. The Base Quantity maintained as 1000 EA3. The SUBITEM maintained in G in the unit field in bill of material display.
    Accordingly i have checked the same for material master's additionl data in Units of Measure tab, it is mentioned the basic unit as 1000 EA3 and alternative unit as 600 G.
    My client processed the order for 100 QTY. The QTY for the two sub item is 99.601 each in the sale order.
    My client Question is why in delivery the Material Qty is coming as 99.730 and the SUB ITEM is coming as 99.330 EACH.
    Note:- The material X is maintained in EA3 in Bill of material header overview. I do no how the sale unit came as G for the Material in sale order.
    The other two sub item is perfectly coming as G. Because it is maintained in G in the Bill of Material Display.
    Guide me GURUS.
    Thanks and Regards,
    ANAND

    Hello Rumar
    I guess you entered the text manually in the sales order. The Ship-to may not be having any text, but the Sold-to may be and it may be coming from sold to.
    In transaction VOTXN, check the access sequence for the text type id and see which one takes precedence - one from customer master or from the order by checking the order of accesses.

  • Order Quantity and Target Quantity, both as editable in Sales Order

    Hi All,
    We have a requirement in which order quantity and target quantity, both should be allowed as editable fields in overview screen while creating a sales order or contract. Currently, only one quantity field is editable (order quantity in sales order and target quantity in contract).
    First question, is this possible?
    Second, If possible, then please tell the configurations need to maintain?
    Note: The material is relevant for delivery (so schedule lines allowed).
    Thanks & Regards,
    Vishal

    Hi Lakshmi,
    Thanks for the reply. I think I did not clarify the actual requirements. Let me explain it again:
    I understand that generally, Target qty is in contract and Order Qty is in sales order. But actually, here query is,
    When I create Sales Order (VA01), then while entering Material, user should see both quantity columns (Order Qty and Target Qty) in editable mode.
    So is this possible? If yes, then please guide.
    Please revert back if any further clarifications is required.
    Thanks & Regards,
    Vishal

Maybe you are looking for

  • Flex compiler in FlexBuilder and Flex SDK

    I have downloaded Flex Builder 3.0.2 and Flex SDK 3.2. Are they using the same version of Flex compiler? Is there a way to check the version of Flex compiler?

  • St02 - Swaps in Red( Common but complicated)

    Hello Friends, I am using SAP Netweaver 2004s, SAP_BASIS - 700, OS - Windows NT 6.1,  DB- MSSQL 8.00.194. In Tcode- ST02 i found many red alers while swapping. however many entires have hit ratio of 99% hopefully this can be ignored. please correct m

  • Purchase of Apps with debit cards in India

    I am from India. I have  visa and master powered 'debit cards' however cannot purchase any apps from the store despite visiting the 'indian store'.  Does Apple not support purchase of Apps via debit cards in India? Can someone help me with this? The

  • Activating/Using Business Transaction Event (BTE) PM000030

    Hello everybody ! I need to implement BTE PM000030. I tried to follow the howto provided by sap & in the forums , but I must be missing a step since this is not working. I have created a custom product in transaction FIBF and now I want to assign my

  • Error when using Calculation Area or AutoSum

    Why do I get an error when trying to use AutoSum? It says "Object reference not set to an instance of an object".  I can't use it all.  Nor can I manually create a calculation in the Calculation Area at the bottom of a PowerPivot worksheet.  I am abl