ATP user exits EXIT_SAPLATPC_002

We are using user exit EXIT_SAPLATPC_002 to modify ATP after determination by the system. However, when a material is listed multiple times on purchase order/STO, when reaching this user exit all the line items related to this material appear in the table T_ATPCSX.
When there are multiple materials (and no duplication of materials in the line items) this problem does not exist, as the user exit is run for each material individually and the table T_ATPCSX appears only for the given material.
The problem lies in modifying the availability/committed quantity via table T_MDVEX. There is no way to determine which line in T_MDVEX is for whichline in the STO/purchase order when there are multiple lines containing the same material - T_MDVEX contains no identifying information besides perhaps quantity and date - and that should not be the information you match up table T_ATPCSX with table T_MDVEX for, as it's pretty unreliable when you could have duplicate lines with the
same quantities and dates.
Does anybody have a solution for matching the data in T_ATPCSX with the data in table T_MDVEX for the purposes of modifying the committed quantities?  Help is much appreciated as I'm tearing my hair out over this one.
Thanks!
Abby

I have checked this in debugging - was hoping for the same thing you did, or perhaps field XLINE in T_MDVEX. T_ATPCSX-XLINE does match up with T_MDVEX-BDCNT, but I don't believe this is a definitive match. 
The reason I believe this is that if you enter a second line of the same material into the STO, you will get the first line of the material twice in the table T_ATPCSX - once for ATPing the current qty on the first line, the third to un-ATP the old qty on the first line (even if they are the same amounts).  The second line would be the second line item in the STO.
The XLINE in T_ATPCSX is 1, 2, 3 correspondingly - even though there's only two lines in T_MDVEX to match up with.
Potentially we COULD do this where we only look at the ATP lines with values > 0, as these all appear to be the first lines in the table, and the un-ATP lines come last, but I'm not sure this is guaranteed (and it sounds kind of sketchy).  
Any thoughts anybody?

