Unchecked final invoice and delivery completed indicator via BAPI_PO_CHANGE

Hi All,
Is it possible to reset the final invoice and delivery completed indicators of PO in ME23N using BAPI_PO_CHANGE? I need to unchecked the final invoice and delivery completed indicators for all POs in our system that were accidentally updated to delivery completed and final invoice by the user.
Points will be rewared.

what i did now is to create a prototype program like the one below:
CONSTANTS c_po TYPE bapimepoheader-po_number VALUE '0040001816'.
DATA: t_poitem-po TYPE bapimepoheader-po_number,
      t_return TYPE STANDARD TABLE OF bapiret2,
      t_poitem TYPE STANDARD TABLE OF bapimepoitem,
      t_poitemx TYPE STANDARD TABLE OF bapimepoitemx,
      x_return TYPE bapiret2,
      x_poitem TYPE bapimepoitem,
      x_poitemx TYPE bapimepoitemx.
t_poitem-po = c_po.
x_poitem-no_more_gr = 'X'.
x_poitemx-no_more_gr = 'X'.
x_poitem-final_inv = 'X'.
x_poitemx-final_inv = 'X'.
x_poitem-po_item = c_po.
x_poitemx-po_item = c_po.
APPEND x_poitem TO t_poitem.
APPEND x_poitemx TO t_poitemx.
CALL FUNCTION 'BAPI_PO_CHANGE'
  EXPORTING
    purchaseorder  = t_poitem-po
    no_messaging   = 'X'
    no_message_req = 'X'
  TABLES
    return         = t_return
    poitem         = t_poitem
    poitemx        = t_poitemx.
IF sy-subrc = 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.
ENDIF.
The program is working if you will mark the PO as delivery completed and final invoice with suppressed output. The problem is i need to do the reverse which is to unmark. I replaced the value of no_more_gr and final_inv from 'X' to space but it is not working.

