Unable to delete the BDS attachment

Hi,
I am using the FM BDS_BUSINESSDOCUMENT_CREA_TAB in my ztable to attach file to the BO. I am able to attach the file and open it from the document but i am unable to delete the same document.
Dd anyone know the solution? Pls suggest.
This is my code:
  CALL METHOD cl_gui_frontend_services=>gui_upload
    EXPORTING
      filename                = lv_file
      filetype                = 'BIN' "Binary Mode
    IMPORTING
      filelength              = lv_filelength
    CHANGING
      data_tab                = lt_data
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      not_supported_by_gui    = 17
      error_no_gui            = 18
      OTHERS                  = 19.
  CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
      own_logical_system = lv_logical_system.
  CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
    EXPORTING
      full_name     = lv_file
    IMPORTING
      stripped_name = lv_filename
      file_path     = lv_filepath
    EXCEPTIONS
      x_error       = 1
      OTHERS        = 2.
  SPLIT lv_filename AT '.' INTO lv_strip lv_extension.
  CALL FUNCTION 'SDOK_MIMETYPE_GET'
    EXPORTING
      extension = lv_extension
    IMPORTING
      mimetype  = lv_mimetype.
  ls_files-doc_count = '1'.
  ls_files-comp_count = '1'.
  MOVE lv_filename TO ls_files-filename.
  MOVE lv_filepath TO ls_files-directory.
  APPEND ls_files TO lt_files.
  CLEAR ls_files.
  ls_components-doc_count = '1'.
  ls_components-comp_count = '1'.
  ls_components-mimetype = lv_mimetype.
  ls_components-comp_size = lv_filelength.
  ls_components-comp_id   = lv_filename.
  APPEND ls_components TO lt_components.
  CLEAR ls_components.
  ls_signature-doc_count = '1'.
  ls_signature-doc_id = space.
  ls_signature-doc_ver_no = 1.
  ls_signature-doc_var_id = 1.
  ls_signature-doc_var_tg = 'OR'.
  ls_signature-comp_count = 1.
  APPEND ls_signature TO lt_signature.
  ls_signature-prop_name = 'DESCRIPTION'.
  ls_signature-prop_value = lv_filename.
  APPEND ls_signature TO lt_signature.
  ls_signature-prop_name = 'LANGUAGE'.
  ls_signature-prop_value = sy-langu.
  APPEND ls_signature TO lt_signature.
  ls_signature-prop_name  = 'BDS_DOCUMENTTYPE'.
  ls_signature-prop_value = 'ATTACHMENT'.
  APPEND ls_signature TO lt_signature.
case lv_extension.
when 'txt'.
  ls_signature-prop_name  = 'BDS_DOCUMENTCLASS'.
  ls_signature-prop_value = 'TXT'.
  APPEND ls_signature TO lt_signature.
when 'pdf'.
  ls_signature-prop_name  = 'BDS_DOCUMENTCLASS'.
  ls_signature-prop_value = 'PDF'.
  APPEND ls_signature TO lt_signature.
when 'xls'.
  ls_signature-prop_name  = 'BDS_DOCUMENTCLASS'.
  ls_signature-prop_value = 'XLS'.
  APPEND ls_signature TO lt_signature.
endcase.
  CLEAR ls_signature.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = P_QMNUM
      IMPORTING
        output = lv_qmnum.
  move '005000011781' to lv_object_key.
MOVE '0000000402' TO lv_object_key.
  CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREA_TAB'
    EXPORTING
      logical_system  = lv_logical_system
      classname       = 'BUS2088'
      classtype       = 'BO'
      object_key      = lv_object_key
      binary_flag     = 'X'
    TABLES
      signature       = lt_signature
      components      = lt_components
      content         = lt_data
    EXCEPTIONS
      nothing_found   = 1
      parameter_error = 2
      not_allowed     = 3
      error_kpro      = 4
      internal_error  = 5
      not_authorized  = 6
      OTHERS          = 7.
Best Regards,
Pavan Jhawar.

Hello Francois,
Thanks for the reply. I guess ur code which u have metioned to check is not pasted. Can u reply back with the code?
Regards,
Pavan Jhawar.

