How to save an attachment to Opportunity and BP

How to save an attachment to Opportunity and BP.
I want to know how to delete an attachment to Opportunity and client.For this I am using the FM  SDOK_LOIO_DELETE_WITH_PHIOS.
Using this I am able to delete the attachment but not the corresponding Attachment Guid value from database table SKWG_BREL.
Clarify me on this,why its not deleting from database table.
Please tell me the code.
Thanks
Prema.

Hi Prema
Use the class CL_CRM_DOCUMENTS and method DELETE to delete your current attachments.
Fill the structure BUSINESS OBJECT and IOS. you will be able to delete the document.
Use method CREATE_WITH_TABLE or CREATE_WITH_FILE to save an attachment to opportunity or business partner.
Hope this helps.
Thanks
Karthik

Similar Messages

  • How to save Query in a workbook and Role

    Hello All
    What are this workbook and role?How to save the query into this and how it helps/use us.
    can anyone tell about this?
    regards
    balaji

    Hi,
    You need to assign a role to a user. WHen this user enters the system s/he will be able to save queries under the role (the button 'Roles' will be seen).
    See here an example of working with roles:
    Re: How to protect Queries from being modified ?
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • How to save mac compatible ai eps and pdf on windows

    how to save mac compatible ai eps and pdf on windows

    haykaz,
    You can, but there may be no need. There is, or at least may be, a certain deterioration in appearance when you outline fonts, especially in connexion will small point sizes.
    Rereading, I noticed the PDF part. Normally, the fonts are embedded in PDF and thereby platform independent.
    Have you tried and found any issues?

  • How to save a query in package and transport it?

    i have saved a query as local object? now without making any changes to it, how to save it in a package? and please give me step by step procedure to transport query from one server to another server?

    Hi,
    Query Transport
    Query transport
    Query Transport
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb46da455611d189710000e8322d00/frameset.htm
    How to transport queries?
    Changing Package Assignments
    http://help.sap.com/saphelp_nw70/helpdata/en/04/733a3e5069eb6ce10000000a114084/frameset.htm
    Change package
    Hope this helps.
    Thanks,
    JituK

  • How to save change in 3D text and Object that being made in photoshop cs6..

    I  was  wondering  how do I save change for 3D text and objects.
    let said the first text i type is Adobe but i want to change it to Microsoft.
    how can I  save that change in 3D  from Adobe to Microsoft.
    thank in advantace.

    You haven't said what version of Pages you are referring to.
    Hold down the option key when you go to the File menu and Save As… appears.
    It was Apple stiff necked response to users complaint about its removal. They couldn't just put it back.
    Once you do do this it is pretty much what it was before.
    Peter

  • How to save an image to database and retreive from it.

    how to save an image retreived from an bytearray to database and retreive back the image from database....pls specify the steps and the query.

    You can use the JDBC API for database connectivity and you can use SQL to query the database.
    JDBC tutorial: http://www.google.com/search?q=jdbc+tutorial+site:sun.com
    SQL tutorial: http://www.google.com/search?q=sql+tutorial+site:w3schools.com

  • How to save word attachment?

    I want to save attachment on disk but I don't know how.
    Please help me.
    Thanks
    Agil Bull

    [agilbull],
    A mail message with an attachment is represented in MIME as a multipart message.
    After using getContent() to get the content of a mail message, the attachment will be in the form of a MimeMultipart object.
    To save the data in a body part e.g. an attachment into a file, use the getInputStream method to access the attachment content and copy the data to a FileOutputStream.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • How to find document attached to user and Company code?

    Hi all,
    Requirement: Select a list of Business documents ( Sales order/PO....) created or changed by <b>specific users</b> which belong to a <b>Specific Company code</b>.
    ie,To develop a report which lists the Documents created/updated/changed based on specified date and users.
    I think we can find from CDHDR & CDPOS  tables.  But i need to filter these documents or pick documents based on a Specific Company code.
    ie.,from the list of records obtained from CDHDR table....how to filter these documents based on Company code......
    valuable inputs needed.
    Thanks,
    Subba

    Hi
    Most of the application document Heade tables(VBAK,EKKO etc ) will have the field CRETAED by  like ERNAM. and all these tables will have BUKRS field also in them
    So compnay code wise User created documents list you will get.
    Only problem is the Changed/Modified list by user with related Company code.
    Anyhow you will get the User who changed the documents from CDPOS table.
    But for linkthem to Company code I feel You need the
    help of HR related Tables .
    with the UNAME which you get from CDPOS table go to PA0105 infotype and get the PERNR linked with that user.
    And get the attached BUKRS Company code from PA0001 infotype.
    Hope this will solve your problem.
    reward points if useful
    regards
    Anji

  • How to save files in the filesystem and remember their position?

    This is a fairly novice question. I'm writing a Java desktop application which executed from the jar (actually a jnlp) will first run a setup creating some files in a directory of user choice.
    When the application runs, it'll requires access to those files. However, if they were not saved in the user home directory, how could the application know where they are located? I hope the problem is clear enough. I cannot permanently save the user choice of location at setup time other than in the user home directory, but then I'd rather just save the files there. The problem is that in my case the user has no writing permissions to the user directory.

    simpatico_gabriele wrote:
    I'll need to look closer at your demo and the API. However from what you suggest it seems my application could still run in the sandbox (without being signed) and access the database without bothering the user (if he chooses always allow the first time). True?No. The PS can be accessed sand-boxed, so you can get the path to the DB in a sandboxed app., but the DB itself will require all-permissions to access. (Actually there are some pure Java DBs that can be launched from sand-boxed code, from classes on the run-time classpath, and so long as the app. does not need to change the data - that would be OK.)
    It is true that the JNLP API provides sand-boxed access to the local file system, but it does so through a FileContents object, a strictly limited type of File that is not usable in exchange for a method that accepts (for e.g.) a File or URL.
    If so, I still have a concern: the application also needs to store an image in a folder the user can reach. Writes to the image occur frequently. So using just the PersistService (as in ur demo) wouldn't do since it would be cached somewhere not chosen by the user (and hardly reachable anyway).
    I could use the ExtensionInstallerService to store along the db this image in the same path, and then write to it in the same way as I do with the db. However, will I need to offer a JFileChooser twice, once for each file,.. I don't understand why. The EIS determines the path for the DB using a JFileChooser, then stores it in the PS. The app. gets the path to the DB and image folder, from the PS.
    If they are to be stored in the same path, why is there a need to show 2 file choosers?

  • How to save large amount of data and memory management

    hi guys,
    I prepared a vi to take measurement of temperature and pressure simultaneously from Agilent 34970A with 34901A. The sampling rate is 1 sample/per second for each channel (20 temperature channel and 2 pressure channel (current). The device has 20 channels and most probably the test will lasts 2 days. So, it means 86400 sample per day totally. Could the attached vi  do this task? I really do not know how the "write to text file.vi" works and use the memory of the pc. And after collecting all data, could I export these data to microsoft office excel to analyse safely? And I really do not know can I work this vi without interrupting. is it possible? I am also open for all other suggests relevant the vi, too. And I wonder that is it possible to build a standalone application to take measurements from DAQ devices (here Agilent 34970A-34901A)  by a pc without labview?
    Egemen
    Attachments:
    Agilent_Labview_v2.4.vi ‏85 KB

    Hey,
    What I meant by check for an error while measuring is the following:
    you start the program
    If one of your Agilent VIs returns an error (maybe bad initialisation or so) you will still try to continue to measure.
    Even if it is not working, you still continue measuring. Instead you could also check at the end of each loop if an error occured, like this:
    this will only look for an error and stop right away. If you encounter typical errors with apperatus you might want to handle it. A sufficient way to do so might be a state machine that just re-initializes the setup if an error occurs and then continues with its task. Check out this article: http://www.ni.com/white-paper/3024/en
    Anyway, I would recommend to just try it out and see what problems arise, as you might spend hours of improving well working code (:

  • HOW TO SAVE DATA FROM TABLE A AND TABLE B INTO TABLE C

    Hi,
    I have a table called EMPLOYEE , GROUP and EMPLOYEE_GROUP
    table EMPLOYEE contains emp_id, emp_name, emp_dep and emp_level
    table GROUP contains group_id and group_description
    table EMPLOYEE_GROUP contains emp_id and group_id (emp_id is a primary key)
    I want to assign each employee to a group based on their department and level..
    How can I assign many employees to one group?
    But each group have the limit number.
    My screen would be :
    1. search employees based on their department and level
    2. assign each employees to a group
    *3. save the data into table EMPLOYEE_GROUP (where the process should save the emp_id and group_id into table EMPLOYEE_GROUP)*
    Thank you in advance!

    Hi Rakesh,
    Thank you for your valuable information that you post...
    I made 1 to many relationship between employee and group.
    I want to assign each employee to a group...so one employee can only have one group but one group can contains many employees..
    When I run the application, I have an error when i try to save many employees into one group...
    master table is group, detail table is employee
    error : Too many objects match the primary key oracle.jbo.Key
    Hope that you could help me with this..
    Thank You.

  • How to save a website I created and then modify it?

    I just created my website; and published it to my (soon to no longer exist but OK till 30 June 2012) MobilMe web site.  Great -looks fine!
    But if I want to modify it- can I somehow save a copy of the original, in case I don't like my modifications?  How to do this in iWeb?
    Thanks for any comments--
    Steve
    Sunday 13 November 2011

    iWeb and publishing your site are seprate, so your url cannot change, unless you choose to change your own sitename in iWeb itself and then republish to MobileMe.
    If you are using your MMe url then your url is always going to be http://web.me.com/useranme/siteanme.  The only thing there that can change is your site name.
    If you have a domain name forwarded, then this will not change at all.

  • How to save metadatas in RAW files (and not in external .XMP sidecar file)

    Hello,
    I would like to save metadatas (for example keywords) inside the RAW files, and not in external .XMP sidecar file.
    How to do this in Lightroom ?
    Thanks
    Josh
    PS: is XMP a file format (= .XMP files) or a metadata format that can be embedded either in a .XMP sidecar file or in the RAW itself ?

    MarvinFoster wrote:
    It's a horridly named catalog setting since if you are using DNG you don't have XMP files but it does the same thing, it updates the dng with the catalog settings.
    XMP does not mean XMP FILES per se.
    XMP is a metadata format/standard. so it´s not horrible named but simply missunderstood. 
    http://en.wikipedia.org/wiki/Extensible_Metadata_Platform
    XMP can be used in several file formats such as PDF, JPEG, JPEG 2000, JPEG XR, GIF, PNG, HTML, TIFF, Adobe Illustrator, PSD, MP3, MP4, Audio Video Interleave, WAV, RF64, Audio Interchange File Format, PostScript, Encapsulated PostScript, and proposed for DjVu. In a typical edited JPEG file, XMP information is typically included alongside Exif and IPTC Information Interchange Model data.

  • How to save web service request key and response value in cache to reduce calling the service for same type of requests

    Hi
    I have a web service which return the response based on the request key.
    I need to save the key and the response value in cache for around 30mins
     to reduce the web service calls for better performance.
    Appreciate if any once can share a sample code

    using System.Runtime.Caching;
    public List<string> cachingwebserviceresponse()
    {//Create a cache key
    string strParameters = "1234";//Create a cache value holding object
    List<string> results = new List<string>();//Create a cache
    ObjectCache cache = MemoryCache.Default;//Assign key for the cache
    string cacheKey = strParameters;//Check whether the key exists in the cache//If exists assign the values from the cache instead of calling the webservice//else call the web service and add the response to the cache
    if (cache.Contains(cacheKey))
    results = cache.Get(cacheKey);
    else
    { //calling the web service client
    using (service.webservice fd = new service.webserviceContractClient())
    { //Call the web service function to get the results
    results = fd.DataSearch(strParameters);
    } //Create the cache expiration policy. I have created for 30 minutes.
    CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
    cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddMinutes(30); //Add the response to the cache based on the key
    cache.Add(cacheKey, results, cacheItemPolicy);
    return results;

  • How to save data on a graph and then add new data to it

    i am currently plotting data on a graph from a physical system. However when i want to add new data to the plot, the old one is replaced. I am trying to do more than one plot on the same graph, where the incoming data is at different times. I want something like Excel where i can just add a new plot to the graph.Can i save the data or freeze it onto the graph or something so that i can add a new plot and see the two at the same time?

    > i am currently plotting data on a graph from a physical system.
    > However when i want to add new data to the plot, the old one is
    > replaced. I am trying to do more than one plot on the same graph,
    > where the incoming data is at different times. I want something like
    > Excel where i can just add a new plot to the graph.Can i save the data
    > or freeze it onto the graph or something so that i can add a new plot
    > and see the two at the same time?
    As the other post pointed out, there are two objects in LV for plotting,
    graphs and charts. If you wish to have a chart recorder that
    accumulates data into one or more plot with time, you probably want a chart.
    If you push a button and acquire a trace and want to add that to your
    graph, you just need to
    combine it with the data you plotted before and
    update the graph. It isn't the most efficient, but you can easily read
    the value of the graph using a local, add another row or column or
    element to your data and send it to the graph.
    To directly answer your other question, no, the grah doesn't have a
    functional interface for clearing, adding, or deleting plots. Instead,
    you do that with the diagram nodes and give the graph the results.
    Greg McKaskle

Maybe you are looking for