Similar Messages

  • Change Confirmed Qty in Sales Order User exit/ATP User exit

    HI
    We have a requirement to change the ATP Qty for certain meterials & Order Types  duing sales Order User exit(FORM USEREXIT_MOVE_FIELD_TO_VBEP.? ) or ATP User exit.( ATP...OUT?).
    Is this ok to update the XVBEP in FORM USEREXIT_MOVE_FIELD_TO_VBEP of MV45AFZZ ?
    Our requirement will be like this, for one order type ZSAL( and for certain Materials)  we need to reserve 4 qty, if any order comes with 10 qty and the confimed qty is only 6( total available stock at present) , then we should only confirm  2 qty for the other order type( For Non ZSAL Order Type), and reserve the 4 QTY for ZSAL Order Type.
    If there are multiple schedule lines for an Item, we need to reduce the qty equally( as possible) from all schdule lines.
    i.e. date1 qty 4
         date2 qty 6,
    in  this case we should confirm  Date1 QTY 2, date2 qty 4, so that the remaining 4 will be reserved for ZSAL Order type.
    Whats the Best way to achieve this ?
    Edited by: agrud agrud on Sep 8, 2011 4:01 AM

    Hi Agrud,
    Did you check the possibilities with configuration.If it is not possible with configuration then you can use that exit.Before i used this but only to display not to change any thing.
    Regards,
    Madhu.

  • ATP User Exit

    Dear Experts
    I have a small requirement where in, when a sales order is created the customer requested date has to be moved into the lead time and ATP has to be performed based on the new date.
    So can some one please point me to some user exit that does so.
    Eg: customer requested for may 2010, but since I have inventory available every month I may be happy to send the customer as soon as I get the inventory, the customer may accept goods from 6 months prior to the requested date.
    So I have to send ATP to schedule 6 months prior to the customer req. date. And then create the schedule line as per that.
    So, Dec 2009 I can send some, Jan 2010 I can send some, and if there is no available inventory later to that, create a schedule line for may 2010 for the rest of the quantity.
    Thanks for your help.
    -Amit

    Hi Agrud,
    Did you check the possibilities with configuration.If it is not possible with configuration then you can use that exit.Before i used this but only to display not to change any thing.
    Regards,
    Madhu.

  • Regarding User Exit EXIT_SAPLATPC_002

    Hi Experts,
    Presently i am using EXIT_SAPLATPC_002 to pass some of the fields from ECC to ADEXA(third party) system and get response from adexa(like Confirmed quantity, Confirmed Delivery date etc) while creating or changing the sales order.I am successfully recieving the information.
    Now these fields has to be updated to the salesorder. I am using structure T_MDVEX  to update them. but no use.
    can anybody suggest me how to update this information. OR elase is there any another way.
    Thanks & Regards,
    Hari krishna

    You'll have to debug the calling environment for this enhancement (in function module AVAILABILITY_CHECK_CONTROLLER) to see what happens after you changed that internal table. There are several IF statements in the code that will determine whether your change will be taken into account or discarded, probably depending on some configuration.
    If the table changes are ignored, figure out if it's due to some configuration and if you can change that. Or if that's not possible, you may be able to use the available enhancement points in the FM to achieve what you need.

  • User exit or Badi for changing the lead time in ATP check in VA01/VA02

    Hi All,
    Currently, SAP standard functionality takes up the lead times maintained in material master to create the schedule lines in the sales order in VA01. I am looking for some user exiit/Badi/Enhancement point where I can change the lead time. This is somewhat urgent so any help in this regard is appreciated.
    Regards,
    Sandeep
    Edited by: Sandeep Gaitonde on Sep 1, 2011 9:16 PM

    Hi Sandeep,
    These are the user exits will trigger in va01 .
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    Please check this and post .
    Regards,
    Madhu.

  • Rule based ATP Check - User Exit to modify the item

    Hi all,
    We are working with standard rule based ATP check to change the plant in the Sales Order item.
    That creates a new subitem with the new plant determination, and changes the Item Category of the original item.
    My doubt is: Is there any User Exit in this process to do the system change something else in the Sales Order items?
    << Moderator message - Please do not offer points >>
    Thanks!!
    Edited by: Rob Burbank on Oct 8, 2010 2:20 PM

    Hi Roger,
    Please clarify more what do want to change exactly example any Z field to be copied from main item to sub item.
    You can use exit USEREXIT_MOVE_FIELD_TO_VBAP ,  USEREXIT_MOVE_FIELD_TO_VBAK 
    Thanks,
    Pavan Verma

  • User exit in ATP Check for sales Order to trigger notification

    Hi All
    please let me  know is there any user exit after ATP check or in ATP check for sales order to trigger a notication mail.
    Regards
    Kishore

    Hi,
    User Exits For Availability Check are given below:-
    The user exits named here are planned for projects that are to be carried out in agreement with SAP development as they may only be used in consultation with SAP.
    USEREXIT_PLANT_SELECTION in program RV03VFZZ is an exception to this rule (see below).
    User exits in program FV45VFZZ
    USEREXIT_ADD_FIELD_TO_HEADER
    USEREXIT_ADD_FIELD_TO_LINE
    User exits in program FV45VFZY
    USEREXIT_DELIVERY_GROUPS
    USEREXIT_MVERF_INIT
    USEREXIT_QUOTA_KEY_VALUE
    User exits in program RV03VFZZ
    USEREXIT_AVAILABILITY_IN
    USEREXIT_AVAILABILITY_OUT
    USEREXIT_DARA_REFRESH
    USEREXIT_PLANT_SELECTION
    This user exit is used to adjust the flow during plant transfer. A list of permitted plants, where this material is created, is determined and checked in the standard R/3 delivery. A dialog box appears where you can select the plants. The user exits allow you to modify the plant table so that plant selection takes place in advance for every flagged selection and a dialog box becomes unnecessary.
    regards
    Vivek.

  • User Exit ATP check availibility of current material Checking Group

    Hello All,
    Would someone please tell me the best place to put (user-exit?) a modification on sales order create / modify so that the ATP check availibility will check the current Checking Groups in the Material Master?    The problem is that there are many existing orders that need to be rechecked but the sales line material is still using the previous Checking Group of the material and not what currently exist in the materail master.  Thanks.

    Hi,
    In sap material availability date is determine by 4factors.
    Transportation planning time + Pick Pack time + Loading Time + Transit time.
    Now you want to add your 4day in the material availability date as per my understanding.
    So what you can do is put 4days in the pick pack time.
    So when ever your create the sales order it will add 4 days in your material availability date.
    Pick pack time you will find out in the shipping point and the path is
    IMG u2013 Enterprise Structure u2013 Definition u2013 Logistics Executive u2013 Define, copy, delete, check shipping point.
    In that select your shipping point and in that you can find out pick pack time.
    So just maintain 4 days over there and check the setting in the Sales order.
    Regards
    Raj.

  • Programmatic call to ATP in user-exit

    Hi All,
    Is there any function module/BAPI for ATP(Available-to-Promise check) to be called programmatically from a user-exit for an input date value when changing schedule line date in sales order user-exit programmatically
    thanks

    Hello,
    I did try hereafter statement :
                  Perform FCODE_BVFP. " ATP global
    And it seems to work fine.
    You can use MV45AFZZ / userexit_save_document_prepare.
    Rgds
    Gilles
    Edited by: Gilles JUNG on Mar 1, 2012 10:51 AM

  • User Exit for Changing ATP Checking group

    Hi All
    I am new to this area. I have a requirement to change the ATP Checking Group  and ATP: Product availability check to new value.I was looking out if theres any specific user exit for this .Any pointers would be highly appreciated.
    Thanks
    Amruta

    Hello, still I do not have clearcut idea of business process for changing ATP group?
    However i have understood that u want to influence selection of ATP group in the process.
    In case u want to retain it for longer period, then u may use EXIt in cif which is called during transfer of Product master. With this u can have predefined value of ATP group as per your requirement.
    Else you may change the ATP group  in R/3 prior to ATP calls to APO.  U may use exit "EXIT_SAPLATPC_001" in program  " AVAILABILITY_CHECK_CONTROLLER". I am not sure which all prameters u can change in this exit
    Please test in detial before finalizing the design
    Regards
    Mangesh A. Kulkarni

  • User exits relavant to ATP

    Hi experts...
    Request please provide the usage of the userexits:
    ATP00001     User Exits in the Availability Check
    SAPLVBXD-Customer Exits for Characteristic-Based ATP                
    SDQUX003-User-Exit : SD Product allocation, extended checks (ATP)   
    SDTRM001-Reschedule schedule lines without a new ATP check          
    W61V0001-User exit for BAPI ATP information                         
    warm regards
    sairam akundi

    Hi Sairam,
    I do not see any of these user exits in 4.6C!!! Are they not available in this version OR am  I looking up wrong..I am trying to find these programs using SE38...is there a different way to look them up?
    Thanks
    Mansd

  • User exit/ badi needed for planned order create/change,collective ATP check

    Dear All,
    I'm looking for a user exit/ badi which can be used for planned orders at the stage of
    mass collective availability check (COMAC tcode) update; or at some other relevant stages of mass update of planned orders.
    I need after collective availability check to perform the following:
    1) to copy date from "total comitment" field on header tab of planned order and paste it (replace old date) to order finish date on header screen
    then
    2) to start a scheduling.
    Very appreciate your help.
    Best Regards,
    Andrey
    Edited by: Andrey Kruglov on Apr 15, 2010 3:06 PM
    Edited by: Andrey Kruglov on Apr 15, 2010 3:07 PM

    Dear,
    Use the BAPI : BAPI_PLANNEDORDER_CHANGE
    Or use the function module MD_SET_ACTION_PLAF for Schedule planned order.
    and the transaction MDAC Execute action for planned order
    This function module includes the following actions:
    Explode BOM
    Explode BOM, check availability
    Check availability, only explode BOM in the case of a requirement
    Check availability, do not explode BOM
    Reset availability
    Change planned order data
    Schedule planned order
    Delete planned order
    Assign the key for the respective action control to the materials in the material master (MRP 4 view).
    Please refer this thread,
    Re: MDVP for collective orders
    Regards,
    R.Brahmankar

  • User-exit for availablity check

    Hi Gurus,
    we have requirement to do ATP check for 301 movement type in MB1B for some specific plants only.
    I need to confirm if we can use this EXIT_SAPLATPC_002 in FM AVAILABILITY_CHECK_CONTROLLER to carry out this requirement.
    But I am not familiar on how to use this user-exit, what fields needs to be updated to trigger the ATP check?
    Thank you.

    Hi,
    I think you should use the exit "EXIT_SAPLATPC_001".  Inside this Enhancement Exit, you will get the list of Plants in table structure T_ATPSCX. The structure field CHKFLG( ATP Server: Flag - check requirement (yes/no)) will control the ATP check of sites based on its value.  You can disable the availability check of specific plants by updating the value of T_APTSCX-CHKFLAG to ' '.  Availability check will be carried out for the plants which have the value T_APTSCX-CHKFLAG = 'X'.
    Edit : The Warning message shown after availability check will be through the configuration.  Refer to table T156SC, field : KZVBP (Dyn.avail.check).
    Regards
    Vinod
    Edited by: Vinod Kumar on Sep 17, 2010 12:25 PM

  • User exit for sales order - schedule lines

    Hi all,
    I have requirement in SO, that user has not to change the scheduled lines date and quantity in va01, va02.
    I could find FV45EFZ1 as the include program for this and the value of CH_SUBRC should set to > 0.
    But i put break point here and the control wont come to the line. Anyone can help me to find the correct user exit ?
    Thanks and regards
    Jijo

    hii
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    put a break point int he user exit and check.
    hope , this will solve ur problem.
    Regards,
    sabarinathan.L

  • User Exit for Updating Delivery Plant at Item Level in Sales Order

    Hello Experts
    There is a requirement to determine the delivery plant for each item level and than update the items with newly determined plant.  There is a user exit MV45AFZZ routine FORM USEREXIT_MOVE_FIELD_TO_VBAP. to update the item level entries in Sales Order in VA01 or VA02. Is this the right place to do this?, if yes , do i need to perform any other standard logic (like re determine Shipping points , schedule lines ) for newly determined plant? If not , can you please suggest any other place , BADI or user exit to change the delivery plant of sales order.
    Thanks a lot....
    -Harkamal

    Best place is MV45AFZZ-USEREXIT_SAVE_DOCUMENT_PREPARE. Populates the values just before saving the document. You can have your own deriving logic. Make sure that peice of code is trigger only for Sales Order create or change (VA01/VA02).
    Are you kidding???  You do realize that this is AFTER all validations against configuration, ATP, pricing, etc. have been performed??!!!  Never, ever change a critical value like plant in the SAVE user exits...

