Photos/Attachments Not Displaying in Messages

Last week I updated my OS from Mountain Lion to Mavericks on a MBA. I can view all my sent photos but not the ones I received. The images have been replaced with bubbles like this:
If I double click on the bubble the image appears. The attachments are located were they should be in the  ~/library/messages/ attachments folder. Being that both incoming and outgoing attachments are stored in this folder it seems strange that Messages would display one catergory and not the other.
I've signed in and out of my icloud account to no effect. Is there a way to restore the link between the app and it's attachment folder or do I need to restore the app itself? And if I restore will I risk losing messages?
Thank you,
Guy

Hello, Guy G.
Thank you for visiting Apple Support Communities.
Here are a couple troubleshooting steps that I would recommend trying.
Intel-based Macs: Resetting the System Management Controller (SMC)
http://support.apple.com/kb/HT3964
About NVRAM and PRAM
http://support.apple.com/kb/HT1379
Cheers,
Jason H..

Similar Messages

  • Photo Attachments not Displaying in Gmail

    I'm using an iPod touch 3rd Gen 32GB to check my Gmail over wifi. I received an email with two photos today and the photos are not displaying on the iPod. I see a question mark in the center of the space for the photo. I can't find any settings for this. But, I'm new to this so i may be looking in the wrong place. Any suggestions to get this to work?

    Hi All,
    I am facing the same issue w.r.t Photo Display in MSS General Information.
    Whenever i logged into MSS General info its asking ECC system Credentials to Display the Photo.
    it showing the Error like
    SAP ArchiveLink: Data Element for Absolute URI
    can you please give me the solution
    Earlier its asked me the credentials in ChangeOwnData - PhotoDisplay, but after FQDN,its not asking any Credentials. Photo is Displaying fine in COD Service in ESS.
    Please suggest me the solutin for Credentials asking in Photo Display in MSS..
    Thanks in Advance
    Adapag

  • WMV attachments not displaying in messages after QT 7.5.5 update.

    My mother gets a lot of attachments from family, specifically videos in windows media video format. According to her, the WMV attachments used to display within the mail messages (without having to download them). This worked correctly, previous to the new Quicktime 7.5.5 update, however after the update, it now only plays the audio from the videos (however saving the attachments and actually opening them in Quicktime works fine).
    She is using a Mac Mini, but she has forwarded some e-mails to my iMac and I get the same results. Both computer are running the same versions of Leopard, Quicktime, and iTunes (all the newest versions). Flip4Mac has been installed on each machine before and after the issue, and I updated that to latest version as well to see if that would fix it, but it didn't.
    Any suggestions? Thanks.

    Greg,
    Received and thanks!
    I can replicate the problem, but found out that I have not yet installed Flip4Mac on my other computer, and have not had time to test in any but my primary boot volume. When I control-clicked on the attachment and selected to open with WMV, I got a message that my Flip4Mac was out-of-date. But updating did not correct the problem as others have found
    I will need some time to chase this some more, and to raise a flag about it.
    Ernie

  • ESS- Employee Photo is not displaying.

    Dear All,
    Employee photo is not displaying in Who's who application of Employee search.
    By right click help gone through the Properties.
    It is giving message that..
    "800?get&pVersion=0046&contRep=Z2&docId=E135E81A75C422F1B0B95CF3FC94086E&accessMode=r&authId=CN%3DPR1,OU%
    3DI0020259918,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expiration=20120104085649&secKey=MIIBUgYJKo
    ZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UE
    BhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0k
    wMDIwMjU5OTE4MQwwCgYDVQQDEwNQUjECByARBQkJWFkwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG
    9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEyMDEwMzA4NTY0OVowIwYJKoZIhvcNAQkEMRYEFOB%2Fx7LoOChOjGW3iIGG
    FxjjpJkMMAkGByqGSM44BAMELzAtAhRpHueDstxejUkJ0F2j7PNmxPu5xQIVAILHJcNOP7pvx%2BbPVgmDX%2F5Osaby"
    here 800 is client number and Z2 is the content repository name.
    also
    http://<Host>.xxxxxxxxx.com:<port>/sap/bc/contentserver/800?get&pVersion=0046&contRep=Z2&docId=E135E81A75C422F1B0B95CF3FC94086E&accessMode=r&authId=CN%3DPR1,OU%
    3DI0020259918,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expiration=20120104085649&secKey=MIIBUgYJKo
    ZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UE
    BhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0
    kwMDIwMjU5OTE4MQwwCgYDVQQDEwNQUjECByARBQkJWFkwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhki
    G9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEyMDEwMzA4NTY0OVowIwYJKoZIhvcNAQkEMRYEFOB%2Fx7LoOChOjGW3iIG
    GFxjjpJkMMAkGByqGSM44BAMELzAtAhRpHueDstxejUkJ0F2j7PNmxPu5xQIVAILHJcNOP7pvx%2BbPVgmDX%2F5Osaby
    Please help to solve this.
    Regards,
    Potru.
    Edited by: N Potru on Jan 3, 2012 10:21 AM

    Hi Siddharth,
    http://yyyy.xxxxxxxxx.com:8000/sap/bc/contentserver/180?get&pVersion=0046&contRep=Z2&docId=E141FAA8EA53BEF1B0AF00145E190D9D
    When I right click on that Place system is giving this error.
    I have maintained number ranges for photo upload. I have uploaded 3 photos and checked the number range but it is showing current number as 0. means no number is generating from the number ranges.
    Thanks,
    Potru.

  • I have an issue with some PDF documents   some MS Office documents, notably MS Word when received in eMail as attachments not displaying on iPhones, iPad 2s

    Hi,
    I have an issue with some PDF documents & some MS Office documents, notably MS Word when received in eMail as attachments not displaying properly on iPhones, iPad 2s & new iPads?
    PDF docs - areas of the doc only show as grey splotches regardles of viewer
    MS Word Docs -
    inserted graphics don't display at all,
    tables & lists especially with borders are broken &
    tables & lists missing the borders &
    tables & lists missing the 1st 1-2 lines of the lists/tables.
    This is replicated on iPhone 4s, iPhone 4Ss, iPad 2s, iPad new (x2)
    It certainly happens in iOS 5.1.1 & iOS 5.1
    We believe it all worked aok in iOS 5.0.1(?) & prior
    There is no problems reading/seeing these PDF & Word docs on anything other than iDevices.
    This is rather critical for us & if not quickly fixed/rectified will prevent us from further purchases of these devices
    Rolling back to iOS 5.0.1 or prior I believe isn't possible because of the BaseBand update(?) & isn't much of an option because of the quite noticeable Battery/Charging/WiFi improvements in 5.1 & 5.1.1

    Hi,
    I logged a call with AppleCare & have since had explained why this occurs (some time ago)
    I'll try to explain what was indicated to me.
    iOS has a limited Font Set & this affects what PDFs can display. You need to use iOS supported fonts in your PDFs to see/read them properly  
    These supported fonts are indicated here => http://support.apple.com/kb/HT4980
    Regards MS office docs, iOS doesn't have much of an API to work with MS Office documents at all so is stuck with 3rd Party Apps to try to do it.
    Unfortunately Mail in/on iOS uses the API to attempt to open/use MS Office attachments unless you tell it to use an App to open the attachment.
    I have had success opening & reading MS office docs now with CloudOn, but find it slow & very awkward to use.
    Not too sure if this helps others, but at least it explains why this is occurring

  • My edited photos will not display when clicked on, a large triangle with exclmation comes up

    my edited photos will not display when clicked on, instead a large grey area comes up wiht a triangle /exclamation sign. 

    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. 

  • Navigation & Photo Page not displaying within some browsers

    Hello,
    I am using iWeb '08 and am having great difficulties trying to get my site cross browser compatible. The site is working perfectly on the Mac in Firefox 2 & Safari but not Firefox 3. It is also not displaying correctly in Firefox 2.0.0.13 and IE7 on my WinXP machine. Unfortunately the error is not just a cosmetic issue. The Main Navigation is not displaying on any page and only shows a bullet point where it is meant to be. The other error occurs in the Photo Template and the photos are not displaying. I am using a "Version 1 template" and did a test with a "version 2" template that provided the same errors.
    Has anyone else had these problems???
    The site is located at:
    http://web.mac.com/maxkit/Kai/
    Photo Page:
    http://web.mac.com/maxkit/Kai/CurrentPictures/Pages/Snowy_AprilDay.html
    The test site is located at:
    http://web.mac.com/maxkit/Site/
    Thanks
    Max

    You have applied a height of "auto"to your menubar container, which gives it no height at all in some browsers. If you have a clue what height you would like to display for your menubar, give it, instead of:
        <div style="height: auto;" id="p7PMM_1" class="p7PMMh04">
    Better yet, leave it in the CSS file, where you will find it when you go looking for it. You already assign a height there:
    .p7PMMh04 {
        width: auto;
        height: 20px;
        margin: 0 auto;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        font-weight: bold;
        background-image: url(http://home.roadrunner.com/~jgigandet/trinity/img/new_bk.gif);
        background-repeat: repeat-x;
        background-color: #000;
        text-align: left;
        line-height: normal;
    Because your inline style of height:auto; has more proximity (is closer) to the element being styled, it overrides the style in the stylesheet and applies the height: auto; instead of allowing the height: 20px;
    Beth

  • My photos are not displaying after upgrade to iOS 7, My photos are not displaying after upgrade to iOS 7

    On our ipad 2, after upgrading to iOS 7, the photo album is completely screwed, and the saved photos are not displaying correctly. How do we get our photos Back?

    OK, tried the reset and it seems to have cleared up some problems; however, the picture problem remains.
    Maybe there is something further we could do in settings? My wife uses the iPad as her constant companion and likes to take screen shots (pictures) of recipes and such. She keeps them in albums. Before the update to iOS 7 they all displayed correctly regardless of physical machine orientation. Now, post update, when in landscape mode, which she uses 99.9% of the time, her pics do do fully display. By physically rotating the machine, they will appear correctly. We have noticed that there is a new "function" in edit pics for "aspect ratio."
    Should we be using this? If so, she'll have to edit a very large number of pics. So I'm wondering if we're missing some new setting. BTW- this display problem also occurs with pics taken with the camera as well.

  • Problem on PC: During import, I can locate the sources folder however the photo do not display. Was working fine.

    Problem on PC: During import, I can locate the sources folder however the photo do not display. Was working fine. All file types, Lightroom is no longer recognising the images to import, The panel that usually displays them remains empty.  Try using backup versions, removing software that could conflict , still no joy, has anyone had this problem?

    Did you follow this procedure?
    Our iTunes guru Terence Devlin advises the following:
    1. Quit iTunes
    2. Drag the iTunes folder from your internal hd - located in ~/Music folder - to your external hd. DO NOT delete the original one from your internal hd... yet!
    3. When the transfer is complete, press and hold the Option(alt) key and fire up iTunes.
    4. A "Choose iTunes Library" window will come up. Click on the "Choose Library" button.
    5. Navigate to where the iTunes folder is located in the external hd.
    6. Within the iTunes folder, select the iTunes Library file and click Choose...
    That's it. iTunes will now display all your playlists, songs, movies, podcasts etc. At this point, should you wish, you can delete the iTunes folder from the internal hd to free up space.
    More info:
    http://support.apple.com/kb/HT1751
    Or if you prefer a more complicated explanation:
    http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive

  • Mail not displaying certain messages

    Mail is suddenly not displaying certain messages in mailboxes. I can see and select the message in the center pane, but when I click on it to display, I get the "Loading" text and the spinner. This continues without resolution, though sometimes the messages will display after quitting Mail and/or rebuilding the Mailbox.
    It is not random messages that do this, but always the same ones that refuse to display. But they will display sometimes after a rebuild, so I know they aren't gone.
    Some have image attachtments, others do not.
    This just started this morning, following running Disk Utility to repair some HD corruption last night. Prior to that, Mail (and Safari) had been running very slowly for about three weeks.
    I have already repaired permissions on this drive.

    Acutab,
    I had the same problem. I took your advice and rebuilt the mailbox-voila. The problem was solved. I have also noticed Safari running slow. I will try and run Disk Utility

  • ICamera photos are not displayed in iPhoto

    HI!
    I have a big problem: Whan I make photos with the included camera in my iPad,
    these photos are not displayed in the iPhoto app supplied with my iPad. I can't find
    them.
    I'm using IOS 5.0.1.
    Any help? PLEASE!!!

    After you snap the photo with the iPad, and that picture shrinks down to the corner, you should ba able to tap that little picture - and it should open in the Camera Roll in the Photos app.
    I'm not sure what to suggest other than the basic, first try, troubleshooting steps.
    Quit the camera app and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus (-) sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • HT4865 can I share music and photos but not contacts and messages?

    can I share music and photos but not contacts and messages between devices.  Each of my children have devices and they want to share some stuff but not others

    Sorted it myself thanks. Had to completely wipe iPhone and set it up as a fresh phone.

  • Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    If you launch Script Editor and open the Help menu, you will see the APpleScript Help and a Language Guide:
    To see, which commands an application understands, open the File menu in Script editor and select Open Dictionary.  In the list locate "Photos".
    You will see examples how o script Photos.

  • ADF FACES: af:messages/ does not display my messages at all

    I am having an issue displaying messages using ADF MyFaces EA20.
    <af:messages />
    Within all backing beans I call messages with the following method to conveniently display messages when needed.
    // Add invalid email address message
    JSFUtils.addMsgToContext(FacesMessage.SEVERITY_ERROR, "setEmail_error", MsgConstants.INVALID_EMAIL);
    The method utilized can be seen below:
    public static void addMsgToContext(FacesMessage.Severity severity, String msgKey, String descKey) {
        // Check the parameter, if either short desc or desc both are empty
        if (StringUtils.isEmpty(descKey)) {
            logger.error("Message description are empty. Do NOTHING just return");
            return;
        try {
            logger.debug("Add Message to Context");
            FacesContext context = FacesContext.getCurrentInstance();
            Application application = context.getApplication();
            // Add the message to the context
            context.addMessage(msgKey, getMessageFromBundle(descKey, severity));
        } catch (RuntimeException e) {
            * Supress RuntimeException.
            logger.error("Error occured when add message to context", e);
    With the first login page when validating username and password, the messages I send to the context display correctly, for example, “incorrect password please try again” and this uses exactly the same code as above in the backing bean.
    However once a session has started the messages simply do not get displayed and are not included in the HTML the <af:messages /> is replaced with nothing.
    No runtime exception is thrown.
    If anyone has any idea of why the messages are not being displayed I would be very grateful to hear them.
    Finally if I may add that I used this method of displaying messages in a previous project and it was fine. This time the only difference is that I am using Hibernate.
    The closest answer I could find to a similar issue with Oracle Forums was:
    The messages have to be added before the Render Response phase. It's generally very unusual to add messages in a bean getter/setter. I'd restrict yourself to adding messages in event listeners and actions.
    I do put messages in my setter methods as this is where I perform validation, but I have tried moving them to the main method called by the action button and this still does not display my messages.

    Frank
    There is a standard way? Next time you can simply tell me to RTFM ;-) . I am working on a project and was assigned my particular section and was told that the messaging aspect and validation was not urgent, until now near the end of the project when it has become urgent. Rather then listen to my colleagues answer of "this is the way to do it" your answer suggested that we working in a non-standard way.
    Having looked at Oracle JDeveloper 10g (10.1.3) Documentation, Validation, Conversion, and the Application Lifecycle section I noticed:
    Render response:
    Either display new page based on invoked navigation rules, or displays same page with errors.
    I was providing a new navigation String to the same page under all conditions, which I guess gives a new context and so does not display the messages. Under error conditions I now return an empty navigation String and now it displays my messages.
    Thank you for your help with this and I promise to read the manual next time.
    Andrew

  • Case attachments not displayed using PCUI CRMD_CASE

    Hi all,
    We´ve developped an WDA in order to create cases in case management, using BAPI
    BAPI_CASE_CREATE, developped as follows:
    call function 'BAPI_CASE_CREATE'
        exporting
          case_type              = gc_zcas
        importing
          guid                   = lv_guid
        tables
          return                 = lt_return
          case_attributes        = lt_attributes
          case_notes             = lt_casenotes
          case_note_ids          = lt_casenotesid
          element_identification = lt_identifi
          element_insertion      = lt_insertion
          element_relations      = lt_relations.
    call function 'BAPI_TRANSACTION_COMMIT'
        exporting
          wait = 'X'.
    On this web dynpro we´ve also created a file upload field in order to attach a document to the case created previously, using method "m_insertar_adjunto".
    Method call uses the following parameters:
      wd_this->m_insertar_adjunto(
                                      guid     = lv_guid
                                      content  = ls_adjunto-filecontent
                                      filename = ls_adjunto-filename
    method m_insertar_adjunto .
      data: l_folid type soodk,
            l_folderid type soobjinfi1-object_id,
            l_size type i,
            lt_content type table of solisti1.
      data ls_content like line of lt_content.
      data: ls_document_data type sodocchgi1.
      data: l_doctype type soodk-objtp.
      data: l_docinfo type sofolenti1.
      data: lt_words type table of string,
            l_token type string.
      data: l_att_key type swotobjid-objkey.
      check content is not initial.
      call function 'SO_FOLDER_ROOT_ID_GET'
        exporting
          region                      = 'B'
         importing
          folder_id                   =  l_folid
        exceptions
          communication_failure       = 1
          owner_not_exist             = 2
          system_failure              = 3
          x_error                     = 4
          others                      = 5
      l_folderid = l_folid.
      call function 'SCMS_XSTRING_TO_BINARY'
        exporting
          buffer          = content
          append_to_table = 'X'
        importing
          output_length   = l_size
        tables
          binary_tab      = lt_content.
      data: lc_word(100).
      l_token =  filename.
      while l_token ca ''.
        split l_token at '' into lc_word l_token.
      endwhile.
      split l_token at '.' into lc_word l_doctype.
      ls_document_data-obj_name = l_token.
      ls_document_data-obj_descr = 'Adjunto Caso'.
      ls_document_data-obj_langu = sy-langu.
      ls_document_data-doc_size = l_size.
      ls_document_data-no_change = 'X'.
      call function 'SO_DOCUMENT_INSERT_API1'
        exporting
          folder_id                  = l_folderid
          document_data              = ls_document_data
          document_type              = l_doctype
        importing
          document_info              = l_docinfo
        tables
          object_content             = lt_content
        exceptions
          folder_not_exist           = 1
          document_type_not_exist    = 2
          operation_no_authorization = 3
          parameter_error            = 4
          x_error                    = 5
          enqueue_error              = 6
          others                     = 7.
      l_att_key = l_docinfo-doc_id.
      data: object_a type sibflporb,
            object_b type sibflporb.
      object_a-instid = guid.
      object_a-typeid = 'BUS20900'.
      object_a-catid  = 'BO'.
      object_b-instid = l_att_key.
      object_b-typeid = 'MESSAGE'.
      object_b-catid = 'BO'.
      try.
      call method cl_binary_relation=>create_link
        exporting
          is_object_a = object_a
          is_object_b = object_b
          ip_reltype  = 'ATTA'.
      endtry.
      if sy-subrc eq 0.
        commit work and wait.
      endif.
    endmethod.
    Our problem is the following: when we ONLY use PCUI CRMD_CASE (case management) something goes wrong, because case is displayed but its attachments  do not appear.
    The behaviour is not the same if you display case in GUI or in PCUI; even if you enter firstly in CRM GUI and afterwards in PCUI, the behaviour changes; the possibilities are the following:
    1 -->  Using CRM GUI (only) case and attachments are displayed right.
    2 -->  Using PCUI CRMD_CASE (only) and not entering previously on CRM GUI, case is displayed right but its attachments are lost.
    3 -->  If you enter CRM GUI firstly to see case and attachments and entering PCUI CRMD_CASE afterwards, everything (case and attach) is displayed right.
    It seems that something is refreshed in database when you enter in CRM GUI and this is exactly what allows system to show rightly in PCUI.
    We don´t know how to solve the problem.
    Could anybody help us to solve this issue?
    Thanks in advance.
    Carmen Rodriguez

    Hi Carmen,
    You can use FM  ZGI_CREAR_ADJUNTO_CASO to solve your problem.
    FUNCTION ZGI_CREAR_ADJUNTO_CASO.
    ""Interfase local
    *"  IMPORTING
    *"     REFERENCE(GUID) TYPE  BAPISCMGCASE-CASE_GUID
    *"     REFERENCE(FILENAME) TYPE  STRING
    *"     REFERENCE(FILECONTENT) TYPE  XSTRING
    Variables
      data: lv_business_object type sibflporb.
      data: ls_new_phio    type skwf_io,
            ls_new_loio    type skwf_io,
            lv_error       type skwf_error,
            lv_size type i.
      data: lv_doctype type soodk-objtp.
      data: ls_document_data type sodocchgi1.
      data: lt_filecontent type table of sdokcntbin .
      data: lv_retcode     type sy-subrc.
      data: lv_objkey      type swo_typeid.
      data: ls_fileinfo   type sdokfilaci,
            lt_fileinfos  type table of sdokfilaci.
      data: ls_file_info  type crmt_icss_file_info.
      data: lt_loio_properties type table of sdokpropty,
            lt_phio_properties type table of sdokpropty.
      data  ls_property        type sdokpropty.
      data: lv_length type i.
      data: lv_file(1200),
          lv_dir(1200),
          lv_delimiter        type c,
          lv_offset           type i,
          lv_bytes            type i,
          lv_delimiter_offset type i,
          lv_delimiter_bytes  type i,
          lv_char             type c,
          lv_previous_char    type c,
          lv_last_char        type c.
      check filecontent is not initial.
    class
      class cl_kwui_utilities definition load.
    Binary
      call function 'SCMS_XSTRING_TO_BINARY'
        exporting
          buffer          = filecontent
          append_to_table = 'X'
        importing
          output_length   = lv_size
        tables
          binary_tab      = lt_filecontent.
    file name
      lv_length = strlen( filename ).
      lv_offset = 0.
      while lv_offset < lv_length.
      Remember last character
        lv_last_char = lv_char.
        lv_bytes = charlen( filename+lv_offset ).
      Get current character
        lv_char = filename+lv_offset(lv_bytes).
        if lv_char = '/' or
           lv_char = '' or
           lv_char = ':'.
          if lv_delimiter is initial or
             lv_delimiter = ':'.
            lv_delimiter = lv_char.
          endif.
          if lv_char = lv_delimiter.
            lv_delimiter_offset = lv_offset.
            lv_delimiter_bytes = lv_bytes.
          remember character in front of delimiter:
            lv_previous_char = lv_last_char.
          endif.
        endif.
        lv_offset = lv_offset + lv_bytes.
      endwhile.
      if not lv_delimiter is initial.
        lv_offset = lv_delimiter_offset + lv_delimiter_bytes.
        lv_file = filename+lv_offset.
        if lv_previous_char = ':' or lv_delimiter = ':'.
        path ends with or after drive identifer, include the delimiter
          lv_dir = filename(lv_offset).
        elseif not lv_delimiter_offset is initial.
        do not include a trailing delimiter for compatibility reasons
          lv_dir = filename(lv_delimiter_offset).
        else.
          clear lv_dir.
        endif.
      else.
        lv_dir = space.
        lv_file = filename.
      endif.
    PHIO
    Description
      if not cl_kwui_utilities=>property_is_modelled( p_class = 'CRM_P_CASE' p_property = skwfc_prop_description ) is initial.
        ls_property-name = skwfc_prop_description.
        ls_property-value = 'Adjunto Caso'..
        append ls_property to lt_phio_properties.
      endif.
    Link name
      if not cl_kwui_utilities=>property_is_modelled( p_class = 'CRM_P_CASE' p_property = skwfc_prop_relative_url ) is initial.
        ls_property-name = skwfc_prop_relative_url.
        ls_property-value = lv_file..
        append ls_property to lt_phio_properties.
      endif.
    Language
      if not cl_kwui_utilities=>property_is_modelled( p_class = 'CRM_P_CASE' p_property = skwfc_prop_language ) is initial.
        ls_property-name = skwfc_prop_language.
        ls_property-value = sy-langu.
        append ls_property to lt_phio_properties.
      endif.
    *LOIO
    Description
      if not cl_kwui_utilities=>property_is_modelled( p_class = 'CRM_L_CASE' p_property = skwfc_prop_description ) is initial.
        ls_property-name = skwfc_prop_description.
        ls_property-value = 'Adjunto Caso'..
        append ls_property to lt_loio_properties.
      endif.
    Link name
      if not cl_kwui_utilities=>property_is_modelled( p_class = 'CRM_L_CASE' p_property = skwfc_prop_relative_url ) is initial.
        ls_property-name = skwfc_prop_relative_url.
        ls_property-value = lv_file.
        append ls_property to lt_loio_properties.
      endif.
    Language
      if not cl_kwui_utilities=>property_is_modelled( p_class = 'CRM_L_CASE' p_property = skwfc_prop_orig_language ) is initial.
        ls_property-name = skwfc_prop_orig_language.
        ls_property-value = sy-langu.
        append ls_property to lt_loio_properties.
      endif.
    create the document itself
      clear lv_error.
      clear ls_new_phio.
      clear ls_new_loio.
      clear lv_objkey.
      call function 'SKWF_LOIO_WITH_PHIO_CREATE'
        exporting
          loio_class      = 'CRM_L_CASE'
          phio_class      = 'CRM_P_CASE'
        importing
          error           = lv_error
          phio            = ls_new_phio
          loio            = ls_new_loio
        tables
          loio_properties = lt_loio_properties
          phio_properties = lt_phio_properties.
      if lv_error is not initial.
        exit.
      endif.
    file information
      ls_fileinfo-file_size = lv_size.
      ls_fileinfo-binary_flg = 'X'.
      ls_fileinfo-file_name = lv_file.
      call function 'SDOK_MIMETYPE_GET'
        exporting
          extension            = lv_doctype
          x_use_local_registry = 'X'
        importing
          mimetype             = ls_fileinfo-mimetype.
      append ls_fileinfo to lt_fileinfos.
    file store
      clear lv_error.
      call function 'SKWF_PHIO_STORE_CONTENT'
        exporting
          phio                = ls_new_phio
        importing
          error               = lv_error
        tables
          file_access_info    = lt_fileinfos
          file_content_binary = lt_filecontent.
      if lv_error is not initial.
        exit.
      endif.
    Fill BO  'BUS20900'.
      clear lv_business_object.
      lv_business_object-instid = guid.
      lv_business_object-typeid = 'BUS20900'.
      lv_business_object-catid  = 'BO'.
    Link create
      try.
          call function 'SKWG_OLS_IO_LINK_CREATE'
            exporting
              io              = ls_new_loio
              business_object = lv_business_object.
        catch cx_obl.
        cleanup.
      endtry.
    ENDFUNCTION.
    Regards
    José Miguel Haro

Maybe you are looking for

  • Problem with threads in my swing application

    Hi, I have some problem in running my swing app. Thre problem is related to threads. What i am developing, is a gui framework where i can add different pluggable components to the framework. The framework is working fine, but when i press the close a

  • Top of page system fields

    How to use Top of page system fields like sy-tvar0 to sy-tvar1 thanks in advance Rishi

  • Can't access "Range Retrieval" & "Butterfly report" features in smart view

    Hi Experts, I need your help regarding enabling new features of smart view. I am not able to use the following feature of smart view: - Range Retrieval - Butterfly report Do I have to configure any settings to enable this feature?? Currently I am usi

  • IMAC G5 Kernal Panic

    My iMac G5 is unpredictably experiencing a kernal panic. I can not resolve the problem. The Apple Genius guys on Chestnut SF tell me it's not a hardware problem, but I'm not sure. I re-installed Leopard. It still happens. Sometimes at login. Sometime

  • Inconsistent answers to question about "junk folder."

    first time answer: Go to Junk filter options General settings The filter is enabled by default. You can set system-wide preferences that determine what happens to messages marked as junk. These settings will be used by all your email accounts (althou