JCO to read PO Attachments

Hi experts,
Can someone let me know how to read the PO header level attachments using JCO Program.
Thanks in advance

Please post ur query in the correct category.Pls try one in the Application Server category

Similar Messages

  • How do I get Adobe to read PDF attachments to emails automatically?

    How do I get Adobe to read PDF attachments to emails automatically?

    You can't. If you could it would be a HUGE security bug, and would be quickly fixed.

  • How to use Jco to read a transparent table?

    For example I want to use java to read table T002,
    I can use Jco, but does anybody know how to use Jco to read a data table?
    Best regards,
    Lament

    Hi,
    if its exposed Using RFC you can use JCo. Other wise you could give a try accessing it using JDBC.
    Regards
    Ayyapparaj

  • Reading 'pdf' attachments to Outlook Express Email

    I can't read 'pdf' attachments to my Outlook Express mail. I get an Error Message "This message does not have a program associated with it"
    However, I can save the message to my computer 'My Documents' and it then opens fine with Adobe Reader. Adobe Reader is associated with 'pdf' files in Control Panel - Folder Options.
    Computer: Compact Presario
    System: Windows XP
    Outlook Espress 6
    Adobe Reader 8
    Thanks,
    Darleen

    all versions of MS operating system handle this sort of differently but here is the general approach
    (windows 7):
    control panel -> associate file type or protocol with a specific program -> scroll down to PDF
    if you have successfully installed ADOBE, you should see that as a choice, click on it and your system will update so now in OUTLOOK all PDF files will be opened by ADOBE, simple but not very straight forward.

  • Recipients can't read email attachments

    Scenario: Office full of Macs. All supposedly configured exactly the same (same OS, same version of Word, etc.) When one staff member creates then sends documents (so far Word and pdf docs), others can't read the attachments. The attachments, when opened in Word, look like gibberish.
    The employee in question is using Mac Mail as the mail client. The others are using Thunderbird.
    But here's the thing. When we take a file from the affected computer, put it on someone else's computer, then email it, the file comes over ok.
    Also, we were able to test sending the same file from another Mac using Mac Mail and the file was okay.
    I checked the mail preferences to see if he had the "Send Windows Friendly Attachments" option clicked. He did not.
    Any ideas on where I should look to fix this problem?
    Thanks.

    Scenario: Office full of Macs. All supposedly
    configured exactly the same (same OS, same version of
    Word, etc.) When one staff member creates then sends
    documents (so far Word and pdf docs), others can't
    read the attachments. The attachments, when opened in
    Word, look like gibberish.
    The employee in question is using Mac Mail as the
    mail client. The others are using Thunderbird.
    So, the problem is in the Mac Mail set-up.
    Have the user try changing some of the parameters.
    Though Ernie has show himself to be smarter than I, I think that it has nothing to do with Exchange or anything besides how the Mac user using Mail.app has it configured, and -- so -- how the email is constructed and sent from that machine.
    You said, "I checked the mail preferences to see if he had the "Send Windows Friendly Attachments" option clicked. He did not."
    Okay. So set the option, restart Mail, and try it.
    I have it set. I send Office docs, PDFs, everything, to people using every email client you can think of. I cannot think of one time I had a problem like this.
    Fred

  • I am looking for the adobe product that will read pdf attachments to emails

    I am looking for an adobe product that will read pdf attachments to emails

    Adobe Reader : http://get.adobe.com/reader

  • Unable to read PDF attachments past 1st page in iOS4

    I have upgraded to iOS4
    Now I am unable to read PDF attachments past the 1st page.
    I have received a number of suggestions (like resetting the phone) but to no avail.
    Anybody else with the same problem?

    Thanks for the valiant attempt!
    I uninstalled Stanza and hard reset the iPhone (Home+Sleep until the Apple appears)
    I tested a couple of new messages with fresh PDF attachments, and the problem
    did not go away.
    At this point I may have to consider some sort of software corruption with my iOS4
    Regards

  • Unable to read mime attachments in mail digests

    can anyone tell me how i can read these attachments they usually they consists of jpegs.

    Thanks for the valiant attempt!
    I uninstalled Stanza and hard reset the iPhone (Home+Sleep until the Apple appears)
    I tested a couple of new messages with fresh PDF attachments, and the problem
    did not go away.
    At this point I may have to consider some sort of software corruption with my iOS4
    Regards

  • Reading html attachments

    How do I read html attachments? When I open them, they appear encrypted. I have downloaded Adobe Acrobat version 8 - however, I still cannot open the attachments.

    HTML attachments?
    These attachments include which file extension?

  • Cannot read my attachments

    Hi
    I have problems reading attachments received!
    I(ve already downloaded Internet 9 and Adobe Acrobat but still cannot read anything
    Can someone help me?
    Thanks

    Since couple days, ovi mail is powered by yahoo Bêta... When you have an ovi account, you can connect either from your computer or from your phone... As I don't have my phone anymore, I still continue to connect to my ovi mail.
    Recently, when I tried to open my attachment in my mail box, nothing happen, I cannot open or read them..... So my question was: what am I supposed to do to be able to open/read my attachments again...
    I went on the help site from yahoo, the only solution I found was: either download new version of internet explorer/firefox or download new version of Adobe Acrobat! Both have been done but still I can't read my email!
    I went on forums, and it seems that it's a current problem with yahoo Bêta and no one has a solution but wait!
    So I figured out that maybe someone on this site may have a solution to my problem.... Hope this is clear enough... Thanks

  • Read PO attachments

    Hi,
    I have a requirement to read Purchase Order attachments and e-mail them.
    Is there a FM to read the attachemnts with the document number as input? or is there any other way to do it?
    Thanks,
    K.

    Hi,
    The following program may get you started.
    It displays attached notes and lets the user click to display attached Word, Excel etc.
    REPORT  YJNM_DISPLAY_GOS_NOTES.
    Displays contents of notes attached to a business object.
    Displays header info for attached files, and displays the
    attached files via drill-down.
    parameters:
    p_botype like tojtb-name       default 'BUS2080', " e.g. 'BUS2012'
    p_bo_id  like borident-objkey  default '000200000591'.
    data:
      msg(80) type c,
      ntext like tojtt-ntext,
      folder_id type soodk,
      object_id like soodk,
      object_hd_display type sood2,
      objects like table of sood5,
      rf type ref to CL_GOS_DOCUMENT_SERVICE,
      is_object  type sibflporb,
      et_links   type obl_t_link,
      et_links_s type obl_s_link,
      document    type sood4,
      header_data type sood2,
      icx_obl_parameter_error type ref to cx_obl_parameter_error,
      icx_obl_internal_error  type ref to cx_obl_internal_error,
      icx_obl_model_error     type ref to cx_obl_model_error,
      header_row  type solisti1,
      content_row type solisti1,
      object_header  like table of header_row,
      object_content like table of content_row,
      document_data type sofolenti1,
      subline  like content_row,
      subline_fragment like subline-line,
      subline_temp like subline,
      sublines like table of subline,
      all_sublines like table of subline,
      document_id type sofOlenti1-doc_id,
      exception_string type string.
    include:
    <icon>,
    RSSOCONS.
    *include <CNTN01>.
    at line-selection.
    check not document is initial.
        CALL FUNCTION 'SO_DYNP_DOCUMENT_DISPLAY'
          EXPORTING
            OBJECTS                 = document.
    start-of-selection.
    class CL_GOS_DOCUMENT_SERVICE definition load.
    create object rf.
    is_object-instid = p_bo_id.
    is_object-typeid = p_botype.
    is_object-catid  = 'BO'.
    perform:
      header,
      notes,
      attachments.
    FORM notes .
    find links to the notes
      try.
        call method cl_binary_relation=>read_links_of_binrel
          exporting
            is_object    = is_object
            ip_relation  = 'NOTE'
          importing
            et_links     = et_links.
        catch cx_obl_parameter_error into icx_obl_parameter_error.
          exception_string = icx_obl_parameter_error->get_longtext( ).
        catch cx_obl_internal_error into icx_obl_internal_error  .
          exception_string = icx_obl_internal_error->get_longtext( ).
        catch cx_obl_model_error into icx_obl_model_error.
         exception_string = icx_obl_model_error->get_longtext( ).
        endtry.
    use the links to where the notes are stored
      sort et_links by utctime.
      loop at et_links into et_links_s.
        at first.
          format reset.
          format color col_total.
          skip.
          write: / 'Note(s):'.
          endat.
    get the data for a note
        refresh all_sublines.
        document_id = et_links_s-instid_b .
        CALL FUNCTION 'SO_DOCUMENT_READ_API1'
          EXPORTING
            DOCUMENT_ID                      = document_id
          IMPORTING
            DOCUMENT_DATA                    = document_data
          TABLES
            OBJECT_HEADER                    = object_header
            OBJECT_CONTENT                   = object_content.
    display a header for the note
        format reset.
        skip.
        format color col_heading.
        write: /3 'Note description:',
                  document_data-obj_descr,
               /3 'Created by:',
                 document_data-creat_name,
                 document_data-creat_fnam,
                 'Last changed:',
                 document_data-chang_date.
    interpret and display the note contents
        format reset.
        clear subline_fragment.
    EOL (end of line) in the table object_content has nothing to do
    with EOL for the note.
    The table object_content is just a stream of characters - including
    embedded CRLFs (carriage return & line feed) - that happens to be
    255-character rows.
        loop at object_content into content_row.
    split content row at embedded CRLFs
          split content_row-line
            at cl_abap_char_utilities=>cr_lf into table sublines.
          loop at sublines into subline.
    store in subline_temp for full visibility within AT/ENDAT
            subline_temp = subline.
            at first.
    subline_fragment from end of previous content_row needs to be
    stuck on to the first subline of this content_row
              concatenate subline_fragment subline_temp-line
                into subline_temp-line.
              endat.
            at last.
    final subline may not be a complete line of the note -
    so save it to use with beginning of next content_row
              subline_fragment = subline_temp-line.
              exit.
              endat.
    if we reach here, subline_temp will be a complete note-line
            append subline_temp to all_sublines.
            endloop.
          endloop.
        subline-line = subline_fragment.
        append subline to all_sublines.
        loop at all_sublines into subline.
            write: /3 subline-line.
          endloop.
        endloop.
    ENDFORM.                    " notes
    FORM attachments .
    find links to attachments
      refresh et_links.
      try.
        call method cl_binary_relation=>read_links_of_binrel
          exporting
            is_object    = is_object
            ip_relation  = 'ATTA'
          importing
            et_links     = et_links.
        catch cx_obl_parameter_error into icx_obl_parameter_error.
          exception_string = icx_obl_parameter_error->get_longtext( ).
        catch cx_obl_internal_error into icx_obl_internal_error  .
          exception_string = icx_obl_internal_error->get_longtext( ).
        catch cx_obl_model_error into icx_obl_model_error.
         exception_string = icx_obl_model_error->get_longtext( ).
        endtry.
    use the links to where the attachments are stored
      sort et_links by utctime.
      loop at et_links into et_links_s.
        at first.
          skip.
          format reset.
          format color col_total.
          write: / 'Attachment(s):'.
          endat.
        document-foltp = et_links_s-instid_b+0(3).
        document-folyr = et_links_s-instid_b+3(2).
        document-folno = et_links_s-instid_b+5(12).
        document-objtp = et_links_s-instid_b+17(3).
        document-objyr = et_links_s-instid_b+20(2).
        document-objno = et_links_s-instid_b+22(12).
        folder_id-objtp = document-foltp.
        folder_id-objyr = document-folyr.
        folder_id-objno = document-folno.
        move-corresponding document to object_id.
        CALL FUNCTION 'SO_OBJECT_READ'
          EXPORTING
            FOLDER_ID                        = folder_id
            OBJECT_ID                        = object_id
          IMPORTING
            OBJECT_HD_DISPLAY                = object_hd_display
          EXCEPTIONS
            ACTIVE_USER_NOT_EXIST            = 1
            COMMUNICATION_FAILURE            = 2
            COMPONENT_NOT_AVAILABLE          = 3
            FOLDER_NOT_EXIST                 = 4
            FOLDER_NO_AUTHORIZATION          = 5
            OBJECT_NOT_EXIST                 = 6
            OBJECT_NO_AUTHORIZATION          = 7
            OPERATION_NO_AUTHORIZATION       = 8
            OWNER_NOT_EXIST                  = 9
            PARAMETER_ERROR                  = 10
            SUBSTITUTE_NOT_ACTIVE            = 11
            SUBSTITUTE_NOT_DEFINED           = 12
            SYSTEM_FAILURE                   = 13
            X_ERROR                          = 14
            OTHERS                           = 15.
        IF SY-SUBRC eq 0.
          skip.
          format color col_heading.
          write: /3 icon_display as icon hotspot,
                   object_hd_display-objdes,
                   object_hd_display-file_ext.
          hide document.
          write: /3 'Created by:',
                   object_hd_display-cronam,
                   object_hd_display-croadr,
                   'Last changed:',
                   object_hd_display-chdat.
          hide document.
        else.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        clear document. "in case of drill-down
        endloop.
    ENDFORM.                    " attachments
    FORM header .
    select single ntext
      from tojtt
      into ntext
      where
        name     = p_botype and
        language = sy-langu.
    if sy-subrc eq 0.
      format reset.
      format color col_positive.
      write: / 'Business object:',
            20 ntext.
      write: / 'Key:',
            20 p_bo_id.
    else.
      concatenate 'Business-object type' p_botype 'not found.'
        into msg separated by space.
      write: / msg.
      endif.
    ENDFORM.                    " header
    For a purchase order, the business-object type is BUS2012,
    and the business-object key is just the document number (internal format).
    John

  • Reading Word attachments (with Rich Text Format) in Mail

    I have difficulty opening "Word email attachments" that contain "Rich Text Format" using my ipod touch under the MAIL function. For normal Word documents, I have no issue at all. Can anyone help here? Thank you.

    RTF contains alot of extra formatting junk that you need to be aware of, depends what you want to do with the files afte reading them in but JAVA has its own RTF parser standard. Be warned its not full proof.....
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.text.rtf.RTFEditorKit;
    import javax.swing.text.Document; 
      try {
          FileInputStream stream = new FileInputStream("C:/Document.rtf");
          RTFEditorKit kit = new RTFEditorKit();
          Document doc = kit.createDefaultDocument();
          kit.read(stream, doc, 0);
          String plainText = doc.getText(0, doc.getLength());
          BufferedReader br = new BufferedReader(new StringReader(plainText));
          String line = br.readLine();
          while (line != null) {
            StringTokenizer tok = new StringTokenizer(line, " ");
            while (tok.hasMoreTokens()) {
              System.out.print(tok.nextToken() + " ");
            System.out.println();
            line = br.readLine();
        } catch (Exception ex) {}

  • Can't read pdf attachments in mail

    Hi, I can't read the pdf attachments in mail, it opens but when I try to resize or scroll it the app crashes and close.
    The problem is new, just a few days ago I can read the same pdf attachments without problems.
    I aprecciate any help you can give me.
    Thanks

    You probably need to restore as new or from a backup. See p. 141 of the manual... http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf

  • Can't read opened attachments in emails

    When I try to open an attachment received in an email, I get a "notepad" sheet filled with unreadable gobbledegook! Does this mean I will never be able to open attachments sent from Windows users in emails? (probably no great loss) or have I not downloaded something I need? I haven't downloaded anything.

    It depends on the attachment. Different types of attachments (files) require different applications to open them so if you are lacking the appropriate application to open the file you're going to get what you have.
    For instance, if an image is sent Mail can firstly show the image and second, when you try to open that in an external application it will open in Preview (unless it's be set to another application like Photoshop). However, if an Microsoft PowerPoint slideshow is sent and you don't have PowerPoint then you will get the mess you have else it will refuse to open at all.
    Just find out what the attachments require (you should get this from the sender) so you know what you're supposed to be opening it with.

  • Cannot read .eml attachments

    We have a UM mail server from Common Voices with voice mail to email. When a voice mail is forwarded within the voice mail system to another user and the second user has voice mail to email, an email is generated that as the first message in an attachement with the format .eml This seems to cause no problems on our email clients, but sent to a BB, the BB cannot read it. Our vendor is indciating that this is a standard format that should be readable by BB. Can anyone advise if there is a way around this? Thanks, John

    Hi John
    Check out the following link for the supported attachments that a BlackBerry can view
    http://www.blackberry.com/btsc/KB03265
    I don't see EML as a supported attachment
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

Maybe you are looking for

  • How much RAM can I install on my MacBook Pro?

    I'm thinking of upgrading the RAM on my MacBook Pro 13-inch Late 2012 Non-Retina with a 2.5 GHz Intel Core i5 chip in it. I currently have 4GB of RAM in it (2x4) and I want to upgrade to 16GB of RAM (2x8). Can I do this upgrade?

  • Need to embed a Flash animation over top of a html page!

    Hello, I've created an animation in Flash with a transparent background which needs to be embedded into a html page with lots of div tags. I didn't create the html page and now I need to place the animation into that page somehow, overlapping with so

  • Want to load excel data into oracle table with out changing it to CSV

    Hello all, I have a requirement in dumping excel data into oracle database table without changing it to CSV file and this has to be used in normal sql/plsql environment i.e., pkg/procedure cant be used in the forms also... so, can u guys can help me

  • Dump OBJECTS_OBJREF_NOT_ASSIGNED

    We have applied the note 1392441 in Solman  EHP1,then when i executing the transaction dswp in system solman i give a ABAP error which is as below. Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED Except.                CX_SY_REF_IS_INITIAL Date an

  • How to retrieve icloud password

    I need help getting my icloud password because I want to change the email and pasword on it but have no idea how to can someone please help?