Skip to Content
author's profile photo Former Member
Former Member

cancel process order

how to cancel process order confirmed in z program

i mean details for cqancellation of process order phase wise and operation wise like tables, bapi

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Feb 09, 2012 at 11:07 AM

    Hi,

    You can cancel it thorough CO13.

    Find the tables order and operation wise AFRU, AFVC.

    Please check and revert.

    Thanks

    Hrishi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 09, 2012 at 05:01 PM

    Get the confirmation number (RUECK) and confirmation counter (RMZHL) by plugging in order number in AUNFR in the table AFRU. Use the following BAPI to cancel confirmation.

    CALL FUNCTION 'BAPI_PRODORDCONF_CANCEL' "Cancel production order confirmation
     EXPORTING
      confirmation =              " bapi_pp_conf_key-conf_no  Confirmation
      confirmationcounter =       " bapi_pp_conf_key-conf_cnt  Confirmation Counter
      postg_date =                " bapi_pp_confirm-postg_date  Posting Date
      conf_text =                 " bapi_pp_confirm-conf_text  Confirmation Text
     IMPORTING
      return =                    " bapiret1      Return Parameter
      locked =                    " bapi_coru_param-locked  Indicator: Order is locked
      created_conf_no =           " bapi_pp_conf_key-conf_no  Confirmation of Cancellation Record
      created_conf_count =        " bapi_pp_conf_key-conf_cnt  Confirmation Counter for Cancellation Record
        .  
    

    BAPI format courtesy:

    http://www.se80.co.uk/sapfms/b/bapi/bapi_prodordconf_cancel.htm

    Edited by: Jeevan Sagar on Feb 9, 2012 12:03 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • You need to look up in table AFRU if phases have different confirmation number or something else different. You need to do that research. My system don't have PP-PI so I cannot look it up for you. But i can give you most of the logic though.

      First you need to check if the order is confirmed and also it's not cancelled

      You will see the entry in AFRU where AFRU-STOKZ u2260 'X' and AFRU-STZHL = ' '

      For cancellation use the BAPI ( you need to get your values from AFRU to fill the entires in the input of this BAPI)

      BAPI_PROCORDCONF_CANCEL <<< Test this function module for a few phases in SE37

      and you need to commit this bapi using (in the abap program)

      BAPI_TRANSACTION_COMMIT

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.