BAPI_REQUISITION_RESET_RELEASE

Hi,
I am using the BAPI 'BAPI_REQUISITION_RESET_RELEASE' for cancel Release and passing all the release codes(T_16FS-FRGC1 to T_16FS-FRGC8) using a do loop for every PR  line item. In this case the first release code gets cancel released but for the other release codes it throws an error 'Purchase requisition XXXXXXXXX YYYYY blocked'. Please provide me a solution

Hi Martin,
When I checked the contain of container in the workflow (in the log), I saw that the release key is 02.
I don't know why but the WF received the event RELEASESTEPCREATED instead of normaly it is finished.
When I reset the release via ME54N, the WF ends correctly and no new event is received.
How can't I see why the event is started in the BAPI.
In fact it is very strange, if I used the BAPI alone, all works, no new event is started.
But if I used the BAPI in my BSP, a new event is started.
Thanks
Véronique

Similar Messages

  • About workflow problem in 4.6C for PR

    Hello Expert:
    i met a quesiton about the workflow for PR in 4.6C.
    the detail is as following.
    The requestor created a PR for waiting for approve, there are 3 approvor to handle the PR.
    maybe the second approvor modified the quantity or amount of the PR before release, but system seems can't trigger the new workflow to go back to first approver in 4.6C. So once the second approvor released the modified PR, then the PR will go to next approver.  Now my requirement is to hope the workflow can get back to start point for waiting for approval. or could i close the PR completely.
    even i am cancelled the PR, the purchasing group can generate new PO with the cancelled PR as well.
    Did you face the same problem in 4.6C workflow?
    hope to get your help
    Thanks in advance
    Kevin

    Hello Kevin,
    you can find this setting in the customizing tree:
    I assume that you're using purchase requisition item based released based on classification
    MM>Purch.>Req>Rel.Proc.>with class. -->Set up procedure with classification
    Push "Release indicator"
    Select the release indicator that blocks your PO (e.g. X blocked)
    Using the SAP Standard only you have the following two choices that makes the most sense:
    - Changebility = 1  i.e. cannot be changed
    - Changebility = 4 and Value change = 0,00   i.e. changeable and new release on value change
    The first option locks the requisition for any changes at all, forcing your purchasing group to re-create the PR once it should be changed.
    The second option allows any change, but when the value is touched in any way (+/- 0%) all previously given release codes will be reset making the release all-over again.
    I tip that the second option is the one you're looking for.
    If both option are not workable for your requirement, you have to create an additional event (as one of the previous contributors Aditya already mentioned), which could be restricted to the fields that you want your requisition to reset with.
    Then you have to throw in an event coupling where you use as a receiver event function module a custom-made function module that runs through the release codes of the requisition to reset all releases. This is done using the function module BAPI_REQUISITION_RESET_RELEASE. If you're choosing this way, I propose that you go a bit forward and open a new thread. But I remember that I was proposing this solution a couple of months ago. So maybe searching the forum could be a good idea then.
    With the very best wishes,
       Florin
    Edited by: Florin Wach on Mar 4, 2009 6:03 PM:   The proposed paths also apply to all versions >= 4.6B

  • Cancellation of PR release after RFQ

    We are able to cancel the release via ME54N after RFQ, but getting error while attempting to do the same via BAPI_REQUISITION_RESET_RELEASE. I was checking to see if there is any OSS note for this, but I could not find anything on this subject.
    I had seen that ME54 has the similar behaviour.. Does it mean we should not use BAPI_REQUISITION_RESET_RELEASE for cancel ling the release?

    OSS Note 686022 - ME54N: error messages ME109 and ME110 not processed.
    explains:
    ME54N allows the user to unrelease a purchase requisition linked to a purchase order or a request for quotation. This is correct behaviour and constitutes a new design.
    so the question left is: is the BAPI older than this new design?
    I guess yes.
    this BAPI calls Funtion module ME_RESET_RELEASE, and there SAP checks if the new release indicator allows RFQ creation. if not, then error ME109 is raised.

  • BAPI to reject purchase requisition

    Dear All,
    Iu2019m looking forward a BAPI to reject purchase requisition. I found below BAPIs for purchase requisition but I couldn't  find any BAPI to reject requisition? I wonder whether a BAPI exists to reject purchase requisition or not. Thanks in advance.
    - BAPI_REQUISITION_RELEASE
    - BAPI_REQUISITION_RELEASE_GEN
    - BAPI_REQUISITION_RESET_RELEASE
    - BAPI_REQUISITION_RESET_REL_GEN
    - BAPI_REQUISITION_CHANGE
    - BAPI_REQUISITION_CREATE
    - BAPI_REQUISITION_DELETE
    - BAPI_REQUISITION_GETDETAIL
    - BAPI_REQUISITION_GETITEMS
    - BAPI_REQUISITION_GETITEMSREL
    - BAPI_REQUISITION_GETRELINFO

    aarioglu,
    I am facing to the same problem.
    Did you solve it?
    Thanks in advance.
    Felipe Fernandes

  • Bapi for ourcahse requisition

    hi all
    i need names of all the bapi 's related to purchase requisition i.e bapi for purchase requisition release, refuse etc .
    regards
    navjot

    HI,
    BAPI_REQUISITION_RELEASE - Release Purchase Requisition Item by Item
    BAPI_REQUISITION_RELEASE_GEN - Release Entire Purchase Requisition
    BAPI_REQUISITION_RESET_RELEASE - Cancel Release of Purchase Requisition Items
    BAPI_REQUISITION_RESET_REL_GEN - Cancel Overall Release of Purchase Requisitions
    BAPI_REQUISITION_CHANGE - Change Purchase Requisition
    BAPI_REQUISITION_CREATE - Create Purchase Requisition
    BAPI_REQUISITION_DELETE - Delete/Close Purchase Requisition
    BAPI_REQUISITION_GETDETAIL - Display Purchase Requisition Details
    BAPI_REQUISITION_GETITEMS - Read Purchase Requisition Item
    BAPI_REQUISITION_GETITEMSREL - List Purchase Requisitions Awaiting Release
    BAPI_REQUISITION_GETRELINFO - Display Detailed Release (Approval) Information on Purchase Requisition
    Regards,
    Padmam.

  • BAPI to approve/reject Purchase Requsition

    Hello all - I need some help from SAP gurus.
    I am looking for two BAPIs - one to approve and one to reject Purchase Requsition item. I am using BAPI_REQUISITION_GETDETAIL and need to approve and reject the purchase requsition that I bring up using said BAPI. Does anyone know if such BAPIs exist? If not, how do you approve or cancel purchase requisition?
    I'd greatly apprecaite your help.
    Thank you
    Halston

    Hi
    I am not sure of the your complete requirement, but you can try this
    BAPI_REQUISITION_RELEASE       Release Purchase Requisition Item by Item
    BAPI_REQUISITION_RELEASE_GEN        Release Entire Purchase Requisition
    BAPI_REQUISITION_RESET_RELEASE       Cancel Release of Purchase Requisition Items
    BAPI_REQUISITION_RESET_REL_GEN        Cancel Overall Release of Purchase Requisitions
    Thanks !
    E.Avudaiappan

  • How to update some fields of EBAN in ABAP code

    Hi, all
    In my ABAP program, I have to update two fields of EBAN .
    But I could not find any function or BAPI about it.
    Would anyone out there be able to help.
    Many thanks
    Aysenur

    Hello,
    Try with these FM.
    Function group                 Function group short text
    Name of function module        Short text for function module
    MEWF                           BAPIs for Release of Requisition/PO
    BAPI_REQUISITION_RELEASE       Release Purchase Requisition Item by Item
    BAPI_REQUISITION_RELEASE_GEN   Release Entire Purchase Requisition
    BAPI_REQUISITION_RESET_RELEASE Cancel Release of Purchase Requisition Items
    BAPI_REQUISITION_RESET_REL_GEN Cancel Overall Release of Purchase Requisitions
    MEWQ                           BAPIs Requirement Coverage Request
    BAPI_REQUISITION_CHANGE        Change Purchase Requisition
    BAPI_REQUISITION_CREATE        Create Purchase Requisition
    BAPI_REQUISITION_DELETE        Delete/close purchase requisition
    BAPI_REQUISITION_GETDETAIL     Display Purchase Requisition Details
    BAPI_REQUISITION_GETITEMS      Read Purchase Requisition Item
    BAPI_REQUISITION_GETITEMSREL   List Purchase Requisitions Awaiting Release
    BAPI_REQUISITION_GETRELINFO    Display Detailed Release (Approval) Information on Purchase Requisitio
    If useful reward points.
    Vasanth

  • Strange One

    Dear Fords
    I Facing a very strange Problem ,
    I Created a Z function Module in which I used function modules like  BAPI_PR_CHANGE   &  BAPI_REQUISITION_RESET_RELEASE & BAPI_REQUISITION_GETRELINFO
    The Problem with the function module is that when i run the Function module through se 37 by F8 it is not giving me expected results
    But when i run the function module through SE 37 with the same set of values but now in debugging mode it gives me desired output strange!!!!
    Any Ideas are welcome

    Hi guys,
    I'm sorry to say this but I think that you are all wrong, actually, and the original poster is right.
    I'm sharing this because I don't want to forget about this in the future and search for it again.
    So, in fact the problem is when you reset a release status for a Purchase Requisition and you want to reset the previous release status immediately after, using either BAPI_REQUISITION_RESET_RELEASE or BAPI_REQUISITION_RESET_REL_GEN. The problem is the following line of code:
       CALL FUNCTION 'ME_UPDATE_REQUISITION_RELEASE' IN UPDATE TASK
    So, the update to the database is made in update task... Which means... I think... you just have to wait...
    Cheers!

  • Workflow: Approval BAPI

    Hi,
    After to load all purchase orders from a system to SAP-SRM, the manager changed his mind about the workflow. He does not want to approval all purchase orders documents loaded, as workflow asks to. So, he asked me to make a program witch could make that instead him.
    I could not find any BAPI or any way to do that by configuration at WF as well.
    Does anybody know how could I do that?
    Thansk for any help.
    Karla.

    hai karla,
    here are some bapi's to cancelapproval all purchase orders documents loaded.
    BAPI_REQUISITION_RELEASE --Release Purchase Requisition Item by Item
    BAPI_REQUISITION_RESET_RELEASE--- Cancel Release of Purchase Requisition Items
    BAPI_REQUISITION_CHANGE----Change Purchase Requisition
    hope this is helpful.
    regards,
    praba.

  • ALL   BAPIs  used in  MM  Module

    Hi  Gurus,
    could Anyone  tel  me  what are the  BAPIs used  in MM  Module
    Thanks in Advance.

    Hi,
    BAPI_SERVICE_GET_LIST     List display for service master records
    BAPI_SERVICE_GET_DETAIL     Read detailed data for a service master record
    BAPI_ENTRYSHEET_RESET_RELEASE     Cancel release of entry sheets
    BAPI_ENTRYSHEET_RELEASE     Release entry sheet
    BAPI_ENTRYSHEET_GETRELINFO     Release information relating to entry sheet
    BAPI_ENTRYSHEET_GETLIST     List of entry sheets
    BAPI_ENTRYSHEET_GETDETAIL     Entry sheet: detailed display
    BAPI_ENTRYSHEET_DELETE     Delete entry sheet
    BAPI_ENTRYSHEET_CREATE     Create entry sheet
    BAPI_SOURCEDETERMIN_GETSOS     Determine sources for material/material group
    BAPI_PROCOPERATION_GETINFO     Analysis of objects to be generated in Purchasing
    BAPI_PROCOPERATION_GETCATALOGS     Determine valid catalogs as F4 help
    BAPI_REQUISITION_RESET_RELEASE     Cancel release of purchase requisitions
    BAPI_REQUISITION_RESET_REL_GEN     Cancel release of purchase requisitions
    BAPI_REQUISITION_RELEASE_GEN     Release purchase requisition
    BAPI_REQUISITION_RELEASE     Release purchase requisition
    BAPI_REQUISITION_RELEASE     Release purchase requisition
    BAPI_REQUISITION_GETRELINFO     Detailed release information on purchase requisition
    BAPI_REQUISITION_GETITEMSREL     List purchase requisitions awaiting release
    BAPI_REQUISITION_GETITEMS     Read purchase requisition item
    BAPI_REQUISITION_GETDETAIL     Display purchase requisition details
    BAPI_REQUISITION_DELETE     Delete/close purchase requisition
    BAPI_REQUISITION_CREATE     Create purchase requisition
    BAPI_REQUISITION_CHANGE     Change purchase requisition
    BAPI_REQUIREMENT_GET_LIST     Read requirement coverage request
    BAPI_REQUIREMENT_CREATE     Create requirement coverage request
    BAPI_PO_UPDATE_HISTORY     Update PO History from Delivery
    BAPI_PO_RESET_RELEASE     Cancel Release of Purchase Orders
    BAPI_PO_RELEASE     Release Purchase Orders
    BAPI_PO_GETRELINFO     Detailed Release Information on Purchase Order
    BAPI_PO_GETITEMSREL     List Purchase Orders for Release
    BAPI_PO_GETITEMS     List Purchase Order Items
    BAPI_PO_GETDETAIL     Display Purchase Order Details
    BAPI_PO_GET_LIST     List Purchase Orders - Only up to 4.0A
    BAPI_PO_DELETE_HISTORY     Delete PO History from Delivery
    BAPI_PO_CREATE1     Create Enjoy Purchase Orders
    BAPI_PO_CREATE     Create Purchase Order
    BAPI_PO_CHANGE     Change Enjoy Purchase Orders
    BAPI_INFORECORD_GETLIST     Display purchasing info records
    BAPI_INCOMINGINVOICE_SAVE     Invoice Verification: Flag Invoice for Background Processing
    BAPI_INCOMINGINVOICE_RELEASE     Invoice Verification: Release Invoice
    BAPI_INCOMINGINVOICE_PARK     Invoice Verification: Park Invoice
    BAPI_INCOMINGINVOICE_GETLIST     Invoice Verification: List Invoices
    BAPI_INCOMINGINVOICE_GETDETAIL     Invoice Verification: Display Invoice
    BAPI_INCOMINGINVOICE_CREATE     Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_CANCEL     Invoice Verification: Reverse Invoice
    BAPI_SVCHANGE_GET_ITEMS     "Read retail revaluation document for store, key date, item status"
    BAPI_SVCHANGE_CHANGE_STATUS     Enter count quantity and change item status from A to B or C
    BAPI_RESERVATION_GETITEMS     List reservations
    BAPI_RESERVATION_GETDETAIL     Display reservation
    BAPI_RESERVATION_DELETE     BAPI to delete individual reservations
    BAPI_RESERVATION_CREATE1     BAPI to create individual reservations
    BAPI_RESERVATION_CREATE     Create reservation
    BAPI_MATPHYSINV_POSTDIFF     Post differences
    BAPI_MATPHYSINV_GETLIST     List of phys. inv. doc. header records
    BAPI_MATPHYSINV_GETITEMS     List of phys. inv. docs with headers and items
    BAPI_MATPHYSINV_GETDETAIL     Read header and items of a phys. inv. doc.
    BAPI_MATPHYSINV_CREATE_MULT     Create phys.inv.docmt(s)
    BAPI_MATPHYSINV_CREATE     Create physical inventory document
    BAPI_MATPHYSINV_COUNT     Enter count for particular items of a phys. inv. doc.
    BAPI_MATPHYSINV_CHANGECOUNT     Change count for particular items of a phys. inv. doc.
    BAPI_GOODSMVT_SAPCREATE     SAP Internal Cross-System Flow of Goods
    BAPI_GOODSMVT_GETITEMS     Display detailed list of material documents
    BAPI_GOODSMVT_GETDETAIL     Display details of goods movement
    BAPI_GOODSMVT_CREATE     Post goods movement
    BAPI_GOODSMVT_CANCEL     Reverse goods movement
    BAPI_PRICECATALOGUE_SAVREPLICA     Store instance of price catalog
    BAPI_PRICECATALOGUE_GETDETAIL     Detailed information for a price catalog
    BAPI_PRICECATALOGUE_EXISTCHECK     Check existance of a price catalog
    BBP_INVOICE_CREATE     EBP Create Invoice
    Regards,
    Chandra

  • Cancel purchase requisition

    Hi Everyone.
    I need to cancel the purchase requisition item release.
    I tried to find the FM to do this. But only FM i found was to cancel the already released pur req. item.
    FM -- >> BAPI_REQUISITION_RELEASE
    This FM will release the item of the purchase requisition.
    FM -->> BAPI_REQUISITION_RESET_RELEASE
    This FM will reset the release of the released purchase requisition item.
    Is there any FM to cancel the purchase requisition item directly. Please help me.
    Regards,
    Mahee.

    Hi,
    you can delete the Item in the purchase requisition in ME22N -select the line item and click the delete button
    you cannot cancel the Item level in P.R.
    Regards
    G.Ganesh Kumar

