Material availability Date - User Exit

Dear All,
Can any one help me in finding out User Exit to change Material Availability date in VA01, which system propose automatically.
The Problem is I need to assign Mat aval. date as say SY_DATUM + 60. Then system should take this date for ATP calculation(for eg: Loading date,Goods issue date,Transport.plan.date) and finally it should propose Delivery date.
It would be great helpfull for me if any one help me in this issue ASAP.
Advance Thanks for your help
With Regards
K.Babu

Hi,
Try using USEREXIT_AVAILABILITY_IN(RV03VFZZ) or USEREXIT_ADD_FIELD_TO_LINE(FV45VFZZ) exits in SD. Due to various combinations possible (for example if you use route-scheduling it may behave differently than otherwise), it may not be possible to apply a common logic.
I would suggest using USEREXIT_ADD_FIELD_TO_LINE to modify the date fields in the structure MVERF (field EDATU : Delivery date, MBDAT : Material avail. date and so on). At this point, system has already calculated the first set of dates based on customer requested delivery date, so you will need to do adjustments in all fields accordingly.
Eg in this exit:
w_date = sy-datum + 60.
offset = w_date - mverf-mbdat.
mverf-mbdat = mverf-mbdat + offset.
mverf-lddat = mverf-lddat + offset.
mverf-edatu = mverf-edatu + offset.
Please note it will need some adjustments if you have a shipping calendar (eg sundays off..) in which case the offset may be a little different for EDATU.
cheers,

