BAPI_REQUISITION_DELETE

Hi ,
When i use bapi BAPI_REQUISITION_DELETE it is showing error
No changeable purchase requisitions exist
CAN ANYONE PLEASE HELP ME WITH THIS.

You don't need to shout, especially not if you are not looking at the place where SAP is checking.
Plant existence is checked against table T001W,
If someone deleted a plant for what ever reason (without thinking)  in a sandbox system, then the plant is gone but still you find entries like POs or material masters having this plant referenced.
Further you should post the original message instead of rephrasing a message, SAP has multiple 10000 messages, some are quite similar, so it is usually very important to post the correct content of a message, even better to post it together with a message number.
Not to forget that you always should try if you can do the same thing in the online transaction ME22N, a BAPI cannot do wonders if the normal transaction doesn't allow.

Similar Messages

  • Error while passing PR. No. in "BAPI_REQUISITION_DELETE"

    Hi
    i am trying to delete PR(Purchase Requisition) thru
    CALL FUNCTION 'BAPI_REQUISITION_DELETE' in my program, but it is giving run time error. Though I am passing PR. No. in the same format in the function.
    DUMP ERROR :
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
      not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    When calling the function module "BAPI_REQUISITION_DELETE", one of the
      parameters
    needed according to the interface description was not specified.
    This parameter was "NUMBER".
    HOW SHOULD I HANDLE THIS PROBLEM.
    Thanks & Regards
    Prajit

    Hi Shankar,
    when you passing PR number (it should be with leading Zeroes)
    12345 is PR number, then you need to pass it this way <b>
    0000012345</b>
    since PR is associated with conversion routine.Check it,
    i think you are passing it as 12345 .that is wrong. if so change it and try,
    Regards
    vijay

  • BAPI_REQUISITION_DELETE (Clears Release Strategy)

    Hi guys,
    Hoping you can help with a query. I'm using BAPI_REQUISITION_DELETE to delete a line item off a Stock Transport Requisition. The bapi is clearing the following fields in Table EBAN:
    - EBAN-FRGKZ (Release ind.)
    - EBAN-FRGZU (Release status )
    - EBAN-FRGST (Rel. strategy)
    I don't want this to happen as deleting one item from the STR should not clear the release strategy.
    Has anyone encountered this before? I can't see an option in the BADI to prevent this from happening.
    Many Thanks,
    Philip Johannesen

    Hi Philip,
    we have the same issue.
    Which the OSS Note?
    Thank you in advance.
    Regards

  • Deletion of firmed Planned orders

    Hi,
    I want to delete the firmed planned orders & Purchase Requisitions for Multiple plants,(Not using MRP Run) so can any one advise me if there is any SAP standard transaction or Program available.
    I have tried using MD19, but here we can pick firmed Planned orders only w.r.t Material or MRP contriller, we can not select Planned orders of whole plant (or) for Multiple plants.
    Please let me know if required any further information.
    regards,
    PR

    Hi,
    Not sure if CO41 can meet this need. If you select the lines & click on delete it is just removed from the list & not from the database. However if there is any new functionality added to CO41 for deletion would be glad to know.
    However for mass deletion of planned orders you can do this via a Z program using Bapi - BAPI_PLANNEDORDER_DELETE & for Purchase Requisitions use BAPI_REQUISITION_DELETE along with BAPI_TRANSACTION_COMMIT. Provide your specifications to your abaper & it should be possible.
    Regards,
    Vivek

  • Delete purchase requisition with item category Subcontracting

    Hi all,
    I need to delete a purchase requisition with item category = L (subcontracting).
    I am using already BAPI_REQUISITION_DELETE to delete other purchase requisitions but for the subcontracting it doest not work. In fact in the BAPI code you can see:
    Requisitions with dependent reservations won't be processed
        IF xeban-pstyp EQ 3 AND xeban-rsnum NE space.
    So I am looking for other BAPI but I don't find any to delete this kind of requisitions. Do you know any way to do that or I have to do a batch input?
    Thx,
    Manel

    Hi Manel,
    I am using BAPI_PO_CHANGE to set EBAN_EBAKZ, however in most of the cases error thrown as "Instance PO Number of object type  could not be changed".
    Could you please help on this?
    Thanks,
    Murali

  • Mass Deletion of Purchase Requisitions

    Hello Gurus,
    I have a unique issue. Our SAP system creates multiple MRP generated purchase requisitions on a daily basis and we do not have the manpower to delete each single PR using the ME52N transaction. I checked the MEMASSRQ transaction which is used for mass changes of PRs. However, in MEMASSRQ, there isn't any field mentioned particularly for deletion or blocking of purchase requisition. I found a BAPI, BAPI_REQUISITION_DELETE, but even this BAPI is used to delete the PRs one by one. Not for mass deletion.
    Right now, there are around 4000 PRs in our system which are lying and we have to delete them all. So, I want your help in finding out whether there is a transaction/report available for mass deletion of purchase requisitions.
    Your suggestions would be very much helpful for us.
    Thanks and Regards,
    Umakanth

    Hi,
    Perhaps you can try to archive them. Check archiving object MM_EBAN. See not Note 123900 - Archiving purchasing documents/purchase requisitns for futher information.
    I hope this helps you
    Regards
    Eduardo

  • Will this code work (bapi)

    hi to all experts,
    my requirement is to delete the purchase requisitions line items if they are not converted to PO
    i have used bapi_requisition_delete to delete the pr
    here is my code will this work any inputs will be appreciated ......
    this inside an implicit enhancement in the FM FM_CO_***_INPUT_GET_PM im matching the order number (AUFNR) and getting the pr and item no and (statu not equal to B it is not converted to PO)
    im deleting using BAPI
    SELECT banfn bnfpo FROM ebkn INTO TABLE it_ebkn
                WHERE aufnr EQ i_aufnr.
    IF it_ebkn IS NOT INITIAL.
    SELECT banfn bnfpo from eban INTO TABLE it_eban
        FOR ALL ENTRIES IN it_ebkn
      WHERE banfn eq it_ebkn-banfn
        AND statu NE 'B'.
    ENDIF.
    LOOP AT it_eban INTO wa_eban.
      MOVE: wa_eban-bnfpo TO it_del-PREQ_ITEM,
            'X'           TO it_del-DELETE_IND,
            'X'           TO it_del-CLOSED.
      APPEND it_del.
      CLEAR  it_del.
    CALL FUNCTION 'BAPI_REQUISITION_DELETE'
      EXPORTING
        number                            = wa_eban-banfn
    tables
        requisition_items_to_delete       = it_del
       RETURN                            =  it_return
    CLEAR : wa_eban.

    Hello,
    You need a BAPI_TRANSACTION_COMMIT after the BAPI's successful return.
    Thanks,
    Venu

  • 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(Function Module Required)

    Hi Gurus ,
    Please provide me the function module (BAPI) for the following.
    1. Create Purchase Requisition
    2. Update/Change Equipment master(Iq02)
    Thanks
    Tausif

    Purchase Requisition:
    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
    Equipment:
    BAPI_EQMT_CREATE Create equipment
    BAPI_EQMT_DETAIL Read details for equipment
    BAPI_EQMT_DISMANTLEFL Dismantle equipment at functional location
    BAPI_EQMT_DISMANTLEHR Dismantle equipment from equipment hierarchy
    BAPI_EQMT_GETCATALOGPROFIL Determine catalog profile for equipment
    BAPI_EQMT_GETLISTFORCUSTOMER Select customer equipment
    BAPI_EQMT_INSTALLFL Install equipment at functional location
    BAPI_EQMT_INSTALLHR Install equipment in equipment hierarchy
    BAPI_EQMT_MODIFY Change equipment
    thanks
    sitaram

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

  • Exit for ME52N

    Hi All,
    While changing a Service PR we found that the GL account field is INPUT-DISABLED. SAP standard determines the GL account through Material group only once .
    Can anybody kindly suggest any altrnative to UPDATE the GL account if the material group is changed .
    if we navigate to the SERVICES TAB -> Account assignment --> then we can manually input the GL account there which automatically gets reflected in the Account assignment tab, However my requiement is to change the GL account whenever the material grp is changed .
    I have looked for the BADI and exits however none of them have any structure that would pass the value to GL account field in SERVICES TAB -> Account assignment .
    is it good to write a BDC code in an exit .
    Kindly suggest
    Regards
    Naveen

    Hi,
    Please look at enhancement MEREQ001.
    Also,
    Try this BAPIs
    BAPI_REQUISITION_CREATE Create purchase requisition
    BAPI_REQUISITION_CHANGE Change purchase requisition
    bapi_requisition_delete
    Use ME52 for recording or Search for a BAPI, as ME52N is an Enjoy Transaction, we can't perform recording on Enjoy transactions(Ending with N letter).
    Regards.

  • Release Strategy vs. Delete (Purchase Requisition)

    When my Purchase Requisition hasn't got a Release Strategy I can mark it as deleted using BapiDelete from the Purchase Requisition business object. But when is has got a Release Strategy I can not. Is it right? Am I missing something? Or maybe haven't I got the privileges to delete an Item?

    I am assuming that you are using the BAPI_REQUISITION_DELETE. If I look at the code, there is a comment that says '<b>Requisitions with dependent reservations won't be processed</b>'.
    So if your requisition item creates a reservation then you will not be able to delete the item. It doesn't give you any error message but gives a warning message <i>'Subcontracting item & & not processed due to reservations'</i>for that. Here is the condition that it is checking.
    <i>IF xeban-pstyp EQ 3 AND xeban-rsnum NE space.</i>
    So if you are deleting more than one item at the same time and one of them meets that above criteria, then it will not be processed for deletion, but you will see a success message because the other items are processed correctly. If you look at the entire return messages, you might find a warning message in there for the item that didn't get deleted.
    Srinivas

  • Deletion of Purchase requisitions

    Hi all,
    I have to use the BAPI  BAPI_REQUISITION_DELETE  to delete the Purchase requisitions.
    Please tell me how to use this BAPI and what are the parameters to be given or if possible please give the Sample program
    Regards
    Ajay

    hi there
    report Z_REQUISITION_DELETE.
    tables: eban.
    data: gt_BAPIEBAND type BAPIEBAND occurs 0 with header line,
          gt_return type bapiret2 occurs 0 with header line,
          error_occured.
    PARAMETERS: p_banfn  like eban-banfn.
    start-of-selection.
      select * from eban where banfn eq p_banfn.
         move: eban-bnfpo to gt_BAPIEBAND-PREQ_ITEM,
               'X'        to gt_BAPIEBAND-DELETE_IND,
               'X'        to gt_BAPIEBAND-CLOSED.
         append gt_BAPIEBAND.
      endselect.
    end-of-selection.
      CALL FUNCTION 'BAPI_REQUISITION_DELETE'
        EXPORTING
          NUMBER                            = p_banfn
        TABLES
          REQUISITION_ITEMS_TO_DELETE       = gt_BAPIEBAND
          RETURN                            = gt_return.
      if gt_return[] is not initial.
        loop at gt_return.
          MESSAGE
             ID      gt_return-id
             TYPE    gt_return-type
             NUMBER  gt_return-number
             WITH    gt_return-message_v1
                     gt_return-message_v2
                     gt_return-message_v3
                     gt_return-message_v4.
          case gt_return-type.
            when 'E' or 'A'.
              exit.
          endcase.
        endloop.
      endif.
      call function 'BAPI_TRANSACTION_COMMIT'.

  • Purchase Requistion Relase Date as System Date.

    Dear Experts,
    I need some information on purchase requisitions.
    1.our users are changing  release date manually  the date which they are releasing the Purchase requisition.
    can we make the release date as system date,what type of configuration i needed to do that..
    2.mass un release of purchase requisitions.
    3.mass deletion of purchase requisition and mass deletion of purchase requisition line items
    please suggest me
    Thanks in advance
    Regards,
    Varun

    1) In spro first check the Field selection group assigned with PR document type...in most of the cases it is NBB...now go to spro@mm@PR@Define screen layout at document level@double click on NBB@double click on Deadline monitoring@here make Release date as display so that user will not be able to change it in PR.
    2) Check if the same is possible in ME55 or BAPI for release with object type BUS2105
    3) Check of BAPI for pr with function module BAPI_REQUISITION_DELETE with your ABAP person.
    Regards,
    Indranil

  • Need Function Module or Bapi....

    Can you please tell me function module or bapi which can create RFQ (Request for Quotation) from PR(Purchase requisition)
    thanks and regards,
    Hetal

    hi,
    BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check Purchase Requisition
    BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition
    BAPI_REQUISITION_RELEASE Release Purchase Requisition Item by Item
    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
    rgsd
    Anver

