BAPI_REQUISITION-DELETE LFDAT delivery date problem

Hi,
We have a problem with BAPI_REQUISITION_DELETE. The BAPI does not proceed with saving whenever the delivery is left blank. In our configuration, delivery date is not a required field.

Hi Jackie,
Try like this.
DATA:
wa_eban LIKE eban,
i_delete           LIKE bapieband  OCCURS 0 WITH HEADER LINE,
i_eban2        LIKE STANDARD TABLE OF wa_eban,
va_rda           TYPE bapieban-preq_no,
wa_delete   LIKE i_delete.
  LOOP AT i_eban2 INTO wa_eban
                 WHERE banfn = wa_file-banfn.
    wa_delete-preq_item  = wa_eban-bnfpo.
    wa_delete-delete_ind = 'X'.
    APPEND wa_delete TO i_delete.
  ENDLOOP.
  CALL FUNCTION 'BAPI_REQUISITION_DELETE'
    EXPORTING
      number                      = va_rda
    TABLES
      requisition_items_to_delete = i_delete
      return                      = i_return.
Refer thi slink also.
http://www.sapnet.ru/viewtopic.php?p=451
Edited by: pravin s. on Jun 7, 2010 10:27 AM

Similar Messages

  • Deleted Inbound Delivery data

    Hi Gurus,
    We have deleted some inbound deliveries in the sytem .Now we want to see those inbound delivery data like Handling Units and packing data.Can I know how to see this data.I have tried vl06i but this report does not show deleted inbound delivery data.
    Is there any other way where I can see this data.
    Thanks,
    Shekar

    Deleted inbound delivery cannot be viewed in VL06 report.
    you can check in VL03N is you have those delivery numbers or you can also check if you have those documents number with ref to which these inbound deliveries are created
    Thanks
    Raghav

  • Where to delete SAP delivery data

    Hello,
    I want to delete SAP delivery data cos client its not needful. If i do delete SAP delivered controlling areas in DEV it won't create automatic transport request.
    In PRD it's delete function for deleting controlling areas are disabled.
    In which client it should be deleted? and how to do transport?
    Thanks for help

    Hello,
    You should be extremely careful and never try to do these experiments in production with these programs.
    Only you can delete them in DEV - (development environment - but not testing) in case if somebody inadvertently posted some transaction data.
    IMG ==> Financial Accounting (New) General Ledger Accounting ==> Preparation for Produtive Start ==> Delete Test Data ==>
    Delete Transaction data
    PS: Please make sure that you are doing in the right client. Otherwise, these deletes are IRREVERSIBLE.
    Regards,
    Ravi

  • Confirm delivery date problem

    Hi SAP gurus
    I have a problem in Sales order delivery confirmation date. Now lets say I take todays date as required delivery date. but confirmed delivery date comes to be 2 days later. Now for this material Total replenishment time is 0, GR processing time is 0, In house production time is 0. MRP type is Pd.
    Requirement type is 041. Can any one put light on this issue how is it still getting 2 days later. or where should i check in all.
    Thanks in advance.
    Regards
    sreekanth

    HI,
    1. STEP:   PL. SEE UNDER DEFINE SHIPPING POINT, WHAT YOU HAVE MAINTAINED. LIKE PICK/PACK DETERMINATION AND LOADING TIME. IF YOU WOULD HAVE MAINTAINED AS 'C', THE REMOVE IT AND CHECK THE ORDER.
    2. STEP: UNDER CONTROL PANEL IN YOUR SYSTEM, WHAT THE TIME AND DATE SETTINGS MENTIONED. IF IT IS PAST OR FUTURE, THEN THOSE ERROR WILL THROW WHILE U R CREATING THE SALES ORDER.
    PL. REWARD IF IT IS SOLVED.
    REGARDS
    KR

  • Delivery date problem

    hi friends,
    how system will pick delivery date at P O and PR.?? from where it is picking..
    i have not maintained planed delivery time anywhere...
    thanks
    raj

    hi deepak,
    i didn't maintained Planed delivery time in MMR,Vendor master, or info record.
    then how date will determined???
    thanks
    raj

  • 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

  • HOW TO KNOW DELIVERY DATE FROM SALES DOCUMENT NO...?

    HI all.
          i have sales document no..
    how can i have the delivery date of that sales order...?

    Dear Shashank,
    against any sales Document no. VBELN ...
    u will find it's Delivery date in LIKP  :Delivery Header Table
    in LFDAT "Delivery Date.
    Hope it helps u...!!!
    Pls reward if Helpful...!!!

  • Is anyone else having problems with an iPhone 6 delivery date changing on them?

    I sat up until 12:01am to pre order (2) iPhone 6's and (2) iPhone 6 +'s and they had a delivery date of 9/19 for both of the phones at the time I logged on to Verizon's preorder site. The system would not allow me to log in as an existing customer but it would allow me to order as a new customer. I kept trying to order new phones as an existing customer on two different computers and three different browsers without any luck. I finally decided to order them as a new customer and the order went right through the Verizon system without any problem. Two minutes later I received an email from Verizon requesting that I call them as soon as possible to complete the order. I called in and spoke to a rep that explained that I already was an existing customer and that I would need to use the "Existing Customer" preorder link. I explained the issues I was having and she said that I would still need to use that system when it was available. So I tried the existing customer link and it now let me through but the date for the iPhone 6 plus had slipped to 10/7 (It is now 1:30 am). I completed the transaction and it stated 9/19 delivery for iPhone 6 and 10/7 for the iPhone Plus. However once I received the email confirmation it stated that the delivery date for the phones was 10/7. I called Verizon customer service and stated my concern about the later delivery date for the iPhone 6 and they told me that the iPhone 6's would arrive on the 19th and the pluses would arrive on 10/7 so I did not change my order. This morning 9/19 8:00am I called in to inquire about my shipping confirmation numbers for the (2) iPhone 6's and the customer service rep (Robanya) told me that he would call me back at 1:00pm PST and give me the shipping confirmation numbers. He asked specifically which phone number he should call me back on and I gave him my cell number. After not receiving a call back from Robanya, I called Verizon customer service at 5:30pm and spoke Ryan James and he confirmed that the orders were placed on the 12th of Sept and that one system showed all of them due to be delivered 10/7. After insisting that Robanya that I spoke with earlier in the day said they were shipping today, Ryan got off the phone for 5-10 mins and then got back on and said that the iPhone 6's shipped yesterday on the 18th but he did not have a confirmation number. After pressing him that someone should have this confirmation number in Verizon he stated that the delivery dates were subject to change and that all the phones would probably ship on 10/7 and left it at that.
    So after loosing sleep to pre order phones on Verizon, speaking with (3) different Verizon reps, I am rewarded by having my delivery date changed to 10/7 on my iPhone 6's which is the same delivery date they were quoting yesterday 9/18.
    Did any one else have the same disappointing experience that I had?

    Yes, pre-ordered iPhone 6 with a guaranteed delivery date of 19 September; took screen shots after the order just to have record of it.
    Called Verizon 18 Sept because I hadn't received a tracking number yet, and was informed my phone would now ship 7 October.  When I expressed that was different than what was promised and had proof, a manager came on the phone and confirmed that I should have a 19 Sept delivery date based on their records.  She told me however she could not confirm when my order would ship.
    19 Sept came and went with no phone delivery.  I have tried calling Verizon, posting here, and posting on their FB page for customer service.  Every rep I talked to (except for the first manager on 18 Sept) has been unable to admit that they mislabeled their product sales page, and mislead the customer.  One rep told me the guaranteed delivery date was an "estimate"; when I asked her to show me on the website where it uses the term "estimate", she admitted it didn't communicate that, but still was unable to utter the words "we made a mistake".
    VZW needs to take a 101 class in customer service and crises management; rule #1 is if you screw up, admit it!  I know I am not going to get my iPhone as promised, but pretending like there is nothing wrong with that customer service experience is just making things worse. Not a single employee I have communicated with to date has attempted to do anything proactive to correct or mitigate the customer failure.  I am truly amazed at how poorly VZW has been handling this to date; again (removed) happens with supply/demand, website errors, etc, but the failure to acknowledge how the screw up shafted a lot of (formally) loyal long time customers is criminal.
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • Problem in BAPI_PO_CREATE1 with delivery date option

    Hi Experts,
    I'm using BAPI_PO_CREATE1 for uploading user excel file to create purchase orders.
    The issue is PO is created successfully but the delivery date is not picking properly. System is picking some other delivery date.
    Can any one help me out from this?????????
    Any USEFUL INPUTS for solving this issue will be rewarded.
    Code :
    REPORT zmm_bapi_po_create.
    *                             ''~``
    *                            ( o o )
    *    +------------------.oooO--(_)--Oooo.------------------+
    *    | ZMM_BAPI_PO_CREATE -To create Purchase orders       |
    *    |                                                     |
    *    |                    .oooO                            |
    *    |                    (   )   Oooo.                    |
    *    +---------------------\ (----(   )--------------------+
    *&    Program Name     : ZMM_BAPI_PO_CREATE
    *&    Transaction Code :
    *&    Module Name      : MM
    *&    Developer        : Lakshmiraj.A
    *&    Functional       : Xavier
    *&    Transport Request:
    *&    Program Type     : Report
    *&    SAP Release      : 46C
    *&****************************REVISION LOG*****************************
    *&  Log     Date         Author              Description
    *&------------------------ TABLE USED --------------------------------*
    *&---------------------- VARIABLE DECLARATION ------------------------*
    *  For Storing file name.
    DATA  : filename1 TYPE string.
    *  Flag to identify the matching entries
    DATA  : flag(1).
    *  For Display Message
    DATA  : g_msg(80) TYPE c.
    *  Declaring that as a character with length 4096.
    TYPES truxs_t_text_data(4096) TYPE c OCCURS 0. "  Type Group : TRUXS
    *  Containing RAW Data
    DATA : it_raw TYPE truxs_t_text_data.
    *&------------------------- INTERNAL TABLE ---------------------------*
    DATA: gstest LIKE bapimepoheader.
    DATA: g_ebeln LIKE bapimepoheader-po_number.
    DATA: BEGIN OF g_bapimepoheader OCCURS 0.
            INCLUDE STRUCTURE bapimepoheader.
    DATA: END OF g_bapimepoheader.
    DATA: BEGIN OF g_bapimepoheaderx OCCURS 0.
            INCLUDE STRUCTURE bapimepoheaderx.
    DATA: END OF g_bapimepoheaderx.
    DATA: BEGIN OF g_bapimeposchedule OCCURS 0.
            INCLUDE STRUCTURE bapimeposchedule.
    DATA: END OF g_bapimeposchedule.
    DATA: BEGIN OF g_poschedulex OCCURS 0.
            INCLUDE STRUCTURE bapimeposchedulx.
    DATA: END OF g_poschedulex.
    *DATA: BEGIN OF g_bapieikp OCCURS 0.
    *        INCLUDE STRUCTURE bapieikp.
    *DATA: END OF g_bapieikp.
    DATA: BEGIN OF g_bapimepoitem OCCURS 0.
            INCLUDE STRUCTURE bapimepoitem.
    DATA: END OF g_bapimepoitem.
    DATA: BEGIN OF g_poitemx OCCURS 0.
            INCLUDE STRUCTURE bapimepoitemx.
    DATA: END OF g_poitemx.
    DATA: BEGIN OF g_bapiret2 OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF g_bapiret2.
    DATA: BEGIN OF itab OCCURS 0,
    doc_type       LIKE    bapimepoheader-doc_type,
    vendor         LIKE    bapimepoheader-vendor,
    purch_org      LIKE    bapimepoheader-purch_org,
    pur_group      LIKE    bapimepoheader-pur_group,
    comp_code      LIKE    bapimepoheader-comp_code,
    incoterms1 LIKE bapimepoheader-incoterms1,
    incoterms2 LIKE bapimepoheader-incoterms2,
    po_item        LIKE    bapimepoitem-po_item,
    material       LIKE    bapimepoitem-material,
    short_text     LIKE    bapimepoitem-short_text,
    quantity       LIKE    bapimepoitem-quantity,
    plant          LIKE    bapimepoitem-plant,
    delivery_date  LIKE    bapimeposchedule-delivery_date,
    END OF itab.
    DATA: it_itab LIKE itab OCCURS 0 WITH HEADER LINE.
    *&------------------------ SELECTION SCREEN --------------------------*
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME TITLE text-100.
    PARAMETERS : p_file LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK blk.
    *&-----------------------AT SELECTION SCREEN -------------------------*
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    * For getting input filename
      PERFORM get_filename.
    *&-----------------------START OF SELECTION---------------------------*
    START-OF-SELECTION.
    * Open the Excel file and Update with the internal table
      PERFORM update_inttable.
      PERFORM bapi_upload.
    *       FORM bapi_upload                                              *
    FORM bapi_upload.
      it_itab[] = itab[].
      SORT itab BY vendor material.
      DELETE ADJACENT DUPLICATES FROM itab COMPARING vendor.
      LOOP AT itab.
        g_bapimepoheader-comp_code = itab-comp_code.
        g_bapimepoheader-doc_type = itab-doc_type.
        g_bapimepoheader-creat_date = sy-datum.
        g_bapimepoheader-created_by = sy-uname.
        g_bapimepoheader-vendor = itab-vendor.
        g_bapimepoheader-purch_org = itab-purch_org.
        g_bapimepoheader-pur_group = itab-pur_group.
        g_bapimepoheader-incoterms1 = itab-incoterms1.
        g_bapimepoheader-incoterms2 = itab-incoterms2.
        APPEND g_bapimepoheader.
        g_bapimepoheaderx-comp_code = 'X'.
        g_bapimepoheaderx-vendor = 'X'.
        g_bapimepoheaderx-doc_type = 'X'.
        g_bapimepoheaderx-purch_org = 'X'.
        g_bapimepoheaderx-pur_group = 'X'.
        g_bapimepoheaderx-incoterms1 = 'X'.
        g_bapimepoheaderx-incoterms2 = 'X'.
        APPEND g_bapimepoheaderx.
        LOOP AT it_itab WHERE vendor = itab-vendor.
          MOVE-CORRESPONDING it_itab TO g_bapimepoitem.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
               EXPORTING
                    input  = it_itab-material
               IMPORTING
                    output = it_itab-material.
          g_bapimepoitem-material = it_itab-material.
          APPEND g_bapimepoitem.
          g_poitemx-po_item = it_itab-po_item.
          g_poitemx-po_itemx = 'X'.
          g_poitemx-item_cat = 'X'.
          g_poitemx-plant = 'X'.
          g_poitemx-stge_loc = 'X'.
          g_poitemx-net_price = 'X'.
          g_poitemx-acctasscat = 'X'.
          g_poitemx-material = 'X'.
          g_poitemx-short_text = 'X'.
          g_poitemx-matl_group = 'X'.
          g_poitemx-quantity = 'X'.
          g_poitemx-po_unit = 'X'.
          g_poitemx-orderpr_un = 'X'.
          g_poitemx-trackingno = 'X'.
          g_poitemx-delete_ind = 'X'.
          APPEND g_poitemx.
          g_bapimeposchedule-po_item = it_itab-po_item.
          g_bapimeposchedule-sched_line = '001'.
          g_bapimeposchedule-del_datcat_ext = 'X'.
          g_bapimeposchedule-delivery_date = it_itab-delivery_date.
          g_bapimeposchedule-quantity = it_itab-quantity.
          APPEND g_bapimeposchedule.
          g_poschedulex-po_item = it_itab-po_item.
          g_poschedulex-sched_line = '001'.
          g_poschedulex-po_itemx = 'X'.
          g_poschedulex-sched_linex = 'X'.
          g_poschedulex-del_datcat_ext = 'X'.
          g_poschedulex-delivery_date = 'X'.
          g_poschedulex-quantity = 'X'.
          g_poschedulex-deliv_time = 'X'.
          g_poschedulex-stat_date = 'X'.
          APPEND g_poschedulex.
        ENDLOOP.
        CALL FUNCTION 'BAPI_PO_CREATE1'
             EXPORTING
                  poheader         = g_bapimepoheader
                  poheaderx        = g_bapimepoheaderx
             IMPORTING
                  exppurchaseorder = g_ebeln
                  expheader        = gstest
             TABLES
                  return           = g_bapiret2
                  poitem           = g_bapimepoitem
                  poitemx          = g_poitemx
                  poschedule       = g_bapimeposchedule
                  poschedulex      = g_poschedulex.
        IF NOT g_ebeln IS INITIAL.
          COMMIT WORK.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
               EXPORTING
                    wait = ''.
          REFRESH : g_bapimepoitem,
                    g_bapimepoheader,
                    g_bapimepoheaderx,
                    g_bapiret2,
                    g_poitemx,
                    g_bapimeposchedule,
                    g_poschedulex.
        ENDIF.
      ENDLOOP.
    ENDFORM.
    *       FORM GET_FILENAME                                             *
    FORM get_filename.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = sy-cprog
                dynpro_number = sy-dynnr
                field_name    = ''
           IMPORTING
                file_name     = p_file.
    ENDFORM.
    *       FORM UPDATE_INTTABLE                                          *
    FORM update_inttable.
      REFRESH : itab[] , itab.
      CLEAR : itab.
      IF NOT p_file IS INITIAL.
        CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
         EXPORTING
    *     I_FIELD_SEPERATOR         =
           i_line_header            =  'X'
           i_tab_raw_data          =  it_raw         "  WORK TABLE
           i_filename               =  p_file
         TABLES
           i_tab_converted_data     = itab[]    "  ACTUAL DATA
         EXCEPTIONS
           conversion_failed        = 1
           OTHERS                   = 2.
        IF sy-subrc NE '0'.
          PERFORM callerr USING 'File Error!'.
          STOP.
        ENDIF.
      ELSE.
        PERFORM callerr USING 'Choose the file'.
        STOP.
      ENDIF.
    ENDFORM.
    *       FORM CALLERR                                                  *
    *  -->  TEXT                                                          *
    FORM callerr USING text TYPE string.
      CALL FUNCTION 'FC_POPUP_ERR_WARN_MESSAGE'
           EXPORTING
                popup_title  = 'ZMM_BAPI_PO_CREATE'
                is_error     = 'X'
                message_text = text
                start_column = 30
                start_row    = 8.
    ENDFORM.
    Regards
    ~Lakshmiraj~

    Hi,
    1. In Which system you are trying to run this ????  Are you running in IDES or currently running system?
       The reason may be if you are running in IDES , the factory calender may not be correctly positioned.
    2. Also this error will occur at situations like....if your factory calendar will be of 2007 year....but the delievery date which you are giving is of 2008 . So error "delivery date exceeds factory calendar" occurs.
    Some useful info for you,
    Factory calander is must to run SAP. All the scheduling are calculated based on this only. You can define halidays for factory and assign to the calander. You can have 365 days calander / Sat& SU holiday calander or the holiday can be your wish.
    The T code is SCAL.  create holidays first. create holiday calendar and assign the holidays in holiday calendar. create factory calender and assign the holiday calendar in factory calendar.The Factory calendar is client specific
    Rgds,
    Lakshmiraj

  • Scheduling problem with delivery date in purch.req and requirement date

    Dear all,
    I have the problem, that the calculated delivery date in the purchase requisition does not correspond with the requiement date of the production or planned order.
    I would like to use planned delivery times in the material master.
    Example:
    Planned delivery time: 20 days
    Todays date 01.10
    Case 1)
    Requiement date of planned order 10.10
    Case 2)
    Requiement date of planned order 20.09
    This situation can happen in our envirnoment, as the engineering process still continues after start of production. In this case I would like to have the following result:
    Case 1)
    Delivery date is 10.10 minus the goods receipt time
    Case 2)
    Delivery date is day of MRP or one or two days more
    I made the setting that dates in the past are not allowed. This solves my first smal problem. I tried to set the scheduling margin key but these settings do not help me, as they are relevant for all materials. I need of course individual planned delivery dates per material.
    So, I want to change the standart MRP procedure that in the case of the "wished requirement date" not the calculated date is beeing taken, but the "wished date". Usually you receive an exeption for this case and you would need t solve this manually. But this we dont want to do.
    Can s.o. please help me? Thank you all very much, I really dont know what to do in this case.
    With best regards,
    Bjoern

    The question cannot be answerd by SAP standart as I see. We will go through a workaround.

  • Function Module or BAPI to update Delivery Date (LIKP-lfdat)

    Hello friends,
    I have a requirement to update Delivery Date (LIKP-lfdat) , is there any Function Module or BAPI to do that? any sample codes are appreciated.
    Thanks a lot!
    Edited by: Qiwei Yin on Dec 11, 2008 8:50 AM

    hi
    try this
    BAPI_SALESORDER_CHANGE
    hope this helps
    regards
    Aakash Banga

  • Problem updating delivery date onto quotation

    Hi All-
    We have process, After creating sales order, will convert that into purchase req and again convert purchase req into STO's..
    Problem here is, if we make change delivery date onto STO's, should be reflect onto Purchase Req and also onto sales order...
    Anyone if you know the solution, please reply to my question and also let me know if there any user-exits to the sameissue...
    Thanks,
    Sony

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • Problem while updating Delivery date uisng BAPI_PO_CHANGE

    Hi friends,
    Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
    After the bapi is getting triggered iam geting sy-subrc = 0
    But in the return parameters iam getting 3 error messages so iam unable to update the  delivery date..
    Error meesage which iam getting are
    a) Purchase order still contains faulty items
    b) Enter Tax Code
    c) Instance 1000001 of object type PurchaseOrder could not be changed.
    How can i correct it..
    Please find my code below
    LOOP AT it_eket INTO wa_eket.
        wa_poschedule-po_item = wa_eket-ebelp.
        wa_poschedule-sched_line = wa_eket-etenr.
        wa_poschedule-delivery_date = wa_eket-eindt.
        APPEND wa_poschedule TO poschedule.
        wa_poschedulex-po_item = wa_eket-ebelp.
        wa_poschedulex-sched_line = wa_eket-etenr.
        wa_poschedulex-po_itemX = 'X'.
        wa_poschedulex-sched_lineX = 'X'.
        wa_poschedulex-delivery_date = 'X'.
        APPEND wa_poschedulex TO poschedulex.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN  = WA_EKET-EBELN
                                             EBELP = WA_EKET-EBELP.
          IF SY-SUBRC = 0.
          WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
          APPEND WA_POITEM TO POITEM.
          WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
          WA_POITEMX-PO_ITEMX = 'X'.
          APPEND WA_POITEMX TO POITEMX.
         ENDIF.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_eket-ebeln
          TABLES
            return        = t_bapiret2
            POITEM        = POITEM
            POITEMX       = POITEMX
            poschedule    = poschedule
            poschedulex   = poschedulex.
        READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
        IF sy-subrc NE 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =.
          IF sy-subrc = 0.
            WRITE :  'DELIVERY DATE UPDATED'.
          ENDIF.
        ENDIF.
    how can i correct it...
    Regards
    Kumar

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • Problem in updating delivery date in va02

    hi abapers,
    my requirement is to update the delivery date in va02 at header level. i have this code in sapmv45a, include is mv45afzz,
    written code in move_fields_to_vbak.
    when ever iam running the va02 tcode i am getting my updated delivery date , when iam saving again this exit triggering so that again delivery date is updatting.
    here x is the updated date getting from z function module. iam pasing this value to below statement
    vbak-vdatu = x.
    so that how to stop triggering the code  while saving.

    hi abapers i posted the code, here the problem iam facing is that, when ever iam opening the va02  tcode updated delivery date  is coming but when ia msaving again this is triggering so that first updated date is again updating .
    here x is the day no comes from function module  in below code , iwll compare x with following zroutern  function module .
    suppose .
    updated date is 17.12.2010 so that i will push to vbak-vdatu = 17.12.2010. but here again date_compute_day is again calcultaing day from 17.12.2010 so that again that day  which is stored is x again compared to zroutern function module .
    here i aim is when ever i get updated date then  it shuold come out of this application .
    plese suggest .
    READ TABLE XVBAP INDEX 1.
    READ TABLE XVBPA WITH KEY  VBELN = XVBAP-VBELN
                               "POSNR = XVBAP-POSNR
                               PARVW = 'WE'.
    IF SY-SUBRC = 0.
      L_KUNNR = XVBPA-KUNNR.
      ENDIF.
      IF SY-UZEIT+0(2) >= 15.
        E_RDD = SY-DATUM + 2.
        ELSE.
          E_RDD = SY-DATUM + 1.
          ENDIF.
          IF E_RDD > VBAK-VDATU.
            OP_RDD = E_RDD.
            ELSE.
              OP_RDD = VBAK-VDATU.
         endif.
              CALL FUNCTION 'DATE_COMPUTE_DAY'
                EXPORTING
                  DATE          = OP_RDD
               IMPORTING
                DAY           = X.
      CALL FUNCTION 'ZROUTESCHEDULE'
        EXPORTING
         KUNNR         = L_KUNNR
        VSBED         =
          VSTEL         = VBAP-VSTEL
          ROUTE         = VBAP-ROUTE
       IMPORTING
         ZRETURN       = IT_RETURN.
    READ TABLE IT_RETURN INTO WA_RETURN INDEX 1 .
            IF       WA_RETURN-MONDAY    = 'X'.
                     wa_days-num = '1'.
             append  wa_days to it_days.
            ENDIF.
           IF        WA_RETURN-TUESDAY   = 'X'.
                     wa_days-num = '2'.
            append   wa_days to it_days.
           ENDIF.
           IF        WA_RETURN-WEDNESDAY = 'X'.
                     wa_days-num = '3'.
            append   wa_days to it_days.
         ENDIF.
           IF        WA_RETURN-THURSDAY  = 'X'.
                     wa_days-num = '4'.
           append    wa_days to it_days.
             ENDIF.
            IF       WA_RETURN-FRIDAY    = 'X'.
                     wa_days-num = '5'.
            append  wa_days to it_days.
             ENDIF.
           IF     WA_RETURN-SATURDAY  = 'X'.
                  wa_days-num = '6'.
         append  wa_days to it_days.
         ENDIF.
           IF    WA_RETURN-SUNDAY    = 'X'.
                 wa_days-num = '7'.
         append  wa_days to it_days.
            ENDIF.
    SORT IT_DAYS BY NUM.
    CLEAR WA_DAYS.
    IF NOT IT_DAYS[] IS INITIAL.    "#1 CHECKING
    READ TABLE IT_DAYS INTO WA_DAYS WITH KEY NUM = X.
    IF SY-SUBRC <> 0.
    IF NOT IT_DAYS[] IS INITIAL.
    LOOP AT IT_DAYS INTO WA_DAYS.
    IF WA_DAYS-NUM GT X.
      Z  = ( WA_DAYS-NUM ) - X.
      UP_DATE  = OP_RDD + Z.
      EXIT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    SORT IT_DAYS BY NUM DESCENDING.
    IF UP_DATE IS INITIAL.
      IF NOT IT_DAYS IS INITIAL.
      READ TABLE IT_DAYS INTO WA_DAYS INDEX 1.
      Y = X - WA_DAYS-NUM.
      UP_DATE = OP_RDD + 7 - Y.
    ENDIF.
        ENDIF.
       VBAK-VDATU  = UP_DATE.
    ENDIF.
    CLEAR: X,UP_DATE,Y.
    ENDIF.   "#1 CHECKING
    ENDIF.    "1 YVBAK
    ENDIF.

  • Problem with deleting old master Data from 0Material

    Hello, we try to delete the master data from 0Material.
    But we get the message that some data are used and can not be deleted.
    We can see the error message in slg1:
    "Master data 000000000100000007 (SID                                                   7) is used in /BI0/HMATERIAL; is not deleted"
    "Master data R23188 (SID                                                5316) is used in /BI0/D0RT_C071; is not deleted"
    Can we just clear these tables? Is it enough for resolving the problem?
    Thank You.

    Hi,
    no you just can't "clear" these table unless you want to screw your datawarehouse....
    the first message means that the material with SID 7 is used in a hierachy of 0MATERIAL ==> adjust the hierarchy first.
    the second message indicates that the material with SID 5316 is used in the ICube 0RT_C07 and you CANNOT delete master data if it is used in other objects.
    First run RSRV for this dimension in order to see if the DIMID is really used by the fact table. Perform the following test "Entries Not Used in the Dimension of an InfoCube " with your cube and dim.
    if the DIMID is not used then "correct" the error; you'll then be able to delete your SID.
    If the DIMID is used then you'll have to delete your cube data if you really want to delete this material; otherwise you'll have to keep it.
    Finally rerun you master data deletion.
    hope this helps...
    Olivier.
    Edited by: Olivier Cora on Jul 31, 2008 9:07 AM