Similar Messages

  • User exit  to change material availability date

    Hi Gurus,
       my requirement is like I need to change the material availability date based on some conditions.
    Is there any User Exit to change the availability date so that I can dump my code in the user exit .
    If not is there any alternative process to get the solution.
    Thanks,
    Sudhaa.............

    Hi Sudha,
    Can you tell me your requirement clearly please.
    Regards,
    Dhanunjaya Reddy

  • For Dynamic Credit Check replacing Material Availability date with Delivery date

    Hi All,
    Our client has this requirement, where they want to change the standard SAP functionality which Checks whether a schedule line item in a sales order is with in horizon or not based on "Material Availability Date" VBEP-MBDAT. They want in place of this Delivery date of schedule line should be used i.e. VBEP-EDATU. I did some research and found out that this could be done technically by updating the BADI "BADI_SD_CM".
    Now we are stuck as to what needs to be changed? has anybody worked on this kind of requirement before?
    Please share your past experience.
    Thanks and Regards,
    Prateek Maheshwari.

    As you know, VBELN-Currency-POSNR-ETENR-MBDAT is standard exposure key of sales order but my ex-colleague changed it into VBELN-Currency-POSNR to compress exposure data for certain CCA.
    In this case, of course, that CCA should meet some biz requirements(User-exit. etc) like no partial delivery. etc.... for integrity of exposures..
    This case is different because you want to change value of key....and it's Date!!!!
    Anyway I think it's techinically possible but it's very risky in live system because existing exposures would be not removed even if delivered, changed, deleted or blocked.
    So you have to delete all exposures and rebuild after program changed.
    I'm writing it's possible now but I refused when my customer want to change it because I don't have any way to rebuild huge data in live system.

  • Material Availability Date and Corresponding Basic finish date

    Hi experts,
    I have one requirement from my Business for updating Basic Finish date based on the Material availability date
    Requirement goes like this, When we enter a Component of 100 qty  in the service order , if stock is not available we get system status as MSPT and IWBK we can see how much quantity confirmed
    But i dont see any table or report which shows when this material can be available for further delivery. Based on the next available material date i have to change the basic finish date in the service Order
    Please let me know if you any report available for this or any standard approach. I want to know if any exist to leverage this functionality and logic how to get this accomplished
    thanks
    sarvan

    Sarvan,
    You would need to perform this check when saving the work order as there could be multiple components all with differing ATP dates.
    But a development could do something like:
    Read all active/open components/materials on the work order
    Determine the availability data for each component/material
    Determine the latest of the above dates
    Apply this date to the order Basic Finish Date
    You would need to ensure your scheduling parameters do not set this date back to its original value (OPU7).
    You could achiev the above through user-exit IWO10009 (SMOD) or BADI WORKORDER_UPDATE (SE18).
    PeteA

  • Update Material Availability dates during order creation

    Hi,
    We have a requirement to update the material availability in the schedule lines of the order when the order is being created.
    We want the update to happen after the sales order is in the Data base. We tried calling a Function module in Update task. The function module is written in the EXIT_SAVE_DOCUMENT form of sales order user exit.
    The FM is getting called on the commit work , but not updating the sales order. We are getting an error " Material availability date should be less than load date". On debugging we noted that the SD_SALES_SCHEDULE_MAINTAIN is called with a load date of 00/00/0000 since the sales order is not in DB.
    Is there a way to call the FM after the sales order is in the database.
    Regards,
    Prabaharan G

    Worked using the enhancement framework development

  • Material text copy user exit

    Hi,
            I want to know user exit name for sales order when it copies material text to sales order in  line item text.
            Pop window will get triggered when material text copied from material to sales order item text.
    Thanks & Regards,
    Shekhar
    Edited by: chandra shekhar dubey on Nov 17, 2010 9:20 AM

    Hi,
    Try using USEREXIT_AVAILABILITY_IN(RV03VFZZ) or USEREXIT_ADD_FIELD_TO_LINE(FV45VFZZ) exits in SD. Due to various combinations possible (for example if you use route-scheduling it may behave differently than otherwise), it may not be possible to apply a common logic.
    I would suggest using USEREXIT_ADD_FIELD_TO_LINE to modify the date fields in the structure MVERF (field EDATU : Delivery date, MBDAT : Material avail. date and so on). At this point, system has already calculated the first set of dates based on customer requested delivery date, so you will need to do adjustments in all fields accordingly.
    Eg in this exit:
    w_date = sy-datum + 60.
    offset = w_date - mverf-mbdat.
    mverf-mbdat = mverf-mbdat + offset.
    mverf-lddat = mverf-lddat + offset.
    mverf-edatu = mverf-edatu + offset.
    Please note it will need some adjustments if you have a shipping calendar (eg sundays off..) in which case the offset may be a little different for EDATU.
    cheers,

  • Material Avail.date determination

    Dear all,
    In transaction OVLZ, we have customized per shipping point the days to get the material availability date. And it works Ok.
    But, I think you can do this determination by material as well.
    In material master data, we have in tab "Sales:General/Plant" some fields to use for this date: Setup time, Proc time.
    how can I use this time? Which possibilities do exit to obtain the material availability date?
    Thanks in advance.
    Iné

    You can also determine by Sales Document Type, whether Delivery & Transportation Scheduling is to be done or not.
    This can be done at:
    IMG - Logistics Execution - Shipping - Scheduling - Delivery Scheduling and Transportation Scheduling - Define Scheduling By Sales Document Type..
    As far as Pick / pack time, Loading Time & other days are concerned, they are defined in OVLZ & nowhere else.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Update Material Availability Date for Sales Order having a Delivery

    Dear Gurus,
    We have a bit out of the way scenario. There is a o/b delivery already added to a shipment. And then we receive a IDOC from external MES System (i.e. Production) with new material availability date. This new material availability date is updated on Sales Order. In short the order is delayed.
    Current Solution:
    In this case the user has to remove the delivery from the shipment manually. then the IDOC deletes the  delivery and the updates the sales order with new date followed by creation of new delivery.
    The business expects to updated the Sales Order material availability date without changing Shipment / delivery. Any solution?
    Current solution has to be changed as for Shipment purpose changes are made to delivery which are lost when the delivery is deleted.
    Edited by: abhishek singh on Feb 3, 2012 10:21 AM

    hi
    in this case you have to adopt the business process change.
    you have to update the EDI first and then you create delivery.

  • Material Availability date differs in R/3 & APO

    Hi,
    We are facing Issue with Material Avaialbility date for Planner order/Manufacturing Order in R/3 and APO.
    We are using a Master Recipe for PDS Creation in APO which consists on 9-10 different operations, out of which only inbetween operation 4-5-6 is scheduled in APO.
    So in APO Other Operations are not availble in PDS and hence not considered for scheduling as required. Also GR Processing Time is maintained on Product Master for which infinite Capcity Handling resource in created in APO.
    When we schedule Operations in APO, the Scheduled dates for Operation 4-5-6 is sent back to R/3 and for other Operations based on relationship maintained takes addistional 1-2 Days.
    In R/3 Availability Date for Planner Order/Manufacturing Order is calculating by adding a GR time after Operation 10 end time, while in APO as ony operation 4-5-6 is available a GR time is added after Operation 6, which is resulting in Differnet availability date for Order in R/3 and APO.
    Kindly suggets a way to same date in R/3 and APO, if anyone has faced same Issue.
    Thanks for your Help !!!

    Hi Senthil,
    I completly understand, that APO Material Availability date is GR end Date while in R/3 its a Process Order end date.
    But Problem is not that.
    Problem is not all operation of Process order are in APO, so assume u have 5 operations in Process order out of which only first 3 are relevant for schedulilng in APO. So APO schedules these 3 Operation and adds the GR time to Show the avaiablity date.
    While in R/3 GR Time is added after end of Operation 5 which is right, so GR end date in R/3 and APO dont match.
    Let me know if you think some more on this...!!!
    Thanks and Appreciated !!!

  • Material availability date issue

    Hello,
    I am trying to create a sales order with 100 Kg of one material listed. Unrestricted stock for this material is 780 Kg in the system. When I save the order however, material availability date shows as one day forward from the current date, i.e. tomorrow's date shows if order was made today. This affects the posting of the dispatch advise (Outbound delivery). It does not let me post the DA until I change the selection date in VL01N to a date that is the same or later than the material availability date. This is fine. What I want to know is why is the material availability date showing as one day after the order date on the sales document? If stock is on hand and we want to dispatch the same day as the order it can't be done at present. Please help.
    Regards

    Dear Khan
    Go to OVLZ, select your shipping point and check in "Pick/pack time wrkdys" whether any value is maintained.  If so, remove that and now retry.  Bcoz, for example, if 2 is given in this field, even if stock is available on the same day of order creation, system will allow to do PGI only after 2 days from the date of order created
    thanks
    G. Lakshmipathi

  • Creditreport that displays Sales Orders with Material Availability Date as

    Hi
    I need input if the following requirement can be met in FSCM credit mgmnt.
    Currently In FDK43 there is a total sales figure that represents the Sales that are consuming the Credit Limit assigned to the customer, unfortunately there is no drill down on this number to see which sales orders are responsible for the consumption of credit
    Do we have any sales report that displays Sales Orders with Material Availability Date as an output in conjunction with Credit limit .

    Not in standard provided. Custom program is required.
    Regards
    Hein

  • MRP is not considering material availability dates for sorting customer ord

    Hello Experts,
    MRP is not considering material availability dates for sorting customer order/ sales order in sequence (thatu2019s is oldest from newest in order) in MD04.
    Please suggest.
    Thanks,
    Om

    Om,
    No.  Aside from my obvious desire to preserve my privacy, it would be a disservice to the other forum members.  No-one else but you and I would understand your problem, and no-one else but you would be able to benefit from any solutions. 
    There are dozens of free public portals suitable for posting pictures on the internet.  I suggest that you use one.
    Best Regards,
    DB49

  • Material Availability Date

    HI ALL,
    I have a client..
    She requested to configure a route for two new customer..
    I configured the new route: R1, it has 22 calendar days transit time, and 3 working days transportation Lead time.
    Then she create an Export Order on 12/01.
    Indicating the Required Delivery Date of 12/30.
    Then Automatically the:
    Material Availability DAte defaulted to 12/8;
    Goods issue date 12/8;
    Loading Date 12/8;
    Transportation Planning Date 12/3.
    1. Am I right in saying that the computation for the Material Availability date for the above example is based on the indicated Required Delivery Date which is 12/30? Is it 12/30 - 22 days (transit time) = 12/08 MAD? Considering also that the material will have a stock that time (based on Planned orders)?
    2. And then regarding the transportation Planning date, am I right in saying that it was computed 3 working days from MAD 12/8? (weekend 12/6 and 12/7)
    3. How can I possibly configure the Material Availability Date to be 25 days from the Required Delivery Date without any impact to Transit time of 22 days? Is there any other way? Its like 22 days - Transit time and 3 days for material preparations?
    I'll appreciate any prompt response. Thanks!
    -Jisley-

    Hi there,
    1) Transportation lead time TLT is the time that is required by the transport planning point to finalise & prepare for the tramsport (like finailise the carrier, route, costs etc).
    So the TLT is 3 days from the order load date. The system need not wait till the MAD & then calculate MAD + 3 days for transportation planning time. Even tough material is available or not TLT is 3 days from order date.
    2) When you mean 3 days, it need not necessarily mean 3 working days. Check the factory calender assigned to the route & the shipping point. Check what are definied as working days / holidays. System will calculate accordingly. If Sat & Sun are holidays in the factory calender, then it would take 3 working days. Else it is 3 calender days weekends not included.
    3) MAD is calculated by the time mantained in MM02 -> MRP 2 screen. You will maintain the inhouse processing time for finished goods (internallly produced goods) & planned delivery time / GR processing time for trading goods (externally procured goods). If you are aware, MAD is calculated through backward scheduling from the requested delivery date RDD. From the RDD, system will go backwards & propose GI date, loading date, pick pack date basing on the times maintaind in shipping points & routes. Goods should be available on the pick pack date. Else it will check the new MAD (basing on MRP 2 values in MM02) & then carriers forward scheduling to propose a new confirmed delivery date. If you want to have MAD of 25 days, then maintain 25 in MM02 --> MRP 2 values & check it.
    Regards,
    Sivanand

  • Is the Sales Order Item User Status available in user exit MV45AFZZ

    Hello,
    Does anyone know if a sales order line item user status is available within user exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT)?
    I need to send an email when the status changes from one specific value to another specific value but I don't seem to have access to what the latest value is in this user exit.
    I have found a table XTVSTAT which cntains some user status' but it's not clear which status maps to which line item.
    If anyone has any suggestion please let me know.
    Thanks,
    Ruby

    Hi,
    I do need to access the values as I need to check for a specific change to the user status from value A to value B.
    I have already tried debugging the user exit and searching through the available variables but the status information doesn't seem to be available.
    I guess I will have to try the output determination route. Can you explain this in a bit more detail please.
    Thanks,
    Ruby

  • Material Availability Date on Closed Day

    Hi,
    We have an issue whereby a customer order is dated out correctly to the new year on an open day ie 05.01.2010 but the material availability date is falling on a closed day ie 30.12.2009.
    I've checked both the factory and holiday calendars and these are all showing correct closed and open days.
    Any thoughts?
    Thanks in advance.
    Mike

    Hi Mike,
    SD scheduling is tricky stuff...
    There is also a calendar for the shipping point.
    Did you evaluate if it has any impact on sales order scheduling?
    The truth is that I am not sure about it. Just trying to help.
    This is the point where debugging might be the fastest way to get an answer. If you can find the function name for date determination, put a break-point there!
    Best Regards,
    Franck

Maybe you are looking for