BAPI_PO_CREATE1 - Delivery date not changing

Hi All,
I ''m using BAPI_PO_CREATE1 for po creation.
When I try to enter the po creation date using the bapi its not taking the value I enter.
It takes from the system .
      it_shed-po_item       = git_input-ebelp.
      it_shed-sched_line    = '0001'.
      it_shed-delivery_date = '25.05.2008'.
      it_shed-stat_date = '25.05.2008'.
      it_shed-quantity      = git_input-menge.
      it_shed-DEL_DATCAT_EXT = 'D'.
      APPEND it_shed.
      it_shedx-po_item   = git_input-ebelp.
      it_shed-sched_line = '0001'.
      it_shedx-po_itemx   = 'X'.
      it_shedx-sched_linex = 'X'.
      it_shedx-delivery_date = 'X'.
      it_shedx-quantity      = git_input-menge.
      it_shedx-DEL_DATCAT_EXT = 'X'.
      it_shedx-stat_date = 'X'.
      APPEND it_shedx.
Please let me know how to enter the date.
Thanks

Hi Ann,
Currently I don´t have a system to test it myself, but can you please try the following:
Replace '25.05.2008' by '20080525', the first is a external format and the second is the format used internally.
I don´t know you copied the code or you have written it again, but the field sched_line in the second structure is still pointing to the first (missing x)..
I hope this helps you!
Good luck!