Maybe you are looking for

  • Error in updating AIR

    When I try to open Adobe AIR it says 'Please take a few seconds to update Adobe AIR and get the very latest features. Acrobate.com cannot continue until you update Adobe AIR.' I click on the update button and it then downloads files then goes to inst

  • 3d and OpenGL won't enable in Photoshop CC

    Why Can I not enable OpenGl and thus 3d rendering in Photoshop? Adobe Photoshop Version: 14.0 (14.0 20130423.r.221 2013/04/23:23:00:00) x64 Operating System: Windows 7 64-bit Version: 6.1 Service Pack 1 System architecture: Intel CPU Family:6, Model:

  • Error in Recovery

    Hello everybody, I already purchased Laptopo with the following specifications: - HP Pavilion DV6-6160 SE Entertainment Notebook PC - Operating System is windows 7 64-bit - Error message : an error occurred while attempting to read the boot configura

  • Recent activite comes up when I open firefox?

    When I open firefox the recent website I was on comes up. I just want yahoo to be my homepage and open whenever I launch firefox. How can I fix it?

  • XLS to I delimited txt file

    i created a report to download values from a table into xls file.and when i open the file in txt,its opening in tab delimited format. now,instead of that i want the file to be opened in |(pipe) delimited txt file. can any one help me in this regard.