Similar Messages

  • HT4847 I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do.

    I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do                             

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • I cannot fully uninstall iTunes because I am unable to delete the commonfiles\apple folder

    I received error 42404 after updating to itunes 11, and have attempted to follow the instructions at http://support.apple.com/kb/HT1925. However, my Vista will not let me delete the commonfiles\apple folder. How can I delete it?
    The day of iTunes 11's release, I updated my iTunes, then opened up the prgm to take a look at it. I was immediately brought to the attention that the program didn't install correctly (with error 42404), so I uninstalled iTunes and reinstalled it, with the same error coming up. I continued to use iTunes and see if i could ignore the issue, however I discovered I was unable to log into my itunes acount on the store.
    So I followed the isntructions at http://support.apple.com/kb/HT1925 correctly, deleted the remaining files/folders, except I am still unable to delete the C:\Program Files\Common Files\Apple\ folder. I attempt to delete it, it asks me for permission to do so, I say continue, and even after I give it permission to delete the folder, it instantly says to me, "You need permission to perform this action," and it gives me the options to cancel or try again (which immediately brings this same window up again asking me to try again).
    I've done plenty of research for the past two days, from attempting to delete the individual files within this folder via the Command Prompt, using Safe Mode, and many other options, yet nothing works. I've seen many forums advise using a program called "Unlocker," however, anyone googling the program will find that it is offered from a plethora of various sites, and I honestly dont trust programs from these sites.
    Is there ANYTHING anyone knows to do for an issue like this? All I need is that one folder deleted, and all my problems are gone!

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • I need to delete my Apple ID on my iPhone 4.  I forgot my psw for my account.  When I answer the security question, the system responds incorrect answer.  I created a new Apple iTunes account but I still unable to delete the old iTunes account.

    I need to delete my Apple ID on my iPhone 4.  I forgot my psw for my account.  When I answer the security question, the system responds incorrect answer.  I created a new Apple iTunes account but I still unable to delete the old iTunes account.

    AppleFAN7591 wrote:
    I need to delete my Apple ID on my iPhone 4.  I forgot my psw for my account.  When I answer the security question, the system responds incorrect answer.  I created a new Apple iTunes account but I still unable to delete the old iTunes account.
    How to reset your Apple ID password.
    Go to iforgot.apple.com and type in your Apple ID, then click 'Next'.
    Verify your date of birth, then click 'Next'.
    You'll be able to choose one of two methods to reset your password, either E-Mail Authentication or Answer Security Questions.
    If neither method works, then go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Lost or forgotten Apple ID password'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.
    How to reset your Apple ID security questions.
    Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
    Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.  This will generate an automated e-mail that will allow you to reset your security questions.
    If that doesn't work, or  there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
    Next, go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.

  • Unable to Delete the request in ODS

    HI Friends,
          I am facing the problem with deleting request in ODS.
              I deleted the request in cube (PPV Analysis cube). But I unable to delete the request in ODS.
        it is showing the message request is already activated;no further QM action possible.
           My system is upgraded by BI 7.0 one week before only. Please give me solution .
    I am waiting for your reply.
    Thanks & Regards,
    Guna.

    Hi,
    Are there other activated requests on top of this requests?
    In that case it wont let you delete this request unless those requests are also deleted.
    Try to change the status to red and delete.
    Else try this.
    Delete requests manually from the ODS tables.
    1. tcode se16.
    2. delete the request in these tables : RSICCONT (delete activated requests OR
    Make the selective deletion of the contents of that request), RSMONICDP, RSODSACTREQ (give the name of the ODS and the
    request ID and delete all the entries pertaining to this selection in that table.), RSODSACTUPDTYPE.
    The request will be removed from your ODS.
    Note 947481 - P32:ODS: Deleting partially active non-condensed requests 
    Hope this helps.
    Thanks,
    JituK

  • Unable to delete the file. (Some times deletes and sometime fails to delet)

    Please help me in deleting the file from the temporary location .
    Below is my code
    //Append the session is with filename as there is possibility of having same name of file.
    try{
    boolean isMultipart     = ServletFileUpload.isMultipartContent(request);
              if (isMultipart)
                   // Create a factory for disk-based file items
                   factory = new DiskFileItemFactory();
                            // Create a new file upload handler
                   upload = new ServletFileUpload(factory);
                   // Parse the request
                      List /* FileItem */ items = upload.parseRequest(request);
                           // Process the uploaded items
                   Iterator iter = items.iterator();
    if(strInputFileName.lastIndexOf("\\")== -1)
         strInputFileName = (String)mPropBag.get("TempUploadDirM") + strInputFileName;
      }else
         strInputFileName = (String)mPropBag.get("TempUploadDir") +   strInputFileName.substring(strInputFileName.lastIndexOf("\\"));
    strInputFileName = strInputFileName + "_" + request.getSession().getId();
    uploadedFile     = new File(strInputFileName);
    item.write(uploadedFile);  //// I am Writing the file in this location appened with the session Id because there might //be a  possibility of having same name of file.
    catch(......)
    finally
         uploadedFile.delete();
         uploadedFile = null;
         upload = null;
    }I am unable to delete the file from the temporary location
    some times it is deleting and some times it is not deleting.. I have also tried ...deleteOnExit();

    Make sure you've got no other processes holding onto it (Windows Explorer, for instance) and that you've closed any streams involved with the file. If that fails, try calling System.gc() just before deleting the file. This is a workaround for a bug in certain JVMs on Windows machines

  • Unable to delete the last request in full load infopackage

    Hi All,
    I have full load infopackage with many requests with green status  and thier request genetaed is 0.
    Because of last failure request ia m aunable to activate dso.
    i Made last failure request green and triggered. but not successful.
    i made it red and tried deleting, no sucess. when i delete its giving Dump
    Now i am unable to delete the first request in green status also.its not deleting.
    can i delete whole data in dso and do full load again? how to check if there any other infopackages  on this dso..
    ALL This issues camw across triggering process chian...plz let me know oyur answers....
    Thanks,
    Venkat

    Hi Venkatesh,
    I tried deleting through  RSODSACTREQ.. but the delete option was disabled in the  TABLE ENTRY TAB.
    The last request is failed one with red and not tranfered with full records..
    All the other records which are in green status  does not have symbol genated for reporting purpose and
    Request id generated up on activation is zero..
    I  tried deleting the first request.. when i change its satus to red...
    QM action on PSA Z[DSONAME] must have now:Checked to see if automatic activation of the M version should be started.
    The M version is then activated if necessary  Now?
    Req. 0001439786 in DataStore Z[DSONAME]must have QM
    status green before it is activated
    Request 0001427251 is not completely activated.
    Please activate it again.
    But i am unable to find  both the requests under psa and  in adminstartion data target tab... there are some other requests with red status iin psa...
    When i try to delete failed request its giving dump
    Thanks,
    Venkat.

  • Master Data -- unable to delete the request

    I loaded master data for 0EMPLOYEE info object, all the records Added but the request is in Read,
    I am trying to QM status Green Manually it is giving the message “QM action not allowed for DTP requests in master data and Text Tables “.
    I am unable to delete the request also, when I am trying to delete it is saying
    <b>Error:</b>
    Data inconsistency; Partition /BIC/B0000959000 not deleted
    Message no. RSAR026
    <b>Diagnosis</b>
    In table RSTSODSPART you selected all the requests of a partition to be deleted logically. Some entries partno = 0 still exist in the partition. Therefore the partition is not deleted.
    <b>System Response</b>
    The system outputs an error when deleting the partition.
    <b>Procedure&</b>
    Check the table for data consistency.
    <b>Error:</b>
    Termination in problem report 'RSS2_DTP_RNR_SUBSEQ_PROC_SET' in row '      177'
    Message no. RSSTATMAN102

    Hi,
    I have answered to another thread like this one which is still unsolved (I suggested to open the issue in the OSS)
    You can try the following OSS note for a start
    SAP Note 1048161 P14:Set QM status for yellow requests using funcion module
    I've also found a very recent one:
    SAP Note 1078527 P16:Request deletion with error RSSTATMAN 102 in row 34
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • Why am I unable to delete the default track (which seems to act as the master, right?) after making a rough mix?  Is it possible to delete the default track after having rendered a mix?

    Why am I unable to delete the default track (which seems to act as the master, right?) after making a rough mix?  Is it possible to delete the default track after having rendered a mix?  I did a rough mix and now cannot change the song as the tracks that were a part of the rough mix seem to remain in the song even though I mute the tracks for a new mix.  For instance, I played and recorded a different bass line.  Muted the original, but when trying to create the new mix I can hear the original bass line even though I have muted that track.  It seems to remain in the previous master (default) track.  Please send help.  Thank you.

    Before answering your question, you have to make sure you understand the difference between the different track types in GarageBand.
    Tracks, you record your music on
    There are three types of those Tracks.
    MIDI Tracks (aka Software Instrument Tracks)
    Audio Tracks (aka Real Instrument Tracks)
    Drummer Track (only one per Project)
    Global Tracks
    These are the Tracks that can be shown/hidden at the top of the Tracks Area for specific purposes.
    Arrangement Track
    Movie Track
    Transposition Track
    Tempo Track
    Master Track
    This Track can also be shown/hidden in the Tracks Area. Please note, you cannot delete that Track, only hide it, similar to the Global Tracks
    Regarding the Tracks you record your music on,  you can delete any of those. It doesn't matter if you created them or there are part of a Template (maybe that  is what you refer to as the default track). Once you delete the last Track, the "New Track Window" will pop up to add a new track.
    I will explain all that in much more detail in my manual "GarageBand X - How it Works".
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Unable to delete the error out record in Pending transactionsinterface form

    Hi Team,
    Help me having this issue....
    "Unable to delete the error out record in Pending transactions interface form".
    Version:11.5.10.2
    Regards,
    Arul

    Can you please give a more elaborate context?
    What application, responsibility and form, how are you trying to delete from the interface table, from front-end or via API?
    Thanks
    JD

  • Unable to delete the core storage logical volume

    So I get the grey loading bar on the apple logo screen on bootup that get's to the end and then my iMac turns off. This happens everytime. I went into disk utility (CMD-R) and tried to format the partition and get the error message: Unable to delete the core storage logical volume - I should also mention that the OS X partition is greyed out and is marked as having 0GB free (which is false) and I can't select that partition to do a fresh install of OS X on.
    I should mention that on my HDD I have a OS X partition and a bootcamp partitiion and this is the second time I have this issue. How can I fix my OS X partition without having reinstall bootcamp as I have 1TB of stuff on it.
    Any ideas?

    I have taken some screenshots of the error I get and the state of my HDD in Disk Utility. I did have a weird thing happen after trying to repair using single user mode, where I reopened disk utility and the partitions were NOT greyed out and displayed the correct info concerning space available etc, although after verifying it then reverted back to greyed out with no info.

  • Unable to delete the attachments from the order header or line

    Hi Friends,
    when i am saving any short text message through attachments either on sales order header or line, i am unable to delete the same again.
    i would like to know that is it a indented functionality of oracle or any setup needs to be done?
    Can anyone please look in to this?
    We are using 11.5.10.2

    If the order or line is closed, then you probably can not delete the attachments.
    But if the order line is still open, you should be able to delete attachments.
    If you cannot, it might be because your responsibility has a menu that excludes delete function. Try to use one of the seeded responsibilities (such as Order Management super user).
    Hope this answers your question
    Sandeep Gandhi
    Omkar Technologies Inc.
    Independent Techno-functional Consultant

  • Unable to delete the record

    Hi Gurus,
    Am able to insert , update records in EXCEL sheet using JDBC. But am unable to delete the record from EXCEL sheet. Please give me the solution how to delete the record from EXCEL sheet
    Thanks in Advance
    Ravi

    The excel odbc driver (which has nothing to do with java) doesn't do that. See "Excel Driver Limitations" in the following....
    http://support.microsoft.com/kb/178717

  • Unable to delete the meeting invitation from Calendar stored in Public Folder - exchange 2010

    I assume the specific entry (meeting invitation) is corrupted, due to which we are unable to delete the meeting either from outlook or OWA. Is there any possibility to delete that calender invitation from reoccuring? 

    Hi,
    For further troubleshooting, I would like to collect some information
    Is there any error when trying to delete the meeting invitation from calendar?
    If the calendar is not stored in the public folder, is it possible to delete the meeting in this calendar?
    Does this issue occur on one user or multi-users?
    Cancel all meetings in a recurring series
    https://support.office.com/en-za/article/Cancel-all-meetings-in-a-recurring-series-f19821e2-a05b-4f20-b0b8-d69b5a135564
    Please also refer to
    KB 2771436
    Thanks.

  • Unable to delete the interchangeability groups

    Hi all,
    Unable to delete the interchageabilty groups.
    Error: Package does not exists
    Can you please guide me to delete the IC groups.
    Regards
    KPN Murthy

    Hi,
    Some information regarding "package does not exsit".
    This type of error usually occurs if the planning package is created manually and assigned to the product at //mat1.So,delete the package in in PPDS Tab,and recheck the issue. For the affected product(s) I think you had manually created the package without a Heuristic assignment to it,which is not allowed.
    Check SAP help:[http://help.sap.com/saphelp_scm2007/helpdata/en/c1/147a375f0dbc7fe100000 09b38f8cf/frameset.htm]
    Best Regards,
    Ada

Maybe you are looking for