Document delete BAPI in DMS

Hi,
Could you please let me know BAPI for document's contents deletion in DMS
Thanks
Moderator message: please (re)search yourself before asking.
Edited by: Thomas Zloch on Jul 12, 2010 2:55 PM

Hi,
  I thought you want to delete the document.... OK..
If you want to delete the originals, please check the below link(answers given by me)
[Re: Search for a function module for deleting document originals (DMS)]

Similar Messages

  • Document deletion - MCDOKDEL

    Hello Friends,
    I have a problem with document deletion in SAP DMS.
    Documents were marked with deletion indicator which i deleted with report MCDOKDEL. These documents are no longer available in the system (no result with CV03N). Document hierarchy was maintained for these docuemnts.
    These documents are still visible in document hierarchy (with decription deleted) under superior document. I want to permanently remove these document records from the system. Please help.
    Regards,
    Rohit

    Hi Rohit,
                The activities to delete the doucment are all correct. Kindly check in the transaction SE38 as soon as when you Enter
    MCDOKDEL, here you can find the system gives three options as Document Type, Test Mode, and Execute Checks. When u want
    to delete the document from the system then u should not mark for TEST MODE option.
                After doing this activity kind now check the Hierrarchy u will find only one document. so kindly, DONOT MARK "x" IN THE
    TEST MODE.
    hope this will help your query
    Regards
    Kannan

  • Create Excise invoice(J1IIN) document while creating billing document using bapi BAPI_BILLINGDOC_CREATEMULTIPLE

    Dear Experts,
    My scenario is:
    We have batch split scenario, where the parent line item of billing document has 0 quantity and its subsequent item (item with batch number) holds actual quantity data.
    When we create billing document using VF01 against delivery document, system creates billing document along with excise invoice document (J1IIN Document). And in excise document contain same number of line items that of billing document. Please see the below attachment: 
    Biiling document screen shot:
    While creating billing document, the J1IIN Document created automatically. Below is the screen-shot for the same.
    Now the issue is:
    When we create billing document using BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE system creating only billing document and not creating excise invoice document.
    When we create excise document manually using J1IIN the zero quantity line items are excluded in excise invoice document.
    Please see the below screen-shot for the same; The z quantity line items are missing.
    We want excise document to be created while creating billing document using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Or is there any other BAPI for the same purpose.
    Customization is also maintained for creating excise invoice document automatically.
    Regards,
    Rajesh Sadula.

    HI
      Pricing will be carried basing on the pricing
    procedure.
    Case1: Prices will be carried out automatically if
    necessary condition records are maintained for the
    condition type.
      For this you can go to Sales Order-> Item Conditions
    In the screen you can click on command button Analysis,
    which gives you the list of condition types associated
    to the pricing procedure. By clicking on the condition
    type you can know the action that has taken place.
    Case2: Manually forcing prices for Items.
      To do this, you have to populate ORDER_CONDITIONS_IN &
    ORDER_CONDITIONS_INX. Also note to identify the item
    numbers, you manually pass the item number for each item
    in the sales order, use the same item number for
    populating conditions.
      Parameters required:
    ORDER_CONDITIONS_IN:
      ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
    ORDER_CONDITIONS_INX:
      ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
       Hope the above info helps you. Do revert back if you
    need more info.
    Kind Regards
    Eswar

  • Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST

    Hi All,
    I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
    Any pointers to this would be highly appreciated.
    Regards,
    Chaitanya

    Hi,
    put a  break in subroutine FORM fill_acchd
    and execute the bapi.
    Here you have:
      CLEAR gs_acchd.
      MOVE-CORRESPONDING gs_aw TO gs_acchd.
      gs_acchd-usnam = gs_bapi_acchd-username.
      gs_acchd-awsys = gs_bapi_acchd-obj_sys.
      gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
      gs_acchd-glvor = gs_bapi_acchd-bus_act.
      gs_acchd-tcode = sy-tcode.
      gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
    Check if there is something wrong there.
    Best regards

  • Document Library document delete using Event Receiver

    Please suggest your solution for the following scenario:
    A user deletes the document from document library and an e-mail has to be triggered to the admin notifying the information about the document deleted recently along with the option to Approve\Reject. If the Admin approves it, the document stays in Recycle Bin
    and if Rejected, the document gets restored to the document library.
    I came across some articles about 'event receiver' which can trigger an e-mail but couldn't find any coding for the recycle bin and deletion. Is there any other workaround to implement the same?

    Hi,
    In that case, Instead of the deleting the file through code, you can send to recycle using the SPFile.Recycle and SP.CopyTo method.
    SPFile Class
    Murugesa Pandian.,SharePoint 2010| MCPD | MCTS - Configure

  • How to update Assignment field in Accounting Document through BAPI ?

    I need to change Assignment field in already posted accounting document through bapi or some other automatic method. Please tell me exactly which bapi I should use and how can I pass the changed assignment field?

    Hey,
    I couldnt find any BAPIs which update an accounting document. I think the safest way is to record FB02 and use BDC/Call Transaction.
    -Kiran
    *Please reward useful answers

  • Shoping cart deletion when follow-on document deleted

    Hi Experts,
    it is not possible to delete a SC when the follow-on is deleted - the deletion button is deactivated. The SC is in status I1115 Follow-on Document Deleted, is there any way we can delete the SC?
    Thanks for your help.
    Tomas

    It should be not possible to delete SC when there was a follow on
    document was created in the backend, even if the PO was deleted.
    Because of  performance reasons and because the items on one SC can
    result in different backend purchase orders this is standard behavior.
    Is possible that when you delete the follow on document the SC goes to
    the sourcing.
    You should be able to delete a SC where no follow on object was created
    in the backend.

  • Creating a sales document using BAPI in web dynpro by uploading a file

    Hi ALL,
    Can some one help me how to create a sales document using  BAPI by uploading a file as input...Can someone  provide me a sample program....
    Thanks n Regards,
    Praveenn.
    Edited by: praveenn on Aug 23, 2011 12:42 PM

    Hi Sri,
    Thx for the response...
    Here is the code that i followed for creating a BAPI_SALESORDER_CREATE1 by uploading a text file as input.
    Just create a Attribute  in the VIEW CONTEXT of type String.
    method ONACTIONCREATE_SO .
    types : Begin of ty_data,
             sales_org  type vkorg,
             doc_type   type AUART,
             DISTR_CHAN type VTWEG,
             DIVISION   type spart,
             material   type matnr,
             partn_role type PARVW,
             PARTN_NUMB type kunnr,
           end of ty_data.
      DATA  :it_table TYPE  TABLE OF ty_data,
             i_data   TYPE  TABLE OF string,
             l_string TYPE string,
             wa_table TYPE ty_Data,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
    DATA: wa_order_header_in TYPE BAPISDHD1,
          it_order_items_in  TYPE TABLE OF BAPISDITM,
          wa_order_items_in  TYPE BAPISDITM,
          it_order_partners  TYPE TABLE OF BAPIPARNR,
          wa_order_partners  TYPE BAPIPARNR,
          it_return TYPE TABLE OF BAPIRET2,
          wa_return TYPE BAPIRET2.
    DATA : sales_doc type bapivbeln-vbeln.
    DATA:
       node_zfinal_node  TYPE REF TO if_wd_context_node,
       elem_zfinal_node  TYPE REF TO if_wd_context_element,
       stru_zfinal_node  TYPE if_main_view=>element_zfinal_node .
    get single attribute
      wd_context->get_attribute(
      EXPORTING
      name =  'DATASOURCE'
      IMPORTING
      value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
    SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
      LOOP AT i_data INTO l_string.
       SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        wa_table-sales_org = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        wa_table-doc_type = lv_field.
        READ TABLE fields INTO lv_field INDEX 3.
        wa_table-DISTR_CHAN = lv_field.
        READ TABLE fields INTO lv_field INDEX 4.
        wa_table-DIVISION = lv_field.
        READ TABLE fields INTO lv_field INDEX 5.
        wa_table-material  = lv_field.
        READ TABLE fields INTO lv_field INDEX 6.
        wa_table-partn_role  = lv_field.
        READ TABLE fields INTO lv_field INDEX 7.
        wa_table-partn_numb  = lv_field.
    APPEND wa_table TO it_table.
      ENDLOOP.
    loop at it_table into wa_table.
    clear : wa_order_header_in.
    wa_order_header_in-sales_org   = wa_table-sales_org.
    wa_order_header_in-doc_type    = wa_table-doc_type.
    wa_order_header_in-distr_chan  = wa_table-distr_chan.
    wa_order_header_in-division    = wa_table-division.
    clear : wa_order_items_in.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-material
    IMPORTING
       OUTPUT        = wa_order_items_in-material.
    *wa_order_items_in-req_qty  = wa_table-req_qty.
    append wa_order_items_in to it_order_items_in.
    clear : wa_order_partners.
    wa_order_partners-partn_role = wa_table-partn_role.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-partn_numb
    IMPORTING
       OUTPUT        = wa_order_partners-partn_numb
    *wa_order_partners-partn_numb = wa_table-partn_numb.
    append wa_order_partners to it_order_partners.
    endloop.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = wa_order_header_in
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                 = sales_doc
      tables
       RETURN                        = it_return
       ORDER_ITEMS_IN                = it_order_items_in
      ORDER_ITEMS_INX               =
        order_partners                = it_order_partners.
      ORDER_SCHEDULES_IN            =
    get message manager
    DATA: l_current_controller TYPE REF TO if_wd_controller,
           l_message_manager    TYPE REF TO if_wd_message_manager.
           l_current_controller ?= wd_this->wd_get_api( ).
    DATA:  v_message_text TYPE string.
    When Sales Order is created commit the data
    IF NOT sales_doc IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING wait = 'X'.
      CONCATENATE 'Sales Document' sales_doc 'has been created.' INTO v_message_text SEPARATED BY space.
    Report Success message
      CALL METHOD l_message_manager->report_success
      EXPORTING
      message_text = v_message_text.
      ELSE.
      v_message_text = 'Error Creating Sales Order'.
    Report Error message
    CALL METHOD l_message_manager->report_error_message
    EXPORTING
    message_text = v_message_text.
    ENDIF.
    endmethod.
    Edited by: praveenn on Aug 30, 2011 2:41 PM

  • Delete bapi wrapper with multi node object

    In delete bapi wrapper how do I discover if only the subnode was deleted ?.
    Because the user can delete operation of  the orderm and operation is subnode of object Orderm.

    Hi esoliveira ,
    Ex:  OrderHeader (Root)
                          --- OrderItems (Child level1)
    OrderSubItems  (Child level2)
    In this scenario, MODIFY will be called when
    1--> Root is updated
    2--> Child1 is updated/Deleted.
    3--> Child2 is updated/Deleted.
    Ex:  When you delete  OrderSubItems(Child2) on client and sync, DOE will call MODIFY BAPI pasing only OrderHeader(Root) and OrderItems(child level1).   Your MODIFY BAPI should have code/logic  to upate Root,OrderItems and delete OrderSubItems.
    Only when you delete OrderHeader on client and sync, DOE will call call the DELETE BAPI by passing the primary key of root(OrderHeader).  Your DELETE BAPI should have the logic to clean the child tables (OrderItems and OrderSubItems)  and then delete the root(OrderHeader) in the Backend.
    Regards
    Rohith

  • Create reversal document with BAPI: BAPI_ACC_DOCUMENT_POST.

    Hi Guys,
    I am Create reversal document with BAPI: BAPI_ACC_DOCUMENT_POST.First I am post financial document with BAPI BAPI_ACC_DOCUMENT_POST and Same Document. i am Reversal  with same BAPI 'BAPI_ACC_DOCUMENT_POST'.
    New reversal docment is created. but posting key are not changingin reversal docment.whatever posting key created in posting same posting key are created while reversal also.Please help me

    check
    Mapping of POSTING KEY in BAPI_ACC_DOCUMENT_POST

  • Compliance Policy Center - Document Deletion Policies option is not yet enabled

    Hello,
    I have configured Compliance Policy Center for my Online tenant. Created a policy and assigned it to a Site Collection.
    I am trying to view policy assigned to Site Collection from Site Settings > Document Deletion Policies (as mentioned in
    https://technet.microsoft.com/en-us/library/dn790608.aspx   ) however this setting is not yet displayed. technet article says, it takes 24 hours once you assign a policy, but its almost
    a week have been spent. Still not yet displayed.
    Kindly assist me to get it done.
    Thanks,
    Mayank Nigam

    Hi Mayank,
    As a common practice, it is recommended to dig into the ULS logs cause it will give us more details about this issue. However, as it is an online environment hosted in the cloud by Microsoft, there is
    no method to get the log files from client side.
    Since this is an issue more relate to Office 365 SharePoint Online, I suggest you open a thread in Office 365 forum, you will get more help and confirmed answers there:
    http://community.office365.com/en-us/forums/default.aspx
    Or you can contact Office 365 Support, it may involve the backend support engineer and provide more professional support on SharePoint Online issue:
    https://support.office.com/en-us/article/Contact-Office-365-for-business-support-32a17ca7-6fa0-4870-8a8d-e25ba4ccfd4b
    Thanks         
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to create shipment cost document through BAPI?

    Hi SAP Guru,
    My requirement is to create shipment cost document through BAPI.
    Is there any standard BAPI to create Shipment cost documents? If any buddy no please help me out.I am in client place i have find out the solution..
    Thanks & Regards,
    Pankaj Sinha

    Hi Pankaj,
    See the following link for more help.
    IDOC/BAPI for changing Shipment cost number/document
    Regards

  • How can i retrieve deleted folder from DMS?

    How can i retrieve deleted folder from DMS? please reply this question.

    Hi there,
    check the below link...hope it helps
    http://just-download.com/free/sapdmsdocuments+deleted/

  • Cancel document deletion  process (tr. va42)

    Hello all,
    Iu2019m trying to  cancel the deletion process of a document ( tr. va 42) in  in a particular case.
    Iu2019ve  tried  to use MV45AFZZ include programs FORM USEREXIT_SAVE_DOCUMENT and USEREXIT_DELETE_DOCUMENT  u2013 I check  all necessary condition but I donu2019t know how to disallow
    to delete document  - massage with type u201CEu201D is  Illegal message.
    How and in what user-exit can I cancel document deletion  process?
    Thanks,
    Tatiana

    Hi!
    Is it suitable for you to use this construction in userexit_delete_document:
    ... some conditions checking..
    message 'U cannot delete this document' type 'W'.
    clear sy-ucomm.
    leave to screen sy-dynnr.

  • Document on BAPI

    Hi,
    Can anyone please provide me a good document on BAPI ?
    Thanks in advance.
    Regards
    Indrajit
    Message was edited by: Indrajit Chakraborti

    hi,
    chk these links.
    http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    and pls give ur email id.
    i will send some soft copies.
    rgrds
    anver
    if hlped mark points

Maybe you are looking for

  • Some questions regarding BPEL 10g to 11g migration.

    Hi All I have the following queries, 1.Is it mandatory to load xsd's , wsdl's , XREF , DVM into MDS ? or is it allright to keep them in file system ? currently we have a number of xsd's and wsdl's inside each of our 10g project > bpel subfolder. If t

  • Can't open database homepage from different windows-user

    Hello! I've lost my user in which i installed Oracle Express 10 database. Now I'm using a different user-account (also with Admin rights) but I can't open the database homepage or log-in to sqlplus. I get the insufficient rights error. Which rights s

  • Lightning to SD Card Camera Reader

    Does this work with sdhc cards?

  • Storing analog output data in a datatype other than single-precision

    I'm using three PCI-6713 AO cards in a single computer to output 24 channels of data using Labview 6.1. The input terminals of all the analog output VI's are of type single precision (32-bit). The output cards only have 12-bit DAC's, so there is a la

  • Compilation/Sorting Question

    I would like to find a way of sorting compilation albums with various artists so that under the artists aren't displayed under artists, but only when I go to the compilation itself or scroll through albums. It isn't a crucial issue for me, but one mo