ATP negative

Hello,
I have problem here with ATP negative. I can see this information on transaction CO09.
The following steps was done to generate it:
Available stock before steps = 10 UN.
Step 1 - Create sales order 1 with 8 UN
              Create sales order 2 with 2 UN
              Create sales order 3 with 2 UN
ATP = 0
Sales order 1  confirmed = 8 UN
Sales order 2  confirmed = 2 UN
Sales order 3  confirmed = 0
Step 2 - Include Reason for Rejection on sales order 2
              Execute transaction V_V2 (you can do it on VA02 too)
ATP = 0
Sales order 1  confirmed = 8 UN
Sales order 2  confirmed = 0
Sales order 3  confirmed = 2 UN
Step 3 - Remove Reason for Rejection on sales order 2
  ATP = -2 (negative)
Sales order 1  confirmed = 8 UN
Sales order 2  confirmed = 2 UN
Sales order 3  confirmed = 2 UN
Did anybody have the same problem and coul solve it.
Thanks in advace.
Luis Bardi

Run program SDRQCR21 in SA38 and check the results again. Also take a look at OSS Note 1170146 - co06 Overconfirmation possible with parallel va01 sessions. There are few other notes with ATP Negative, and you can look into those if the above note does not address your issue.
Regards,

Similar Messages

  • Re: ATP check at storage location level in sales order.

    Hi ,
    I have a requirement wherein storage location is determined in my sales order,  the ATP check is done at plant level as well as storage location level , and the smaller of the two quantities is taken as the result of the ATP check.
    My requirement is that the ATP check should only be performed at storage location level .
    Please suggest if there is any standard setting available in SAP.
    iF NO , PLEASE SUGGEST SUITABLE USER EXIT, WHERE I can add my requirement.
    Regards,
    Nilesh

    Hi Nilesh,
    in SAP standard the system is always checking on plant level first and then on the storage location level, there is no possibility to change this behaviour.
    I'm also not sure if the process is correct, because if you have also requirements on plant level only then you would create negative ATP if you confirm on storage location level even though there is no ATP on plant level.
    I'm also not aware of a user-exit that would suite your requirement, additionally according to the IMG documentation the user-exits in the availability check area should only be carried out in agreement with SAP.
    Regards,
    Markus

  • ATP check on Sales order items not due for delivery?

    All,
    In our Sales order, we have a number of dummy material lines. Now, when I use the normal sales order ATP check button, SAP does nothing. However, we have a custom program that does an ATP check, and it returns a zero qty.
    My question is, how do we know if a material is due for delivery, before an ATP check is done? The only suggestion I have is to look at the schedule line, and see if there is a material movement behind it.
    Any other ideas?

    Mark
    This is a classic SD Professional's dilemma, though it manifests differently at different clients. Mostly customers crib about future requirements stopping current sales orders from being delivered or Scheduling agreements with future delivery dates 'stealing' stock from Sales orders.  Another manifestation is production orders usurping components from sales orders for spares and so on. ATP functionality in SAP is pulled in various directions by conflicting demands and it is difficult to satisfy everyone. Companies with chronic probelms often end up with negative ATP which is perhaps the most serious stage of the prognosis.
    Your solution lies in:
    1) Availability check control settings : Sales documents vs. deliveries  : For the delivery, don't include 'Sales Requirements'  and for the sales orders, do include 'Delivery Requirements and so on.
    2) Performing nightly rescheduling (V_V2) with Delivery priority and delivery date as key sort criteria. If the volumes are not high, you can try using manual confirmation via CO06.
    Take a look at this OSS note and the ones mentioned within:
    36520 - Availability check for delivery

  • ASCP is showing onhand quantity as negative in workbench

    Hi All,
    ASCP is showing oh hand quantity for an item as negative in ASCP workbench, when we checked for the same item in source instance, it shows as 71 available.
    ASCP shows two rows for onhand, one as positive 52 and one as negative -16
    Could anybody help us to get the probable cause for the same.
    Regards.

    Check how is the result of availability check to be represented in schedule line.
    In SPRO-SD-BF-ACand TORACAC with ATP LogicDefine default settings
    Here configure the availability check rule in such a way that if the goods cant be delivered on the Requested Delivery date, then it shoudl propose the date on w hich teh goods can be delivered. Then your problem will be solved.
    The options you can select are C or E.
    Rwd if it helps.

  • SAP Rules / Considerations behind ATP for Purchase Orders

    Hi
    Can anyone guide me to the considerations taken into account for ATP check for Purchase orders,
    Kind Regards
    Bhavana

    Hi,
    Please find the logic.
    ATP quantity
    Specifies the available quantity from each receipt that can still be used to cover further requirements.
    Use
    The ATP quantity is calculated as follows:
    Initially, the ATP quantity of a new receipt is the complete receipt quantity. During the availability check according to ATP logic, the system only takes into account receipts that lie before a requirement. A requirement first reduces the most recent receipt (and thus the ATP quantity of this receipt). If a rest quantity remains for this receipt, this quantity is the new ATP quantity for this receipt and it can be used to cover a further requirement.
    If one receipt does not completely cover the requirement, the system reduces further receipts and their ATP quantities until the requirement has been completely covered.
    If no further ATP quantity is available to cover a requirement or if a requirement can only be partially covered, then this shortage quantity is displayed in the requirements line as a negative ATP quantity.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c1/3764f4449a11d188fe0000e8322f96/content.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/227d1046e611d189470000e829fbbd/content.htm
    and the above links will provide you some idea.
    Regards

  • SBO_SP_TransactionNotification an ATP (Available To Promise)

    Dear all,
    I would like a sales order to block when the available to promise is less or equal to the row quantity requested, per warehouse. (where RDR1.Quantity <= OITW.Onhand-OITW.IsCommited).
    The below query returns a correct result (1 or 0) when executed in MSSQL 2005 but not in SAP B1 2007A PL 42. The vATP table is a view I created calculating ATP <OITW.Onhand-OITW.IsCommited> as I first thought that the calculation inside the procedure was the problem. You are welcome to link it back to OITW if possible.
    Note that the database is set to block negative stock and manager stock per WHS.
    Please somebody can tell me how stupid I am and show me the correct code?
    Kind regards,
    Frederic
    <IF @transaction_type IN ('A', 'U') AND @Object_type = '17'
    BEGIN
    IF EXISTS (SELECT T0.ItemCode FROM RDR1 T0
                   INNER JOIN vATP T1 ON T0.ItemCode = T1.ItemCode
                   AND T0.WhsCode = T1.WhsCode
                   AND CAST(T0.DocEntry AS NVARCHAR(255)) = @list_of_cols_val_tab_del
                   WHERE T0.Quantity > T1.ATP)
    BEGIN
    set @error = 85001
    set @error_message = 'There is not enough stock in the specified warehouse'
    END
    END>
    I used the query below to double check the result in MSSQL 2005 directly and make sure my result shows 1 or 0.
    <
    DECLARE @ERROR int
    SET @ERROR = 0
    IF EXISTS
    (SELECT T0.ItemCode FROM RDR1 T0     
         INNER JOIN vATP T1 ON T0.ItemCode = T1.ItemCode
         AND T0.WhsCode = T1.WhsCode
         AND CAST(T0.DocEntry AS NVARCHAR(255)) = 12
         WHERE T0.Quantity > T1.ATP)
    BEGIN SET @ERROR=1
    END
    SELECT @ERROR
    SELECT T0.ItemCode,T0.WhsCode, T0.Quantity, T1.ItemCode,T1.WhsCode, T1.ATP  FROM RDR1 T0
         INNER JOIN vATP T1 ON T0.ItemCode = T1.ItemCode
         AND T0.WhsCode = T1.WhsCode
         AND CAST(T0.DocEntry AS NVARCHAR(255)) = 12>

    Thanks for your time Suda,
    I created the same query yesterday without success, but I tried yours amnyway. Who knows with computers hey
    But no, it is still not solved. My available quantity is 10 in WHS 01. When crating the SO for 11, it gives me the error, when asking for 10, it gives me the error, and for 9 and 8. But for 3 or 2 units, it goes through.
    I created a work around yesterday as I had to deliver to the client, but the work around is extremely sensible to time of adding the Sales order (as I use a FS for calculating the ATP and use the ATP field in the same store procedure -> That's work)
    You see, the Store Procedure works 100% when comparing to a value (>5, or <=4 etc.) but not with a calculation within two field like Onhand-Commited!!!!
    So I still need that query to work and I would appreciate if you can continue your investigation.
    Kind regards,
    Frederic

  • Userexit to prevent negative stock in Sales order

    Hi
    Is there any userexit avilable to prevent negative stock in sales order.
    When i an creating a sales order, the schedule lines are getting confirmed without posting any stock. In availablity check when click on ATP quantity it shows negative stock.
    Despite having negative stock it is alllowing me to create sales order and create delivery but no PGI. It gets block at PGI. Now i want to know is there any Userexit through which i can prevent negative stock in sales order. Thats ig stock in negative , it should not allow to save the sales order.
    Any help will be really useful.
    Regards
    Jalaj Nakra

    Exit MV45AFZZ will be useful.

  • ATP check with including puchase order

    when we create SO with ATP check to reserve the qty of the currenct stock, we also want to know the future qty of purchase orders so that we can clearly know the supply and demand of these materials.
    so we use ATP check with including purchase order, that users can reserve the qty of open GR purchase orders.
    but when the status of that PO changed, the reserved qty before won't have effect, and can't create outbound delivery either.
    there are two examples below:
    1. there is one SO reserved 10 material qty of the open GR PO, which it's scheduled delivery date is 5/15. but this PO still hasn't  goods receipt until 5/17, cause ATP check rule is "Include future receipts only" ( if "Receipts in the past as well as in the future" is set, it will be confused with current stock qty), so these 10 qty won't have effect and the ATP qty is now a negative. we should only reserve again by t-code V_V2, otherwise all the reserved qty can't be deliveried.
    2.there is one SO reserved 10 material qty of the open GR PO, which it's scheduled delivery date is 5/15, but when the delivery date of confirms tab is updated by vendor, these reserved qty before will also be invalid.
    please tell me how to resolve these problems?

    Hi,
    If the business wants to confirm the sales order quantity against the incoming purchase orders, then this always happen. The issue can be resolved only by rescheduling the sales order by running V_V2 everyday.
    Alternatively you can suggest the business to exclude the purchase order from availabilty check(AC)  in t.code OVZ9 and include shipping notification in it. When the vendor sends some materials confirmation, the purchasing can add the shipping notificatoin details in the purchase order and can create Inbound deliveries for goods receipt. By this way, only when the vendor ships the goods, the quantity will be taken into AC.
    Regards,

  • Time bound ATP check

    Hi All,
    We have a requirement wherein we need to do ATP check for orders having a material availability date of say 4 days and shouldn't do the ATP check for orders having material availability date lying  after 4 days.
    Can we do time bound ATP check .Any inputs on how we can achieve this.
    Thank you
    Abhay.

    Hi Ron,
    That would not be possible in standard solution
    You can check if this could work for
    you: in ECC maintain Planned delivery time + In-house Production time  = Total Repl.lead time in P1 ( that is your P3->p1).
    In APO “maintain Check control” – Confirmation at Checking horizon
    CIF the master data, check if you have
    the checking horizon (TRLT) populated in APO Product master (ATP TAB).
    Maintain the Checking horizon calendar
    – create a calendar and assign it to your location master ( calendar tab and
    Shipping calendar) this will be automatically populated in the checking horizon
    calendar field in ATP Tab.
    Now when a sales order is entered, the
    order will be confirmed at the checking horizon.
    The negative side of it is that , all
    the sales orders will be confirmed at the checking horizon.
    Or
    You can develop a program where you
    can feed in the screen ( from – To)  P3 to P2 and P2 to P1 ( it
    will search in the T lane and give the output as P3 to p1 after adding ) and
    store this output in a Z Table , you need to modify the code to check this Z
    Table to read the transportation time. Need to check on the performance
    or will check if other experts has any other suggestions.

  • Partial delivery per item in sales order and ATP - schedule lines

    Hi,
    I've problem regarding ATP- schedule lines and partial delivery flag.
    In sales order there is flag Partial delivery per item B / 1 . That means create only one delivery even with quant 0. That comes from customer master or customer info-record and it is OK.
    Please look at next example.
    Customer requires:
    10 PCS of materail A on date X. Only 5 PCS are available on date X.
    10 PCS of material B on date X 0 PCS are available on date X, 10 PCS are available on date Y.
    So if we create outbound delivery on date X it will contain only 5 PCS of material  A. No successive deliveries will be created for material A because of the flag B/1. That item is closed.
    Problem is with material B.
    The sales order will be open because of material B and on date Y we can easily create another delivery with 10 PCS of mat B.
    That is wrong. Agreement with customer is only one delivery for ALL items in sales order. If we create delivery on date X it should contain only materials which are available on date X and sales order should close.
    Do you know how to fix this problem?

    Hi,
    I've think you didn't understand my requirement. I allways get schedule lines but they are confirmed on different dates.
    Example in same sales order we have:
    Schedule line for item A:
    DATE X confirmed quantity 10
    Schedule line for an item B.
    DATE X confirmed quanitity 0 (zeroe)
    DATE Y confirmed quantity 10.
    I would like to create outbond delivery on date X with:
    item A quantity 10
    item B quantity 0.
    And if that hapens than B/0 rule will work or reference customzing that you suggested before. So order will be closed because all items are processed or referenced once.
    Do you know how to do that?
    Regards

  • How can I deal with negative marking in a quiz marking scheme?

    I wonder if anyone can help me with a problem I have in developing the 'code' for a marking scheme for an exam in Captivate 8. I would be very grateful for pointers towards a viable solution. At the moment I am just thrashing around.
    My background is in C++ and I think part of my problem is in trying to find analogues of functions I would use in that environment. My experience with Captivate is limited to developing fairly simple training courses but now I need to put an existing exam on line, maintaining its relatively complicated marking scheme, which is as follows:
    The paper is multiple choice, each question having four statements, one (or at the most two) of which is true. A completely correct answer gets 4 marks so where there are two correct statements each gets 2 marks. So far, so easy.
    The difficulty arises from an element of negative marking. If 3 or more statements are selected, the score is 0 marks. If there is a single correct statement and it and an incorrect statement are selected, the score is 2 marks. If there are 2 correct statements and one of them is selected, the score is 2 marks. If an incorrect statement is selected as well, the score is 1 mark.
    I had assumed I could use conditional logic and user variables on a slide-by-slide basis to provide a score value and then assign it to the appropriate system quiz variable, but it seems I can't assign values to variables in a quiz slide. That would have been too easy...
    So, can anybody advise me on an approach that keeps the advantages of using the quiz framework, including the use of the Review function?
    Any help very gratefully received.

    If you use SCORM 1.2 for reporting, negative scores will be converted to zero, because it doesn't allow negative score.
    If you want to keep to Review functionality, you need to stay with the default question slides. There are some tweaking possibilities but changing the score is not one of them.
    Question Question Slides in Captivate - Captivate blog
    Question Question Slides - Part 2 - Captivate blog
    I think the only possible way is to use JS, but then you'll not be able to keep the functionality of the Question slides, you are in custom question slides. Plenty of examples of custom questions can be found on my blog as well.

  • Move negative sign (minus) to left side of value in gui_download

    Hi,
    While downloading data using gui_download I want to bring the negative sign to the left side of the value. Is this possible?
    Regrads,
    Madhu

    Hi,
    Use FM
    CALL FUNCTION  'CLOI_PUT_SIGN_IN_FRONT'
    Regards.
    Eshwar.

  • GRC: Negative ack; PI: End tag 'enviNFe' does not match the start tag 'NFe'

    Bom dia SAP Boosters!
    Como muita gente estou aqui brigando com o GRC NFe. Esse forum tem resolvido meus problemas, até agora. Por isso inicio um novo tópico pois estou tendo o seguite problema que nao encontrei resposta:
    O grc e o pi estao em servidores separados. Do lado do grc, na sxmb_moni mostra para a interface BATCH_nfeRecepcaoLote_OB erro no acknowledgement status. abrindo o item error do ack msg id aparece:
    <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">NEGATIVE_ACKNOWLEDGEMENT</SAP:Code>
      <SAP:P1></SAP:P1>
      <SAP:P2></SAP:P2>
      <SAP:P3></SAP:P3>
      <SAP:P4></SAP:P4>
      <SAP:AdditionalText></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
      <SAP:Stack>Negative acknowledgment triggered by a process</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    No lado do PI, ao consultar esta interface e abrir o payload do item Request Message Mapping, aparece a mensagem de erro: End tag 'n0:enviNFe' does not match the start tag 'NFe'. e todo o xml fica em uma linha só.
    Voltei entao no xml do sender e de fato encontrei a tag NFe, onde deveria constar os dados das notas fiscais, sendo aberta mas nao sendo fechada, e sem dados, desse jeito.
    <?xml version="1.0" encoding="utf-8" ?>
    - <n0:nfeRecepcaoLote2 xmlns:n0="http://sap.com/xi/NFE/006">
      <n0:cUF>35</n0:cUF>
      <n0:tpEmis>1</n0:tpEmis>
      <n0:tpAmb>2</n0:tpAmb>
    - <n0:nfeDadosMsg>
    - <n0:enviNFe versao="2.00" xmlns:n0="http://www.portalfiscal.inf.br/nfe">
      <n0:idLote>000000000000025</n0:idLote>
      <n0:NFe asx:root="" xmlns:asx="http://www.sap.com/abapxml"></n0:NFe>
      </n0:enviNFe>
      </n0:nfeDadosMsg>
      </n0:nfeRecepcaoLote2>
    Alguém já viu esse bug? estou com grc 10 e SP 08 e das notas que sairam depois nenhuma fala disso.
    Obrigado.

    Fiz um teste que parou de dar erro de acknowledgement e chegou a enviar o lote para a sefaz, que retornou erro de schema porque o xml continua vazio:
    Na interface determination gerada quando criei o cenário NFE_BATCH_WebAS_Outbound_Batch, a que contém a interface BATCH_nfeRecepcaoLote_OB, tirei o operation mapping BATCH_nfeRecepcaoLote2_TO_nfeRecepcaoLote2. Embora não seja mais retornada a mensagem de erro na tag, o payload continua no mesmo formato postado acima. Entao coloquei de volta.
    Bem, pesquisando vi que a função que gera o xml é a  /XNFE/006_SIGN_NFE_OUT. As notas aparecem como assinadas no monitor do grc, mas vou ter que ver entao como esta ocorrendo a geraçao do xml por esta funçao, certo?

  • How to find Negative number

    can any one pls tell me how to find negative number ?
    Thanks

    1. One easy method is to look for the giveaway dash in front of the number, e.g. "-1" is a negative number, given the "-" instead of the "1."
    2. Negative numbers can also sneakily be found by multiplying i by itself: i^2^ is a negative number.
    3. Negative numbers can hide in the exponent of e as complex numbers. e.g. e^i*pi^ is a negative number.
    4. If we're referring to Java here, perhaps the following could be of some use:
    final int ZERO = 0;
    public static void main(String[] args) {
    int a = 3;
    int b = -13;
    System.out.println(a + " is negative? " + lessThanZero(a));
    System.out.println(b + " is negative? " + lessThanZero(b));
    boolean lessThanZero(int n) {
    return n < 0;
    }

  • ML81N Negative Quantity Posting for Credit or Difference Adjustments.

    ECC 5.0 - DIMP
    This is a VERY, VERY common situation at nearly all companies where a credit or small difference may occur between the invoice amount and the SES.  Reversing / canceling and reentering documents, along with all of the additional accounting documents created is not an appropriate option.
    =========================
    I have a situation with Service Entry Sheets where a vendor delivers services for a PO line item.  There can be MANY service entries, and MANY invoices for a single PO Line item.
    Invoices are posted against the open GR SES amount on the PO Line Item and not specifically to the service entry sheet.  As a result there may be more than one invoice tied to a single service entry sheet.  The reversal option would requie
    When credits come in, or when vendor discounts are taken the SES amount does not match but there is a need to ensure that the SES amount matches the vendor credit amount (whether credit memo or discounts taken). 
    NUMEROUS SAP OSS Notes say that Negative Service Entry Sheet Amounts are possible, and in the first step I even get an SE042 warning message about the negative quantity.  However, when I press ENTER to go past the warning I then get messgae SE396 as a hard error and the dialog box for the error has JUST an exit button causing the entire transaction to exit the process.
    Has anyone ever worked successfully with negative service entry sheet quantities?
    If so, what were your lessons learned?
    Here are some of the notes I have reviewed, and the ability to do the negative SES quantity goes back to 4.6:
    365648
    375799
    411262
    455707
    1068156
    1166693

    Hi Bill,
    If you try to save an SES with ONLY a negative quantity you will receive               
    the following error Value of specs. less than zero (function cannot be                 
    performed) Message no. SE396.
    You can enter negative VALUES based on the               
    following rules:                                                                               
    The service specifications contain lines with negative values.                         
    Service lines with negative values are only allowed if the following                   
    conditions are fulfilled:                                                                               
    The total value of the specifications is positive.                                     
    The total value of each account assignment is positive.                                                                               
    Please see other notes attached.                                                       
    354903 Postings: Invoices for services                                                 
    499575    FAQ: Invoice verification/goods receipt in service                           
    1174830 FAQ: Invoice cancellation for services       
    Regards,
    Edit

Maybe you are looking for

  • Can't change view in iTunes

    When I open iTunes and go to my music on my iPhone 4, I can only view it in a list. The 4 buttons on top right do not work. They will not let me change the view. Also, I click on view in the the left corner and none of the options are available. Can

  • Unable to connect Appstore through Proxy in Mavericks 10.9.1

    I am working in a network with proxy. With Mountain Lion my Appstore was connecting fine. But since I have upgraded to Mavericks(10.9.1) I am unable to connect Appstore. It asks me Proxy user name and password but no connection after that. In the net

  • Synchronizing Analog Output to Counter Input

    Hi! I'm really new to LabView. Pls help! I'm trying to obtain a set of stimulus signal and response signal from my motor for system identification. The stimulus signal will be generated by the Ao0 channel and response signal (quad encoder linear posi

  • Update long text in notification

    Hi experts, I try to update (add next entry) to the long text in notification header. I tried with BAPI 'BAPI_ALM_NOTIF_DATA_ADD' to fill table NOTFULLTXT, but it seems that it can only add an entry and not append another one (one entry already exist

  • Commercial & Excise invoice no Should be same.

    Hi, i want that my commercial invoice & Excise invoice no should be same. How to achieve this? any negative effects of this? Regards, Amol