Maybe you are looking for

  • Can columns be selected by table name?

    If I have a table T1 with columns A,B and C is there a shortcut to specifiy those column in a complex query, instead of listing them all? For example: SELECT A,B,C FROM (SELECT ... some complex query returning multiple columns). Can this be written l

  • Minimac & Final Cut Pro

    Sorry to go over old ground as I've seen similar posts but I just wanted some final reassurance before parting with £500. I'm planning to get my first ever mac (mini, 80gb, 1.42ghz, 512mb, superdrive) purely for video editing with final cut pro (noth

  • Compilation pl/sql error

    create or replace procedure proc_test(v_empno in number                            ,v_ref_cursor out sys_refcursor ) is function get_dept_name(p_department_id number) return varchar2 is v_dept_name varchar2(100); begin select department_name into v_d

  • SmartForms002 Error when activating uploaded form

    When I create a smartform with an address element in our pre-dev env, download it and then upload it into our Dev environments, it syntax checks fine but I get a SmartForms002 Error ... Internal Error (Illegal structure of data storage).   It is fine

  • Help.. cannot add user on restored image to xserve

    Hello; After a hardware failure of a 10.5.8 ical server I restored the ccc image to a brand new xserve (purchased early 2009). All looks good until I log into wgm... authenticate to ldap... and see that the new user button is greyed out, all editing