Update Schedule line Delivery date using Bapi_po_Change

Hi all,
I am using Bapi_po_change to Update the Schedule line Delivery date(EKET-EINDT) for the PO based on the Item and the Schedule line.
I am passing the PO number, Po header, Item structure, Schedule line Structure.
But the Date is not getting updated in the Eket table.
Please suggest.

Hi Sukriti,
Thanks for the Response, yes i have used the Bapi Transaction Commit Also .
The point is I am able to Update the Statistical Delivery Date in the Same EKET table using BAPI_PO_Change .I have Checked all the Ways to update the EKET-EINDT(Delivery Date)but no Unable to do it.

Similar Messages

  • Calculate all days in month from schedule line delivery date for 12 mths

    Hi experts,
    I am trying to solve a problem and would appreciate any help! Im on BI7.
    The user will input a date for the schedule line delivery date via a variable.
    From this date I need to go forward 12 months exactly and display a key figure (outstanding value) by months but the first and last months must only use the days in that month i.e not the whole month if not selected by the user.
    I.e if the user types in 13.05.2008
    The display need to show (columns)
    May 08 (13th to end of May 2008)
    June 08   (All)
    July 08    (All)
    August 08    (All)
    Sept 08    (All)
    Oct 08     (All)
    Nov 08     (All)
    Dec 08    (All)
    Jan 09     (All)
    Feb 09    (All)
    Mar 09    (All)
    April 09   (All)
    May 09  (1st to 12)
    So I neen to restrict the key figure (Outstanding Value) by Schedule Line Delivery Date and display as above on a 12 month forecast basis from the day (sch line delivery daye) entered as a variable by the user.
    I also need the first month to only show the dates in the month remaining including the date entered as a variable. The last month must go up to the day before exactly a year in front.
    I have created the 12 months as a structure and can include the key figure and the schedule line delivery date. The schedule line delivery date for each period needs to be restricted. How can I do this to achieve the above?
    Thanks in advance. Will assign good points for a speedy solution.
    Best
    Steve.

    Hi,
        Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type.  Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
    Regards
    Ram Pedarla

  • Schedule Line Delivery Date Calculation with Transportation Scheduling

    Hi All,
    We are currently running into a problem where our Sales Order Schedule Line delivery dates are being pushed out too far into the future - because of the Calendar being used to determine the transit time.
    We have 'Delivery Scheduling' and 'Transportation Scheduling' activated for our Sales Document type
    We have Routes that are configured with a 'Transit Time' and a 'Factory Calendar'
    Order Scenario:
    'Factory Calendar' assigned to our 'Route' is setup with only one 'Workday' in a given week e.g. Wednesday
    Our 'Route' has a Transit Time of 2 days
    We create a Sales Order on Monday for a Material that is available in our Plant
    The 'Goods Issue' date is being determined correctly for the next Workday - being Wednesday
    The 'Delivery Date' is extending out over 15 days (2 Wednesdays into the future) - since it is working on 'Calendar Days' and not 'Actual Days'
    Does anyone know of a way (config or other) to only influence the 'Goods Issue' date with the 'Factory Calendar' assigned to the Route, and have the 'Delivery Date' calculated using the Transit Time on the Route and 'Actual Days' rather than Calendar days?
    All help greatly appreciated.
    Thanks,
    Ravelle<i></i>

    Hi Pathik,
    Thanks for your reply.  I have already maintained the Calendars I'm using for this business process in <SCAL> - same as <OY05>. 
    The problem I'm having though is that by assigning a Calendar directly to my route (which I doing to influence the goods issue date - using a 1 Working Day Calendar) it is also taking precedence in determining the Transit time - which in this case I don't want, as I want my Transit time to be determined using a 5 Working Day Calendar.
    I don't think this problem has a config option as a work around...I think the only possibility in this case is a development to achieve the results we need.
    Thanks,
    Ravelle

  • I want to pick up Schedule line Delivery date based on Sales Order of Mater

    Hi Experts,
    I have one scenario like,
    I want to pick up Schedule line Delivery date based on Sales Order of Material.
    For example :
    Go to va03
    Give the order no
    Press the enter
    Double click on material.
    Go to Schedule line Tab
    Then we can find out the Delivery date .
    I want to pick up the that Delivery date. Could you please help on that.
    Thanks,
    Amjad.

    Hi,
    schedule line dates are available in VBEP.
    VBEP-VBELN = sales order number.
    VBEP-EDATU = schedule line date.
    REgards,
    Raghavendra

  • Schedule line delivery date

    Hi ,
      I am creating a order (  for which Delivery Not created ) for which schedule line delivery date is alloted . Which i can check in VBEP table .
    But when extracting the data in 2Lis_12_VCSCL , the order is not coming . Is the extractor is correce or anyother way of checking ( check in rsa3 also )
    Regards
    Ankit

    Hello,
    the extractor 2LIS_12_VCSCL is correct to extract schedule lines information of a sales order. Check with your mappings.
    Regards,
    NK.A

  • Change schedule line delivery date

    Hello,
    We are doing STO intercompany scenario, with ATP control, routing delivery in schedule lines.
    If for example in Supplying Plant the delivery date is 2 month in the future, and we have dates and quantities confirmed in the STO, if this Plant creates the Outbound delivery and PGI tomorrow, how can the buying Plant will notice this situation?
    Once PGI schedule lines in STO will not be ATP anymore and the delivery dates will be not be updated.
    At schedule line level I can see the quantity was delivery but the delivery date it is not updated to the new one.

    Hi Sukriti,
    Thanks for the Response, yes i have used the Bapi Transaction Commit Also .
    The point is I am able to Update the Statistical Delivery Date in the Same EKET table using BAPI_PO_Change .I have Checked all the Ways to update the EKET-EINDT(Delivery Date)but no Unable to do it.

  • Deletion of schedule line in PO using BAPI_PO_CHANGE

    Hi ,
    Can anyone give me the code to delete a schedule line in a po using the bapi bapi_po_change.
    Useful answers will be rewarded.
    Regards,
    Sowmya.

    Hi,
    Refer below code
    *&      Form  sub_populate_data
          text
    FORM sub_populate_data .
    *--Local Variables
      DATA : l_ipdate      TYPE rc65a-datefrom,
             l_fdate       TYPE sy-datum.
      IF NOT it_succ_file[] IS INITIAL.
        LOOP AT it_succ_file INTO st_succ_file.
          st_ipfile = st_succ_file.
    *--Sales Document
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = st_ipfile-vbeln
            IMPORTING
              output = st_salesdoc.
          st_ord_headx-updateflag = c_u.
    *--Sales Document Item
          st_schedule_line-itm_number = st_ipfile-posnr.
          st_schedule_linex-itm_number = st_ipfile-posnr.
          st_schedule_linex-updateflag = c_i.
    *--Schedule line date
          l_ipdate = st_ipfile-edatu.
    *--Call function module to convert the date format into current user format
          CALL FUNCTION 'CY_CONVERT_DATE'
            EXPORTING
              date_string_imp = l_ipdate
            IMPORTING
              date_exp        = l_fdate.
          st_schedule_line-dlv_date = l_fdate.
          st_schedule_linex-dlv_date = c_chk.
          st_schedule_line-req_date = l_fdate.
          st_schedule_linex-req_date = c_chk.
    *--Order quantity in sales units
          st_schedule_line-req_qty = st_ipfile-wmeng.
          st_schedule_linex-req_qty = c_chk.
          APPEND st_schedule_line TO it_schedule_line.
          APPEND st_schedule_linex TO it_schedule_linex.
    *--Clear
          CLEAR : st_schedule_line,
                  st_schedule_linex.
          AT END OF posnr.
    *--Perform to delete the existing schedule line
            PERFORM sub_delete_schedule_line.
          ENDAT.
          AT END OF vbeln.
    *--Clear
            CLEAR : st_erfile.
            READ TABLE it_erfile INTO st_erfile WITH KEY vbeln = st_ipfile-vbeln
                                                         posnr = st_ipfile-posnr
                                                         BINARY SEARCH.
            IF sy-subrc EQ 0.
              g_error_records = g_error_records + 1.
              g_total_records = g_total_records + 1.
            ELSE.
    *--Call the bapi to update sales order schedule line
              PERFORM sub_call_bapi.
            ENDIF.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " sub_populate_data
    *&      Form  sub_call_bapi
          text
    FORM sub_call_bapi.
      g_total_records = g_total_records + 1.
    *--Call BAPI to update sales order schedule line for simulation mode
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = st_salesdoc
          order_header_inx = st_ord_headx
          simulation       = c_chk
        TABLES
          return           = it_return
          schedule_lines   = it_schedule_line
          schedule_linesx  = it_schedule_linex.
      IF NOT it_return[] IS INITIAL.
        READ TABLE it_return INTO st_return WITH KEY type = c_e.
        IF sy-subrc EQ 0.
          g_error_records = g_error_records + 1.
        ELSE.
          REFRESH : it_return.
    *--Call BAPI to update sales order schedule line
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
            EXPORTING
              salesdocument    = st_salesdoc
              order_header_inx = st_ord_headx
            TABLES
              return           = it_return
              schedule_lines   = it_schedule_line
              schedule_linesx  = it_schedule_linex.
        ENDIF.
        LOOP AT it_return INTO st_return
                          WHERE type EQ c_e.
          st_erfile = st_ipfile.
          st_erfile-message = st_return-message.
          APPEND st_erfile TO it_erfile.
          APPEND st_erfile TO it_file.
          CLEAR : st_return.
        ENDLOOP.
      ENDIF.
      IF it_file[] IS INITIAL.
    *--Call BAPI transaction commit to change the schedule line
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = c_chk.
      ELSE.
        ROLLBACK WORK.
    *--Call BAPI transaction rollback to rollback the schedule line
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF.
    *--Clear
      CLEAR : st_salesdoc,
              st_ord_headx.
    *--Refresh
      REFRESH : it_return,
                it_schedule_line,
                it_schedule_linex.
    ENDFORM.                    " sub_call_bapi
    Regards,
    Prashant

  • Schedule line delivery dates change in VA01

    Experts,
    User is adding some days for a material in maintenance table and it is like below.
    Material Days Plant
    2525252 100 ABCD
    3636363 150 PQRS
    The requirement is --
    While creating sales orders or changing sales orders(VA01 or VA02) while adding this material(2525252)in the line item - In schedule line items Delivery date should changed (some thing like get added 100days)
    I have added my logic in routine RV03VFZZ. But some materials are not getting changed due to avilability check.
    How can i bypass availability check ?
    (tried in USEREXIT_MOVE_FIELD_TO_VBEP... but no use).
    Thanks,
    Priya

    Take a look an ATP00001 in SMOD. However, this looks to me as a classic case when we're trying to use ABAP to compensate for poor functional choices or an incorrect business process. I find it hard to believe this cannot be done by other means than such funky ABAP.

  • 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.

  • Schedule line delivery date of sales ordere in production order-MTO

    We have a Make to order scenario where item in sales order can have mutliple scheule lines on different delviery dates.
    Ex : sales order 100020  and item no 0010
    has schedules with schedule line dates as
    10.04.2010----1pcs
    20.04.2010---1pcs
    03.05.2010----1pcs
    When the planned orders are converted to production orders, the 1 del date (EDATU) in the all the three production orders is the same ie the earliest delivery date (10.04.2010), even though the delviery dates are different for three as shown above.
    Is there a way we can show the indivdual delivery dates on all the three production orders.
    production order 1----- 1 del date as 10.04.2010
    production order 2 -
    1 del date as 20.04.2010
    production order 3 ---1 del date as 03.05.2010
    Thanks in advance.
    When a planned order is converted toproduction order

    We have a Make to order scenario where item in sales order can have mutliple scheule lines on different delivery dates.
    Ex : sales order 100020  and item no 0010
    has schedules with schedule line dates as
    10.04.2010----1pcs
    20.04.2010---1pcs
    03.05.2010----1pcs
    When the planned orders are converted to production orders, the 1 del date (EDATU) in the all the three production orders is the same ie the earliest delivery date (10.04.2010), even though the delviery dates are different for three as shown above.
    Is there a way we can show the indivdual delivery dates on all the three production orders.
    production order 1----- 1 del date as 10.04.2010
    production order 2 -
    1 del date as 20.04.2010
    production order 3 ---1 del date as 03.05.2010
    Thanks in advance.

  • 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

  • Updating Quantity and delivery date from bapi_po_change.

    Hi Guru's.
    i had a question which is regarding PO updation through bapi-po_change.
    my requirment is to update PO from PR.
    i can able to update a po from PR for multiple line items.
    i am facing the problem with single line items.
    problem :
    when i create single line item and change existing line item, which is performing two actions at a time
    i can able to create a new line time from PR to Po , even i can able to change the existing line time partially that is it is updating only quantity but not delivery date, it is updating the delivery date which is created for new line item.
    please help me out how to resolve this,
    plz guide me what are the parameters which i supposed to pass.
    every thing is working fine for multiple line items but not single line item.
    Regards,
    Raj.

    Hi,
    No response , please any one can provide the resolution for this.
    Regards,
    Nagaraju.

  • Schedule line delivery date on saturday  and sunday its confirm for monday

    HI Experts
    in cash sales process or normal OR also  when i create sales order monday its work fine system take todays (current date) as delivery date and i can do delivery on same date
    but if i create sales order on saturday system take coming monday as delivery date and give goods confirmation on monday date  but iif i change manually system allow me to change the date for saturday and i can do delivery but i want it system should take delivery date as saturday (same date only )
    because in my client there is no holiday all 365 as working day
    in VOV8 its blank no lead time
    factory calendor and logistic i define as all 7 days as working day
    and sales org and plant i assign calendor
    Please guide me where i miss and how can i solve this issue
    thanks in advance

    Hi,
        Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type.  Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
    Regards
    Ram Pedarla

  • Schedule line delivery date Source table

    Hi,
    I want to know from which table in R/3 system does data gets popped in to field  0SCH_DELDAT i.e EINDT in data source 2LIS_02_SCL
    Thanks in Advance,
    Rgds,
    Gaurav

    Hi Gaurav,
    The format shown in the PSA is the internal format by which System stores.
    So, as per standard BI the system stores as YYYYMMDD for the date. So, the same format is shown in PSA.
    PSA is the RAW table. where you can see RAW data without any formatted type.
    when you can load the data into cube/ods then you can see the data in the normal format like DD.MM.YYYY.
    hope you understood. ..
    Regards,
    Ravi Kanth

  • KANBAN cycle - Change of Schedule line dellivery date.

    Hi,
    I have some queries in KANABAN scenario
    1) How to change the schedule line delivery date generated from KANBAN cycle.
    2)How to avoid generation of schedule lines from KANABAN if the Scheduling agreement was not released.
    regards,
    Kannaiah Naidu

    Hi,
    1.It is not possible to change the schedule lines of the Scheduling agreement with kanban indicator. Only work arround solution is to remove the kanban indicator. Then you can change the schedule line.
    2.Using user exit, during emptying of the bin check whether scheduling agreement is released on not.If not released generate error.
    Regards,
    Krishna A S V