Maybe you are looking for

  • How do I get my printer to match the colours of the image as I see it on screen?

    How do I get my printer to match the colours of the image as I see it on screen? My HP Office Jet Pro L7680 printer tends to print my images with a bias towards red compared to the image I am seeing on screen with Lightroom 5 using a Mac with Retina

  • OCreditNotes added but nothing in A/R Credit Memo

    Is there someone who understand this behaviour ? I just added a oCreditNotes.  Everything is fine, no errror.  The .Add() works fine but when looking in SAP, what I just added isn't there in A/R Credit Memo Maybe I'm not creating the right Document ?

  • N72 no signal and can't get any network connection

    I have had my N72 for a couple of months and I haven't had any problems. Now all of a sudden it has gone offline and I can't get a connection. It is not the carrier, my sim card works fine in my old phone. I also tried another sim card in the N72 and

  • BDC for VBO1

    Hi, I am trying to create a BDC program to create product hierarchy rebates using VBO1.  I have a problem when entering the material for settlement because there is no page down button on the screen just a scroll bar.  So if I have a load of conditio

  • Yahoo Mail Not Authenticating

    Anyone else having problems getting their Yahoo email on their Droid? Mine stopped being able to check/log in sometime this morning. When I try to manually refresh my Yahoo account (free version), I get an error that Authentication failed - Please ve