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

Similar Messages

  • BAPI needed for goods receipt for delivery created from sales order

    Hi experts,
    I need help.
    I want to post goods receipt for the delivery created from sales order. I have tried out BAPI BAPI_GOODSMVT_CREATE but I am not able to post it.
    Is there any way to post this? I need BAPI and not FM MB_*....
    Thanks & REgards,
    Bhavin A. Shah

    Hi,
    Please refer to link,
    https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_GOODSMVT_CREATE-ABAP
    Regards
    Shree

  • Material Susbsitution in ECC Sales order ATP Check

    Hello all,
    I have used GATP and implemented Material susbtitutions.
    Now i am looking to achieve the following in ECC:
    1) During ATP check, ECC should first look for availability on the material in the sales order item
    2) If enough supply is not found(ATP Check fails), then system should substitute this material with another material; this substitution should happen only if the ATP check on the customer ordered material fails;
    Is ECC capable of doing this? I already tried Material determiantion and all reason codes; But material determination is directly replacing the customer ordered material with the substituted material even though there is enough stock on the sales order material.
    thanks

    In std, you can achieve this.
    In Material Determination, while Creating Condition records in VB11,
    maintain appropriate Substitution reason ( for eg:0001)
    enter Customer Ordered Material in "Material Entered" field & substitute Material in " Material" field.
    now Goto- Alternative materials or Press F2, Enter the another material to substitute Material if the first Substitute material doesnt have enough Stock , Tick the "MRP Indicator" & save the record.
    ( ref: Help doc of MRP Indicator,
    MRP indicator for alternative material in product selection
    Material requirements planning (MRP) indicator for automatic product selection.
    Use
    The MRP indicator displays the alternative material for which a subitem can be created in case a requirement can't be met. Material requirements planning uses the subitem to determine the requirement shortage.
    Note:
    Only one alternative material can be indicated as relevant for materials planning.)
    Test & revert.

  • Dynamic Credit check - problem -Delivery creation from Sales order

    Hi
    we have a problem which i would appreciate some help with.
    Sales order is blocked for credit and subsequently released via VKM1
    BUT as soon as line item is selected and then Sales document > deliver -
    the Dynamic credit block kicks in again straight away, no other changes have been made
    why is this occurring ?
    I managed to get round the problem by creating delivery via VL10c and selecting line item and then create in background

    Hi Tony,
    Do you have a credit check active again at Delivery level?
    In OVA8 - for the combination of credit control area, risk cat & credit group - please check field 'Number of days'.
    If you do not wish to carry out the credit check again for the released doc, here you can maintain the number of days.
    Description of F1 for this field is as below.
    Credit check: Number of days without check
    Specifies the number of days after which a changed document must be re-checked for credit.
    Use
    This function is used for checking documents that have already been released by a credit representative, but that have subsequently been changed. The system does NOT carry out another credit check if the following conditions are met:
    The value of the changed order is not greater than the value already approved for credit (inclusive of the deviation factor), AND
    The current date is not greater than the original release date plus the number of days specified here
    thanks
    Anirudh

  • Stored Procedure for Delivery based on Sales Order Title UDF

    Dear All,
    I have made a  UDF in the Sales Order Title as U_SOApproved which has been set with valid Values for the field as 1 - Yes and 2 - No and set default value for field set as 2.
    Now I want to have Stored Procedure by which whenever a delivery is made based on a Sales Order for Document Series Named Retail if in the above udf which is there in Sales Order is not set as 1 - Yes the system should not allow the add the delivery in the system.
    I know there is a option in Sales Order itself having a approved tick box but if I implement it then it would be applicable for all document series which I don't want. I want to have a check on a particular document series e.g Retail only.
    Please help in this regard.
    Regards,
    Kamlesh

    I'm actually looking for a complete block , I want to force the user to type a value in the GrossBuyPr.
    I have the following SP that I tried to modified to work for invoices but is not working
    DECLARE @numlinii int
    IF @transaction_type IN (N'A', N'U') AND (@Object_type IN (15)) AND (@num_of_cols_in_key = 1)
    BEGIN
    IF (@Object_type = 15)
    BEGIN
    SELECT TOP 1 @numlinii = (LineNum +1) FROM DLN1 INNER JOIN OITM ON DLN1.ItemCode = OITM.ItemCode AND (OITM.InvntItem N'N')
    WHERE DLN1.DocEntry = @list_of_cols_val_tab_del AND (ISNULL(GrossBuyPr, 0) = 0)
    ORDER BY Linenum ASC
    IF (ISNULL(@numlinii, 0) 0)
    BEGIN
    SET @error = 10
    SET @error_message = N'Value of field NNNNN in line No. ' + CONVERT(nvarchar(4), @numlinii) + N' is = 0 !'
    GOTO error_mesg
    END
    END -- ODLN (15)
    END
    Any ideas ?

  • MRP for  delivery block itemsin sales order

    Hi,
    For MTO scenario, where in sales order item is blocked for delivery.When MRP  run for sales order  for that item through MD50 then system not generating any requirement.
    Which parametrs  should I check?
    Regards
    Sanjay

    Hi ,
          In MRP control Parameters you can use ,
    1 .Create Purchase Requistion - value 2
    2 .Delivery Schedule - Value 1
    3 .Planning Mode -  Value 1
    4 Scheduling - Value 1
    Try with this .

  • Disable duplicate check for customer address on sales order creation

    I am using the following tables to create sales order as well as customer and addresses together. All data are coming from third party system through dblink.
    OE_HEADERS_IFACE_ALL
    OE_LINES_IFACE_ALL
    OE_CUSTOMER_INFO_IFACE_ALL
    however, whenever the address to be created already exist in OFS, the sales order import program ended with:
    Source/Order/Seq/Line    Message
    *1122/SOSHM006// Duplicate SHIP_TO ADDRESS found for SOSHM006_S. Please correct the data.*
    *1122/SOSHM006// Duplicate BILL_TO ADDRESS found for SOSHM006_B. Please correct the data.*
    how can I disable the above checking? ie: allow the address to be created even the address already exist.
    See Example below, notice that the addresses for SOSHM006_S and SOSHM005_S are identical, and addresses for SOSHM006_B and SOSHM005_S are identical, but we want them to be created as separately addresses.
    Example (first time)
    Insert into ONT.OE_HEADERS_IFACE_ALL (ORDER_SOURCE_ID, ORIG_SYS_DOCUMENT_REF, ORG_ID, ORDERED_DATE, ORDER_TYPE, PRICE_LIST, SALESREP_ID, SALES_CHANNEL_CODE, SHIP_FROM_ORG_ID, CUSTOMER_NUMBER, BOOKED_FLAG, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, OPERATION_CODE, ORIG_SHIP_ADDRESS_REF, ORIG_BILL_ADDRESS_REF) Values (1122, 'SOSHM005', 86, sysdate, 'Corporate (NOR)', 'Corporate', 1, 'CORPORATE', 90, 'SHM01', 'Y', 0, sysdate, 0, sysdate, 'INSERT', 'SOSHM005_S', 'SOSHM005_B');
    Insert into ONT.OE_LINES_IFACE_ALL (ORDER_SOURCE_ID, ORIG_SYS_DOCUMENT_REF, ORIG_SYS_LINE_REF, LINE_TYPE, INVENTORY_ITEM, ORDERED_QUANTITY, SHIP_FROM_ORG_ID, FULFILLMENT_SET_NAME, UNIT_LIST_PRICE, UNIT_SELLING_PRICE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, OPERATION_CODE, SUBINVENTORY) Values (1122, 'SOSHM005', 'SOSHM005A_S', 'Corporate Line (NOR)', '01-09-PAC-3522-01', 1, 90, '1', 0, 0, 0, sysdate, 0, sysdate, 'INSERT', 'Mesad');
    insert into OE_CUSTOMER_INFO_IFACE_ALL(CUSTOMER_INFO_REF, CUSTOMER_INFO_TYPE_CODE, current_customer_number, org_id, COUNTRY, ADDRESS1, CITY, STATE, POSTAL_CODE, IS_SHIP_TO_ADDRESS, IS_BILL_TO_ADDRESS, CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY) values('SOSHM005_S', 'ADDRESS', 'SHM01', 86, 'MY', 'Ship4 479, JALAN PASIR PUTEH 31650 IPOH PERAK.', 'IPOH', 'Perak', '31650', 'Y', 'N', sysdate, 0, sysdate, 0);
    insert into OE_CUSTOMER_INFO_IFACE_ALL(
    CUSTOMER_INFO_REF, CUSTOMER_INFO_TYPE_CODE, current_customer_number, org_id, COUNTRY, ADDRESS1, CITY, STATE, POSTAL_CODE, IS_SHIP_TO_ADDRESS, IS_BILL_TO_ADDRESS, CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY) values('SOSHM005_B', 'ADDRESS', 'SHM01', 86, 'MY', 'Bill4 479, JALAN PASIR PUTEH 31650 IPOH PERAK.', 'IPOH', 'Perak', '31650', 'N', 'Y', sysdate, 0, sysdate, 0);
    Example (second time) - the differences are highlighted in bold.
    Insert into ONT.OE_HEADERS_IFACE_ALL (ORDER_SOURCE_ID, ORIG_SYS_DOCUMENT_REF, ORG_ID, ORDERED_DATE, ORDER_TYPE, PRICE_LIST, SALESREP_ID, SALES_CHANNEL_CODE, SHIP_FROM_ORG_ID, CUSTOMER_NUMBER, BOOKED_FLAG, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, OPERATION_CODE, ORIG_SHIP_ADDRESS_REF, ORIG_BILL_ADDRESS_REF) Values (1122, *'SOSHM006'*, 86, sysdate, 'Corporate (NOR)', 'Corporate', 1, 'CORPORATE', 90, 'SHM01', 'Y', 0, sysdate, 0, sysdate, 'INSERT', *'SOSHM006_S'*, *'SOSHM006_B'* );
    Insert into ONT.OE_LINES_IFACE_ALL (ORDER_SOURCE_ID, ORIG_SYS_DOCUMENT_REF, ORIG_SYS_LINE_REF, LINE_TYPE, INVENTORY_ITEM, ORDERED_QUANTITY, SHIP_FROM_ORG_ID, FULFILLMENT_SET_NAME, UNIT_LIST_PRICE, UNIT_SELLING_PRICE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, OPERATION_CODE, SUBINVENTORY) Values (1122, *'SOSHM006'*, *'SOSHM006A_S'*, 'Corporate Line (NOR)', '01-09-PAC-3522-01', 1, 90, '1', 0, 0, 0, sysdate, 0, sysdate, 'INSERT', 'Mesad');
    insert into OE_CUSTOMER_INFO_IFACE_ALL(CUSTOMER_INFO_REF, CUSTOMER_INFO_TYPE_CODE, current_customer_number, org_id, COUNTRY, ADDRESS1, CITY, STATE, POSTAL_CODE, IS_SHIP_TO_ADDRESS, IS_BILL_TO_ADDRESS, CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY) values( *'SOSHM006_S'* , 'ADDRESS', 'SHM01', 86, 'MY', 'Ship4 479, JALAN PASIR PUTEH 31650 IPOH PERAK.', 'IPOH', 'Perak', '31650', 'Y', 'N', sysdate, 0, sysdate, 0);
    insert into OE_CUSTOMER_INFO_IFACE_ALL(
    CUSTOMER_INFO_REF, CUSTOMER_INFO_TYPE_CODE, current_customer_number, org_id, COUNTRY, ADDRESS1, CITY, STATE, POSTAL_CODE, IS_SHIP_TO_ADDRESS, IS_BILL_TO_ADDRESS, CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY) values( *'SOSHM006_B'* , 'ADDRESS', 'SHM01', 86, 'MY', 'Bill4 479, JALAN PASIR PUTEH 31650 IPOH PERAK.', 'IPOH', 'Perak', '31650', 'N', 'Y', sysdate, 0, sysdate, 0);

    Hi George Chen
    with sales order stock .. is ther a way of allocating the stock from unrestricted stock .. i understand that you have to have the stock in a "special" area to move it to the sales order?
    excuse my ignorance but what is IS-AD solution?
    thanks
    Nick

  • Duplication Check for P.O at Sales Order level

    Dear Gurus,
    As per my clients requirement we have configured the system to give an error message when an existing P.O number is entered in the Sales Order screen.It works fine.But we are having a problem that whenever we change anything in the Sales order it doesn't allow us to save our sales order for the second time and gives the error that 'P.O number exists'
    Do anyone have solution for this?
    Advance Thanks.
    Regards,
    Ravi

    Hello,
    Kindly seek the help of ABAPer in this case because during the saving of the Sales order the error related to Purchase order
    number is thrown even though you are editing the PO field in the Sales order. One more check you should carry before saving
    the sales order --> ensure that you have entered a new purchase order.
    Regards,
    Sarthak

  • Ristrict user not to go for delivery with out sale order.

    Hi,
    I need some Help in ristricting the user from entering the Delivery document with any sale order.
    As per the requirement all the documents should run in a proper fassion.
    sale order> Delivery> Invoice.
    Purchase Order> GRPO> Invoice.
    If any change in the flow the user should not be allowed.
    Is there any possibility to implement this can you please help me in doing such.
    Thanks,
    Mahi.

    Hello Mahi,
    Is it not a trigger, it is inside store procedure of SBO_SP_TransactionNotification, which is standard part of the SAP B1 installation...
    read the following blog of Lisa :
    /people/lisa.mulchinock/blog/2009/05/22/the-sptransactionnotification-stored-procedure
    ALTER   proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    BEGIN
    -- Return VALUES
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    SELECT @error = 0
    SELECT @error_message = N'Ok'
    DECLARE @docnum nvarchar(50)
    --     ADD     YOUR     CODE     HERE
    if @object_type='15' and @transaction_type='A'
    BEGIN
      if exists(select top 1 'A' from dln1 T0 where T0.BaseType != '17' and T0.DocEntry = @list_of_cols_val_tab_del)
      begin
         set @error = '-1'
         set @error_message = 'delivery without sales order is not allowed!'
      end
    END
    -- SELECTthe return VALUES
    SELECT @error, @error_message
    END
    Regards,
    J.

  • Restrict Availability check for Line item in sales order

    Hi Folks,
         My requirement is some what different than the usual,I want to stop availability check for a particular line item,while creating sales order on a particular condition (example when quantity is changed for that line item),please suggest if there is any way to do so.
    Thanks for your valuable support.

    Hi
    we need to maintain the username of the person who has triggered this process through XI .
    I BAPI we cannot instruct the BAPI to maintain a specific username.
    that is why i am using this FM because this will allow us to maintain the change history with the username we want
    Regards
    Nikhil

  • Bapi for Delivery Creation from Sales Order

    Hi
    I have multiple sales order and i want to create 1 outbound delivery from it just like what Vl10A is doing.
    Can i have BAPI or fumctiona module for same.
    Best Regards
    Subham

    Check this thread:BAPI for Delivery Creation
    Also search the forums..there are many threads addressing the same issue.
    Regards,
    Kiran

  • User Exit in include LVKMPFZ3 for Sales Order credt Check

    Hi,
    I am writing a code in include LVKMPFZ3 which is used for Credit Check for Customer in a Sales Order. It will be triggered only of I check the box for User3 in OVA8 for a combination of Customer credit group/Risk Category and Customer group.
    Has any one worked on that.
    regards,
    Rishi bhatia

    Hi Siarhei Mahulenka
    I have used the same Export/Import Logic, and also I have written above code in Includes of both Forms
    USEREXIT_SAVE_DOCUMENT_PREPARE
    and
    USEREXIT_SAVE_DOCUMENT.
    I have applied breakpoint over here and my value is coming for
    both XVBAK-LIFSK & VBAK-LIFSK (I have checked for both)
    But again while I doing Debugging after some time in some other function module
    both  XVBAK-LIFSK & VBAK-LIFSK  are becoming NULL.
    I donot know how USEREXIT_SAVE_DOCUMENT is the last step for VA01.
    Please tell me why again these two variables are becoming NULL.
    Please guide me , I am stuck on this and remaining time for my this Task is very short.
    Best Regards
    Rishi Bhatia
    Mobile: +91 9833637268

  • Sales order ATP

    HI all,
    How to find the component lead time for a material during sales order ATP process. I am looking for a FM which would give me the exploded component list with commited date. I will be using this date in a user exit of sales order.
    Thanks in advance.

    SC,
    Is the question that you have related to the SAP Business One integration for SAP NetWeaver (B1i) or is your question with respect to the Business One SDK?  I ask as I am not sure what "ATP" stands for.  If you question is with respect to the SAP Business One SDK, you will want to post yor question in the "SAP Business One SDK Discussion Forum" id related to the SDK.
    Eddy

  • Delivery proposal not possiblre in sales order atp check screen

    Hi Gurus,
    The system is giving a messsage saying delivery proposal not possible in sales order atp screen and i'm able to save teh sales order but it doesnot show up in MD04. I want the sales orrder to show up in MD04.
    PLesae help
    Thanks
    Anusha

    Hi,
    Now you have to provide additional information about your scenario;
    1) Is it a new material created that gives this problem?
    2) Did you create any new MRP type or schedule line category?
    3) When you say some materials-sales order is not seen in MD04 and some seen in MD04. Is there any any difference between the materials like in types, MRP views etc?
    From SPRO side,
    You also need to check the transfer of requirement settings in t.code OVZ1 for what requirement type assigned  to your MRP type and item category. Also check the properties  of the  requirement type  in t.code OVZH what req.class is assigned to the  req.type.
    Check the property of the  req.class in t.code OVZG (aval.check and TOR must be checked  at req. class level)
    You may also need to check in t.code OPSS on the strategy (which is assigned in the material master MRP view3) on whether TOR and availability check has been activated  or not.
    If all are OK, then run the report which is mentioned in the earlier response.
    Regards

  • Sales Order ATP (ECC) with Working Times - available customizing methods?

    Dear All.
    We're having some issues with sales order atp and working times.
    Seems like the sales order atp function is not looking at the time zone assigned to the working times.  I would have guessed the time zone would have come from the shift sequence or just the time zone off the shipping point or plant.
    Seems like it's taking the time zone assigned to the user though.
    Any thoughts on this ECC functionality?  
    Seems like it works ok if atp is checked in APO.
    Otherwise, we may need to do a little customizing update the material availability date to the correct date, or update the correct timezone if possible, or possibly roll back the confirmed dates by one day if the  request misses the cut off on the working times due to the delta in the timezone checked.
    I've been reviewing:
    userexit_availability_in, userexit_availability_out, exit_saplatpc_001, and userexit_check_vbep but nothing jumps out at me as a good option.
    Any thoughts on an approach for this?
    Anyone made any similar updates through userexit, badi, cmod, other?
    Looking for structures, tables, fields in these programs which we could use for this purpose, or possibly just adding a check to skip the working times under certain circumstances.
    Many thanks.

    More on this one (below) in case anyone has come across this before and found a reasonable solution to it.
    Looks like there is an OSS note on this, but it just describes the fact that it doesn't work.  The note = 547961, and looks to be related to #7.  I'm not sure how adjusting the transportation duration would help as it suggests. Seems like we would then just be sending more packages overnight rather than ground.
    Going to take a look at adding some custom code to set the material availability date (mbdat) to the correct date based on the shipping point cut off time.
    Any extra input would be helpful on issues this might cause, how to go about, etc.....
    Thinking that we could roll the mbdat back one day if the item was confirmed but was rolled forward one day due to the time zone issue.
    Looking at mverf, mverf_pos, xvbep.  Others?
    One possible issue I can think of is that initial delivery scheduling for the requested date has already been completed before the ATP check.  But not sure if there's a userexit, routine, badi, etc... available specific to the delivery scheduling peice?
    Thanks again!

