Deleting deliveries , Batches from STO  Using BAPI

Hi,
I want to  delete outbound delivery for particular shipment number and this should be done using BAPI or a FM not using the tcode VL02N.
I  wld  be very grateful
Please List out  the BAPI 's or FM that can be  used for to perform these listed , with using Tcodes:
1) REVERSE BILLING DOCUMENT(VF11)
2) GOODS ISSUe REVERSAL (VL09N)
3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
4) DELETING DELIVERY(VL02N)
5) REMOVE BATCH FROM STO (ME22N)
Its very urgent..
Thank you in advance....
Edited by: aditya on Jan 31, 2008 2:14 PM
Edited by: Alvaro Tejada Galindo on Jan 31, 2008 9:26 AM

Hi,
Look at the below thread
Deleting deliveries and sales orders using BAPI
Regards,
Satish

Similar Messages

  • Deleting deliveries and sales orders using BAPI

    Hello all...I am making some changes to the existing program which uses call transaction to VL02 and VA02 doe deleting deliveries and sales orders. This program is running for ever. So I want to use BAPI BAPI_OUTB_DELIVERY_CHANGE and BAPI_SALESORDER_CHANGE instead of call transaction. I just want to now what values should the input tables contain or please guide where I will find documentation over this. Please give me a little insight how to use these BAPI's in my program.
    Thanks,

    Hello,
    I got the following error when tried to execute my program with the BAPI function module.
    The field "LT_DELIVERY" specified here has a different
    field
    type.        
    I am posting some part of my code here. Please help.
    CONSTANTS: c_X TYPE c VALUE 'X'.
    DATA: lt_header LIKE bapiobdlvhdrchg OCCURS 0 WITH HEADER LINE,
          lt_control LIKE bapiobdlvhdrctrlchg OCCURS 0 WITH HEADER LINE,
          lt_delivery LIKE bapiobdlvhdrchg OCCURS 0 WITH HEADER LINE,
          lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    lt_header-deliv_numb = sdel-vbeln.
        lt_delivery-deliv_numb = sdel-vbeln.
        lt_control-dlv_del = c_X.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        HEADER_DATA               = lt_header
        HEADER_CONTROL            = lt_control
        DELIVERY                  = lt_delivery
      TECHN_CONTROL             =
      TABLES
      HEADER_PARTNER            =
      HEADER_PARTNER_ADDR       =
      HEADER_DEADLINES          =
      ITEM_DATA                 =
      ITEM_CONTROL              =
      ITEM_SERIAL_NO            =
      SUPPLIER_CONS_DATA        =
      EXTENSION1                =
      EXTENSION2                =
        RETURN                    = lt_return
      TOKENREFERENCE            =
    IF sy-subrc EQ 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    Please suggest how to proceed.
    Thanks,
    Naren

  • Very Urgent: Deleting Batch from STO and Goos Issue reversal  Using BAPI

    Hi,
    I want to delete outbound delivery for particular shipment number and this should be done using BAPI or a FM not using the tcode VL02N.
    I wld be very grateful
    Please List out the BAPI 's or FM that can be used for to perform these listed , with using Tcodes:
    1) REVERSE BILLING DOCUMENT(VF11)
    2) GOODS ISSUe REVERSAL (VL09N)
    3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
    4) DELETING DELIVERY(VL02N)
    5) REMOVE BATCH FROM STO (ME22N)
    Its very urgent..
    Thank you in advance....

    1) REVERSE BILLING DOCUMENT(VF11)
    BAPI_BILLINGDOC_CANCEL
    2) GOODS ISSUe REVERSAL (VL09N)
    BAPI_GOODSMVT_CANCEL
    3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
    BAPI_SHIPMENT_CHANGE
    4) DELETING DELIVERY(VL02N)
    5) REMOVE BATCH FROM STO (ME22N)
    BAPI_PO_CHANGE

  • How to delete an operation from order using the bapi

    Can somebody please tell me how to delete an operation from order using the bapi
    BAPI_ALM_ORDER_MAINTAIN.
    Following was the test data for the BAPI.
    000000 OPERATION DELETE 0000040052810070
    000000 SAVE 0000040052810070
    Even I tried entering the operation table. The BAPI control ends fine, but when I check the order using IW32, the operation still exists.
    So, can you please tell me where Iam going wrong.

    Hi Subash Mohanvel,
    Check bapireturn parameter of the bapi BAPI_ALM_ORDER_MAINTAIN after execution of the code , and if there is no error message in the return table then call bapi_Transaction_commit.
    Unless you call this database saving of the records/values will not get reflected in the system.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • Cannot Delete CPTL file from Desktop using Vista

    Hi All,
    I cannot Delete CPTL file from Desktop using Vista. Explorer
    crashes. It is a Captivate 2 file.
    I have tried (with no luck):
    - logging in as a different user and deleting the file.
    - running explorer as an Administrator
    - uninstalling Captivate.
    Anyone got any ideas?
    Cheers,
    Raef

    Hi Raef,
    That is a strange issue. Here are a couple more ideas you
    could try:
    - Have you tried renaming the file (including suffix)?
    - Have you rebooted?
    - Do you get any error messages when trying to delete, such
    as "Acess Denied"?
    - Is your machine networked? Is it possible someone else has
    the file open?
    - Can the file be moved to another location or put in a
    folder (and then deleted)?
    - Have you tried using the Command Prompt / DOS mode to
    delete the file?
    It sounds like it could be a Vista issue so I would look at
    the Microsoft Vista forums too. Sorry I do not have an exact
    answer.
    IHTH,
    Aaron

  • Batch data commmunication using BAPI

    Hi,
    I am new to abap. I can do BDC using direct input and batch session.Now I am  want to do that using BAPI. can anyone explain me how do we do this with a detailed description or provide me link from where I can learn this concept.
    Regards,
    Vijay

    A BAPI is just a function module, so if you know how to call a function module, then you know how to call a BAPI.  BAPIs are use to wrap business logic, usually a complete business object, like "Create Sales Document".  You need to understand the interface of the BAPI to know what it will need to process.  You can check out documentation about the BAPIs in the Bapi browser, transaction BAPI.  Do you have a specific BAPI that you are looking to use?  What transaction are you doing using BDC, there may or may not be a corresponding BAPI.
    Regards,
    Rich Heilman

  • Data Read from Infoprovider using BAPI

    Hello Team
    we are using SCM 7.0
    We want a BAPI which can be used to fetch data from infoprovider (for selected Chars and CALMONTH) and display it on a Z Screen.
    Can any one one please let me know the BAPI?
    We tried FM RSDRI_INFOPROV_READ , BAPI /SAPAPO/DPBW_CUBE_READ in SE37, but it gives the error as - Error generating the test frame.

    kramish wrote:
    Im pretty sure that Access does support JDBCNo it does not. It supports ODBC.
    just doing a quick Google came up with some pages:
    http://blog.taragana.com/index.php/archive/access-microsoft-access-database-from-java-using-jdbc-odbc-bridge-sample-code/
    http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html
    Both articles explains how to use the jdbc-odbc bridge. I think I've seen a pure jdbc driver for access but it wasn't from Microsoft and it wasn't free.
    Kaj

  • How to delete a song from iphone using "itunes 12"

    iTunes 12 & iPhone 5s v8.1, iTunes installed on PC with Windows 7
    I need to delete some songs from my iPhone. They are not on any playlist. I see no way to delete them using either iTunes or the iPhone.
    How do I delete songs from my iPhone using the iPhone OR iTunes?

    I also have this question as well. I've done everything from turning off the "show all music" to turning off icloud. After hours of frustration, I decided to delete all music and just re-download the songs i actually want on my phone. Apple makes everything so much more difficult than it has to be. Next time, I'll try the "throw phone at wall" method.

  • Creation of GR from Contract using bapi BAPI_GOODSMVT_CREATE

    Hi,
    As per requirement I need to create a GR for Contract line item. I tried to create using BAPI  BAPI_GOODSMVT_CREATE but It returns the error message. I tried with GM_CODE  '05', so could you please let me know which are the parameters I need to pass to create GR?
    Thanks,
    Nishad Shah

    Hi,
    Populate header, code, item and return table
    In header populate  PSTNG_DATE ,DOC_DATE ,PR_UNAME(if u have additional information then pass those also)
    In Item table MOVE_TYPE ,MVT_IND ,PO_NUMBER ,MATERIAL,PLANT ,STGE_LOC ,PO_ITEM = POITEM-PO_ITEM,ENTRY_QNT .
    MVT_IND filed u can leave it as blank as GM_CODE is 05.
    Regards,
    Sajith

  • Update data in r/3 from webdynpro using bapi

    Hi ,
    i am new to webdynpro.
    i want to update data say sales order in r/3 backend from webdynpro.
    can i have some links for the same.
    i have seen previous forums in following link, but couldn't open.do i need to register to have some extra rights.
    /thread/12846 [original link is broken]
    thanks in advance

    Hi Satya
    In order to update data in R/3 from web dynpro you need to use RFC or BAPI
    The Adaptive Remote Function Call (Adaptive RFC) is a technology that enables the Web Dynpro application developer to use the business functions encapsulated in Business APIs (BAPIs) even after a structure modification, without having to provide the new data using a second back end or a new structure with subsequent regeneration of the proxies.
    Procedure for Importing Adaptive RFC model is as follows
      1. Choose the context menu entry Create Model on the Models node of the relevant Web Dynpro component.
    2. In the model wizard, choose Import Adaptive RFC Model followed by Next.
    3. Make the required entries – for example, to specify where the generated RFC model instances and RFC metadata are to be stored.
    4. In the next wizard window, you enter your user data for the SAP System that contains the BAPIs from which you want to generate the proxies. You use it to log on to the SAP System online.
    To be able to log on to the SAP System, it must be entered in the logon group.
    5.  Next select the BAPIs for which you want to create Java proxies in a generation process. Then choose Next to proceed to the next wizard window.
    6.The import log provides information about the generated model classes, properties, and model relations. Choose Finish to start the generation process.
    Now add this model in "Used Model" for your application
    Now for graphic display you create view,for the progarm control create controller and used this model to retrieve & update data.
    For more information about web dynpro for Java refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/14/c897427f18d06ae10000000a155106/frameset.htm
    For information about RFC & BAPI
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm
    Regards
    Gauri

  • How do I delete songs & podcast from iPhone using iTunes on new MacBook Pro

    I have recently bought a new MacBook Pro after years of using PC.
    First thing I have to say is that I love it. I've had a couple of problems here-and-there but these have been teething issues which these discussion boards have mostly helped me resolve... I have been unable to resolve this one issue though which I was hoping that someone could help me with....
         I have plugged my iPhone into my new Mac and let it appear in iTunes but when I attempt to delete old songs or podcasts from the iPhone it does not let me delete them... I've tried holding control and clicking on the items- hoping that delete would be an option, but it isn't. Also I've notice that delete is not one of my options in the edit tab at the top of iTunes.
          I understand that I can delete individual podcasts and albums/songs through the iPhone itself by swiping right and selecting delete but when I do this for All individual episodes of a podcast then the main header for the "show" still remains...
    Would love if someone could help me with this- need to be able to manage the songs and podcast on my iPhone.
    Thankyou for your time.

    "Ok- but what if I want to manually manage the songs and podcasts on my iPhone and somehow loose access to the computer which I used to put said songs and podcasts on the iPhone in the first place?"
    The you would ned to use the backup copy of tht computer to put everything on the new computer.
    "  Is there a way in which I can manage/delete the content on the iPhone using my new computer without retoring it to factory settings and starting all over again?"
    You do not have to restore it, but you cannot access the music at all from this other computer until you sync it, which will erase the content.
    "And just to clarify: I don't have any problems with playing the content that remains on my iPhone, it's just the managing and deleting of this content."
    I understand completely.
    You need to copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • Problem in retrieving multiple records SAP xMII from SAP using BAPIS

    Hi friends,
             In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
    i want to display 10 records in sap xmii
    1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
    2)In BLS we placed JCO Interface inside Sequence
    3)In BLS I used ECC5 connectrion(using JCO Interface) and called  BAPI_USER_GELLIST
    4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
    Input what i mapped 
    Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
    Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
    Output what i mapped 
    SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
    5)Saved the Transaction.
    6)In Query Template -->xactuateQuery selected
    7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
    It was returned one user id from R/3 inSAP xMII
    please help me to retrive all  10 rows from r/3
    Regards
    Srikanth

    hi,
    What is the data type of Transaction output (userid)?
    Make this as XML type.
    The format which BAPI returns the result does not match with xMII XML format.
    Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
    Hope this will help to resolve the issue.
    Regards,
    Kishore

  • HT3529 How to recover deleted text messages from iphone using iPhone

    I'm trying to recover text messages I deleted on my iPhone4s. Is it possible?
    Is it possible to do with out using a computer. If possible I'd like to recover the messages using my iPhone.

    If the backup is made after the messages were deleted, then you won't be able to get them back via an iTunes restore. However, you may be able to use a third-party program to look at the backup made after the messages were deleted and see what information about those messages is recoverable.
    One program, the one I work on, is called Decipher TextMessage. Our software will scan the text-message database and show you what information (whole and incomplete) was found that has been previously deleted. We've had a lot of success helping folks recover their deleted text messages -- it doesn't always work 100% since we're at the mercy of how the database works but it's worth a shot to see what you can find!
    The website for Decipher TextMessage is http://deciphertools.com
    You're also welcome to visit our website, try the software free, and send us any questions that you have.
    Disclaimer: Since I work on Decipher TextMessage, I stand to benefit from the links to our website that I've made above.

  • Delete a node from JTree using removeSelectionPath question

    hi guys,
    how do i delete a node using removeSelectionPath?
    jtree.removeSelectionPath(treePath);
    it dont seem to work
    cheers

    Each of that type of learning interactions has a minimum and a maximum number of buttons (nodes). For the circle matrix I found a minimum of 5 (central + one ring). When you select one of the buttons you should see a minus sign that allows to delete a button.

  • Delete a sales order position using BAPI

    Hi experts.
    Is it possible to delete a position of the sales order using BAPI_SALESORDER_CHANGE??? In afirmative case, how can I do it?
    I made debugging and don't understand what the system is performing... because I see that it seems SAP is using another standard functions like RV_XVBUP_DELETE and other RV_* functions to do it.
    I would appreciate your help.
    Thanks.
    Javier

    hi Javier,
    test this in SE37
    set order_header_inx flag to U as you wish to update the sales order
    set order_item_inx to flag to D for the relevant sales order position as you want to delete the line item
    kind regards
    Paul Quinn

Maybe you are looking for