Change goods Issue date and delivery date

while crating Sales document through VA01
i want  to replace goods issue date (VBEP-WADAT ) with my Z calender date.
so that delivery date(ETDAT) aslo should chaged automatically ( bcz iof the change in goods isuue date ).
how to achive this ?
i tryied in  Program    program of MV45AFZZ/ MV45AFZB in the User Exists mentioned below:
1.     Form Userexit_Check_VBEP
2.     Form userexit_move_field_to_vbep
i was able to change goods issue date (VBEP-WADAT )  but  not refleting in output screen,..
regards,
ramesh

Hi Venkat,
  Even it did not update in my user exit when I update from VBEP-WADAT.  So, I did back calculation (considering route lead time) and updated Delivery date field VBEP-EDATU.  It is simple.  I have given the sample code as below.
   if lines( xvbap[] ) = 1 and VBEP-ETENR = '0001' and            "Calculate RDD while the first line item entered
     vbap-route <> space and <<your GI date>> is not initial.    "Only when header RSD is filled
      select single TRAZTD into ws_traztd from tvro
            where route = vbap-route.
      ws_days = ws_traztd / 24 / 10000.
      if ws_days <> 0.    "Only when Transp. Lead time is maintained ( So, will not affect other entities )
         select single FABKL into ws_fabkl from T001W
            where WERKS = vbap-werks.
         CALL FUNCTION 'WDKAL_DATE_ADD_FKDAYS'       "Calculate as per Factory calender
             EXPORTING
               i_date        = <<your GI date>>
               i_fkday       = ws_days
               i_fabkl       = ws_fabkl
             IMPORTING
               E_DATE        = ws_date
              E_FKDAY       =
             EXCEPTIONS
                ERROR         = 1
                OTHERS        = 2
         IF sy-subrc = 0.
            VBEP-EDATU = vbak-vdatu.   "copy to the first line item
         ENDIF.
      endif.
    endif.    "Route days

