ATP Issue in Sales Order change

Hi Experts,
I have implemented ATP exit "EXIT_SAPLATPC_002" for Sales Order. Every thing is fine and working as per my logic. There are two tables from the exit and they are T_ATPCSX and T_MDVEX. This is coming into the exit with some values. Based on my logic I have to search for a batch and if it successful then I will update tables T_ATPCSX and T_MDVEX. Everything is working fine till I found an error in standard SAP. In change Sales Order (Va02) when I select a line item and clicks on ATP button then it is not performing as per my logic even after updating the tables and when I change date for any item and then press enter then it is working as per my logic. In both the cases the same ATP logic is running but still I am unable to understand why system is behaving weird based on the activity I do in Sales Order.
The problem is with the ATP button in sales order. There might be a problem even in Sales Order creation also.
Please help me. ?????

Kindly check might be for that material , you have already created Delivery (without PGI ).
Also go to MMBE with that material & check where this quantity is lying there.
Best Regards,
Ankur

Similar Messages

  • Issue with Sale Order Change

    Hi All,
    This is regarding the Sale Order Change where I am updating the reference document field.
    In WE19,( taken one successful IDOC )When I am using the Standard Inbound  ( IDOC_INPUT_ORDCHG) ,IDOC is failed and getting message as "There is no article description for Item".
    But if I use Inbound Function Module ( IDOC_INPUT_ORDCHG) in Foreground  mode,IDOC is successfully created.
    Please let me know the cause for this issue.
    Regards
    B.Dheepa

    Check note 161744 helps you.
    thanks
    G. Lakshmipathi

  • ATP issue in Sales Order

    Hi
    I am facing problem in Sales Order
    I have created a Sales Order for four different material.
    Line item 10 XYZ with 6 quantity , but for this material ATP is not working. When i am clicking on ATP icon, in schedule lines tab, Order qty is coming 6, rounded qty is coming 6, but confirmed qty is coming 0.
    Why qty is not getting confirmed.
    What are the reasons on this issue ?
    vicky

    Kindly check might be for that material , you have already created Delivery (without PGI ).
    Also go to MMBE with that material & check where this quantity is lying there.
    Best Regards,
    Ankur

  • SAP Mobile Sales 2.0 delta load issue for Sales Orders

    Hello,
    we have used Mobile Sales 2.0 with a Windows app for a while now. Our current issue is that sales reps won't see any historical sales order data on their devices.
    Background
    Due customer requirements, we need to make small changes to customer master data attributes and reload all customers from ERP to CRM. Then we ran delta loads (MAS_PARTNER followed by all other objects) to DOE, in which virtually all 5000+ customer accounts were compared. The delta load ran for about 3 days (some performance bottleneck we haven't located yet).
    During the delta load, data on devices was inconsistent. Accounts were missing and all transaction data disappeared. After the delta loads, all accounts and contacts are OK, save for a few. Data from activities (appointments, tasks) have reappeared, as they should. Only sales orders won't reappear. The sales orders exist in the backend and belong to active accounts and sales reps.
    Settings and troubleshooting so far
    We don't have any limitations for sales orders in CRM Sales Mobile configuration.
    We've run delta loads for all objects in transaction SDOE_LOAD.
    MAS_CUSTOMIZATION etc seem fine.
    We've re-run initial load for sales orders from CRM.
    In the test system, we've even reinitialized the whole CDS database on DOE and on the devices, then re-ran the loads.
    Checked steps suggested in discussion
    SAP CRM 2.0 initial load issue
    Historical sales orders (those created before the master data reload) exist in the backend, but don't show up on the device.
    If I change one of those historical sales orders in the backend, it gets sent to the device.
    If I create a new sales order in the backend or on the device, it is saved and replicated just fine.
    To sum it up, it seems DOE is unable to identify the sales orders relevant for replication.

    First Doubt i got clarify by my self as we can go with Unwired Runtime option .
    But i still have doubt in :
    2. How can i Modifying the Main Menu for iOS.
    i am able to customize the same for windows using files SybaseCRM.Configuration.xml file.
    Same how can i do for iphone/ipad.

  • Calling a Sales Order Change BAPI in a Sales Order Exit

    Functional Requirement:
    While creating a Sales Order with Reference to another Sales Order, on saving the new sales order, change something in the referenced sales order.
    I am trying to achieve the same by doing the following:
    In the standard SAP user exit called during saving the new sales order USEREXIT_SAVE_DOCUMENT I am calling the BAPI BAPI_SALESORDER_CHANGE on the referenced Sales Order.
    However the BAPI is unable to change the other sales order giving an error Enter the document number. I am specifying the Document Number while calling the BAPI, so I know that is not the error.
    I just wish to know whether it is technically possible to call a BAPI to update another Sales Order while we are currently saving one Sales Order.

    Hi Girish,
    If it works correctly when run seperately and you are sure the data passed into the BAPI is exactly the same then it may be something like table locks or similar causing your original problems...
    What about packaging up your working Z program into a custom function module and calling that from within USEREXIT_SAVE_DOCUMENT as a seperate task (IN NEW TASK) and building in a slight delay of say 5 seconds at the start of your code?
    I'll be honest, this isn't an ideal solution but might be sufficient to resolve your issues.  I'd be inclined to see if you could just run your Z program as a background process every 5 minutes or so to capture any changes and perform updates but if this is a no no from your functional people I'm not sure what else to suggest sorry.  I've never personally had to update a document from within the save routine of another document so can't give any advice based on my own experiences sorry.
    Gareth.

  • How to block material issuing after sales order invoiced?

    As the subject mentioned,  could be a possible to block material issuing since sales order invoiced, or
    in the another words, after the sales order completed?
    Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
    forbidden?
    Thanks in advanced,
    Zhou Zhen

    Dear Friend
    A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
    That means the order 10000 is closed
    Case 1
    Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
    This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
    Case2
    But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
    Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
    But you can test it if it throws any warning message we can try to convert that error
    But in case 2 it is not happening(even warning is not there)
    Regards
    Raja

  • Goods issue without sales order

    Hello experts,
                       1)  Goods issue without sales order (movt type 251) in T.code "MB1A"*
                               Accounting entry:- Change in stock of Fin. Goods A/c    Dr.
                                                                          To Stock of Fin. Goods A/c
                       2) Customer Invoice through T.code "FB70"
                             Accounting entry:-     Customer A/c   Dr.
                                                                 To Sales of Fin. Goods A/c.
    We are temporarily not implementing SD module, i am entering Sales transaction data. Are the above two accounting entries correct in respect to "Goods Issue" and "Customer Invoice" ?
    Regards
    Ashwin

    Thanks a lot, but if you could please tell me what impact will on the balance sheet? will the stock be reduced after goods issue
    For eg;
             Change in stock of F.G A/c Dr.    200
                           To Stock of F.G A/c               200
             Customer A/c Dr.     200
                     To Sales of F.G       200.
    Is this correct? and i have assigned cost center to "Change in stock of Fin. Goods.
    Ashwin

  • Billing Block removal not updated in the sales order change log

    Hi Gurus,
    A specific Billing Block is automatically assigned to the sales document header (VBAK-FAKSK) when the net value of the sales order is negative. This is an order related billing.
    Sometimes the Billing block is getting released automatically and the Negative Invoice is getting created in the Background job run for creating the invoices. When we check the sales order, the Billing block is not existing and the removal of the billing block is not recorded in the Change Log of the sales order.In the CDHDR table also there are no details about the release of the billing block.
    This is happening only occassionally. When I tried to replicate the issue, the system is not allowing me to create the invoice as long as the billing block is there in the sales order and if I remove the block, it is recorded in the sales order change log.
    My doubt is.,
    1. How the billing block is getting released automatically?
    2. Even if the block is released,  why it is not recorded in the Change Log of the sales order?
    Looking forward your for suggestions and solutions.
    Thanks,
    Ravi

    Hi
    Did u check in sales doc. details screen.There u can block for billing.

  • Updating a child of a BOM material using bapi sales order change

    Hi, Appreciate your thoughts on the following issue..
    We have a batch program which uses a bapi sales order change and updates the plant at the line items of the sales order. when this plant is assigned.. if any of the line item is a BOM item, it explodes and the data from the parent ( like payment terms, fixed val date ) should get copied to the child items same as the parent. This is happening fine if manual mode using va01 and va02 but when plant is updated using bapi the childs are not getting the data from the parent ( which comes through config )...
    Appreciate your inputs and any additional information to be passed to the bapi for the BOM materials to get the same config data as parent to the child when exploded...
    Thanks and will reward helpful answers..

    Hi, Appreciate your thoughts on the following issue..
    We have a batch program which uses a bapi sales order change and updates the plant at the line items of the sales order. when this plant is assigned.. if any of the line item is a BOM item, it explodes and the data from the parent ( like payment terms, fixed val date ) should get copied to the child items same as the parent. This is happening fine if manual mode using va01 and va02 but when plant is updated using bapi the childs are not getting the data from the parent ( which comes through config )...
    Appreciate your inputs and any additional information to be passed to the bapi for the BOM materials to get the same config data as parent to the child when exploded...
    Thanks and will reward helpful answers..

  • Status Profile - Sales Order Change

    Hi,
    I have a issue regarding Status Profile in Sales Order.
    I have a sales order with two status - 
    Awaiting Approval ( Initial at the time of creation of Sales Order )
    Approved ( Approval by HOD after creation )
    No changes has to be done in Sales Order once approved, if any changes to be done then, needs resetting of the status to initial.
    How to control the same.
    I have checked the transactional control in user status but change sales order control is not there.
    Can be controlled through user exit then how can it be be done.... User Exit name and brief logic of possible.
    Regards
    SD Consultant.

    Hi
    You can use MV45AFZZ include to find appropriate User exit for your requirement with the help of your ABAPer.
    USEREXIT_SAVE_DOCUMENT would be suitable to you.
    User status are maintained at JEST table, so you can write code to activate status 1 and deactivate status 2 if sales order changed.

  • Report for Sales Order Change History   CDPOS and CDHDR

    How to take a report of the data for the Sales Order Change history for a particular period of time. It is required to take a report of all the Sales Orders for which the basic price has been changed. Please let me know the procedure. I could not get the data from the table CDPOS and CDHDR
    Helpful answer would be rewarded.
    Regards
    Praveen

    Dear Praveen Kumar
    Have you tried with VBAP where sale order details at item level would be stored.
    Moreover, to my knowledge, there won't be any changes as for as pricing is concerned at sale order level but there is at billing level.  Normally, any price increase / decrease would reflect in billing.  So why dont you to table join through SQVI VBAP (for sale order details) and VBRP (for billing details) so that you can compare the selling price in sale order with billing. 
    Thanks
    G. Lakshmipathi

  • Interesting and an  imporatant issue at sales order schedule line.

    hi all,
    interesting and an  imporatant issue at sales order schedule line.
    i created a sales order with 10 qty.and the system proposed a two schedule lines.
    let's say to order created date is 27.11.2008.and the requested delivery date is 27.11.2008.
    but the stock is not available today then the system proposed two more schedule lines apart from the 27.11.2008.so now there are three schedule lines like below.
    schedule line date                      Material availabilyt date   delivery date                   
    27.10.2008 with zero quantity.     
    28.10.2008 with 5 qty.                28.10.2008                     29.10.2008
    02.10.2008 with 5 qty.                02.10.2008                     03.10.2008
    now the delivery and pgi already for the schedule line 28.10.2008.
    then when i run the availability check on 01.11.2008 system is over writing the material vailability date as today at the scheduleline number two.
    now i can able to view only two schedule lines only.
    schedule line date                      Material availabilyt date   delivery date                   
    28.10.2008 with 5 qty.                01.11.2008                     29.10.2008
    02.10.2008 with 5 qty.                01.11.2008                     02.11.2008
    now my concern when we reschedule the avalability check it should notchange the Material availability date of the schedule line which i already delivered.
    Regards,
    sheshukumar

    can any one repsond for this.....

  • Sale Order changes View

    Dear Guru's
    Is there any T-Code for verifying Sale Order changes (Step wise), as in my company Invoices are generated with lot of changes which not matching with Sale Order conditions. So I would like to moniter the Sale Order conditions changes. Kindly help me out.
    Thanks in advance

    Hi
    Sales order changes can be seen in the report only if the changes are made by any user(userid). If your problem is with changes in pricing conditons...then before comparing the sales orders and invoices, I advise you to check the copy controls and the price type used in the copy controls. If the price type selected is to redetermine the pricing, then you should check the validity of the conditon records. Sometimes, the conditon records may be different during sales order creation and invoice creation.
    Thanks,
    Ravi

  • Sale Order change BAPI - Storage loc not updated

    Hi Everybody,
    Iam using "BAPI_SALESORDER_CHANGE", to change the sale order items.
    First iam calling above bapi with switch B, for new pricing & then second time for material change.
    When i change any material number, it is getting updated correctly.
    But the storage location, even though iam passing in the bapi it is not updated, & is blank - updation flag is also passed.
    When i execute sale order change again it is updated - ie, for any material change for first bapi call, storage loc is not updated - for 2nd bapi call storage loc is updation - for same input in both the cases.
    Is there any way to update the storage loc is first call of sales order change bapi.
    Below is the parameters iam passing in bapi :
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT      = LS_SALESDOCUMENT
          ORDER_HEADER_IN    = LT_HEADER_IN
          ORDER_HEADER_INX   = LT_HEADER_X
        TABLES
          RETURN                            = LT_RETURN
          ORDER_ITEM_IN               = LT_ITEMS
          ORDER_ITEM_INX             = LT_ITEM_X
          ORDER_CFGS_REF          = LT_CFGS_REF
          ORDER_CFGS_INST         =  LT_PARTS
          ORDER_CFGS_VALUE     = LT_VALUES
          ORDER_CFGS_BLOB        = LT_CUBLOB
          ORDER_CFGS_VK            = LT_CUVK
          ORDER_CFGS_REFINST   = LT_CUREF
          SCHEDULE_LINES            = LT_SCHEDULE_L
          SCHEDULE_LINESX         = LT_SCHEDULE_X
          ORDER_TEXT                   = LT_TEXT
          CONDITIONS_IN                = LT_CONDITION_L
          CONDITIONS_INX              = LT_CONDITION_X.
    Any help is appreciated.
    Regards,
    Nagarajan.J

    Hi,
    Storage location is updated only when same sale order bapi is called another time with required details.
    rgs,
    Nagarajan J

  • Issue with sales order stock that is referencing a non-existing sales order

    We have an issue with sale order stock.
    Due to user error we have ended up with a negative quant of sales order stock in a bin. Further the error was due to mis-keying of sales order number. Hence this negative quant is referencing a sales order that does not exist.
    We need to get rid of this quant.
    I thought of cycling this quant off as a solution. And hence replicated the scenario in the test system. I was able to create a TO to cycle it off but cannot clear the differences from 999 . The error I get while trying to do this is "SD document not in database or has been archived" . This error is true since the sales order actually does not exist. So cycling it off did not work.
    Can anyone suggest how we can get rid of this negative quant of sales order stock ?
    Thanks

    Hi,
    You said that your user mistyped the SO number and it resulted in a -quant. In which transaction was it possible? If I give a non existing no. SAP doesn't allow me to book.
    If I were you I would check both in WM & IM what the user had done...step-by-step...
    Negative quant comes to existance in interim storage type if we book e.g. a GI. It should have started in IM...how was your user be able to do that??? If it was possible cannot you reverse the IM booking?
    (...if all else fails...cannot you create a SO document with external number assignment with the same number?...)
    BR
    Csaba
    Edited by: Csaba Szommer on Jun 24, 2008 8:31 PM

