Hw to use BAPI_PO_RESET_RELEASE, BAPI_PO_RELEASE

Hello Experts,
                     I am using BAPI_PO_RESET_RELEASE, and BAPI_PO_RELEASE to unrelease and release PO in a program but some times its working fine and some times the PO get unrelesed but again its status is not being changed to relesed after some changes made in PO( as per my reuirement). Please assist me , if i have to consider any thing while using these function mudules

I am getting an error message 'Release of document already effected' in return table and PO is not get released, CAn i know why it happens so?

Similar Messages

  • Using BAPI_PO_RESET_RELEASE

    Dear all,
    I use BAPI_PO_RESET_RELEASE to cancel release a PO.
    but I found the STATUS in  Release strategy become  blank,instead of a yellow  triangle.
    Why?
    For example
    Code        Description               Status
    01             staff                         
    Thanks you
    John

    Dear RK,
    Did you resolved the above issue, I am facing the similar problem.
    Please let me know the solution.
    Thanks,
    Dhaneshwari

  • HOW TO BLOCK THE PURCHASE ORDER AND MARK FOR DELETION ?

    Hi ,
                        During the Creation of the Purchase order in the SAP System... After creation of the Purchase order should be blocked and a work item is created for the approver. If the Approver approves the Order then the Order is Unblocked and a mail send to the initiators inbox and the Order is Released. Similarly if the Approver Rejects the Purchase Order then its set for Mark for Deletion.
    I did Po creation and release part. But i am facing problem during the Blocking & Unblocking the Purchase order. If he rejects i need to set for "Mark For Deletion". plz help me to solve this...

    Hi,
    You can use bapi 'BAPI_PO_CHANGE' to change the status of PO and for release use bapi BAPI_PO_RELEASE.
    Hope this will help you.
    Smit

  • Change Release Stategy

    Hi Experts,
    I have defined 2 release strategy in PO for value below $100 and total value above $100 in SPRO. I have a scenario where the PO of value $90 gets released for the first time and the release strategy below $100 is triggered. Then another user comes along and change the value to $110. I have added codes in BAdi ME_PROCESS_PO_CUST to reset the release strategy using BAPI_PO_RESET_RELEASE. But the thing is the reset release BAPI did not pick up the latest PO value to re-trigger the release strategy which is above $100.
    Please advice.
    Thank you.

    Hi,
    1.use changebality indicator - 6 for your release indicator
    2.Moreover if the change of PO increases net order value(GNETW) then new release and new strategy will apply if you use any one of the indicators 3,4,5,6 .This the std SAP process
    3.Dont use BADI for this functionality
    4.if the cahnge in PO decreases net order value (GNETW) then only you need thsi BAPI to trigger new release .
    5.In this scenario also if the new value falls with new strategy then re- release happen for (4 or 6) here also - std SAP
    6. Decide in which way you want to use your BADI
    7. More info refer the note : 493900
    hope it clarifies

  • Releasing codes of  a user for MM

    Hi masters,
    i have requirment on me29n..when a person creates a purchase orders he ( creater of the PO ) Should not release it.
    i am implimenting one of the user exits and my concern here is
    where do i find the releasing codes of this USER who is tryiing to RELEASE it?
    in which table will i get the releasing codes or is their any FM?
    hope am clear...
    thank you,
    pasala.

    Hi Basker,
    *EBELN  ERNAM FRGGR
    SELECT EBELN  ERNAM FRGGR
              FROM EKKO "Purchasing Document Header
              INTO TABLE IT_EKKO
              WHERE  "YOUR OWN CONDITION"
    *FRGGR    FRGCO
    SELECT FRGGR FRGCO
                  FROM T16FW: "Assignment of Role to Release Code
                  INTO TABLE IT_T16FW
                  FOR ALL ENTRIES IN IT_EKKO    
                 WHERE  FRGGR = IT_EKKO-FRGGR.
    The value of FRGCO is the release code for that user.
    Try it out, or
    You can use the BAPI_PO_RELEASE
    Thanks
    Sri

  • Problem in Multiple PO Release [Release outside field of responsibility]

    Hi all
    I m wrking on  Multiple PO release wid release strategy on a z dev report . I m using a BAPI_PO_RELEASE . For some garment PO it given a error msg " Release outside field of responsibility" .
    I got some details of this error using sdn for authorization .so i forward it to authorise person he will also get same error .
    Plz help me .
    Regards,
    alter

    Hi Ravi,
    If you see the message "Release outside field of responsibility," it means you tried to approve a line item you are not authorized to approve. To clear the error, click to "uncheck" the incorrectly selected item and press the Enter button .
    Click the Release + Save button.
    SAP displays a message confirming the requisition has been changed (i.e., line item(s) have been released) and your inbox is redisplayed. The released requisition line items will be routed either to the Procurement Office or to a Level 2 approver, depending on the release strategy your department uses.
    Thanks,
    PrasadGVK.

  • Po event terminates well but PO still blocked.

    Hi,
    I have a Po that got blocked in release. Manual release are working fine. Only this PO is blocked and all copies of this Po are blocked in development.
    All event linkage are fine, no conditions in triggering. Workflow container has flag set for relese. But PO still dosent rleased. Manual release is possible but the workflow doesnt work for this PO.
    Any hint as to what should be the next step or has someone ever faced this problem. No error in the workflow logs. Workflow terminates well and I can see PO is released as per the logs but not actually! Can you think of an authority issues?
    Any direction, any help would be helpful.
    Thanks in advance.
    Manoj.

    Hi Rick,
    I just found out its task no. TS96100007. Not sure if this is a standard or a customised one. Using method ZBUS2010---> Release method. This method uses fm:- 'Bapi_po_release'.
    And there are no terminating events mentioned on the task.
    And also one thing that I found that the PO gets blocked only for the combination of doc. type  and vendor. Same vendor works for other PO. Same doc. type too works for other values.
    So based on above information can we be sure its not a workflow issue and only a functional issues. Also in SWEl I can see event released for the PO those are released but not for the ones that are blocked.
    We have ents triggering are 'releasestepcreated' for both but released only for the ones that are successfully released. This step that releases the Po is not avalibale in the log, so not able to update about the container values.
    Thanks,
    Manoj.

  • Release PO after any change in PO

    Dear Experts,
                         I have change the standard PO workflow WS20000075 to 3 levels and only using the RELEASESTEPCREATED. when user reject the PO in any level, "OTHER THAN 1st LEVEL" it reset the release strategy using BAPI_PO_RESET_RELEASE; after that PO becomes ready for approval again, as required.
    My problem is that, when the 1st approver rejects the PO, it should be ready again for approvals after user do any change in the PO. Can I achieve this using RELEASESTEPCREATED event only.
    Regards,
    Sohail

    Thank you very much Rick,
                                              Yes I am getting duplicate events as well. I am using standard workflow WS20000075. But you can see in SWEC entries that my workflow has single entries for both releasestepcreated and changed. And It may be also seen in SWE2 entries my workflow WS20000075 has one entry each for changed and
    releasestepcreated. Is there need to remove any entry from these (highlighted) or not. SWEL also have multiple entries for releasestepcreated and changed event as well for workflow WS20000075 Please suggest me in this regards.
    -- SWEL --
    -- SWEC --
    -- SWE2 --
    Waiting for kind replies,
    Regards,
    Sohail

  • Error while resetting the PO release using the FM BAPI_PO_RESET_RELEASE

    Hi Friends,
    My requirement is to Reset the Purchase Order release.
    I am using FM  BAPI_PO_RESET_RELEASE, and i am getting the Exception PREREQUISITE_FAIL(Release Prerequisite Not Satisfied) after executing this Function module.
    I found that For PO which is already issued an output/already printed, we can not reset the release. and for the PO which does n't have any output status records, this FM is working fine, but for the PO which has the output status records, i am getting the mentioned exception.
    I have tried by executing this FM(BAPI_PO_RESET_RELEASE) after deleting all output status records for one PO , i got the successful result. But if there are any output status records for the PO this FM is given the Exception.
    Can anybody tell me how to reset the release strategy for the PO which has already printed or which has some output status records(Without deleting the output status records).
    Thanks:
    Rk.

    Dear RK,
    Did you resolved the above issue, I am facing the similar problem.
    Please let me know the solution.
    Thanks,
    Dhaneshwari

  • 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

  • PO Changeability / Release Strategy / BAPI_PO_RELEASE Issue

    Hello everyone,
    I've run into an interesting problem:
    We have defined several PO release strategies.  Most of these work in the traditional manner, requiring manual approval by a given user.  One release strategy, "99," gets picked up by a batch job and released automatically using BAPI_PO_RELEASE. Either way, the release indicator for all released PO's is set to "R." This all works as intended.
    We have maintained Changeability settings for each release indicator in customizing. "R" is set to "4 - Changeable, new release in case of new strat. or val. change," with a percent value change tolerance of 10%.
    If we make a change to a manually released PO that exceeds the threshold set in customizing, the release procedure starts over as intended.
    If we make a change exceeding the threshold to a PO that was released automatically by BAPI_PO_RELEASE, the release procedure does not start over, and the PO remains unblocked.
    What would cause this discrepancy?  The two records look virtually identical in EKKO, particularly in respect to the fields relevant to release.
    Thank you ahead of time for your help.
    -Jarrod

    Configuration issue/user error.

  • BUS2012 releaser RELEASE - BAPI_PO_RELEASE, saving releaser

    Hi all,
    I know, this kind of topic was already processed a couple of times, however I did not find a suitable solution for our problem.
    Customer wants to be able to save (and report later) releasers of the PO. There is a new processed being implemented, which uses the (slightly modified) BUS2012 object and it's RELEASE method to release the step of the PO in the workflow. Now this calls BAPI BAPI_PO_RELEASE, but it's interface does not incorporate the RELEASER.
    We can't use change documents for this purpose, as, from workflow-orientated releases there will only be WF-BATCH users releasing everything. We would be able to find the place, where CDHEAD and CDPOS are filled, but however this could be not only one place and the added value would be very low, as customer wants a transparent reporting on who and when did which release. For this purpose we enhanced the EKKO table with 16 fields (combinations of uname + date), which will serve the purpose of saving releaser / date of release for every step.
    We can get the actual agent of the workflow, but I do not know how to pass him / her to the BAPI. Of course we can redefine the RELEASE method (and we also will have to), but whatever I put to a e.g. Z_BAPI_PO_RELEASE, will need to be accessed somewhere deeper (maybe in FM ME_REL_SET, maybe in  ME_PURCHASE_DOCUMENT_DATA_SAVE)...
    I believe this was already solved by somebody and we do have something like a best-practise to work with it. Can anybody guide me? Of course, the whole process should be ready to accept releases also from ME29N, should also be implemented for the cancellation of the release and for rejection. But this first step would be a good kick for me.
    Thanks in advance.

    I can give you one option:
    define a new 'release' method, still calling the BAPI_PO_RELEASE but define it as dialog not background
    place the task calling the new method directly after the decision task , transfer the WI_actual_agent of the decision task as the executing agent of the new task. 
    This way the BAPI_PO_RELEASE will be executed with the RELEASER user and not WF-BACTH.
    however, this solution has a few limitations:
    this will work only in SAP GUI
    the user will need to have authorizations to release the PO.
    But, I have created many reports simply reading the workflow logs, this is not more complected then the change documents logs. you can use function modules:
    SAP_WAPI_READ_CONTAINER
    SAP_WAPI_DECISION_READ
    SAP_WAPI_WORKITEMS_TO_OBJECT
    And the logs themselves can be much clearer to the user then the change documents release status has changed from XXX to XXXX logs.

  • BAPI_PO_Release

    Hi Gurus,
    Iam Using    BAPI_PO_Release   for releasing purchase order.I need to give PO Release Code. How to find it.
    Purchase Order Statu-9
    and BSTYP -  F
    For This Purchase  Order How to find out the Release COde.
    thaks in advance.
    rgds,
    kirru.ch

    hi,
    check this structure in bapi BAPI_PO_RELEASE.
    BAPIMMPARA.

  • BAPI_PO_RELEASE  not releasing PO's

    Dear All,
                 In my program am calling BAPI_PO_RELEASE to realse  PO's which are infact created by BAPI_PO_CREATE from the same program. Here I am really puzzled by the fact that all PO's are not released as expected. Strangest Part is when I debug the program it seems that, the BAPI to release the PO's, are behaving as it should !!!
                I am not calling BAPI_TRANSACTION_COMMIT after the RELEASE Bapi, is it necessary because when I tested the BAPI in SE37 it felt to me that BAPI_TRANSACTION_COMMIT was not required..
    Regards,
    Antony

    Hi Antony,
    after BAPI_PO_CREATE it is necessary to use BAPI_TRANSACTION_COMMIT .
    becuase all the tables will not update immediatly.
    so try to use ..
      DATA: LV_WAIT(1) type c value 'X'.
          CALL FUNCTION 'BAPI_PO_CREATE'
          READ TABLE x_return WITH KEY TYPE = 'E'.
          IF sy-subrc NE 0.
              "raise eror PO not created
          Else.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                 EXPORTING
                      wait   = lv_wait
                 IMPORTING
                      RETURN = wa_return.
        ENDIF.
    then use other bapis to read or release.
    Prabhudas

  • User WF-BATCH and BAPI_PO_RELEASE does not work without printer assigned

    Hello Gurus,
    The function BAPI_PO_RELEASE is used in our PO approval workflow, but this one does not work till the user WF_BATCH has no printer defined in USR01-SPLD. This is a strange behavior because the output message assigned to the PO has a message transmission medium equals to 5 (External send) => not print.
    Does someone have already met the same issue?
    How this could be solved without assigning a default printer to user WF_BATCH?
    Kind regards
    Chris

    Hello Tison,
    we're using also the WF-BATCH user having no default printer assigned and it works fine with the final release.
    However, there's usually the output message NEU with a prerequesite maintained that the PO has to be finally released. So this way there can be an additional output message found upon releasing. But we have a printer assigned using the condition records and we're not using the type that you've specified.
    So I'd guess that, indeed, the problem lies within the message. You could copy the WF-BATCH user to a dialog user and release the purchase order in dialog and see what happends.
    With the very best wishes,
       Florin