Maybe you are looking for

  • How can I transfer music from iPhone to my itunes account?

    I bought music from itunes with my iPhone. Now, I would like to transfer this music from my iPhone to my iTunes account. How can I do it? 

  • Ideas on how to export from Oracle (11g) for import into a MSSQL server?

    Hi folks, Crazy question yes...but I have some devs that are needing to export some schemas/tables from Oracle to somehow import into MSSQL. Are there any utilities our there, hopefully from Oracle that would allow for this? So far, all I can think o

  • EXIT_SAPLMRMP_010 - User Exit for MIRO

    Hi, I'm trying to call this User Exit EXIT_SAPLMRMP_010, in the MIRO transaction, but it is not triggered at all. And so after troubleshooting, in one table TFDIR, for this function module, the MAND field is blank. Whereas the program expects charact

  • AS3 drawing FLV freezes

    I'm playing around with video warping and I think I've found a fundamental limitation of some sort. I am using the Flex SDK to compile an AS 3.0 file into a swf file This swf access an FLV by progressive download, draws it to a bitmap and then does a

  • Strengths & Weaknesses of SAP BI

    Hi BI-specialists! Here is a rather general question. I´m just doing a comparison of SAP BI as a DWH-System and a "naked" relational Database system. What are the particuar strengths and weaknesses of SAP BI? I mean things like rapid development thro