Sales Order  VS Delivery Alert

Dear Experts ..
My client need a following Alert .....
EXP:--
If My Sales Order No 1  quantity is 100 and i delivered 110 base on sales Order No 1 at that time required to send  a alert  as per assign user...
please Provide me the query for the same..
Thanks and Regards
Manegsh Pagdhare.

Hi
The following alert lets you view the amount that is exceeded in delivery of sales order
declare @cant as int
declare @cant2 as int
declare @ultentg as int
set @ultentg = (select max(t0.docnum) from odln t0)
set @cant = (select sum(t1.quantity) from odln t0 inner join dln1 t1 on t0.docentry = t1.docentry where t0.docnum = @ultentg)
set @cant2 = (select sum(t1.quantity) from ordr t0 inner join rdr1 t1 on t0.docentry = t1.docentry where t1.targettype = '15' and t1.trgetentry = @ultentg)
if @cant > @cant2
begin
select t1.itemcode as 'ItemCode', t1.dscription as 'Product', t4.quantity as 'Quantity Sales Order', t1.quantity as 'Quantity Delivery' from odln t0 inner join
dln1 t1 on t0.docentry = t1.docentry inner join ordr t3 on t1.baseentry = t3.docnum inner join rdr1 t4 on t3.docentry = t4.docentry
where t0.docnum = @ultentg and t1.itemcode = t4.itemcode and t1.quantity <> t4.quantity
end
Greetings