Maybe you are looking for

  • I can't read my External drive

    I bought a 3.5" hard drive enclosure from FRY'S (a Thermaltake) and put an old PATA 160gig HD in it. I just got my first Mac last week (MacBook Pro 15") and reformatted the drive and backed up the laptop with Time Machine. I then proceeded to install

  • Open items of all company codes displaying in vendor or customer payment

    Hi I am doing the open item posting for vendors with F-53, But it is showing all the open items of the Extended  vendor in the other company codes. I want to only display one company code open items. Please suggest me how to remove that option. I am

  • Right Side of my Audigy SoundCard not working! Any suggestio

    Hi all, I've owned my Audigy 2Zs soundcard for a little over a year now and everything has been working fine until today. Without any reason that I can think of, all of my audio information is coming out of my left speaker only. I checked all of the

  • Exchange 2010 DAG DB Failed, low disk space

    We have a DB vol that's run out of space. We have 3 other copies, 2 others are healthy. Tlogs have filled the disk. The DB is in Failed status with the following errors: ErrorMessage                     : The Microsoft Exchange Replication service en

  • FORTE with NT 4.0 and SQLSERVER 6.5

    I am trying to run a FORTE application on a platform running NT 4.0 and SQLSERVER 6.5 as the DBMS and am having troubles. On SQLSERVER there is a database called tempDB. This is suppose to be a database for use by SQLSERVER to store any temporary dat