Maybe you are looking for

  • Can anyone please help me with the logic for this..

    hi all, os  has the value Windows 2000 IF os CP 'WINDOWS' OR os CP 'SUN'.      OS1 = 'X'.   ENDIF. (if i test this, os1 doesnot have any value, (should be x)). This doesnot work for me. Any suggestions. Regards, Sukumar.

  • The iPhone I got at the Verizon store today was an older iOS then the newest one that was already out. Is that normal?

    The iPhone I got was on Version 6.1 when 6.1.2 had already come out.  Is that because it was shipped at the time was 6.1 was the latest? I thought that I would receive the phone with the latest iOS.

  • Removing navigation bar from PDF in CE6

    I am writing an application for Windows CE6 and I am trying to remove the navigation bars from the PDF presented to the user.  The device is loaded with Adobe Reader 9.0.  I was told that there is a registry setting that I can change to achieve this

  • Missing Portlet Main Banner

    The current Content Area Portlet included with Portal 3.0.8 works fine except that it does not include the "Main Banner" nor the "Sub Banner". This means that portlet users do not have access to either the "Edit/View folder" function nor the current

  • Compiling a programme with third party package help

    Hello all, I am writing a programme with a third party package (freetts.jar). The jar is is the classpath of my 2003 server and it compiles ok. import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; import com.sun.speech.fre