[CRM 5.0] How to add file attachements to created ticket (transaction)

Hi!
I have to do engancement and need to add file attachements to tickets (transaction) documents. I made ticket creation but I don't know how to add file attachements to it.
Could someone help? Mayby some function module name?
Thanks for response!
KK

class cl_crm_documents has a number of methods which should be of use to you.
create_with_table will allow the file to be created from data held in a table and attached to the activity.
create_with_File will allow you to create with reference to an existing file.
here is an example of the use of create_with_table.
form create_document  using    p_bus_obj type sibflporb
                               p_properties type sdokproptys
                               p_file_access type sdokfilacis
                               p_file_contents type sdokcntbins
                      changing p_error type skwf_error.
  call method cl_crm_documents=>create_with_table
   exporting
      business_object     = p_bus_obj
      properties          = p_properties
*                properties_attr     =
             file_access_info    = p_file_access
*                file_content_ascii  =
      file_content_binary = p_file_contents
*                raw_mode            =
*                text_as_stream      =
*                parent_folder       =
*                package_id          =
    importing
*                loio                =
*                phio                =
      error               = p_error.
endform.                    " CREATE_DOCUMENT
p_bus_obj-typeid needs to be set with guid of transaction
p_bus_obj-catid = 'BO'.

Similar Messages

  • How to add files in a pdf file

    Hello friends,
    This is Siddhartha from India, I want a favour from you, can anyone please tell me how to add files into pdf file, as an attachment ?
    Looking forward for your timely response,
    Thanks & Regards
    Siddhartha

    Dear Bill@VT,
    Thanks for your timely response, by attachment I meant any file that can be added as an attachment, it could be any file, it does not mean to insert pages, it means the same as when you attach a file in your email, while sending the mail to some one, now the thing is that I want the same functionality in Adobe Reader, so do u have any idea, for the same......
    Looking forward for your response
    Regards
    Siddhartha

  • How to add an attachment to an e-mail. With out it showing  up and the end of a e-mail.

    How to add an attachment to a e-mail. With out it showing up at the end of the e-mail.

    https://discussions.apple.com/message/17397882#17397882
    How can I prevent mail attachments embedding when sending mail
    Note there are 14 pages of replies

  • How to add an attachment to a google calendar event when uisng safari

    how to add an attachment to a google calendar event when uisng safari?

    A similar question/answer here How can I detect end of HTML5 video and do something?
    See if that helps
    Darrell

  • How to add new Attachment category in Projects master creation form

    Hi Dudes,
    I would like to know that how to add new Attachment category in Projects master creation form.
    It defaults as Miscellaneous.
    I created new category by navigated Application developer - attachment - category
    but i dont know how to assign the above created category for Project master creation form
    Can you pls throw some lights into this little dark room?

    See http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458262.htm
    Scrool down to the "Category Assignments Window".
    This is where you assign an attachment category to your form/function.
    See http://erpschools.com/articles/oracle-attachment-functionality-adding-an-attachment-to-a-form for step-by-step screenshots.
    Sandeep Gandhi

  • How to Add a user defined field in transaction-PKMC?

    Could anyone tell me the step by step process of how to add a user defined field in transaction-PKMC?
    Moderator message: please do some research before posting.
    Edited by: Thomas Zloch on Jan 16, 2012

    Is there anyone out there who has had experience using OUBI with CC&B?

  • How to add multiple table when creating add on using b1de

    Hi all,
    Plz help me
    How to add multiple table when creating add on using b1de.
    Thanks

    Hi dns_sap,
    Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
    If so, you can use the following code
    Add User Table
            Try
                Dim lRetCode As Long
                Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                oUDT.TableName = TableName
                oUDT.TableDescription = TableDescription
                oUDT.TableType = TableType
                lRetCode = oUDT.Add
                '// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
                If lRetCode <> 0 Then
                    oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                oApplication.MessageBox(oCompany.GetLastErrorDescription)
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
                oUDT = Nothing
                lRetCode = Nothing
                GC.Collect()
            End Try
    Add User Field
    Try
                Dim lRetCode As Long
                Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUDF.TableName = TableName
                oUDF.Name = FieldName
                oUDF.Description = FieldDescription
                oUDF.Type = FieldType
                lRetCode = oUDF.Add
                '// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
                If lRetCode <> 0 Then
                    oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                oApplication.MessageBox(oCompany.GetLastErrorDescription)
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
                oUDF = Nothing
                lRetCode = Nothing
                GC.Collect()
            End Try
    Regards,
    Vítor Vieira

  • How to add a new Tab in XD02 Transaction

    Hi all,
    How to add a new Tab in XD02 Transaction. please explain step by step.
    Thanks

    Hi Anil
    Goto T code OBD2 select your account type for which you want new tab. Click on details button above.
    On next screen you can see "Field status" box.
    Select (double click) on the view (i.e. General data or CC data or Sales data) in which you want to add new tab.
    Again on next screen double click on the field present under "Select group" box.
    On next screen go ahead with your settings, i.e. which fields you want and how.
    Save the changes. Goto XD01 and test the same.
    try and revert

  • How to add ComboBox to dynamically created DataGridColumn ?

    hai friends,
    help me, How to add ComboBox to dynamically created DataGridColumn

    public     function docfoldercurtainmanagerResult(event):void
    if(event.result){
    rightslistArray=event.result.RES2;
    //Alert.show(event.fault.message);
    <mx:DataGridColumn  
    headerText="Rights Level" minWidth="75" sortable="true" >
    <mx:itemRenderer>
    <fx:Component>
    <mx:ComboBox dataProvider="{outerDocument.rightslistArray}" labelField="sec_rights_level" />
    </fx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>

  • How to add an attachment to a  post.

    Have searched the forum for an answer, all responses seem to be related to attachments to mail. I have a query on pages I want to post and need to add an attachment to clarify my problem. How can this be done ?

    I posted the enquiry on the pages forum, so logically it's  a pages problem. I want to include a file as an attachment to a post. Whilst there is provision to add (insert) images, videos or a link there is none for a file. Pages is version 09, with latest upgrades. OS is OS X, V 10.9.2. Hope this clarifyies the post.

  • Add File Attachment to CI using Powershell

    Hi Everyone,
    does sombody have a sample Powershell script of how to add an file attachment to a CI ? Found a few c# samples, but need to use Powershell.
    I want to add Icon files to a CI as File attatchment.
    Thanks

    Hi Sebastian,
    Try this:
    # --- load smlets ---
    $a = (get-module|%{$_.name}) -join " "
    if(!$a.Contains("SMLets")){Import-Module SMLets -ErrorVariable err -Force}
    $managementGroup = new-object Microsoft.EnterpriseManagement.EnterpriseManagementGroup "localhost"
    $FileAttachmentRel = Get-SCSMRelationshipClass "System.ConfigItemHasFileAttachment"
    $classFA = Get-SCSMClass -name "System.FileAttachment"
    $Folder = "C:\temp\temp2"
    $File = get-childitem $folder | ?{$_.name -like 'test.txt'}
    $CItp = Get-SCSMObjectProjection System.ConfigItem.Projection -filter "DisplayName -eq 'Win7'"
    $filepath = $Folder +"\" + $File.Name
    #------------ Inject attach --------------------------------------------------------------------
    $mode =[System.IO.FileMode]::Open
    $fRead = new-object System.IO.FileStream $filepath, $mode
    $length = $file.length
    $newFileAttach = new-object Microsoft.EnterpriseManagement.Common.CreatableEnterpriseManagementObject($managementGroup, $classFA)
    $newFileAttach.Item($classFA, "Id").Value = [Guid]::NewGuid().ToString()
    $newFileAttach.Item($classFA, "DisplayName").Value = $File.Name
    $newFileAttach.Item($classFA, "Description").Value = $File.Name
    $newFileAttach.Item($classFA, "Extension").Value = $File.Extension
    $newFileAttach.Item($classFA, "Size").Value = $length
    $newFileAttach.Item($classFA, "AddedDate").Value = [DateTime]::Now.ToUniversalTime()
    $newFileAttach.Item($classFA, "Content").Value = $fRead
    $CItp.__base.Add($newFileAttach, $FileAttachmentRel.Target)
    $CItp.__base.Commit()
    $fRead.close()
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • How is a file attachment stored in database?

    Hi all~~
    I am developping an email application(web based) using Javamail. I need to store the attachment together with the relevant email messages in the database. Is that correct that I add an attribute called ATTACHMENT in the entity which stores the file attachment uploaded by users? If so, is the datatype of ATTACHMENT called OBJECT?
    This question confused me for more than a week already. I can send an email with the attachment which I wrote the path of the file in code, but I can't store it in the database.
    Your advice is appreciated!! Thank you!

    Hi,
    Oracle stores the BOM in basically 2 tables BOM_BILL_OF_MATERIALS and BOM_INVENTORY_COMPONENTS.
    The simplest way to explode the BOM in Oracle is to use the BOMPEXPL (BOM Exploder) package.
    Hope this helps.
    Sameer

  • How to add files to iPod Touch?

    The manual states this is the procedure to add files to an iPod Touch:
    Transfer a file from iPod touch to your computer:
    1 Connect iPod touch to your computer.
    2 In iTunes, select iPod touch in the Devices list, then click Apps at the top of the screen.
    3 In the File Sharing section, select an app from the list on the left.
    4 On the right, select the file you want to transfer, then click “Save to” and choose a destination on your computer.
    Problem is, there is NO file sharing section at all in app section of iTunes.
    I would like to put the PDF file of the iPod Touch manual on the device but see now way how to do so.
    Thanks for any help.

    That section is talking about how to move files from the iPod to iTunes and not the other way around. First you need to import this PDF into your iTunes library.
    The next thing you'll want to do if you haven't already, is download the iBooks app to your iPod.  From there, configure your iPod to sync the PDF from the iPod's Books tab in iTunes.
    See these two articles for more information on using and downloading the iBooks app as well as how to sync Books/PDFs to your iPod.
    http://support.apple.com/kb/HT4059
    http://support.apple.com/kb/HT4059
    B-rock

  • CRM  IC Winclient - How to add new fields in the BP Search of TRX CIC0

    Hello Experts,
    I want to know how to add new fields in the BP Search of TRX CIC0. In the HTML that we're using here I need to add the URL of the BP.
    Can you help me?
    Thanks in advance.
    Caíque Escaler

    Hi
    make append to tables in se11 - CCMBP1FIELDS, CCMBP2FIELDS
    in spro in Define customer-specific search control -> mark fields with X.
    and enhance html template CRM_CIC_SEARCH_DISPLAY. -> tcode smw0, look for package CRM_CIC_COMPONENTS for html CRM_CIC_SEARCH_DISPLAY. export it from SAP, edit, and import.
    you will need to enhance function module used for searching - you will find him in spro in Search Strategies.
    Regards
    Radek

  • How to add files to a mixed project from Premiere?

    I have a 28:30 video at work that was cut in Premiere.  While editing, I would send single clips to Audtion to remove sounds, or noise, etc...  Worked great.  Nearing the end of the project, I exported the entire sequence to Audtion to do a first mix.  Worked great, except now I'm stuck.  I need to add a few more sound effects and swap out a music track or two. I added them in Premiere to get timecode when the clips need to start.  In Audition, I opened up the project for the video that I mixed last week.  When I try to import the audio files I need to add, they're all greyed out and won't import. 
    Am I doing something wrong, or is there a way to perhaps make changes in Premiere and have them update in Audition without remixing the entire video?
    *Note: The files I'm trying to bring into my project are AIFF*

    Just figured out the initial problem- The files I was given don't have an extension on them.  Once I added it, Audition likes them just fine.  Still can't figure out the second issue- can I add files in Premiere, and bring it into an already mixed project in Audition?

Maybe you are looking for

  • HT4241 Mini dv to HDMI adapter

    Over the last several months I have enjoyed showing my computers screen up on my nice HD television via a minidv to hdmi adapter I got off amazon.  The last few weeks, sometimes when I'd plug it in it would only show the default lion destop image (wh

  • "Default" attribute in XML not getting populated in BPEL process

    Hi. I have a SOA 11g composite that listens to an inbound MQ (using JMS Adapter), which handovers the request to a BPEL process. In the input xml, some of the elements have "default" attribute. So, if the user doesnot populate these values in the inp

  • Faces icon not showing in bottom corner of Facebook broadcast.

    I am using iPhoto version 8.0.3. I have never noticed this until tonight but when I upload photos to facebook and click on the album in the facebook source list in iPhoto, there is no "name" option available in the bottom left corner. When my friends

  • Weird Screen Burn (?) on iMac 24inch

    I know there are dozens of threads about screen burn and uneven displays but I think my iMac has conjured up a new problem. Recently i've noticed a number of 'rays' beaming down from the top of the display. I can't imagine how this would be screen bu

  • Runtime.exec: strange NullPointerException

    Hi there! Since I'm using Runtime 1.4.1-b21 (Windows) it seems that I can't use Runtime.exec any more. The following example code doesn't work: public class Test      public static void main(String[] args) throws Exception           Runtime lRuntime