Code for fetching delivery date

Dear friends,
Please help in the code for fetching the delivery date & planned date of delivery for the materials upon entering the Sales Order Number.
Thanks,
Nishu

Hi,
READ LIPS table with the Sales order and get the delivery number and with the delivery number go to LIKP table and get lFDAT (delivery date)and WADAT(planned Delivery date).
select vbeln
       from lips
       into l_vbeln
       where vgbel = salesorder
          and vgpos = salesorderitem.
if sy-subrc = 0.
select wadat
       lfdat
       into (d1 , d2)
       from likp
       where vbeln = l_vbeln.
endif.
Regards
vijay

Similar Messages

  • Fast change for statistical delivery date in me21n

    hi
    need fast change for statistical delivery date in me21n
    in me21n when i enter on to fast change screen i doesn't find statistical delivery date
    can anyone tell me the process
    thanks

    Dear Anudeep,
    You cannot change this via "Fast Change".
    Please see the usage of this field.
    Calculation of the delivery time is an element in the determination of a vendor's adherence to delivery dates (that is, the vendor's delivery timeliness, or on-time delivery performance) in MM Vendor Evaluation.
    If it becomes known that the vendor can only deliver ordered goods some days later than originally stipulated, for instance, you can change the delivery date accordingly for materials planning and control purposes. However, the statistics-relevant delivery
    date remains unchanged.
    As a result, the vendor's "on-time delivery performance" score worsens. At the same time, it is ensured that materials planning and control works on the basis of the right date.
    Regards,
    ian, Wong Loke Foong

  • Field for actual delivery date

    Hi ABAP gurus,
    i want to find actual delivery date field and table and also expected delivery date for delivery .
    can you please tell me the table for actual delivery date.
    Thanks,
    Jignesh .

    Jack,
    LIKP-WADAT_IST - Actual Delivery Date in a Delivery
    LIKP-WADAT - Expected Delivery Date / Planned Goods Movement date
    HTH
    VB

  • How to create an address code for PO delivery address?

    Hi Guys,
    How to create an address code for the delivery address in the purchase order? Please explain me with details.....
    Thanks
    Raja

    delivery adress records can be created with transaction MEAN.
    the number is purely internal.
    In ME21N you can then search by name (you will certainly not know the number)

  • Sales order cannot be created  for the delivery date before 20.10.2008

    when i create a sales order today (18102008) sales order cannot be created  for the delivery date before 20.10.2008
    how the system is checking the 2 days duration for delivery date - which table is having this duration days.
    is it dependent on sales order type.....
    actually i checkeup in V0V8 - even then i couldn't  solve this error when i am creating the sales order.
    Pls suggest

    Dear Selvamuthu
    In normal circumstances, you can create as many as sale orders as you can irrespective of delivery date, and system will not  prevent to create unless you apply some user exit for some reason.
    Check any user exit is applied for that sale document type where some logic would have been written in such a way that if stock is available, sale order can be created.
    thanks
    G. Lakshmipathi

  • What is t-code for return delivery to supplier ?

    what is t-code for return delivery to supplier ? I understand it can also be done through MIGO.
    And how can I get delivery number so that I can create invoice to send to vendor.

    Hi,
    If the Recieved material for any reason is rejected and needs to send back to Vendor.
    There is 2 options.
    1) At the time of GR if the material is rejected you can make return delivery in MIGO using Movement type 122 .
    with reference to this 122 document you can send the material back to vendor immidiatly.
    2)If the Material is accepted and Vendor invoice also processed and material is at production then if the material found rejected
    you need to create the Return PO for that vendor.
    Using ME21N enter all the details like Std PO and at item overview you need to select the check box Return.
    So the PO gets created.
    Against this returns PO you need to do the Goods reciept.
    So system will take movement type 161 automatically and your inventory stocks will goes less for that quantity.
    You need to raise the credit memo to debit the Vendor account in MIRO or any other process.
    So that your account also matched with qty & Value
    Then you send the Credit memo details to vendor along with material to the vendor.
    rgds
    Chidanand

  • Same deliveries for different delivery dates on Po

    I have a requirement
    If we use standard SAP and have a purchase order with materials that have different planned delivery times, we are going to create multiple deliviers from the PO based upoon the delivery creation date calculation.   Since we want to ship all of these materials on the same delivery ,  we have an issue.
    Is there any workaround for this ? PL help me.
    Thanks.

    Hi,
    If you have a different delivery schedules for a material with the vendor you can go for Scheduling agreement which is good option for this.
    Because in PO if you maintain the delivery schedules in Item detail>Delivery schedule  there is no check for this delivery dates.You can inward all the stock in a single delivery which don't have a control on that dates.
    If you follow the Scheduling agreement then system will not allow you to post the stock unless the delivery date is valid.
    rgds
    Chidanand

  • BAPI to fetch Delivery Data for  a given delivery number

    Hi Experts,
    Is there any SAP Standard BAPI to Fetch the Delivery/Picking data.
    Just to fetch  all the Delivery/Picking related data from SAP on Providing a Delivery Doc number.
    I will be thankful to you , if u let me know how to connect VB application to SAP using BAPI to fetch the data to VB application.
    Thanks & regards,
    Prashanth

    Go thru these links
    [link1|http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm]
    [link2|http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_cid417095,00.html]
    [link3|http://www.experts-exchange.com/Database/Software/ERP/SAP_ERP/Q_20693539.html]
    Regards,
    SAPient

  • Function Module for Changing delivery date

    Hi Friends ,
        I am held up with a scenario of changing the delivery date while creating purchase order. Could you please suggest any function module to change the delivery date in purchase order if it is less than 5 days.
    With Regards ,
    Sudhir S
    Moderator message: please do some own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 11:45 AM

    Hi praveen for u r requirement there is no need of any FM
    Try this code
    parameters:
      p_date like sy-datum,
      p_no type i.
    data:
      w_date like sy-datum.
    w_date = p_date - p_no.
    write: / w_date .
    it is enogh for u r requirement
    plzz reward if it is usefull...
    for any further quiries my mail id is [email protected]
    plzz dont forget to reward

  • IDoc programming for Requested Delivery Date - Inbound ORDERS

    Hi Folks,
    I want to manipulate Requested Delivery Date on the Sales Order.
    The Field for Req Del Date is RV45A-KETDAT.
    But this value is stored in VBAK-VDATU.
    When i am trying to modify this value using dxvbak structure, this value is getting populated correctly, but not updating in the table.
    Look at the code snippet below.
    if zedidc-sndprn = '0000902000'.
            IF ze1edk03-iddat = '002'.
              MOVE ze1edk03-datum TO zvbak-vdatu.             " Requested Delivery Date
               zvbak-vdatu = sy-datum + 7.
               BREAK-POINT.
               dxvbak = zvbak.
            ENDIF.
            endif.
    What's wrong here??
    Thanks,
    Matt

    Done

  • Workflow  for po delivery date

    Hi
    Good morning to all .
    Well I am an abaper and new in workflow . i got a requirement  to mail a user two day before po delivery date .
    can any one guid me .
    Regards
    Rakesh kumar singh

    I think if you are changing the Delivery date you can track this as the Change Event of BO BUS2012 gets triggered. You can track what type of change by coding in a virtual attribute of your Custom BO which is delegated to standard BO. In the attribute you should code that filter the changes are relevant(Delivery date change) for workflow or not. If the changes are relevant the Flag will be set. In the start condition(SWB_COND) of Wflow you should make use of this Flag for triggering.
    Regarding sending mail at end of day this can be done using Requested start Tab of step in Workflow Builder.
    Thanks
    Arghadip

  • Rejection code and Requested delivery date

    Hi Gurus,
    I create a sales order using TCode VA01 and add a rejection code.
    Automatically SAP doesn't allow to change the requested delivery date.
    I need to remove the rejection code to be able to change the requested delivery date.
    I'm very surprise with this behavior.
    When I check the customizing, we have the possibility to create a rejection code, no more.
    Is it a normal functioning?
    Many thanks.
    Stéphane.

    Hi,
    Yes this is normal behavior.
    When an item is rejected means, that particular item is no longer needed. Then how other data pertaining to that item is eligible for changes? Remember, change of delivery date means passing all the relevant information to MRP/Availability check. So it is wise, when an item is rejected it is good that all data should be in non-changeable mode.
    If you have many itemsin the sales order and you want all the item to be changed, then use the menu Edit -> fast change of -> Reason for rejection. (reason to empty or empty to a reason).
    Regards,

  • Fetching delivery date from sales order

    Hai folks,
    In, M.T.O.,
    According to the routing time for a material, after release of the production order, correponding order date or any sheduling  should be fetch in the sales order as a delivery date.
    thanks in advance for ur reply.

    Dear,
    Schedule the routing and maintain the value in material master by upating in CA96. Also check the setting of VA08.
    Regards,
    R.brahmankar

  • Proper approach for fetching the data

    Hello all,
    I am currently using some logic to fetch the following data from the SD tables.
    VBELN Delivery           LIPS
    LSTEL Loading Point   LIKP
    LFIMG Actual quantity delivered (in sales units) LIPS
    KTGRM Account assignment group for this material VBRP
    EXDAT J_1IEXCHDR.
    I have to join all the tables LIKP, LIPS, VBRP and J_1IEXCHDR. Is there an alternate way of fetching the data?
    A Sample Query is written below.
      SELECT  B~VBELN A~LSTEL B~LFIMG        
      C~KTGRM E~EXDAT AS WADAT_IST
        INTO  CORRESPONDING FIELDS OF TABLE LIT_TY_LIPS_S
       FROM   LIKP AS A
        INNER JOIN  LIPS AS  B     ON  A~VBELN       =  B~VBELN
        INNER JOIN VBRP  AS  C     ON  C~VGBEL       =  A~VBELN
        INNER JOIN J_1IEXCHDR  AS E ON E~RDOC        =  C~VBELN
        WHERE B~WERKS     =  SO_PLANT
        AND E~EXDAT   BETWEEN V_START_F AND SO_DATE
        AND C~AUTYP IN s_AUTYP
        AND E~STATUS = 'C'.
    Thanks in advance.
    Regards,
    Harshad.
    Edited by: Harshad Mishrikotkar on Sep 12, 2011 12:08 PM

    Harshad, if your target good performance? if yes then generally I don't prefer to join more than 3 tables at a time..
    and join only logical tables in 1 query and then use for all entries clause and move to another query..
    In your case, I would suggest join LIKP and LIPS and try to put as many where conditions as possible..
    then join VBRP, not sure about the table J_1*.. based on for all entries in query 1.
    I hope this helps.
    Regards
    Raghu.

  • Table for finding delivery date

    hello all,
    i m making a report for which will display the delay in delivery per vendor wise, can anyone tell me that how can i determine the time/days delayed by vendor? i m trying to take diffrence betbeen delvery date in PO and date on which Delivery Completeed check box ticked, but i m not getting the table which stores the delivery date?
    plz help. is there any standard tcode?
    regards saurabh.

    Hi,
    see vbak table and below tables
    /BEV1/RBVBAK                     Sales Document: Header Data
    /BEV1/REWART                     Rental Items: Delivery Schedule Items

Maybe you are looking for

  • How do I create a grid/table in Fireworks CS4?

    I hope I'm not missing something obvious here. We're designed an application that involves a lot of data entry so in my prototypes I want to make an table or grid kind of thingy (think Excel) but can't find anything like that in the Common Library. A

  • Loading External TXT Data

    Hi all, plz visit - http://www.vision-divine.com/samples/test.swf to see what i mean I am using FlashMX and i have the following - . a multiline dynamic box > named "mytext" . 2 triangiular up/down arrows for scrolling . . text database file > named

  • Delivery and Service Header Fields in RNIF Receiver Adapter for Rosettanet.

    Hello all, I need to populate the Delivery and Service header fields in Rosattenet MIME message in the receiver side.  For the sender side RNIF adapter, we can very well use the Adapter Specific message to get those fields from Rosattenet MIME messag

  • Export excel not supported in https using firefox

    Export excel option is supported in http URL but not supported in https using firefox.

  • Kill the X

    It is ridiculous that they took out the default shortcut Ctrl+Shift+Backspace to kill X, but it is even worse that every version of Gnome and KDE seems to change how you reenable this.  How do I get this back in KDE 4.3.4?  Can we keep this up to dat