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

Similar Messages

  • Delivery completion flag at delivery document level

    Hello Tean
    we have developed one inbound interface and Now the interface is working fine.. I am able to do the GR against inbound delivery and the PO status and delivery completion flag is also set at the PO level but now my FO is asking to me to set the delivery completion flag at inbound delivery document level and updation of history also. so i request you to please check and help me to find the solution.
    Technical details which i have used for developing the interface
    IDOC type: MBGMCR03
    Message type: MBGMCR
    Post Goods Movements with MB_CREATE_GOODS_MOVEMENT (ie bapi_goods_mvt_create )
    Please check and let me know the solution.
    Regards
    Raj

    use T code SQVI. here you can join tables having atleast one key field among.
    SQVI> give table name> press create> pop up will come> give the details > select table join from the drop down> click insert table> in pop up give table name > table details will appear> again press insert table> give next table name and so on. this way you can join many tablesd with key field. if key field is not there. it will not allow.  after joing all the required tables press back button.
    now from left side pane you can select the fields from ech table and decide which should come as input ( for eg company code , date etc)  and the outputs from each table.  Then save.
    now you can execute this in the same screen. or else you can use it later on also.  go to SQVI. give the Quickveiw name you have selected. and exceute.  it will act a  report with the inputs and outputs you have selected.
    if you want to restructure the report . it is possible.  change the input and output fields.  and save

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

  • Setting of delivery completed flag in Purchase orders.

    Hi Gurus,
      I need to set the Delivery Completed flag (EKPO-ELIKZ) and Final Delivery flag (EKPO-EGLKZ) for the Purchase Orders whose Goods Receipt has been done.
    Is there any function module or any BAPI F.module to do this.
    Can anyone Help Me.
    Thanks in Advance.

    Hi,
    Check in table T163 what is set with the field WEPOS. it must not be X and that is reason it is not coming as checked when u create the PO.
    Regards,
    Raj.

  • In order confirmation i need invoice number and delivery number.

    Dear Experts,
    I need invoice number and delivery number in order confirmation.
    how can i get the delivery number an invoice number.
    Program name: RVADOR01
    Regards
    Ahmed

    Hi
    In the Order confirmation Only sales order details will be there
    You better write a PERFORM  statement in Script and in the subroutine fetch the Delivery number and Invoice number with the following links and display them in script
    LIPS-VGBEL = VBAK-VBELN
    LIPS-VGPOS = VBAP-POSNR
    VBRP-AUBEL = VBAK-VBELN
    VBRP-AUPOS = VBAP-POSNR
    You can also can use the VBFA table
    using Prev doc type = C (order) and Subsequent doc type = J to get the Delivery
    and Sunsequent type = M for getting the Invoice Number
    see the sample code for subroutine
    REPORT ZMPO1 .
    form get_freight tables in_par structure itcsy out_par structure itcsy.
    tables: ekko,konv,t685t.
    data: begin of itab occurs 0,
             ebeln like ekko-ebeln,
             knumv like ekko-knumv,
           end of itab.
    data: begin of itab1 occurs 0,
             knumv like konv-knumv,
             kposn like konv-kposn,
             kschl like konv-kschl,
             kbetr like konv-kbetr,
             waers like konv-waers,
             kwert like konv-kwert,
           end of itab1.
    data: begin of iout occurs 0,
             kschl like konv-kschl,
             vtext like t685t-vtext,
             kbetr like konv-kbetr,
             kwert like konv-kwert,
           end of iout.
    data v_po like ekko-ebeln.
    read table in_par with key 'EKKO-EBELN'.
    if sy-subrc = 0.
       v_po = in_par-value.
       select
         ebeln
         knumv
      from ekko
      into table itab
      where ebeln = v_po.
      if sy-subrc = 0.
        loop at itab.
          select
            knumv
            kposn
            kschl
            kbetr
            waers
            kwert
          into table itab1
          from konv
          where knumv = itab-knumv and
                kappl = 'M'.
        endloop.
        loop at itab1.
          if itab1-kposn <> 0.
            select single * from t685t
                              where kschl = itab1-kschl
                                and kappl = 'M'
                                and spras = 'EN'.
            iout-vtext = t685t-vtext.
            iout-kschl = itab1-kschl.
            iout-kbetr = itab1-kbetr.
            iout-kwert = itab1-kwert.
            append iout.
            clear iout.
          endif.
        endloop.
        sort itab1 by kposn.
        loop at iout.
          sort iout by kschl.
          if ( iout-kschl eq 'GSDC' OR
               iout-kschl eq 'GSFR' OR
               iout-kschl eq 'GSIR' ).
            at end of kschl.
              read table iout index sy-tabix.
              sum.
             write:/ iout-kschl,iout-vtext,iout-kwert.
          out_par-name = 'A1'.
          out_par-value = iout-vtext.
          append out_par.
          out_par-name = 'A2'.
          out_par-value = iout-kwert.
          append out_par.
              endat.
            endif.
          endloop.
        endif.
      endif.
    endform.
    IN THE FORM I AM WRITING THIS CODE.
    /:DEFINE &A1& = ' '
    /:DEFINE &A2& = ' '
    /:PERFORM GET_FREIGHT IN PROGRAM ZMFORM_PO1
    /:USING &EKKO-EBELN&
    /:CHANGING &A1&
    /:CHANGING &A2&
    /:ENDPERFORM
    &A1&
    &A2&
    This Code is to be written in the PO form under ADDRESS window.
    /:DEFINE &A1& = ' '
    /:DEFINE &A2& = ' '
    /:DEFINE &A3& = ' '
    /:DEFINE &A4& = ' '
    /:DEFINE &A5& = ' '
    /:DEFINE &A6& = ' '
    /:PERFORM GET_VENDOR IN PROGRAM ZMFORM_PO
    /:USING &EKKO-EBELN&
    /:CHANGING &A1&
    /:CHANGING &A2&
    /:CHANGING &A3&
    /:CHANGING &A4&
    /:CHANGING &A5&
    /:CHANGING &A6&
    /:ENDPERFORM
    &A1&
    &A2&
    &A3&
    &A4&
    &A5&
    &A6&
    Regards
    Anji

  • Report ( invoice number and delivery number)

    Hi
    Is there any report in SAP, which can show invoice number and delivery document number, I know the SAP table, but is SAP standard report available?
    Example:PO: 5500075241, plant abraod delivery number 3510000174 and plant abroad Invoice number 3550000019, we need report which gives Delivery and Invoice no.
    thanks

    No standard reports shows both delivery and billing references in a single report.  You can develop a query in SQVI by table joining VBFA, LIKP and VBRK.
    thanks
    G. Lakshmipathi

  • How to GR for PO in which delivery completion flag is checked.

    How can I stop GR against a PO in which Delivery Completion Flag is checked for the line item.

    To stop the system from proposing a quantity in Transactions MB01 or MIGO and to prevent a GR posting, you can proceed as follows:
    Reduce the purchase order quantity to the previous GR quantity.
    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.
    see OSS Note 856279 - MIGO: Proposed qty despite 'delivery completed' indicator
    By the way, setting the block is not really recommended and jsut short term solution, as it will stop you from archiving this PO

  • Set delivery completed flag with a program

    Hi,
    We have a need of setting the delivery completed flag on a lot of POs. Is there a program that we can use for that?
    br
    Anders
    Edited by: Anders Öhrling on Aug 10, 2011 5:42 PM

    Hi,
    For mass Updation of delivery completed indicator for purcahse orders goto trns MEMASSPO and select the field MASSEKPO-ELIKZ and execute and copy all the purcahse orders and items and execute mark the check mark for delivery completed indicator in upper tab and enter the tab carry out mass change and save it..

  • Delivery Complete Flag and Generic Articles

    We have an issue when a PO is auto marked with a delivery complete flag, it isn't marking the Generic Articles with a completion flag as it does the Variant Articles.  I did a search on this in the Forum and cannot find anything concerning this issue.  Does anyone know how we can fix this?  We have ECC6 and we are using T-Code ME21N, we put in the generic article and then we can choose the variants we want on the PO.  The variants with the generic article then stay on the PO.  Is there a way that the PO either automatically checks the Delivery Complete flag for the Generic Article or to take off the Generic Article automatically after we choose the Variants?
    Edited by: Al Damsgaard on Aug 17, 2009 4:01 PM

    We have three "Tolerance Limits" under "Goods Receipt" in SPRO.  One is "order Price qty variance" (GR)/E-MSG which is set to a lower of 50% and an uppoer of 50%.  The next is the "order price qty variance (GR)/W-MSG which is set to 20% lower and 20% upper.  The last is the "moving average price variance" which is set to 0% for both upper and lower.  Is this the one that I need to change to 1%?

  • Price getting changed in purchase order while clicking on delivery complete

    Hi Frnds,
      We are using SAP AFS ,  i have made a purchase order for one item which has 6 grids ( and all the six grids are having different prices ) . I am mainitainng the standard price in Info record ( ME11 ) and Grid wise prices in MEk1.
    Now for that p.O i have received 95 % of the material and the Miro has also been done , now then vendor is not going to supply the remaining material , so i have to Delivery complete indicator and clicked on it , then the P.O price is automatically gettting changed . WHy is it happening so , and it happens only once  , if i dont save and come back and try once again then its not changin

    This is a bug in AFS System , sap has given us a note ,the problem has been solved
    regards
    rajesh

  • Delivery completion flag

    Hi,
    I need to list all the purchase order with line item for which delivery completetion flag is updated (it may be updated automatic ie when PO qunatity equal to GR quantity or manually user has updated the flag)
    i need to pass from date and To date as input.
    Can any one help me now i can take this details.
    Thanks in advance
    regards
    Kumar

    use T code SQVI. here you can join tables having atleast one key field among.
    SQVI> give table name> press create> pop up will come> give the details > select table join from the drop down> click insert table> in pop up give table name > table details will appear> again press insert table> give next table name and so on. this way you can join many tablesd with key field. if key field is not there. it will not allow.  after joing all the required tables press back button.
    now from left side pane you can select the fields from ech table and decide which should come as input ( for eg company code , date etc)  and the outputs from each table.  Then save.
    now you can execute this in the same screen. or else you can use it later on also.  go to SQVI. give the Quickveiw name you have selected. and exceute.  it will act a  report with the inputs and outputs you have selected.
    if you want to restructure the report . it is possible.  change the input and output fields.  and save

  • Did I already get my money through this invoice? And is it a scam?

    So I am selling a virtual account through paypal. and the buyers pays, but it shows up as an invoice! Here are the screenshots http://prntscr.com/7zx39nhttp://prntscr.com/7zx3o5 Is this a scam?

    If it was marked as an invoice then its probably a scam doing the rounds as its been sent by a buyer and altered to look as though he has paid you.
    Signs its a scam are >>>
    its an invoice BUT sellers send invoices not buyers
    marked as paid
    marked as gift
    says payment won't show in your balance for eg 24 hours
    can't be chargedback.
    Paypal NEVER tell you to send anything until the funds are showing in your paypal account balance.
    Paypal payments are more or less instant.
    Paypal will never tell you that a payment can't be subject to a chargeback.         ****************************************** I give up my time to help you so a thank you or kudos would be cool.
    Marking one of my replies as a solution would be appreciated if I sorted your problem. 

  • Delivery Complete Flag in PO for Services

    Hi,
    For a Material or text PO when I make the GR for the total quantity, I get for that PO the flag in field Deliveri Complete for the item.
    This Flag doesn't exist when I use Item Category D - Services.
    Can I've this flag for this Item Category also?
    If not, how can I regard the Item for the PO as closed?
    I know that when i create the service entry sheet in ML81N i can check button Final Entry and than Accept the SES.
    Regards,
    BMMO.

    Hi
    For Services PO, we have activate at the Services Entry Sheet using below path:
    Services Entry sheet > Menu Entry Sheet> Set Status> Final Entry (Click).
    Once this Final entry icon is active, it is like short closing of balance open quantity.
    regards
    Prasanna

  • Excise invoice date and delivery date difference..

    Hi all,
    1. Excise invoice is generated in the month of July for the delivery happened in June. Is there any implications?
    When i do registry update and Utilisation, does it have an effect?
    2. Pending Excise are yet to be created for the month of June, started creating the excise document for the July delivery. Do I need to cancel the July delivery excise document and then post the June delivery excise document for continuity of excise numbers, before starting the excise creation for July..
    Kindly guide me..
    Thanks,
    Saravana Raja

    Hi,
    As mentioned by Raj... it is OK as long as the goodds have not physically left the plant.
    The excise invoice has to be created immediately after the PGI is completed in the delivery and also discuss with your excise department for the regular practise .
    Make it a practise to check for all the open deliveries in the last week of the month and ensure that all the required excise invoices are created.

  • Final invoice flag auto-check (ME23N)

    Hello,
        I would like to know if the flag 'Final invoice' in tab 'Invoice' in purchase order (ME23N) can check itself, I mean, if something makes SAP to flag it, without the user intervention.
    Thank in advance

    Hello Christian,
    There are many posting for the same. Here are some of them
    Re: Final Invoice Indicator
    Final Invoice Automatic complete
    Hope this helps
    Regards
    Arif Mansuri