Maybe you are looking for

  • Can't send iCloud mail from Outlook 2011

    I have recently installed Office 2011 for Mac on my Macbook Pro and I want to set up my iCloud mail on it.  I can receive mail just fine but I can't send mail at all.  I keep getting error code 17092 saying that the SMTP server doesn't recognize any

  • Mac Pro will not sleep

    As requested, this is a new post from the "my mac will not wake up" thread. I am having trouble putting my Mac to sleep. When I try to enter sleep mode, the fans make noise like it wants to restart, then the monitors go out and immediately back on. I

  • Import purchase - problem with delivery costs

    Hi guys, In case of import purchase, we are normally giving 3 to 4 types of delivery costs (like freight,agency charges etc).  If there is no transaction done against the PO, we are able to either change or add new delivery cost to the Purchase Order

  • Time Machine is stuck on "Preparing Backup"

    My Backups have not worked for about a month.....and have been in a perpetual "preparing" state. I have Imac with OS version is 10.7.5, Build is 11G63 Have got this from console logs if it help shine any light on the nature of my issues, and how to f

  • Anyconnect IKEV2 restricting access via AAA auth Group

    Hi Everyone, I have ASA config with 2 connection groups Say Group  1 and 2. Currently both are assigned to Same Auth AAA group One of our external vendor has access to both XM files of connection group 1 and 2.. If i want Vendor should connect only t