Sales Order - Requested Delivey Date

Hi All,
Please help me resolve this requirement.
In sales order we have a field 'Requested Delivery Date', Normally the requested delivery date is default todays date only. If not proposed by system, we have to enter it manually.
In our project we have maintained cusotomer calendar, where some dates in an year are specified.
Only on such dates order is possible to be delivered to the customers.
While creating such order, we get an information message, that "no goods accepeted on 24.06.2008, the next possible date is 28.06.2008"
This date (28.06.2008) comes from the cuustomer calendar attached to the customer master in view Unloading points.
Now how can this date be automatically copied to the requested delivery date field so as to make the order not possible to be delivered on the todays date, & only possible to deliver on the date (28.06.2008) which is the date from customer calendar.
I repeat, instead of automatic determination of req delivery date, or instead of manual entry, system should pick the date automatically from customers calendar after entry on Ship to party in the sales order.
Regards
Dhananjay

Hi,
sorry I just forgot to share it with all.
See, our requirement was sales order should have delivery date into it, not proposed by system by to be fetched from the calendar maintained in the ship to party customer master record.
We acheived this by using a feild exit for Data element "KETDAT" - Requested delivery date of the document.
In this we incorporated the logic like to fetch the date from the calendar, additionally a function module "DATE_CONVERT_TO_FACTORYDATE" was also used.
Whenever user creates a sales order, the system date automatically comes by default, by is replaced by the date from calendar, & a message is also passed "Change in the route calendar date"
I am glad to inform you this worked out very well.
Hope this is helps you all.
Regards,
Dhananjay

