BAPI for DELETION of the Purchase Requisation entry from DB?

Hi Experts,
1) Pls. let me know that, Wht is the good BAPI for DELETEion of the Purchase Requisation entry from the Data Base.
The tx code is ME52N(BAPI_REQUISITION_CHANGE, BAPI_PR_CHANGE)
2) pls. also let me know the INPUT PARAMETERS for the suggested BAPI
thanq
Edited by: Srinivas on May 7, 2008 12:20 AM

You can use this BAPI  to delete PR line item.
BAPI_REQUISITION_CHANGE
BAPI_REQUISITION_DELETE
Chk this for sample.
work flow object  type for purchase requisition

Similar Messages

  • BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables

    Dear All,
    I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
    Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
    Can i Use
    <b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
    pls help me out
    Message was edited by: Raja K.P

    Hi raja ,
    loop at iekko1.
        w_index = sy-tabix.
        item-po_item   = itemx-po_item   = iekko1-ebelp.
        item-quantity  = iekko1-mng01.
        itemx-quantity = iekko1-mng01.
        if iekko1-wamng = iekko1-wemng.
        itemx-no_more_gr = item-no_more_gr = 'X'.
        else.
        itemx-no_more_gr = item-no_more_gr = ''.
        endif.
        append item.
        append itemx.
          clear return[].
          call function 'BAPI_PO_CHANGE'
               exporting
                    purchaseorder = iekko1-ebeln
               tables
                    return        = return
                    poitem        = item
                    poitemx       = itemx.
          if return[] is initial.
          commit work and wait.
          call function 'DEQUEUE_ALL'.
    search for deletion fields which u have to mark 'X'.
    before calling  this BAPi u have to lock the PO by using ENQUEUE.
    <b>
    FU BAPI_PO_CHANGE
    Text
    Change purchase order
    Functionality
    Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
    Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
    Functionality in Detail
    Authorization
    When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
    M_BEST_BSA (document type in PO)
    M_BEST_EKG (purchasing group in PO)
    M_BEST_EKO (purchasing organization in PO)
    M_BEST_WRK (plant in PO)
    Controlling adoption of field values via X bar
    For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
    Transfer
    Purchase order number
    The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
    Header data
    The header data of the Enjoy purchase order is transferred in table PoHeader.
    Item data
    The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
    Use the table PoAccount to change the account assignment information.
    Services and limits
    Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
    Conditions
    Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
    Vendor and delivery address
    The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
    Partner roles
    You can change all partners except the partner role "vendor" via the table PoPartner.
    Export/import data
    Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
    Texts
    Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
    Version Management
    You can make use of the Version Management facility via the table AllVersions.
    Return
    If the PO was changed successfully, the header and item tables are populated with the information from the PO.
    Return messages
    Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
    Restrictions
    With this function module, it is not possible to:
    Create subcontracting components (you can only use existing ones)
    Create configurations (you can only use existing ones)
    Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
    Attach documents to the purchase order
    Change foreign trade data
    Change service data
    Change or reexplode BOMs
    A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
    PO items with an invoicing plan cannot be created or changed using the BAPIs
    In this connection, please refer to current information in Note 197958.
    To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
    To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
    In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
    Example
    Example of changes made to a purchase order with:
    1. Change in header data
    2. Change in item
    3. Change in delivery schedule
    4. Change in account assignment
    5. Change in conditions
    6. Change in partners
    Parameter: PURCHASEORDER 4500049596
    Parameter: POHEADER
    PMNTTRMS = 0002
    PUR_GROUP = 002
    Parameter: POHEADERX
    PMNTTRMS = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    CONF_CTRL = 0001
    Parameter: POITEMX
    PO_ITEM = 00001
    PO_ITEMX = X
    CONF_CTRL =  X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    QUANTITY = 10.000
    PO_ITEM = 00001
    SCHED_LINE = 0003
    DELETE_IND =  X
    Parameter: POSCHEDULEX
    PO_ITEM =  00001
    SCHED_LINE =  0001
    PO_ITEMX =  X
    SCHED_LINEX =  X
    QUANTITY =  X
    PO_ITEM =  00001
    SCHED_LINE =  0003
    PO_ITEMX =  X
    SCHED_LINEX =  X
    DELETE_IND = X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    GL_ACCOUNT = 0000400020
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    PO_ITEMX = X
    SERIAL_NOX = X
    GL_ACCOUNT = X
    Parameter: POCOND
    ITM_NUMBER = 000001
    COND_TYPE = RA02
    COND_VALUE = 2.110000000
    CURRENCY = %
    CHANGE_ID = U
    Parameter: POCONDX
    ITM_NUMBER = 000001
    COND_ST_NO = 001
    ITM_NUMBERX = X
    COND_ST_NOX = X
    COND_TYPE = X
    COND_VALUE = X
    CURRENCY = X
    CHANGE_ID = X
    Parameter: POPARTNER
    PARTNERDESC =  GS
    LANGU =  EN
    BUSPARTNO = 0000001000
    Help in the Case of Problems
    1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
    2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
    3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
    Customer Enhancements
    The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
    EXIT_SAPL2012_001 (at start of BAPI)
    EXIT_SAPL2012_003 (at end of BAPI)
    The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
    EXIT_SAPL2012_002 (at start of BAPI)
    EXIT_SAPL2012_004 (at end of BAPI)
    These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
    There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
    Further Information
    1. Note 197958 contains up-to-date information on the purchase order BAPIs.
    2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
    3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
    4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
    5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
    Parameters
    PURCHASEORDER
    POHEADER
    POHEADERX
    POADDRVENDOR
    TESTRUN
    MEMORY_UNCOMPLETE
    MEMORY_COMPLETE
    POEXPIMPHEADER
    POEXPIMPHEADERX
    VERSIONS
    NO_MESSAGING
    NO_MESSAGE_REQ
    NO_AUTHORITY
    NO_PRICE_FROM_PO
    EXPHEADER
    EXPPOEXPIMPHEADER
    RETURN
    POITEM
    POITEMX
    POADDRDELIVERY
    POSCHEDULE
    POSCHEDULEX
    POACCOUNT
    POACCOUNTPROFITSEGMENT
    POACCOUNTX
    POCONDHEADER
    POCONDHEADERX
    POCOND
    POCONDX
    POLIMITS
    POCONTRACTLIMITS
    POSERVICES
    POSRVACCESSVALUES
    POSERVICESTEXT
    EXTENSIONIN
    EXTENSIONOUT
    POEXPIMPITEM
    POEXPIMPITEMX
    POTEXTHEADER
    POTEXTITEM
    ALLVERSIONS
    POPARTNER
    Exceptions
    Function Group
    2012
    </b>
    regards
    prabhu
    Message was edited by: Prabhu Peram

  • Re:How can we delete the concurrent node entry from the FND_NODE table

    HI ,
    11.5.10.2 on Oracle Solaris on SPARC (64-bit) .
    How can we delete the concurrent node entry from the FND_NODES table without running Autoconfig.
    Currently we are having 3 nodes RAC and we are deciding to remove one node from the RAC and all 3 nodes are registered as concurrent node with application but concurrent manager is running only on one node.
    Lot of the custom configuration we did it at application web tire level. If we run the Autoconfig at that time we need to redo those changes again that we are trying to avoid.
    Regards .

    we are trying to avoid to run FND_CLONE.setup_clean because it will delete all the nodes entries from the FND_NODES.If those entries are invalid then they should be deleted.
    Running AutoConfig after purging the table will populate it with the correct entries.
    In order to populate the nodes entries again we need to run autoconfig and it will change the server id in fnd_nodes and then we need to redo the ADI client configuration on users PC and redo all the changes that we made in jserv and webserver.For ADI Clients, you should use the correct server ids which will be populated in the table for you once you run AutoConfig.
    For jserv configuration, you can refer to (Customizing an AutoConfig Environment [ID 270519.1]) to make the preserve all your custom setup/configuration after running AutoConfig.
    If there any custom script to delete only one node from the fnd_node so that we don't need to run autoconfig after that, then I really appreciate.No.
    Thanks,
    Hussein

  • Is it possible for deleting all the apps from the appstore which are showing up in the apps not on my phone section. Before I was able to delete them from itunes but now I am not able to find that option.

    Is it possible for deleting all the apps from the appstore which are showing up in the apps not on my phone section. Before I was able to delete them from itunes but now I am not able to find that option.

    You can hide them via your computer's iTunes : iTunes Store: Hiding and unhiding purchases - Apple Support
    The 'x' might not show on their top left corner (it might be invisible), but clicking where it should be should hide the app.

  • I bought a team license for two computers, the purchase was recorded on the credit card and the amount recorded in the making, but was unable to validate the association staff . I received an email stating that Adobe could not release the payment and that

    I bought a team license for two computers, the purchase was recorded on the credit card and the amount recorded in the making, but was unable to validate the association staff .
    I received an email stating that Adobe could not release the payment and that I should validate the method of payment , tried to insert another card number but the system does not accept the security VAT reporting error message. How do I validate my license with association staff and confirm the payment card?

    Hi Daniel,
    For any sort of payment related matter, kindly contact our support team via:  http://helpx.adobe.com/in/contact.html?step=CCSN_adobe-id-signing-in_stillNeedHelp
    If you are unable to use chat option kindly try below mentioned steps.
    Try different browser.
    Delete cookies and cache
    If you are still not able to chat, Kindly reply with the below mentioned information.
    OS version:
    Browser Version:
    You can also try: http://helpx.adobe.com/x-productkb/global/phone-support-orders.html 
    Thanks,
    Atul Saini

  • BAPI for return/supplement the funds for both overall and fiscal year.

    I have a development requirement for following and I am new to Investment ,management and Project
    Systems functionality.
    Your help will be appreciated
    The new transaction will use the upload data to create returns and/or supplements to Marketing budgets.  The following is what the transaction will do per request:
    •     Verify funds are available to shift.  The program will do this by creating an error log for items that do not meet this criteria.  The program will process all line items that have available funds (IM52).
    Q pls let me know what BAPi/FM to use to verify whether funds are vailable or not
    •     Return the funds for both overall and fiscal year (IM52).
    Q Pls tell me BAPI for same
    •     Supplement the funds for bother overall and fiscal year (IM52).
    Q BAPI for same
    •     Deactivate the availability control for the WBSE’s affected (CJBW).
    Q  How to do that and BAPI/FM for same
    •     Activate the availability control for the WBSE’s affected (CJBV).
    Q  How to do that and BAPI/FM for same
    •     Add appropriate text from the data in the upload spreadsheet (this may be a concatenation of data from the columns in the upload) (IM52).
           Not clear what user is trying to say
    •     The transaction needs to be able to handle whole dollars as well as numbers that might include up to two decimals:  e.g. .01 (IM52).

    I am answering my own question since i completed the above development by using the FM KBPV_POST_DATA .
    It will post to all the BP tables and is tested successfully.

  • BAPI for Creation of the Project in ECC using Standard Templates

    Hi,
    I want BAPI for Creation of the Project in ECC using project id and project standard template ID
    and BAPI for Updating of project and WBS element  using  project id and WBS element ID

    One idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.

  • Every time that I play a tune from my itunes the file duplicates itself into my 'MyDocuments' folder. If I delete this the song is erased from itunes totally. Ideas??

    Everything worked fine for the last two years but now every time that I play a tune from my itunes the file duplicates itself into my 'MyDocuments' folder. If I delete this the song is erased from itunes totally. Ideas??

    You are of course deleting the tunes from within the iTunes interface.
    The settings that I am referring to are your device settings for the iPad. It should show in the left column of iTunes when your iPad is plugged in.
    Go through your playlists and make sure that the tunes(s) are removed from any playlist. You can prevent the sync as noted above then do a sync and the iPad should update with the content from you Mac.
    MJ

  • If I delete all the pics n movies from camera roll.r they gonna b deleted from iCloud as well?n is photo stream connected to iCloud?

    If I delete all the pics n movies from camera roll.r they gonna b deleted from iCloud as well?n is photo stream connected to iCloud?

    Welcome to the Apple Community Hamza.
    Firstly, photo stream doesn't save videos, secondly, it may not have all your photos saved in it, it only keeps photos for 30 days.
    Back up your photos to a computer or online photo storage facility, before deleting them from your phone.

  • IPhoto for iOS removes the GPS exif data from the photo after an edit

    iPhoto for iOS removes the GPS exif data from the photo after an edit
    Using the iPhone camera, I take a photo and then I want to make the photo a little brighter.
    So, I edit a photo using iPhoto for iOS and then save the photo back to the camera roll.
    Now, I might want to see where that photo was taken via another app (like Photo Mapo) or on the map using the Photos app, or even the Mac iPhoto app.
    However, the GPS data has been removed. Looks like all of the other exif data is still in the photo.
    Why not just have a feature to remove the GPS data if the user wants? no reason to remove it for them.
    The user explictily chose to have location services turned on so the GPS data would be in the photo.
    Is this a bug?
    Thanks,
    Brian.

    First thing to try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.
    None of my cameras has a GPS function so I never see that data in the info of a photo in iPhoto for iOS. But I do see the map choice to set a location for the photo. Perhaps a reboot will fix this for you.

  • Removing the following prohibited entry from the EAR:

    I have a Fusion Application and I am using jdeveloper 11.1.1.4.0.
    If I make an Application Module Service Enabled by adding a Service Interface custom method
    I cannot deploy the application to the embedded weblogic because
    some jars are removed automatically
    Removing the following prohibited entry from the EAR: lib/trinidad-api.jar
    Removing the following prohibited entry from the EAR: lib/trinidad-impl.jar
    and then I get
    java.lang.ClassNotFoundException: org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl
    Why is this happening? An why is this happening only when I add a Service Interface custom method
    Any help appreciated.
    Regards

    Hi Frank
    Unfortunatelly this didn't work.
    If I deploy the application by using the Application Menu / Deploy / Application to IntegratedWebLogicServer the deployment succeeds with no issues
    On the other hand if I hit RUN on the ViewController I get
    Caused By: java.lang.ClassNotFoundException: org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl
    I also believe this is a misconfiguration issue but I cant find it yet
    and this only happens if I add a custom method in the Service Interface of the Application Module.
    If I remove it everything is back to normal
    I found another post with a very similar issue but it has not been resolved
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2217152
    Edited by: spooker on 31 Μαϊ 2012 12:36 μμ

  • [svn:fx-trunk] 10677: Fix for "In ASDoc, the word 'global' disappears from  @see link text"

    Revision: 10677
    Author:   [email protected]
    Date:     2009-09-29 08:09:49 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Fix for "In ASDoc, the word 'global' disappears from @see link text"
    QE notes: None.
    Doc notes: None
    Bugs: SDK-23429
    Tests run: asdoc testsuite
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23429
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    THank you , Nancy. Appreciate the input.
    So instead of this:
    <a class="brand" href="index.html"><img src="../img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    Would it be something like this?:
    <a class="brand" href="index.html"><img src="http://ConsumersAdvocate/img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    And if I do that, is there a way to cope with that locally so that DW can still display the images?
    jeff

  • Function modules or BAPI for deleting plan costs on a cost center

    Hi all,
    I search for a function module or bapi to delete plan costs / activity on a cost center.
    At the moment I update the planning with 0, but that cause a mass of needles entries on the cost centers.
    For check and posting I use the function group 6026 - BAPI_COSTACTPLN_* ,
    but there is no function for deleting.
    Has anyone an idea?
    Thx for help - points as reward !

    check
    BAPI_COSTACTPLN_POSTACTINPUT   Activity Input Planning: Posting                
    BAPI_COSTACTPLN_POSTACTOUTPUT  Activity/Price Planning: Posting                
    BAPI_COSTACTPLN_POSTKEYFIGURE  Stat. Key Figure Planning: Postings             
    BAPI_COSTACTPLN_POSTPRIMCOST   Primary Cost Planning: Postings                 
    BAPI_PDTRANSCO_POSTPRIMCOST    Transfer of Planning Data: Post Primary Costs   
    K40C                           CO Actual Postings, Manual                      
    BAPI_ACC_PRIMARY_COSTS_POST    Accounting: Post Primary Costs                  
    BAPI_COPAACTUALS_POSTCOSTDATA  BAPI Operating Concern: Post Costing-Based Actua
    BAPI_PRIM_COST_CHECK_AND_POST  Primary Costs: Formal Parameter Check           
    S@meer

  • BAPI for deletion of a requirement plan

    Hi,
    Is there a BAPI to delete a requirement plan (created through TCODE MD61).
    I have found BAPIs for creation and modification of those requirements:
    BAPI_REQUIREMENTS_CREATE,  BAPI_REQUIREMENTS_CHANGE ...
    but none for the deletion.
    Thanks & regards

    The BAPI BAPI_REQUIREMENTS_CHANGE will be helpful to delete the PIR,     
    please go the transaction BAPI and find it for detail information, you   
    can check the documentation of it.            
    Later you ahve to run MD74/75 and 76 to delete completely form the database.                                                                               
    best regards

  • BAPI for deletion of employee from work center T Code IR02

    Any one can give me a BAPI to delete position/person from work center ?
    T Code IR02
    IR02 -> HRMS - > Expand - > select person - > delete.
    Thank you
    Mrudang

    Thanks for your fast reply!
    I have looked to both functions before. Beside that they are both not remote enabled (which is not such a big problem as I could copy them or build a custom BAPI around them) I'm not quite sure how they could solve my problem.
    If I got it right, I would first use CR_CAPACITIES_OF_WORKCENTER to get the KAPID and using it as input for CLOI_WC_CAPACITY_READ. But I have problems to understand the output of CLOI_WC_CAPACITY_READ. The data type of the capacity is a float ( FLTP ) and the number seems to be to big, eg. 9.800000000000000E+01= 98h for one day.
    Could you try to explain your solution once again?
    Thanks,
    Simon

Maybe you are looking for

  • How to escape the character in a string?

    I have the following code that is causing an error. I'm attempting to use < (less than) character in a string that is part of a dynamic query: <cfif url.age eq 1> <cfset askAge = " < 15"> <cfelseif url.age eq 10> <cfset askAge = " Between 56 and 60">

  • Where to find the document uplaoded for HR object link through DMS?

    Hi, This is regarding HR object link (Object link PLOGI,screen 500) through DMS . I have attached a document for a personnel number in CV01N transcation tab HR Object by specifying plan version : blank, Object type 'Person', Object ID -selected the p

  • %localappdata%, Foxypreviewer and pdf file removal.

    I have had this issue with Foxypreviewer generating an error creating pdf file, and I traced it to the file existing in the temp directory.  I would like to remove the pdf file from the temp folder before foxy tries to generate it. How should I refer

  • Possible JGROUP Issue - Looking for recoomendations

    Customer analyzed a heap dump taken on custom application...this heap dump was taken just before they ran into memory issues on this instance. Please provide recommendations.... Observations: 1.     Total heap size is about 1.6GB. 2.     Out of this,

  • I sync my phone and the ringtones delete

    how can i get them back if i dont got them on my itunes