ATP check for multiple materials on multiple sales document

Hi,
System 4.70
Is it possible to carry out an ATP check for multiple materials on multiple sales documents.
I have written a bespoke program and the program requires an ATP check to be performed for each material and sales document, I am currently using BAPI_MATERIAL_AVAILABILITY which is bringing back the necessary information but it's a bit slow.
Does any one have any ideas please.
Regards
J-J

The ATP Check using the BAPI is done per material and plant. If you're looping through sales documents and then materials you're probably doing the ATP check for the same material over and over again.
Just get the list of materials you need and the corresponding plants and call the BAPI for each of them.
Also do a run-time analysis (tcode SE30) to check exactly what slows down your program.
regards.

Similar Messages

  • ATP check for component materials

    Hello experts,
    The ATP check was initially designed for a kitting process. BOM Material would be kitted in the distribution center(DC) and sent to a garage. Sales orders are created with BOM materials for a garage and there is a multi- level GATP process in place. Since BOM materials do not  exist at a garage the check would be performed at a DC for components after BOM explosion. The existing configurations in R3 and APO are for a make to order process(Strategy  group of 50 for BOM's  and 40 for component).
    We are now introducing new materials for an existing material and have the need for product substitution on the sales order, if the existing material is out of stock at the DC. To enable this functionality we are having to perform an ATP check for the sales orders at the distribution center, though the sales order is   created for a garage. To improve on the response times during the ATP check our design approach, is to convert the BOM materials in the sales order to component  materials with material determination(one BOM material is tied to one component material) and performing the ATP check with components at the DC.
    While testing we are facing the following issues:
    1)Sales order placed on a garage is substituted with the DC after product substitution.  This does not occur when product substitution is carried out with BOM's.
    2)During the order create, the ATP checks for check mode u201845u2019 and business event u2018AEu2019 for a given material in a DC shows zero stock. While for the same material,location and business event AE the product availability check in APO reflects stocks available.
    Is it feasible to do ATP checks for component material in a sales order which was initially designed to work with BOM materials? Am I missing some configuration settings in either APO or R3?
    Regards,
    Anil DeSouza

    Hi Anil,
         Yes it can be done.
    1) For finished product & garage combination -
    activate RBATP in the check instructions.
    2) in the location substitution maintain 'location determination sctivity'. Here you maintain different check mode & business event -- ( this is nothing but check instruction --- in thsi you maintain 'MATP').
    Hope this anws your first qus.
    To addressing your 2nd question....follow below steps.
    1) Do ATP from sales order, get onto results screen, click on product availability & check for 'scope of check' (check control) and look for the stock types that are included. Based on this your receipts are consdiered for ATP confirmation.
    Best Regards,
    Deepthi

  • ATP check for delivery in ECC & Sales order ATP check in APO

    Hi All,
    Can we do an ATP check for delivery in ECC , but for the same set of Materials- Plant combination , the ATP check when a SO is created should happen in APO .
    We do not want to remove the Business event 'B'  which is meant for delivery in  APO . For some materials we need APO ATP check to happen for delivery   & for some it should be in ECC  & for SO  the ATP check should happen in APO .
    Even if we do not have check instructions pertaining to Business event 'B' & a particular check mode (for the materials where the ATP check for delivery should happen in ECC & SO check to happen in APO)  , when we are doing an ATP check for delivery , it is still pointing to APO ATP check rather than ECC check .
    Any pointers for this is highly appreciated.
    Regards
    Surendra

    Hi Surendra,
    For SO, business event is A and for delivery it's B. When integrated with ECC, the check rule in ECC points as biz event in APO.
    You can control ATP check by customized settings for check rule in ECC.
    Also, by setting requirement class and requirement type in ECC, you control check mode in APO. So, even if you dont define for check mode in APO, the system might refer from ECC for the ATP check settings. Look into your ECC customization for how requirement class is derived and settings for requirement type. (based on MRP type, strategy grp and Item cat).
    I'm not sure how you can control ATP to happen for some sales orders/deleveries in ECC and for some in APO, since check mode is mentioned in material master.
    However, there are ATP BADIs (business add-ins) available in both ECC and APO, whch can serve your purpose.
    Regards,
    Bipin

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

  • ATP Check for Bill of materials in Variant configuration

    Hello Guru's,
    Will variant configuration supports the following functionality please?
    ATP check for Bill of  materials in variant configuration is possible, is there any way to put labor cost while working on assembling variants. Material substitution is possible while configure a variant product.
    Will any one share your experience that will be of great help.

    solved by adding an additional condition in pricing procedure

  • ATP check for inbound EDI order

    Hi Friends,
    When I am creating outbound sales order then ATP check is getting executed properly & multiple schedule lines are getting creating in IDOC also (depending on the avaibility of stock).
    But When I am trying to create the inbound sales order via EDI/IDOC there is no ATP check performed & multiple schedule lines are not getting created in sales order(as per the avaibility of stock which I am checkin thro So09 tcode).
    ANy1 has faced smilier problem in past. If yes then please let me know how to solve this problem of ATP check.
    PLease let me know as soon as possible.
    Many thanks in advance
    Br, Prashant

    HI Frndz,
    problem is solved by using following customizing settings
    Customizing:
    SD/function/requirement availability/availability check/default (OVZJ)
    Change the field "Rule availability" to the required value. You receive a list of the possible values using the possible entries pushbutton. Rescheduling is regarded as background processing. If you want to allow partial deliveries, choose the value 'E'.

  • ATP check for STOs

    Hi,
    Can ATP be set for intercompany STOs?
    If so , can anyone list it please.
    Regards
    Krishna

    Hi
    Yes we can setup ATP check for STO...
    actually ATP will be depends on the combination of the checking group and checking rule
    checking group :  is defined at material master sales/plant view in availability check field..
    Checking rule : In standard this will be assigned to application internally ex : sales order - A (sales order)
                           delivery - B (delivery)..
    In STO we need to define the checking rule for purchase order type and shipping plant combination...
    menu path :
    IMG -- MM -- Purchasing -- PO -- set up stock transport order -- assign delivery type and checking rule....
    hope it solves your probs
    Muthu

  • ATP Check for deliveries

    Hi Experts
    Can we perform check against deliveries in APO GATP?
    What are the prerequesites to perform ATP check against deliveries.
    In scope of check  we want to select production orders which are in released status.
    Please give your inputs.
    Regards

    Preetam,
    After creating the supporting configuration, APO ATP checking is thereafter 'turned on' by creating and activating an ATP integration model in the ERP.  Generally, it is done by material/plant combination.  Therefore, if you turn on ATP checking for Sales orders, you also turn it on for all other types of docs (including deliveries) for that particular material/plant combination.
    I hope you have thought out this whole process.  The main reason for using ATP checking in APO is that APO has a richer suite of ATP solutions.  If your business requirements are satisfied by the ATP checking in ERP, then it makes no sense to spend the money to implement ATP in APO. Your original issue had to do with making released production orders relevant for ATP for deliveries.  If this is the only new requirement, then this can easily be managed in ERP.  OVZ9>select your Availability check, with checking rule B (deliveries).  Under "incl production orders" select 'F'.  From a business perspective, this means that some of your deliveries will be created without stock on hand, and therefore will not be immediately shippable.  You need to make sure that this process change is integrated throughout your warehouses.
    And, to your final question.  If your delivery item category(s) are already relevant for ATP checking in ERP, they will also be relevant for ATP checking in APO.  Since deliveries do not use RBA, you do not have to worry about adding new ERP delivery item categories for the conversion to APO ATP checking.  Most commonly in APO, one uses only the 'product check' (similar to the standard ERP ATP check) for deliveries.
    Rgds,
    DB49

  • ATP Check for Components for Variant Configuration

    Hi Gurus,
    Does it exist a way to perform the ATP Check for components (in variant configuration) like in a test?
    I mean, I know that when I create a SO (with the correct settings) the system will perform the ATP Check for components (Missing parts list). But is it possible to do this without trying to create the SO? Maybe a tcode as CU50 or PMEVC where I could enter the variant configuration values, then it explodes the BOM and do the ATP Check (as a simulation).
    Thanks in advance.
    Best regards.

    Hi Christopher,
    If you enable the "Component Availability" within your configuration profile (under Confign initial screen, Confign Parameters), then you will see an additional option within CU50 while configuring.  By pressing this button, you can see an availability check as of the date specified on the CU50 initial screen.  You can also modify the quantity on the CU50 initial screen for a more realistic simulation of a sales order (where a customer may order more than one of a product).  See screenshots below:
    In CU42:
    In Value Assignment of CU50:
    Hope this helps!

  • ATP check for batch managed products

    Hello All,
    I have a requirement for ATP check for batch managed products and would be glad if someone can help me on that.  One of the characteristics on my product is expiry date. Business wants to restricts confirming products which has an expiry date of less than 90 days for orders outside the country. How can we achieve that?

    Hello
    You can try with activating Shelf Life Expiration Date (SLED).
    For config, check SPRO - Logistice General - Batch master - SLED
    Then finally setup Customer Exit to calculate/check the SLED.
    Exit EXIT_SAPLMHD1_001 for enhancement SAPLMHD1.
    Further, you can refer following SDN thread for reference/understanding:
      - SLED by customer/ material
    Regards
    JP

  • Collective ATP check for production orders

    Hi Gurus,
    I tried the MDVP tcode, but I can only do the collective ATP check for planned orders. we wanted to do the collective check with production orders, can you tell me how I can do this?
    Thanks.

    I've posted this question but didn't get any response. Can some one please give me an idea how to do the collective ATP check for production orders.
    Thanks
    Vijaya

  • ATP check for CRM Orders using ECC is creating a replication problem

    Hi Guys,
    I have created an order in CRM and it replicated to ECC,however the issue is I'm unable to change the order any more in CRM, message "Document is being distributed". I'm getting this issue after activating ATP check for CRM -ATP check is working perfectly.
    Before this ATP check, the Order replication was working perfectly and i can do the changes to order in both systems.
    In advance many thanks for your your help.
    Thanks and Regards
    SRIM

    hI,
    Thanks for your response,
    There are no messages in the middleware (smq2 - q1), but this error only started occurring after I activated the ATP check.
    I have also checked the incompletion log at ECC - document is completed.
    Before this ATP check activation the order replication was working correct/y and i can do changes at both ECC and CRM. But now even if i change the order in ECC those changes are not getting replicated infact  queue is not getting generated.
    BDOC is showing sent to receivers (not all confirmed)  BUS_TRANS_MSG.
    Thanks and Regards
    srikanth

  • How to check for the sub folder in the document library Is already Exist using CSOM?

    Hi,
    My requirement is to create the  folder and sub folder in SharePoint document library. If already exist leave it or create the new folder and the subfolder in the Document library using client side object model
    I able to check for the parent folder.
    But cant able to check the subfolder in the document library.
    How to check for  the sub folder in the document library?
    Here is the code for the folder
    IsFolder alredy Exist.
    private
    string IsFolderExist(string InputFolderName)
    string retStatus = false.ToString();
    try
    ClientContext context =
    new ClientContext(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryLink"]));
                context.Credentials =
    CredentialCache.DefaultCredentials;
    List list = context.Web.Lists.GetByTitle(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryName"]));
    FieldCollection fields = list.Fields;
    CamlQuery camlQueryForItem =
    new CamlQuery();
                camlQueryForItem.ViewXml =
    string.Format(@"<View  Scope='RecursiveAll'>
    <Query>
                                            <Where>
    <Eq>
    <FieldRef Name='FileDirRef'/>
    <Value Type='Text'>{0}</Value>
                                                </Eq>
    </Where>
    </Query>
                                </View>",
    @"/sites/test/hcl/"
    + InputFolderName);
                Microsoft.SharePoint.Client.ListItemCollection listItems = list.GetItems(camlQueryForItem);
                context.Load(listItems);
                context.ExecuteQuery();
    if (listItems.Count > 0)
                    retStatus =
    true.ToString();
    else
                    retStatus =
    false.ToString();
    catch (Exception ex)
                retStatus =
    "X02";
    return retStatus;
    thanks
    Sundhar 

    Hi Sundhar,
    According to your description, you might want to check the existence of sub folder in a folder of a library using Client Object Model.
    Please take the code demo below for a try, it will check whether there is sub folder in a given folder:
    public static void createSubFolder(string siteUrl, string libName, string folderServerRelativeUrl)
    ClientContext clientContext = new ClientContext(siteUrl);
    List list = clientContext.Web.Lists.GetByTitle(libName);
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml =
    @"<View Scope='RecursiveAll'>
    <Query>
    <Where>
    <Eq>
    <FieldRef Name='FSObjType' />
    <Value Type='Integer'>1</Value>
    </Eq>
    </Where>
    </Query>
    </View>";
    //camlQuery.FolderServerRelativeUrl = "/Lib1/folder1";
    camlQuery.FolderServerRelativeUrl = folderServerRelativeUrl;
    ListItemCollection items = list.GetItems(camlQuery);
    clientContext.Load(items);
    clientContext.ExecuteQuery();
    Console.WriteLine(items.Count);
    if (0 == items.Count)
    //create sub folder here
    Best regards
    Patrick Liang
    TechNet Community Support

  • ATP check for Sales BOM

    Hi Gurus,
    We have a requirement to check ATP in APO (GATP) when Sales BOM (order BOM) is used. I am looking for some inputs on how to setup this scenario and how to explode Sales bom.
    I know sales bom creates sub items in sales order and Rule based-ATP cannot be used for sub items. Is there a possibility not explode BOM until ATP is completed for header item?  That is, how to control explosion of BOM in sales order.
    Can you someone please reply to this. It is urgent issue.. Appreciate your inputs.
    Thanks,
    BKN

    Hi Harsha,
    we can fullfill this requirment by using Material determination
    In Material determination Record
    normally we are maintaining for A give B instead of putting like this maintain record like this For A give A after that in additional data maintain more material like B,C etc..
    And maintain availability check for every material...
    then u r problem will solve..
    in this item category determination is
    OR NORM PREL        TAX     CX
    OR NORM PSHP TAX TAPS  PP
    like this u need to maintain determination then u will get..
    i hope ur problem will solve...PLZ Reward
    Regards
    Durga Prasad

  • Default ATP check for sales organization - which function?

    Hi all.
    If you for a particular sales organization make the settings in customizing, that all ATP checks should default be "Delivery proposal" for example, which function module is then checking this in sales order creation? I would like to do some debugging, but I cannot find any ABAP program/function module where this is being checked?
    Thanks for info.
    BR
    Dennis M

    Dear Dennis M,
    FM's:
    BAPI_PROCORD_CHECK_MAT_AVAIL   BAPI: Execute Material Availability Check for Process Orders
    BAPI_PRODORD_CHECK_MAT_AVAIL   BAPI: Execute Material Availability Check for Production Orders
    CF_UT_MAT_STOCK_CHECK          PRT availability check: material stock
    CO_FU_FHM_AVAILABILITY_CHECK   Availability check of a PRT                                          
    CO_FU_OPR_AVAILABILITY_CHECK   Availability check PRT for operation                                 
    CO_FU_ORD_AVAILABILITY_CHECK   Availability check PRT in the order                                  
    CO_FU_TCO11_VORGANG_DET        Determine operat. ctrl.tab availability check prod. resources and tool
    SD_SPECIAL_STOCK_ASSIGN        Determine special stock indicator for availability check
    Regards,
    Naveen.

Maybe you are looking for