Similar Messages

  • Abap Report including sales orders and delivery data.

    Hi Experts,
    I Want to develop a new abap report which would contain the data for sales orders and delivery.
    I want to fetch all the sales orders based on the ship date (LIKP-WADAT_IST) of the delievry.
    Could anyone please let me know how to fetch teh data or is their any function module which would help me to solve my problem.
    <Removed by moderator>
    Thanks,
    Komal.
    Moderator message : Spec dumping not allowed. Thread locked.
    Edited by: Vinod Kumar on Aug 10, 2011 1:25 PM

    post this in ABAP forum for quicker response.
    Regards
    Raja

  • Link Sale Order with Delivery  through DTW

    Hi All
    While importing Deliveries through DTW, is it possible to Link a Sale Order with Delivery?
    If it is possible then can any one tell me the procedure.
    Thanks in Advance
    Chakrapani Bandaru

    In the template for the document lines, you will find fields for base entry, base type and base line . Fill these with the object type for sales orders, the line number and the doc entry (not doc num) of the relevant linked document

  • Can't change quantity when copy from Sale order for Delivery

    Hi all!
    Can i use authorization for can't change quantity when copy from Sale order for Delivery.

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • 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

  • 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.

  • In Sale Order and Delivery - Inventory should be effect

    Dear Experts,
    i am having a scenario that in sales order and delivery, on material items inventory should not be effected.
    How i can acheive this.
    Please let me know the solution.
    With Regards

    Hi Mr.Rachumallu,
    I am not very sure about your question but if my understanding is right, you can acheive it through the VTLA Tcode and for the Item category of the suitable delivery and sales document combination you need to maintain the pos/neg quantity as "Zero".
    I hope I am helping you.
    Regards
    Vijay

  • Credit block a sales order or delivery individually

    Hi
    If I just wanted to block a sales order or delivery because of a credit issue,  but did not want the customer to go on credit block/hold,  is the only way to do this use the delivery and billing block.  I can't remember being aware of any other blocks we can use
    Please advise.
    thanks

    Hi Kyliesjordan
    It depends on if you want the customer's credit exposure be impacted or not. If you are not bothered about the credit limit, then you can go for order blocks as mentioned by you.
    If you want the system to be updated for credit exposure then you can configure simple/automatic credit checks as per your requirement.
    Best Regards
    Sathees Gopalan

  • Standard T Code to release list of sales orders in 'Delivery Block'

    Dear All,
    Is there any standard transaction code in SAP which provides the facility to release list of sales orders in 'Delivery Block'. (Additional information - List of sales orders in 'Delivery block' is available in V.14,however it does not have release facility).
    For example, VKM3 gives the list of sales orders in 'Credit block' with release facility.On the same lines, is there any standard T code or any other facility in standard SAP which provides the facility to release list of sales orders in 'Delivery Block'.
    Thanks and Regards,
    Zahid

    As already suggested, if you execute VA14L you can see all sale orders that are blocked at
    -  header level
    -  item level
    -  credit check
    Wherever you see "X" under the tab Header level, double click on the respective sale order, so that system will take you to sale order in change mode.  You can remove the header level delivery block and save.
    thanks
    G. Lakshmipathi

  • Prevent Outbound delivery creation in sales orders with delivery block

    Hi gurus
         We are facing the following issue:
         Some sales orders have delivery block header and once they are saved an outbound delivery document is created; we want SAP system creates outbound deliveries only in those cases were sales orders have not a delivery block in header, is there any option or configuration we can use in order to prevent the creation of these documents?
    Regards,
    Edgar.

    Well Edgar,
    let's see then in spro
    Logistics Execution->Shipping->Deliveries->Define Reasons for Blocking in Shipping
    Check out the configuration of your delivery block reason and pay special attention to this instruction:
    "In sales documents, you can either enter delivery blocks manually at header level (business data in the sales document header) or they can be proposed automatically by the system. In the latter case, the delivery block must be entered in the respective sales document type (see chapter
    "Define sales document types"). In addition, the delivery block in the sales document header is only effective if the delivery block has been assigned to the respective delivery type."
    It must be something in the configuration of the delivery block reason you're using.
    Regards,
    Edgar

  • Load a sales order with delivery date in the past

    Hi,
    We want to load in the system a sales order with delivery date in the past, and maintain the schedule delivery date in the past. To do that, in the customizing Sales And Distribution / Basic Functions / Delivery Scheduling and Transportation Scheduling / Define Scheduling By Sales Document Type, I selected the flag Blackwards. But the problem is that the rest of the dates in the scredule line: goods issue date, loading date, material avail.date and transportation Plan Date, are in blank and you cannot enter any data because the system deletes it.
    How can I have these dates informed with dates in the past?
    Thanks in advance,

    You can control this using the "Message Control" in the SAP IMG.
    Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Message Control>Influence Message Control
    Using this you convert Error to Warning or even swith off this message.
    Please refer this thread for complete steps:
    Re: How to change an error message to a warning message in SRM
    Note: you need to suppress the messages relevant to your case here.
    Regards
    Kathirvel

  • Availability check on storages in sales order and delivery documents

    Hi all,
    I'm verifying if it's possible to find a standard or a custom solution for this type of problem:
    I have a scenario in which there are more storages relevant for MRP (ex. 01, 02, 03, 04), and, in if I check availability in sales order or delivery (using checking rules "A" or "B") with setting which considering storages location inspection in availability check control, system check if there's stock available on all these storages.
    I'm trying to verify if it's possible to consider only some on these storages (ex. 01 and 03 only) in sales order and delivery documents availablity check.
    I know that in sales order storage location field is normally filled only using exit, but i don't know if it's possible to do, using a user exit, check availability considering only some storages and not all. At delivery level i have tried to use stock strategy, but this functionality don't have consequences on availability check, also if it's relevant during good issue phase.
    Any suggestion will be appreciated.
    Regards
    Gianpaolo

    Hi Gianpaolo,
    We had some issues with availability check on a Customer Site.
    I don't remember right now if we had to exclude storage locations from MRP to take them out from ATP, but I guess Shiva is 100% correct.
    At the end, what was done was to always "force" a unique storage location in the sales order item, which will be the storage location used for shipping of the delivery of course.
    If you use WM in your plant, then you will have no problem in having a unique storage location, so no problem.
    Anyway you are correct in your analysis, if the Storage location is not informed in the sales order item, then all the plant stock is taken in account for ATP.
    Best Regards,
    Franck
    Freelance Logistics SAP Consultant

  • How to block sales order and Delivery order based on payment terms ?

    Hi  experts ,
    I have an sceneria to block the sales order and delivery based on payment terms ?
        For eg )  Customer payment terms  is Z001 which is 5 % discount within 30 days , No discount within 60 days.
                        My requirement here is a)   if open item exceeds 30 days , delivery to be blocked
                                                               b)  if open item exceeds 60 days , Sales order to be blocked..
    Pls give me a solution....

    HI Kakas,
    If possible in configuration , pls let me know .
    payment terms is     5 % within 30 days if customer pays
                                     No discount  within 30 to 60 days if customer pays.   
    Here , i need to control , sales order to be allowed and delivery not to be allowed  for a customer if any open invoice within 30 to 60 days and sales order to be blocked if  open invoice exceeds 60 days..
    Is this possible in Credit management ?.. 
    pls let me know...
    with Regards
    S.Siva

  • Dynamic data flow from sales order to delivery and vice-versa

    Hi Experts,
    One of our teams working for a client (transportation industry) on ECC 6.0 is facing an issue in relation to copying of partner data. (Ship-to-party address field changes to be precise)
    Currently, whenever the partner address data changed in a Sale order, though delivery is already created prior to this change, the change done is dynamically getting reflected in delivery too. Further, if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    We have checked the copy controls under VTLA and didn’t find any specific modifications made in this regard. Our question is:
    Is there any configuration available in standard SAP through which the data updates (like header data viz. partner field data etc.) get dynamically updated forward and backwards in a sales flow(i.e. from sales order to delivery and vice-versa)
    Your help on this will be highly appreciated.
    Regards,
    Jagan

    if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    The standard functionality is if you change the address of a partner function, the same will get reflected in an existing sale order.  This being the case, can you reconfirm your statement that in delivery, if you change the partner function, the same will get updated in sale order also?
    G. Lakshmipathi

  • Credit Check at Sales Order Creation  & Delivery Creation levels

    Hi
    I am using Dynamic Credit check, Assigned  credit group (with block) in OVAK for Sales Orders and for delivery types also assigned credit group.
    Issue is while creating Sales Order system is doing dynamic credit check and blocking the sales order but delivery block is not happening, then i am releasing block in VKM3. but while creating Delivery system is not doing dynamic credit check.
    requirement is in both levels system should check the credit check.
    Can any plz guide me.
    Prasad

    Hi
    It is not possible in the standard. The block at different levels is configured based on the degree of risk involved with the customer. If the customer is more risky, he should be blocked at ordr livel itself. If the customer is less risky, the order should be processed , like picking, packing etc., and only Goods Issue should be stopped.
    The release will be done by a responsible person and hence it should not block again. eg., if the order is released with special approval from a higher up like Marketing - GM, then it should not block the delivery again.
    Thanks,
    Ravi

Maybe you are looking for

  • Add second instance to Enterprise Manager 10g database control

    Hi, I have a server with one Oracle 10g database instance, and I configured the local Enterprise Manager database control for it. Now I added a second instance on the server, using the same Oracle home. Can I manage this new instance using the existi

  • WRT1900 Guest network...

    I turned off the guest netowrk option altogether as having it turned on exposes an unsecured network that advertises what type of router it is.  This is a security disclosure in my opinion. The guest network option in this router may need to "mature"

  • Help uninstall/ install

    i have an old version of itunes 4.8 or something, i'm trying to uninstall. i then want to install the latest version. i went to add/remove programs in the control panel. it no longer is in the add/remove, but there is still an icon on desktop and whe

  • Configuring a JNDI ressource in the web.xml file

    Hi, does someone know if there is a way to configure a JNDI ressource with its parameters only in the web.xml file ? In my case, the JNDI ressouce is an oracle database an its conenction paramters: driverClassName, username, password, etc... Actually

  • Do you need to be 18 to get a replacement phone or get my phone repaired?

    Basically my iPhone lock button broke and if i take it in will they give me a replacement or do I need to be 18?