Similar Messages

  • AFS Sales Order Requested Delivery Date

    Dear all,
    The Requested Delivery Date in sales order usually default as current date, however, when I create sales order in AFS, the Requested Delivery Date is blank. I have also tested the same order type with different sales org., the Requested Delivery Date can be default as current date.
    I wonder why the Requested Delivery Date is blank, and how to set.
    Please kindly help~
    Thank you very much.

    Hi
    Then create a BDC with the help of ABAPER for the t code VA02
    or use the below bapi and include in the program and do as per the business requirement
    BAPI_SALESORDER_CHANGE
    Regards
    Damu

  • Sales order Request delivery date map with PO delivery date

    Hi
    I have an requirement. While run the MRP to create PR from Sales order.
    We need take the delivery date in the sales order to PO delivery date. How to configure
    Pl advice
    Regards,
    Kumar

    Check with your SD/LE functional specialist on whether this can be configured.  Alternatively, you might insert a specific future date and update when the delivery date is known...Generally, however, one expects that someone wanting to buy something from us has a delivery date in mind...whether we agree to that date or can promise to deliver on that date is a different matter....

  • Add buttons in Sales Order's Addtional Data B Tab

    Hi All,
    I want to add buttons in Sales Order's Additional Data B tab. I had try to draw a creen in painter and push a button in the screen, also assign a fcode to it.
    I had try to test the button, and I find that, it could work, but after it's action, a error msg give out and said there are no this request function.
    I think it may cause by the fcode passing between screen. However, I don't know how to fix it. Any sample coding could for me reference?
    Thanks!

    Hi,
    yes u can add the button  with Fcode on Additional data B screen.But u have write the code in the PAI of the screen,inorder to do something,for that u need to have accesskey also...i hope while adding fields to Additional data B screen u ahve used teh accessskey for adding..zfields
    Regards,
    Nagaraj

  • Find Sales Order Item Basic Data by Elements query fails

    I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
    Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
    However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
    It fails giving the following errors:
    (in Log.LogItem.Note variable):
    <b>"Conversion failed: Invalid input format"</b>
    (in Log.LogItem.TypeID variable):
    <b>"701(SFB)"</b>
    Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
    From the ESOA site, all I could get was:
    <i>----
    QUOTE -
    The following values are optional selection criteria for restricting the search result:
    SelectionByID – Document number range
    INCLUSION_EXCLUSION_CODE
    INTERVAL_BOUNDARY_TYPE_CODE
    LOWER_BOUNDARY_ID
    Value
    UPPER_BOUNDARY_ID Value
    Value
    UNQUOTE -
    </i>
    I could not even have any  documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
                querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
                querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
                querydata.SelectionByID[0].InclusionExclusionCode = "E";
                querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
                querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
                querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";

    How do you test with a SOAP Client  - I am trying to use same dataset as provided?
    I did with WSDL Test - SAP, SOAP Client and got the following error:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
             <Log>
                <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
             </Log>
          </nr1:SalesOrderERPBasicDataByElementsResponse_sync>
       </soap-env:Body>
    </soap-env:Envelope>
    Thanks..
    Vikas

  • Load a sales order with delivery date in the past

    Hi,
    We want to load in the system a sales order with delivery date in the past, and maintain the schedule delivery date in the past. To do that, in the customizing Sales And Distribution / Basic Functions / Delivery Scheduling and Transportation Scheduling / Define Scheduling By Sales Document Type, I selected the flag Blackwards. But the problem is that the rest of the dates in the scredule line: goods issue date, loading date, material avail.date and transportation Plan Date, are in blank and you cannot enter any data because the system deletes it.
    How can I have these dates informed with dates in the past?
    Thanks in advance,

    You can control this using the "Message Control" in the SAP IMG.
    Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Message Control>Influence Message Control
    Using this you convert Error to Warning or even swith off this message.
    Please refer this thread for complete steps:
    Re: How to change an error message to a warning message in SRM
    Note: you need to suppress the messages relevant to your case here.
    Regards
    Kathirvel

  • Sales order schedule confirmed date will consider Production capacity load

    As we know about schedule confirm delivery dates of sales order will consider based on material master lead time ,shiping point etc
    How to consider production capacity plan on sales order's delivery date.
    Say for example :
    Production workcenter capacity to produce the XYZ material 10qty in a Day.
    today i have created the sales order XYZ materail qty of 100. lead days has give based of MMR 21 days 17-07-2010( 3 sundays)
    and in same day i have created other sales order XYZ material qty 5000 ,the lead days again it will came 17-07-2010.
    Now my client requiremnt is when the schedule days is confirming in the sale order it sholud also consider the production capacity planning also(CR01,CR02)
    Even though my work centers are overloaded it is confirming the sales order on 17-07-2010 (based on leads days in MMR)
    Need your Inputs on issue

    Hi,
    This is a complex issue; best solution is by using APO/GATP.
    If not, then in ERP only, the second best is:
    1) Work with assembly processing in SO, meaning that a production/planned order is automatically created in the customer order during order creation.
    2) Then, after the order is created it is scheduled, and the delivery date proposal is based on that.
    3) Now you can check in the order that there are no capacity overloads, and all capacity required to produce on the proposed date is available. If yes, you're done. If not, it gets a bit complex, since you actualy need to switch to capacity planning, do capacity leveling and dispatch (PP), and the you get a new feasible schedule proposal based on that.
    APO/GATP could do all that automatically!
    Regards,
    Mario

  • Complete MRP status according to Sales order schedule line data

    Dear All,
    Please help me to get technical configuration releted to
    "complete MRP status according to Sales order schedule line data"
    or MRP w.r.t. Schedule line
    Please send fields and table and logic specification .
    Thanks & Regards,
    Ashish Gautam

    You can use following Fm for change sales order
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = p_vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
        schedule_lines    = i_sched
        schedule_linesx   = i_schedx.

  • Changes in Sales order materail availabilty date.

    What is impact if we change Sales order materail availabilty date in sales order user exit using some program.

    Hi Mayuresh,
    Big impact.  Impact is smaller if you only intend to push the date into the future.  Could be a big problem if you move the date backward in time.  This means that YOU are now assuming responsibility that the Sales orders will be delivered according to business requirements.  You are also assuming responsibility for ensuring that all ATP data is consistant for these changed orders.
    SAP has constructed their ATP checks so that if you follow their best practices, the system will maintain the Material Availability date according to the business rules you have set.  Any time you artificially move this date backward, you are overriding all of the rules you have set into SAP.  Moving the date forward is usually less of a problem, except that it implies that you intend to send the materials to the customer at a later date.  As long as your Sales dept and your Customers accept this, then it can be done.  With testing.
    Some issues:
    MAD of a particular order affects ATPs of all other sales requirements for the same plant/material.  Altering the MAD of one doc could cause another confirmed sales doc to go on backorder.
    MAD is also passed to MRP and Cap Planning as a requirement.  Altering MADs will probably affect your forecasts and the feasibility of your production plans.
    If this is a non-negotiable requirement for your business, you need to test thoroughly all possible business scenarios.  Everything in Quote-to-Cash, and everything in Procure-to-Pay, using both forward scheduling, backward scheduling, and 'today' scheduling.  Also, you will have to be very careful HOW you change this date (which userexit).  SAP generally recalculates many dates and quanties in a sales doc each time it calculates MAD. All of these dates and quantities need to be consistant for the system to work properly.
    I have participated on a project where this was done.  We had a dozen expert users testing for three  weeks before we signed off and implemented in the live system.  After we implemented, we were STILL making emergency changes to the code and to the business procedures, two months after the implementation.
    Regards,
    DB49

  • Sales Order : Calcul delivery date with only working days

    HI,
    When I create sale order, the delivery date is calculed with the number of days mentionned in type of sale document. SAP add this number of days into the day's date.
    Is it possible to calculate this delivery date only with working days in the corporate calendar ???
    Thank's

    HI
    Delivery date in the Sales order will be calculated the calender only basedon the Transportation lead time and Pick/Pack time and excluding the holidays
    Please cross the same in your instance
    Regards,
    Ram.

  • BADI for sales order header level data

    Is there any BADI which will give me the sales order header level data? I need net price of the sales order in header level. KOMK structure does not contains the net price value.

    My requirement is:
    I am writing a pricing routine for calculating ZSMR condition value in sales order header level. The formula for calculating is (NET PRICE / NET SALES COST) / NET PRICE.
    I can't use VBAK  because I have not saved the sales order yet. I need to use some structure.
    Which structure contains the net price of the sales order in header level. KOMK structure does not contains the net price value.
    Edited by: dossgs on May 21, 2010 4:08 PM

  • Sales Order Item Change Date and delta flag

    is there a field for Sales Order Item Change date in MC11VAOITM?
    Also is there a flag that tell if a record is a delta or not once it is extracted to BW?

    You may be aware, any changes to a document will be recorded in CDHDR (for header changes) and CDPOS (for item changes).  You can explore these two tables.
    thanks
    G. Lakshmipathi

  • How to consider production capacity plan on sales order's delivery date.

    HI experts,
    How to consider production capacity  on sales order's delivery date.
    Say for example :
    Production workcenter capacity to produce the XYZ material 10qty in a Day.
    today i have created the sales order XYZ materail qty of 100. lead days has give based of MMR 21 days 17-07-2010( 3 sundays)
    and in same day i have created other sales order XYZ material qty 5000 ,the lead days again it will came 17-07-2010.
    Now my client requiremnt is when the schedule days is confirming in the sale order it sholud also consider the production capacity planning also
    Even though my work centers are overloaded it is confirming the sales order on 17-07-2010 (based on leads days in MMR)
    Thanks in Advance..
    Sudha

    Sudha,
    Tell your client he needs to install SCM.  Here, you can use either CTP or MLATP to confirm orders based on production capacity.
    There are a couple of standard workarounds available in R/3. 
    One is to create a constrained forecast for planning materials, consistant with capacity, convert the forecast to PIRs, and then perform ATP against 'Planning' rather than against product, using MRP Strategy 63.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/a2/4e799a927d11d1800f00c04fadcb73/frameset.htm
    Another method is to leave the Sales orders unconfirmed at original order entry (eg, no lead time).  Run MRP, run capacity levelling, firm the levelled planned orders, and then run BOP (called 'rescheduling' in R/3) against the unconfirmed backlog, with an ATP that considers firmed planned orders as supply elements.  The sales orders will confirm against the planned orders, which are scheduled according to available capacity.
    Either of these two methods will work, but the CTP SCM solution is by far the better answer.  Downside of SCM solution in general is the substantial implementation effort required.
    Rgds,
    DB49

  • Why does old sale order (The deliver date before current date) show VSF (independent requirement) in MD04?

    Dear All,
    I face one issue, the old sales order (the delivery date before current date) has became VSF (independent requirement) in MD04, could someone let me know why and how to fix it?
    Take 01.09.2014 as example, we have one 50PC's sales order with delivery date as 25.08.2014, in MD04, the system will show two independent requirements, one is 50PC's customer order and another is 50PC's VSF.
    We are looking forward to your kind help and answer, thanks in advance!
    Best Regards,
    Gavin

    Hi Gavin
    If I understood the issue correctly, system is showing both the sales order and the PIR on the same date, right?
    If this is the case, it's probably a PIR consumption issue. Take a look on the following note, especially question 10:
    772856
    FAQ: Consumption of planned independent requirements
    BR
    Caetano

  • Sales order request date could not updated by the interface.

    Hi Experts.
    Please refer to following scenario:
    1.Sales order line with quantity 1000.
    2.Customer wants to split the order quantity to 200 & 800, by the same time, need to specify the request date for the newly added line (With quantity 800)
    But the request date always defaulted from the order header level.
    Refer to the following scripts:
    INSERT INTO oe_headers_iface_all
    order_source_id,
    orig_sys_document_ref,
    operation_code,
    created_by,
    creation_date,
    last_updated_by,
    last_update_date,
    change_reason,
    ORG_ID,
    CHANGE_SEQUENCE,
    FORCE_APPLY_FLAG
    VALUES
    0, -- order_source_id
    'OE_ORDER_HEADERS_ALL372793', -- orig_sys_document_ref
    'UPDATE', -- operation_code
    12613, -- created_by
    SYSDATE, -- creation_date
    12613, -- last_updated_by
    SYSDATE, -- last_update_date
    'SYSTEM',
    204,
    2,
    'Y'
    INSERT INTO oe_lines_iface_all
    order_source_id,
    orig_sys_document_ref,
    orig_sys_line_ref,
    orig_sys_shipment_ref,
    operation_code,
    ordered_quantity,
    created_by,
    creation_date,
    last_updated_by,
    last_update_date,
    change_reason,
    org_id,
    CHANGE_SEQUENCE,
    inventory_item_id,
    OVERRIDE_ATP_DATE_CODE
    VALUES
    (0, -- order_source_id
    'OE_ORDER_HEADERS_ALL372793', -- orig_sys_document_ref
    'OE_ORDER_LINES_ALL687228', -- orig_sys_line_ref
    'OE_ORDER_LINES_ALL687228.1', -- orig_sys_shipment_ref
    'UPDATE', -- operation_code
    800,
    12613, -- created_by
    SYSDATE, -- creation_date
    12613, -- last_updated_by
    SYSDATE, -- last_update_date
    'SYSTEM',
    204,
    2,
    245205,
    'Y'
    INSERT INTO oe_lines_iface_all
    order_source_id,
    orig_sys_document_ref,
    orig_sys_line_ref,
    split_from_shipment_ref,
    split_from_line_ref,
    operation_code,
    ordered_quantity,
    created_by,
    creation_date,
    last_updated_by,
    last_update_date,
    org_id,
    CHANGE_SEQUENCE,
    inventory_item_id,
    REQUEST_DATE,
    OVERRIDE_ATP_DATE_CODE
    VALUES
    (0, -- order_source_id
    'OE_ORDER_HEADERS_ALL372793', -- orig_sys_document_ref
    'LT_TESTLINE', -- orig_sys_line_ref
    'OE_ORDER_LINES_ALL687228.1', -- split_from_shipment_ref
    'OE_ORDER_LINES_ALL687228', -- orig_sys_line_ref of the line for which you want to split the line
    'INSERT', -- operation_code
    200,
    12613, -- created_by
    SYSDATE, -- creation_date
    12613, -- last_updated_by
    SYSDATE, -- last_update_date
    204,
    2,
    245205,
    '22-NOV-2014',
    'Y');
    3.SO has been splitted to 2 lines:
    1.1. 800 request date 12-NOV-2014
    1.2  200 request date 12-NOV-2014
    Christy

    Hi
    Sorry , for keeping messing up :
    38.45.0 is referring to Invoice row level base key
    logic is saying  Delivery number is equal to invoice row level base key
    If you look at the link and Gagan answer ,your problem should have been solved .
    Please close this thread if your problem is solved .
    Thann you
    Bishal
    Definitely need a coffee to start my day
    Edited by: BIshal Adhikari on Jul 9, 2009 6:44 AM
    Edited by: BIshal Adhikari on Jul 9, 2009 6:44 AM

Maybe you are looking for