Similar Messages

  • Schedule line : delivery date not changes

    Dear Gurus,
    When I change delivery date change in delivery documents and sales documents, picking date, pricing date, etc.. changes, but in sales document, schedule line's delivery date does not changes.
    Please help me to change the same and kindly tell me, will it make any problem.
    fyi..
    If I have not created delivery for the respective sales document, then I can able to change the delivery date in the schedule line(sales document).
    I'm just a new born in this area so please feed me...
    Regards
    Viswanthan.G

    Hi Viswanath,
    When you change delivery date change in delivery documents and sales documents, picking date, pricing date, etc.. changes, but in sales document, schedule line's delivery date does not changes.
    This is because the system calculates the dates based on avaliabiltiy check and it picks data from material master as well, based on purchasing processing time, GR processing time, loading time ..etc and it will conclude accordingly.
    Its like system will do backward schdeuling and establishes material avaliabilty date.
    Thanks & Regards,
    Krishna

  • Delivery date not changed in ME22n but only in ME21n.

    Hi all,
    I have an issue with the PO transaction.
    In ME21n,if I change the shipping instructions under the delivery tab,via an enhancement the planned delivery time (no of days) changes and hence the delivery date also.
    However this behaviour is not obeserved when changin a PO but only when creating a PO.
    CAN anyone direct me how do I debug this issue?
    AS I mentioned we have done a custom develpment via BADI ME_PROCESS_PO_CUST to change the planned delvery time when shipping instructions are chnaged but this develoment doesnt affect the delivert date.

    Hi
    Did you check if in change mode whether your enhancement is actually triggering or not..? Please share the method which you are using along with sample code as an attachment
    Nabheet

  • Delivery date keeps changing..!

    I bought an iMac 21.5 inch on October 16, 2014 via phone.  I made the full payment with my credit card.  Received an confirmation e-mail stating that the delivery date is November 3rd, 2014.  The next day I received another e-mail saying that the delivery date has changed to 22nd of October, 2014.  Since than I've been waiting for the iMac, but have not received it yet!  I made numerous phone calls to Apple Store, Turkey. Guess what they couldn't figure out why my shipment date changed and whereabouts of my iMac!  Finally I received another mail on 29 October, saying that the iMac is on the way and it will be on my hand on November 12th! Still waiting..! And the world largest, biggest and probably the richest company personell can not give me a reasonable answer to my problem! By the way they confirmed that they have it in their stocks of the day of my purchase...!

    You're right.  This is a technical site and I shouldn't have posted that message but I had to write about this to someone.. So please excuse my posting.  By the way just to let you know I admitted that they have no reasonable answer and apologised. They even told me that they are ready to make an extra 5% discount or I could make a purchase from the online store equivalent to 5% of the total price of iMac!

  • Delivery dateis not changing...afs material..

    hi,
    in our project we are using afs material.this material is extended to two plants.when an order is created in one plant ,the atp check is done and is saved.after that if we are changing the plant the delivery date has to change because of difference in planned delivery time from plant to plant.But it is not happening and it is showing the same delivery date of the first plant wihout atp check....why is it so?

    Hi Kapildev,
    Thanks for your reply.
    But this will be also available in standard sap.In standard SAP if at all we change the plant and without using availability icon the delivery dates will change.Similarly is there any option to see the changed delivery dates in AFS by just changing the palnts.
    Can you please provide the document regarding this if u have any information.
    Regards,
    Deepak.

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

  • Error - Delivery date not set. Notify your system administrator - TcodeKKS1

    Hi,
    While using Tcode - KKS1  we are getting the Error - "Delivery date not set. Notify your system administrator"  for two Production orders.  I have checked all the date fields in Production order. What could be the reason for this.
    Timely help will be highly appreciated.
    Thanks is advance
    Narayanan

    Hi,
    check SAPNET note 83914 and related notes.
    best regards, Christian

  • Delivery date not getting transferred while running BAPI_PO_CREATE1

    Hi Experts,
    I am passing the delivery date item level delivery schedule to the function module
    BAPI_PO_CREATE1. But it's not taking it in.The new PO is gettinig created with blank delivery date. I implemented the OSS notes 858316 & 890901 with no luck in this matter.
    Please help.
    Regards
    Navin

    Hi JJ
    BADI BBP_DOC_CHANGE_BADI- BUS2201 . while creating PO try to validate them if you are in ecs mode
    i believe standard SAP dont recalculate delivery date while creation of PO.
    regards
    Muthu

  • BAPI_PO_CHANGE to change Delivery Date not working.

    I'm using BAPI_PO_CHANGE to change the Delivery Date of a PO, but it's not changing it to the value that I pass it.  It changes the Delivery date but not to what's been passed to it but some date that I have no clue where it comes from.  Anyone have any solution to this issue?
    Below is my code snippet:
        MOVE: ctab-qty_packed     TO schdo-quantity,
              zrecv_ship-eta_date TO schdo-delivery_date.
        MODIFY schdo INDEX ix.
        MOVE: schdo-po_item       TO schdx-po_item,
              schdo-sched_line    TO schdx-sched_line,
              'X'                 TO schdx-po_itemx,
              'X'                 TO schdx-sched_linex,
              'X'                 TO schdx-delivery_date,
              'X'                 TO schdx-quantity,
              'X'                 TO schdx-stat_date.
        APPEND schdx.
        IF qty > 0.
          ADD 1 TO schdo-sched_line.
          MOVE: qty               TO schdo-quantity,
                ndate             TO schdo-stat_date.
          APPEND schdo.
          MOVE: schdo-po_item     TO schdx-po_item,
                schdo-sched_line  TO schdx-sched_line,
                'X'               TO schdx-po_itemx,
                'X'               TO schdx-sched_linex,
                'X'               TO schdx-delivery_date,
                'X'               TO schdx-quantity,
                'X'               TO schdx-stat_date.
          APPEND schdx.
        ENDIF.
          CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder = ctab-ebeln
            TABLES
              return        = ret
              poschedule    = schdo
              poschedulex   = schdx
              potextheader  = hdr_txt.

    Ok, I figured out the issue.
    It seems like the Delivery_Date field in BAPIMEPOSCHEDULE is not a date component rather it's a CHAR(10) field so therefore when reading in the SAP Date, it wasn't converting it properly.
    As long as the date entered into that field is like "MM/dd/yyyy" it will overwrite the original delivery date that was present.

  • Statistical Delivery Date not apperaing in the Purchase Order

    Hi Gurus,
    Recently the statistical delivery date(SDD) in the Purchse order has stopped appearing in the PO.
    Earlier it was appearing but since last one month it has stopped appearing.
    The field remains blank inspite of sending the message to the vendor & changing the delivery date of the line item.
    Is there any Config setting which i am missing.
    or is there any SAP Note to be applied.
    Thank you
    NS

    did you change something in your system and process?
    using BAPI or userexits, modified standard program?

  • Sales order delivery date not update on PO delivery confirmation

    Hi all,
    I have the following issue. When a sales order is created for a material that is to be purchased a purch req is automatically created. Next I create a Po from this Purch req. When I confirm the delivery date to a later date in this po and do this without entering a storage loc in the po, the delivery date in the sales order remains unchanged, which should be adjusted according to the confirmed delivery date in the PO.
    When I do this with a storage location, the date is changed in the sales order.
    Anybody any ideas on what could be the reason for this?
    Thanks,
    Kevin.

    Hi there,
    I thumb rule that you have to follow when posting the thread is, to be clear in what you are asking. Looking at the thread posted, can you make out anything? No spaces, no full stops. How will people understand what your query is? Just read back your question & help us understand what does the query mean.
    From what you have given, you are saying that in material master MRP views, GR processing time is mentioned as 15 days. What after that? Are you asking of the materials are available before that 15 days & you run an availability check is the delivery date going to change? Is that what you are asking?
    If the material is already available on that date, system will confirm the reqested delivery date. If item is not available then system will propose a new confirmed delivery date basing on the availability check. It will not propose a date which is earlier to the requested delivery date. It either confirms the requested delivery date or proposes a confirmed delivery date at a later time.
    For eg when the customer requests delivery on the 25th in the sales order, then if material is available, system will confirm 25th as the delivery date. If material is not available,, then it will check item availability & proposes 28th as confimed delivery date. It will never propose 22nd as delivery date.
    Regards,
    Sivanand

  • Check required for Required Delivery date not to be copied in Billing date

    Hi Friends,
    We have a requirement by the client that if we change the required delivery date in the order,the billing date should not be changed at the sales order item level.
    Requirement comes from the fact that management decides a day on personal negotiation, when should be the billing date and the delivery date is independent of billing date.
    As of now ,we are billing based on the sales order therefore the billing date is changed if we change the required delivery date.
    I would be grateful,if anybody can help me.
    Regards,
    Amit Kashyap

    Hi Amit,
    You have to maintain the invoicing dates in payer master {billing document tab}, which in turn will control the billing dates. As per the agreement with the customer you will create a calender which needs to be filled in the above mentioned field in the customer master.
    Reward points if you are satisfied with my view.
    Hrishi

  • Delivery Date not Set in Production Order

    Hi,
    I am trying to settle a MTS (make to stock) production order that is both CNF and DLV. When I try to calculate variances, I get a KV 239 message stating that the delivery date is not set. I set this order to TECO and went to recalculate WIP but the production order cannot settle because this error still remains. When I drill down on the error, it states that there was an error in the program which set this order to DLV status, when no delivery date has been set. I can't see where this is looking for the delivery date. Has anyone come across this issue and if so, how would I go about correcting this?
    Thanks!

    Hi Team,
    Looks like it is not a common problem probably you need to look out for any OSS notes.
    Any you can check the Delivery date of the order by
    1. In the order display mode CO03 hit the "I" - Status Information Icon which on the right side where order status is displayed. Now system should take you to the Display status screen, here place your cursor on the "Delivered" text and go to the menu bar : Extras-->Change documents-->For Status, now system will display when the DLV status was set.
    Other option.
    2.In the order display mode CO03 use the menu Goto--->Documented Goods Movment. Now system will display all the goods moved against this order select the last GR-101 movement and double click the line, now system should take you to the Material Document in this check the posting date... that should be the delivery date.
    Regards,
    Prasobh

  • Delivery dates not affected after route determination

    The dates found on the shipping tab in delivery header are not affected after a route determination.
    In sales order, if route is changed, the dates are affected.
    In delivery, the route is re-determined at delivery creation, but if route transit time is different the delivery dates are not affected. It retains the sales order dates.
    Need system to change dates according to new route.
    Where is this set?

    Hi,
    Transit Time and Transportation Lead time comes from Route while Pick/Pack time and Loading time comes from Shipping point.
    May be in your case, while re-determination of route, just check if the time is enough to affect the date i.e. more than 24 hrs or so
    Hope you got it what I intend to communicate
    Regards
    SD

  • Requested Delivery Date not getting filled in ET_SALES

    Hi Experts,
    I am trying to read the Requested Delivery Date from FM CRM_ORDER_READ --> ET_SALES before the order is SAVED.
    But the ET_SALES --> REQ_DLV_DAT is not getting filled until the Order is saved.
    However, ET_SCHEDLIN --> FROM_TIME is getting filled even before the order is saved.
    Is this standard functionality or am I missing on something?

    Hi,
    In case you have missed on regular delta then you don't have any other choice than to selectively delete reciord from Infoprovider in case there is only cube..
    If DSO in between with overwrite just load the records in DSO and check what is change log for this record.
    If you can selectively load you can selectively delete for recent period..load again for that period in set up table then to SAP BW through full repair option.
    Thanks and regards

Maybe you are looking for