Similar Messages

  • Req. delivery date and Delivery date should be same in a sales order

    Hi experts,
    We need a customization for getting Requested delivery date, Material Availability date and Delivery date should be same.
    Example if I keep request delivery date as 12/12/2012, system should consider same dates for MAD and Delivery and confirm the requested quantity.
    How to achieve this customization..
    Thanks,
    Bala.

    system should consider same dates for MAD and Delivery and confirm the requested quantity
    What you are going to achieve by this?  Hope you know the concept of MAD and confirmed quantity fields.  Let us assume, if stock is not there for a material for which sale order is created, can you let me know, you want the system still to confirm the quantity? You can post the goods issue only if system confirms the quantity in schedule line which is possible, only if stock is made available.  If client asks something which is not possible in SAP, think in a logical way how SAP works and convince them accordingly. 
    G. Lakshmipathi

  • Store Replenishment STO created date and delivery date

    Hi
    The Store replenishment STO generated out of WRP1 ; 
    The  STO document date and delivery date is defaulted to 3 days later.
    ie. WRP1 was run on 31st May.  But the delivery date and the STO doc. date is 3rd June.
    Is there any way to influence this?  We want it to be defaulted to the next date;  Replenishment is to be run for th next date.
    ie. June 1st.
    Regards

    Hi Carlos
    The master data of the article field MARC-PLIFZ- is maintianed as 0 days.
    Basically the replenishment is done in the same day.  (DC in the same city as the store)
    However still the delivery date in the STO is by default 3 days later.
    In the WRP1 screen - the  planning date is today date.
    Regards

  • Where does the data come from which powers the ship date and delivery date

    Hi All,
    Please let me know, where does the data come from which powers the ship date and delivery date?.
    Adi.

    Hi,
    DELIVERY DATE  will be maintain in the SALES DOCUMENT TYPES in VOV8 in the tab REQUESTED DELIVERY DATE/PRICING DAE/PURCHASE ORDER DATE.
    The field is PROPOSE DELIVERY DATE .
    If you check the field then the document created date will be the Requested date and will be carried from ORDER TO DELIVERY.
    If you want the delivery date other thann the CURRENT date then you have to maintain the LEAD TIME in days in the same tab.
    SHIP DATE: is the date on which you do the PGI in the delivery .
    Please check them and revert back if u need further details
    thanks,
    santosh

  • Significance of pricing date and  delivery date.

    Hello guys,
        Can any one explain the significance of  pricing date field in
                 1) Sales order
                 2)Details screen of Condition type .in v/06 screen
                 3) Copy controls.
    Regards,
    k.Vivek

    Dear K.Vivek,
    http://sap-img.com/sd013.htm
    Pricing date based on delivery date
    Used transaction VOV8.
    This configuration is by order type.
    There is a field called proposal for pricing date.
    There you can select pricing date as requested delivery date.
    A - Proposed pricing date based on the requested dlv.date (Header)
    This control is set at the document level as oppose to the condition type level (PR00).
    That means your other condition types such as surcharges and discounts are also determined using the requested delivery date.
    If your requirement is for PR00 to alone to be priced at delivery date then this will not work.
    How pricing date is determine in the sales order and billing document? Where is the setting?
    The pricing date is proposed based on the setting you make in the Sales document configuration. ( T code : VOV8)
    You have a field" Prop.f.pricing date " in the Requested delivery date /  pricing date /  purchase order date  segment.
    Then you can choose the follwoing options:
    Blank - Indicates the current date as the pricing date
    A -  Indicates the date based on the requested delivery date
    B - Indicates the date based on the order validity start from date
    And the pricing in the billing document is copied from thte sales order / Delivery document..
    It again depends on the setting u have in the copy control from order - billng or delivery - billing.
    In the copy control, in the item settings you have two fields relavant for this.
    One is pricing source and the other is pricing type.
    The pricing sources are generally the order.   But if you want you can change it to other values mentioned in the drop down,
    but this values have no effect if the pricing type is B.
    Any other value other than B in the pricing type will take the reference document price mentioned in the pricing source field.
    but for the pricing type B.  The new price is determined in the billing order.
    Hope this will help.
    Regards,
    Naveen.

  • Compare Actual PGI date and Delivery date

    Hi SAP Guys,
    I want to compare delivery date and actual PGI date. In likp having so many dates which date should I compare with Actual Pgi date. My requirement is identify the back dated PGI and delay PGI. Here I have seen created on date what the use of this date. Please guide me above issue.
    Regards
    Venkey

    Hi there,
    Created date is the date on which the delivery is created.
    Delivery date is the confirmed delivery date that is porposed after the availability check. It is same as delivery date at item level in SO.
    Actual GI date is the date on which GI is done. It is updated after PGI is done. Planned GI date is updated when delivery is created.
    Regards,
    Sivanand

  • Excise invoice date and delivery date difference..

    Hi all,
    1. Excise invoice is generated in the month of July for the delivery happened in June. Is there any implications?
    When i do registry update and Utilisation, does it have an effect?
    2. Pending Excise are yet to be created for the month of June, started creating the excise document for the July delivery. Do I need to cancel the July delivery excise document and then post the June delivery excise document for continuity of excise numbers, before starting the excise creation for July..
    Kindly guide me..
    Thanks,
    Saravana Raja

    Hi,
    As mentioned by Raj... it is OK as long as the goodds have not physically left the plant.
    The excise invoice has to be created immediately after the PGI is completed in the delivery and also discuss with your excise department for the regular practise .
    Make it a practise to check for all the open deliveries in the last week of the month and ensure that all the required excise invoices are created.

  • Delivery date and shipping date

    Hi,
    Delivery: individual delivery
    Shipment: collection of deliveries which has to be delivered if route is same.
    Then, my question is whether the shipping date and delivery date is same for a particular order? Then what is the filed and table for shipping date?
    Regards,
    Sooraj.M

    Hi Sooraj,
    The delivery document’s delivery date (LIKP-LFDAT) is independent of the various dates found on the shipment document to which the delivery belongs.  Shipment processing will not automatically change LIKP-LFDAT. 
    There are several planning and execution dates on the shipment document that can be considered the “shipment date”:
    Check-in
    Loading start
    Loading end
    Shipment completion
    Shipment start
    Shipment end
    All of these are found on the shipment header table VTTK.
    Regards,
    Ken

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • Regarding Goods issue date and order date.

    Hi All,
    Could you please tell me from where we can fetch Goods issue date and Order date.
    Waiting for your reply.

    Preeti,
    Goods issue date/order date of what ?
    Goods can be issued in a number of ways, in reference to many types of documents.  In each case, the GI date and order date are found in different places.
    Please elaborate your request.
    Best Regards,
    DB49

  • How to combine sales and delivery data

    hi
    i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
    The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
    Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
    Kindly suggest how to combine sales and deivery data.
    Regards,
    Monika

    I guess you do have shipping point in delivery.
    In most scenarios shipping point may not(or) may be same like order plant.
    Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
    With this reference key you can convert all delivery information to order (item) level.
    I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
    You may have to map delivery type to order type as per R3 configuration as well.
    speak with any Logistics guys for help.
    cheers
    Martin

  • Delivery not before date and Delivery not after date

    Hi Everyone,
    Can anyone help me in this issue, we need to map "delivery not before date" and "delivery not after date" from an EDI 850 into a sales order.
    Are there any fields to which we can map the data? if not would anyone suggest how to go about it?
    Thanks,
    Michelle.

    Michelle,
    We have a similar requirement, albeit we call it a Delivery Window. We have implemented this by mapping two E1EDK03 qualifiers (we use 033 & 034) to two Z fields extended to VBAK, which we then include in our Sales Order Delivery Date logic.
    Not very elegant, but then my understanding is that SAP has no concept of the Delivery Window.
    Cheers, Paul.

  • Crystal Report-Amount in Words Need correction and Delivery date.

    Dear Experts,
    Issue 1
                            In crystal reports i'm converting Amount in to words using the following formula. In that i am getting Every thing in Uppercase with - i.e. RUPEES ONE THOUSAND-FIVE HUNDRED AND .
    I need in Sentence case i.e all First Letters in Capital and also want to Remove '-'
    Amount in Word
    numbervar RmVal:=0;
    numbervar Amt:=0;
    numbervar pAmt:=0;
    stringvar InWords :="Rupees ";
    Amt := {OPOR.DocTotal};
    if Amt > 10000000 then RmVal := truncate(Amt/10000000);
    if Amt = 10000000 then RmVal := 1;
    if RmVal = 1 then
    InWords := InWords + " " + towords(RmVal,0) + " crore"
    else
            if RmVal > 1 then InWords := InWords + " " + towords(RmVal,0) + " crores";
        Amt := Amt - Rmval * 10000000;
        if Amt > 100000 then RmVal := truncate(Amt/100000);
        if Amt = 100000 then RmVal := 1;
        if RmVal = 1 then
            InWords := InWords + " " + towords(RmVal,0) + " lakhs"
        Else
            If RmVal > 1 then InWords := InWords + " " + ToWords(RmVal,0) + "Lakhs";
            Amt := Amt - Rmval * 100000;
            if Amt > 0 then InWords := InWords + " " + towords(truncate(Amt),0);
            pAmt := (Amt - truncate(Amt)) * 100;
            if pAmt > 0 then
                InWords := InWords + " and " + towords(pAmt,0) + " paisa only"
            else
                InWords := InWords + " only";
            UPPERCASE(InWords)
    Issue 2.
    At Delivery terms I'm using the following formula to display the delivery data. If the document date and due date is same it will print Delivery Immediate otherwise it should calculate the Delivery date from document date, but now it's printing DocDue date.
    I need to calculate Delivery Date = DocDuedate - DocDate. 
    If {OPOR.DocDate} = {OPOR.DocDueDate} Then
        "2. Delivery immediate"
    Else
        "2. Delivery on or before " &  {OPOR.DocDueDate}
    Thanks
    Kamal

    Hi
    Try this formula
    numbervar RmVal:=0;
    numbervar Amt:=0;
    numbervar pAmt:=0;
    stringvar InWords :="Rupees ";
    Amt := {@GrandTotal} ;
    if Amt > 10000000 then RmVal := truncate(Amt/10000000);
    if Amt = 10000000 then RmVal := 1;
       if RmVal = 1 then
            InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crore"
       else
            if RmVal > 1 then InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crores";
        Amt := Amt - Rmval * 10000000;
        if Amt > 100000 then RmVal := truncate(Amt/100000);
        if Amt = 100000 then RmVal := 1;
        if RmVal = 1 then
            InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " lakhs"
        Else
            If RmVal > 1 then InWords := InWords + " " + ProperCase (ToWords(RmVal,0)) + " Lakhs";
            Amt := Amt - Rmval * 100000;
            if Amt > 0 then InWords := InWords + " " + ProperCase (towords(truncate(Amt),0));
            pAmt := (Amt - truncate(Amt)) * 100;
            if pAmt > 0 then
                InWords := InWords + " and " + ProperCase (towords(pAmt,0)) + " paise only"
            else
                InWords := InWords + " only";
            ProperCase(InWords)
    Regards
    Vivek

  • RFQ quantity and delivery date

    Hi,
    I created a smartform for RFQ.I am getting material details from EKPO.But i need RFQ quantity and delivery date to be displayed for each quantity.I found the field in structure RM06E.I tried by putting structure name in form.Its not working.
    Any table to find these data(reg RFQ details)?How to solve this issue?

    Hi,
    u can get the RFQ date and Quantity from EKKO & EKPO tables.
    Quantity: EKPO-KTMNG;
    RFQ No and Date: EKKO-EBELN, EKKO-AEDAT
    Thanks,
    Pavani.

Maybe you are looking for

  • User Exit at MI07

    Hi Everybody, I have to use an user exit for MI07 transactions, but I couldnt find. Do you know if that exist? Regards. Leonardo

  • Wrong entries in BBP_PDACC

    Hi, My client is working with SRM 3.0. Currently, we are having a problem where we see some wrong entries in BBP_PDACC table. There are some WBS elements in this table with accounting type 'CC' (which is for cost centers). I have checked in ECC to co

  • Decimal Place error

    Dear Expert,   I am facing a very critical problem. Decimal places for tax has been set to 2 places. Recently through government regulation a new percentage with 3 decimal places have come up. I tried to change it from GENERAL SETTINGS. But the messa

  • V2.1 - Exporting DATE columns produces invalid SQL

    If you export a table with a column of type DATE, the SQL produced is invalid: Left-click on table in tree view -> Click on "Data" tab -> Right click on data -> Export Data -> Insert -> Clipboard: to_timestamp('01-SEP-09 17:49:21','DD-MON-RR HH.MI.SS

  • How do I lock a single cell or row or column

    how do I lock a single cell or row or column