Maybe you are looking for

  • How can I get TB in my Mac to ask me before sending the messages in Outbox?

    Something has changed and TB is now sending the messages I created to Send Later (which are in the Outbox) without asking me as soon as I re-connect to a network (i.e., it correctly stores it into the Outbox but if my laptop loses the network-- becau

  • Loading shared library failed: Reports fatal: libgcc_s.so.1 : open failed

    Hi, I am developing a shared library in solaris. While loading the shared library it reports "ld.so.1: tn-tipc-config-bin: fatal: libgcc_s.so.1: open failed: No such file or directory". I noticed that libgcc_so.1 is available at /usr/sfw/lib. But thi

  • How can mass creating production orders???

    In SAP ,we can use CO01,CO09,CO07 to create production order. But by these TOCDES,we only can create one production order for one finished product once a time. But we now need to create more then one ,may be more then 50 production orders once a time

  • How to recover iphoto library from recovery mode

    My macbook pro suddenly went on Utility Disk Mode and can only be accessed through recovery mode. I cannot even view the files. I'm willing to let everything go except for the photos and videos in the iphoto library. I don't know how to access my pho

  • GR posting through a third party portal (EBP)

    Hi, Please help me out. I have a situation like, I have to do GR from a third party portal called EBP(SHOPPING CART CREATION). When I try to Confirm the GR, By using Purchase Order(EBELN) with Reference document Number(EKBE-XBLNR) first time it has t