Similar Messages

  • Minimum shelf life and delivery completed indicator at GR

    Dear Gurus,
    I have two questions:
    1. As per my knowledge minimum shelf life is "minimum number of days for which the material must be keep for GR to be accepted" , (i.e. if it is 10 days the material should accepted for GR only after 10days of production ) but if I do a GR for today produced material still I m not getting any error. Why?
    2. Since we can do GR for "delivery completed" indicator set items. Canu2019t we get an error message if we try to post GR for delivery completed item (e.g. what is the use of message numbers 433 and 025)
    Thanks,
    Chameendri

    Hi,
    Answer to Question 1:
    Total Shelf life - If total shelf life is maintained then the minimum shelf life will also to be entered mandatory. While taking
    GR for such item, it actually ask the user to enter the Manufactured date so that the system automatically calculates the
    expiry date.
    Minimum shelf life ( or Minimum remaining shelf life)- While taking the GR, it asks the user to enter the date of GR date so that it checks whether the
    days entered in material master has been satisfied. If the condition is not satisfied then it will not allow to take receipt for
    that item.
    Example A material has a minimum remaining shelf life of 20 days and a total shelf life of 30 days. You enter the goods
    receipt of a new batch on 23/02/12 and enter 11/02/12 as production date. The system calculates the shelf life expiration date 15/03/12 from the production date plus total shelf life (30 days). The batch still has a remaining shelf life of 18  days. The goods
    receipt is not accepted (short fall of 2 days from minimum remaining shelf life)
    Now if the production date is 14/02/12 then batch still has a remaining shelf life of 21 days The goods receipt is accepted
    Answer to Question 2:
    Not possible to restrict by activating system messages only
    So refer this  solution
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17281

  • Open PO and delivery completion  indicator

    hi all,
    We have many PO which are open and quite old. we want to close those POs. One way is to do that with delivery completion tick.  how can i do that with MM17? Or is there any other way other than BDC?

    Hi
    MM17 is mass maintenance for Material Master.
    For changing mass POs you need to use MEMASSPO
    Here Delivery completed is available for mass change.
    Regards
    RAJESH DANGLE
    do reward if problem solved...

  • BADI to get GR done flag , Final Invoice flag and Delivery completed flag

    Hi all,
    An Idoc needs to be triggered for PO line items to indicate different flags. As soon  as MIGO or MIRO is done for PO line item, I have to check three flags namely GR done flag , Final Invoice flag and Delivery completed flag and send information of these flags as set.
    I want to know which BADI or User exit will give information  to indicate that either of one or all above flags are set for PO line item as soon as MIGO or MIRO is used.
    Thanks in advance,
    Madhura

    HI,
    When Purchase order is created with reference to contract, system carry
    out the check whether Document date of PO should be within contract
    "validity start" and "vaidity end" date. If document date is outside
    the "validity start" and "validity end" date of PO, message 06 040
    "Validity period of contract does not start until &" or message
    06 041 " Validity period of contract expired on &" is raised.
    Same check is also carried out during any change in PO (txn ME22N).
    Please use one of following option to close the PO.
    1. Change the category of message 06041 as warning in customization.
    Txn OLME.
    Environment Data -> Define Attributes of System Messages ->System
    Messages
    2. Change the validity end date in contract and close the Purchase order. Validity end date can be reverted.
    BR
    Nadia Orlandi

  • Update "Delivery Completed" Indicator in PO Item via EDI

    Hello
    We have another challenging task regarding purchase order confirmations that we would like to tackle (SAP Release is ERP 6.0).
    The 2 partner in our scenario are distribution companies (= DC) which order goods and production companies (= PC) which deliver the goods:
    (1) DC sends purchase oder via EDI (ORDERS IDoc)
        -> creates sales order in ERP of PC
    (2) PC splits sales order into multiple deliveries.
       Each delivery is sent as outbound DESADV
       -> creates inbound delivery in ERP of DC.
    (3) At some point the PC has completed the sales order
       yet it is possible that less was delivered than was ordered
          (i.e. we can have under-deliveries).
    Now the question is:
    How can the PC transmit the final information "SalesOrder completed" implying that the "Delivery Completed" indicator in the PO items should be updated (= 'X')?
    My assumption is that we need to look at the sales order (ERP of PC) because this is the document which "collects" the information from all the split deliveries.
    Any help related to understanding how the (standard) business process would look like and how to translate this into a technical solution (EDI / IDoc) is more than welcome.
    Regards
      Uwe

    Hello Uwe,
    As you mentioned, I tried to check with the Workflow solution by tracking the events through Business Object BUS2032 (Order) or LIKP (Outbound Delivery) but failed to get successful results.
    Problem with BUS2032, event CHANGED is that it doesn't get triggered when the Header/Item level status changed during delivery Processing. 
    While using BO- LIKP (Outbound Delivery Processing), Events - Changed,Created, I am successful in triggering the event, but the problem with BO-LIKP is that, it does not have the item level details in the ATTRIBUTES list.  To get the balance quantity available for order line item (mentioned in my earlier reply)Item details are necessary to findout the Reference Sales Order & Line item.  With this, the Option of Triggering of Workflow using LIKP didn't give the required result.

  • GR after "Delivery Completed" Indicator was Set and Automatic PO Closing

    Hi All!
    In our system, we can still post goods receipts even if the "Delivery Completed" indicator was already set in the PO. Is there something we need to configure so as not to allow goods receiving for such POs?
    Also, can we set the PO to close automatically after reaching its "Validity End"?
    Please we would appreciate any suggestion for this issues.
    Thanks in advance!

    Hi,
    The Solution is to
    <b>Reduce the PO quantity</b> or <b>the block the item on the PO</b> to prevent any further GR's.
    Block the purchase order item.
    (ME22N: Block pushbutton; ME22 Menu -> Edit -> Block)
    Fill the date field for the 'Latest Possible Goods
    Receipt' (LEWED) in the purchase order item. If you do
    this and you enter a GR document after this date, the
    system issues message M7163, which you must set as an
    error message in Customizing.
    <b>Refer to OSS note - 856279</b>
    Here is the copy
    Number 856279
    Version 3 from 24.06.2005
    Status Released for Customer
    Set on 24.06.2005
    Language EN
    Master language DE
    Short text MIGO: Proposed qty despite 'delivery completed'
    indicator
    Responsible SAP AG
    Component MM-IM-GR-PO
    Goods Receipt from External Procurement
    Regards
    Kedar Kulkarni

  • DELIVERY COMPLETED indicator for Services Purchase Order

    hello experts,
    i'm working in SAP with R3 4.7 for developing funtion / BAPI for a mobile web application for services purchase order.
    i have a big problem:
    is it possibile to set the DELIVERY COMPLETED indicator (<i>ELIKZ</i>) in services purchase order via BAPI or Function Module?
    <i>I'm working with BAPI_PO_CHANGE but and i succeded with material PURCHASE ORDER but not with SERVICES PURCHASE ORDER</i>.
    can anyone help me?
    thanks in advance,
    Eliana

    For material:
    Delivery completion (DCI) tick available at line item level for each material (EKPO- ELIKZ)so you can check for the each material in PO the DCI is available or not.
    For Services:
    As Service code (Service line items) are maintained in details screen of Header line item. So whenever the DCI (Delivery completion indicator) marked for that Header line item it means that all the service line items are marked as DCI for that Header line.
    DCI indicator can mark manually in Change PO mode and automatically when service entry done as final for that Header line.
    So you can check the DCI for service same way as you do for material
    Hope it will help you
    Regards
    Vikrant

  • Delivery completed indicator

    Hello Friends,
    my open order quantity: 100 (In Purchase Order)
    i posted 105 quantity received (10% OVERDELIVERY) at MIGO.
    I want to post now 5 more to the same open item ofcourse with different material document.

    i have manuallly changed the PO With delivery completion indicator unchecked...still is not coming.
    JUST wanted to know is there any possibility to post the remainng 5 quantity
    And if not, how do u guys suggest to post the remaining quantity within the overdelivery tolerance (10%).
    Edited by: Narendar  konakanchi on Jul 20, 2009 9:16 AM

  • Delivery completed indicator for Service purchase order item

    Want to check the PO item for services already delivery completed.
    Field EKPO-ELIKZ (delivery completed indicator) is for material line item, is there a equavalent field for Service line item?
    What field /how to to check for a service line item in Purchase order already delivery completed ?

    For material:
    Delivery completion (DCI) tick available at line item level for each material (EKPO- ELIKZ)so you can check for the each material in PO the DCI is available or not.
    For Services:
    As Service code (Service line items) are maintained in details screen of Header line item. So whenever the DCI (Delivery completion indicator) marked for that Header line item it means that all the service line items are marked as DCI for that Header line.
    DCI indicator can mark manually in Change PO mode and automatically when service entry done as final for that Header line.
    So you can check the DCI for service same way as you do for material
    Hope it will help you
    Regards
    Vikrant

  • Delivery Completed Indicator(ELIKZ:0COMPL_DEL) in 2LIS_02_SCL

    Hi Experts,
    I am using the datasource 2LIS_02_SCL for Purchasing reports and this extractor has the 'Delivery Completed Indicator'[ELIKZ] which is mapped to 0COMPL_DEL in BW. The ODS which in our system has the 0PROCESSKEY as one of the key fields. Hence there are multiple records for one PO item with different 0PROCESSKEY. However the 'Delivery Completed Indicator' is not correctly extracted. For example, for one of the PO items which are not marked as delivery completed in R/3, the records extracted are as follows:
    Purch.Doc. Item( Deliv.date Pur Purc D
    POD Doc             Item    Schedule Line Process Key Delivery Completed Indicator
    3000000583          00001 0001               001             
    3000000583          00001 0001               002                X
    The delivery completed indicator was set & unset in R/3. This is an issue with all the similar PO items. The indicator in not set for all the records. Is there any rule that only certain process keys should be considered to identify the indicator?.
    Kindly help.
    Regards,
    Shilpa

    Hi,
    You can have more than these 3 depending on your system setup. 
    If remember correctly, everything ending with 1 is PO related, 2 is GR related and 3 is invoice related.  So, for GR related records, look at Process Keys 1 (so you know the Line Item quantity), 2 for GR's, 12 (GR reversals or issues?), 22 (GR issues or reversals?).
    Of course, with all things SAP, every system is different and you may have other keys you need to include.  As someone else wrote, looking to the transaction key mapping for the movement types. 
    Also, you should ask the functional guys or the business (if there are no functional people) for all of the GR related scenarios for Purchasing.  They should give you a list of 5 -10 scenarios on how material can be bought and brought into the system.  With that list, run through each one and see what records are created and when.  This will display to you how the system works and you can program based on the results.  This will take a while, but will be very beneficial to you.
    Brian

  • Delivery completed indicator for STO cannot be set!

    Dear colleagues,
    There are number of STO’s those goods issue quantity > quantity of goods received. Because of this delivery completed indicator cannot be set due to message “06 848 - Delivery completed indicator cannot be set for item XXXXX”.
    There is an OSS note (167795) that allows to set delivery completed indicator for such purchase orders. Even though our SAP release is 6.04, report RM06EV70 does not exist (yet BADI ME_ARCHIVE_ACTIVE is active) in the system and OSS note cannot be implemented.
    Any help would be appreciated.
    Regards,
    Melih
    PS. Please do not provide answers like “the goods receipt must be first posted via the entire goods issue quantity; then you can post a scrapping via the shortfall quantity” since there are backdated STO’s.

    Hi,
    Find STO created for which plant in t.code:ME23N and check MRP parameter maintained for that plant in t.code:OPPQ( also check entry of that plant in t.code: OMCD).
    Also cross check which Field Selection Key assigned to your STO PO document type and check “Delivery completed" indicator” available as Optional entry in GR/IR control segment in your Field Selection Key.
    SPRO - > MM - > Purchasing -> Define Screen Layout at Document Level
    Regards,
    Biju K

  • GR possible despite Delivery completed indicator in PO

    Dear All,
    We have PO created for 100Kg, now we have received 80kg and no further deliveries are expected and we want to close this PO line item.
    We are selecting Delivery Completed Indicator after making GR for 80Kg.  But Still we can make a GR posting in MIGO for this PO line item.
    Can someone suggest me on short closing of this PO line item.
    Thanks
    Uday

    Hello.
    This is standard behavior of the system, You can refer SAP Note# 856279.
    According to this we have three possible solutions
      1.Reduce the purchase order quantity to the previous GR quantity.
      2. Block the purchase order item.
         (ME22N: Block pushbutton; ME22 Menu -> Edit -> Block)
      3. Fill the date field for the 'Latest Possible Goods Receipt' (LEWED)
         in the purchase order item. If you do this and you enter a GR
         document after this date, the system issues message M7163, which
         you must set as an error message in Customizing.
    But I would  suggest to go with 3rd option because of below issues.
    With 1st option, if we reduce the PO qty to, PR will become Open again.
    with 2nd  option,  system will not allow invoice verification for blocked line item.
    With reagrds
    VB

  • Delivery Completed indicator for PO of Services

    Hello everyone!
    The PO for materials/goods has a delivery completed indicator in the Delivery tab of the Item Detail. But if the PO is for Service, we can not find a delivery completed indicator. Does the system have a counterpart of that indicator for Service items? We need to get this for our customized report to indicate whether a service has already been received completely or not.
    Thank you.

    hi,
    I think you get the Final entry indicator for SES documents...
    Now if you want the IR shd be created first before the completion of the entry...then its always better to do firstly IR doc and then SES document...
    I am saying this because, as per your requirement yuou don't need to check the service procured, but only wanna pay...
    But as per my suggestion this is not the right way..you shd firstly check the services done and then only you shd pay...
    Think abt it...
    Regards
    Priyanka.P

  • Delivery Completion Indicator- Control?

    Hi all,
       In our organization we have defined the release strategy in such a way that, we are having 8 release codes in a release strategy,, by means of release indicator blocked and released,,,once the PO was released bythe initial hierarchy release indicator is set as blocked i.e we cant do any changes to the PO.
    Requirement is I hv created a PO for 10 quantity.
    Received only 04 quantity,,, by this time vendor told that he cant supply the balance quantity,,, so want to short close the PO. so set the delivery completion indicator during GR time,,, by which the Header status in PO was changed like this.   Ordered -10, delivered -4, still to be delivered -0.  This is what exactly we require,,, bur our end user try to do GR for the balance 6 items for the same PO,,, it has taken in even we set the delivery completion indicator,,,
    Why this indicator is not having control?system should not allow us to do further GR if this indicator is set,, even its allowing us do, how to overcome this?
    If ur suggestion is try to short close the PO by changing the ordered qty to 4,,, this is not possible in our business scenario as v r having typical release procedure as explained above. help me out
    regards,
    urendra

    Hi,
    This is a problem that is typically caused by blocking changes to an authorised PO.
    It would be better to allow certain changes and reset the release instead of completely blocking the PO for change. That way if anything that affects the release changes, it will have to be authorised again, but if something changes that is NOT part of the release check, it can be done without problem.
    That way you could set the "blocked" indicator as suggested, but if you changed the qty or price etc. the PO would have to be released again.
    One final option would be to use a user exit in MIGO that checks for the DCI  flag and prevents the GR.
    Steve B

  • Not able to do GR  for PO's , Delivery Completion Indicator Not Ticked

    Hi ,
    In SRM 5.0 
    Users Not able to do GR  for PO's eventhough  Delivery Completion Indicator Not Ticked , having Confirmation Roles
    Either the PO is not appearing in the List or when they click the confirmation icon , the screen is not taking to the next screen to enter the quantity.
    What all must be the probable reasons.
    Thanks & Regards,

    Hello,
    You can check following things,
    1. User in the PO should be correctly assigned in org without any sync errors(check users_gen)
    2. Check in PO if the Confirmation/services performed tick is assigned properly.
    3. Check if the PO in SRM and backend is correctly synchorinzed with PO in Ordered status.
    4. Finally if there is any existing confirmation for the PO, then they can create the next confirmation only after the earlier conf is synchronized with backend, which means it would depend upon your schedule of clean_reqreq_up report.
    Regards,
    Sanjeev

Maybe you are looking for

  • RFC - XI - RFC

    Hi all We have two SAP system connect by XI by rfc (sender , receiver). The Sender Adapter is correctly configured in XI with a program ID, and from the R3 sender system we can see it. In the R3 receiver system we have Z_BAPI_RECEIVER and we want to

  • Create SDA File for JMS drivers using NWDS

    Hi SDNers, I need to create a SDA file for the JMS Drivers to be deployed on the PI server using JSPM. I have all the required jar files. I need to know how to create an sda file using these jar files with NWDS Regards, Gautam Purohit

  • DirecTv NFL Supercast with Adobe Air - Problem - HELP

    I am attempting to download the DirecTv Supercast feature so I can watch NFL Sunday Ticket online.  I am unable to get Supercast to work via Adobe Air.  When I attempt to download Supercast, I get an error message (see first  screen shot) that states

  • Problem with software, please help

    Hello all, I recently bought a Mac Book Pro along with Office '08 for Mac. Everything is working great besides Word. Whenever I try to "open" a a file, my computer will freeze up and I will have to manually trun off the computer. Now, I can open a fi

  • No Logro Sincronizar con USB

    Saludos a Todos presento el problema en que al conectar el Pearl 8220 con el cable USB a mi Laptop no logro sincronizar el BB, anteriomente aparecía un mensaje en el equipo donde me preguntaba si deseaba o no sincronizarlo, lo que me permitía ver des