Maybe you are looking for

  • Invoke a Web Service - 401 Error - Authentication?

    I've been through the Integrator's Guide for Oracle Business Intelligence Enterprise Edition, attempting to setup Action Framework so we can use OBIEE to push data to Sharepoint 2011. I came across the article below and found it to be helpful in gett

  • How to ocult the name of the file opened in the title

    Hi, when a file is opened, the totle of the file is shown in the title of the acrobat program with the "Adobe Reader" text too. I want than when I open a file its name don't be shown in the title, I need that the title only show "Adobe Reader" always

  • Dynamic Date Variant for SAP Job

    Hi Guru We have a program to be ran in the Background . I am unable to create a Variant for Date ( Current year Jan 01st to  Current Date). Could you please advice how to create a Variant with Dynamic Date Calculation for above date range. Thanks in

  • Audio Cutoff in Premiere Pro

    Having trouble with Adobe Premiere Pro CC 2014. I imported MTS clips from my canon video camera to Premiere, but the audio drops off in the middle and there's no movement in the audio bar on the right. When I dragged the files to the computer, I drag

  • Ejecting thunderbolt drive crashes iMac

    Hello! Hoping someone can help me with this issue. I use a LaCie thunderbolt drive (connected via thunderbolt) to keep video editing projects on, the drive functions just fine on startup and while its running, however, upon ejecting the drive my iMac