How to get PO attachments?

Hi ,
My requirement is to get the attachments of PO and send them via email .
I am looking for a FM which gets me the attachments in a PO (we can view attachments in PO display transaction ME23n. Select line item and click on button which has attachment icon. This will take you to the document display screen. You can also check your attachments through CV03n transaction. This is document display tcode in DMS.) .
My search in the forum says BDS_GOS_CONNECTIONS_GET can be used to get attchment list but it i don't get results in my system .
And FM BDS_BUSINESSDOCUMENT_GET_TAB which gets attchements
my importing values
LOGICAL_SYSTEM                  CSC_D20130
CLASSNAME                       Z2BUS2012
CLASSTYPE                       BO
CLIENT                          130
OBJECT_KEY                      1430000581
BINARY_FLAG                     X
TEXT_AS_STREAM                  X
still no result .  Did I miss something or any config required ?
Please help
Rhea.

Rhea,
I guess, a sample code will help you here. And as you rightly mentioned, use cl_binary_relation=>read_links_of_binrel for this.
Try something like this.
        gs_lporb-instid = 'Your PO number'.
        gs_lporb-typeid = 'BUS2012'.
        gs_lporb-catid = 'BO'.
        CALL METHOD cl_binary_relation=>read_links_of_binrel
          EXPORTING
            is_object   = gs_lporb
            ip_relation = 'ATTA'
            ip_role     = 'GOSAPPLOBJ'
          IMPORTING
            et_links    = lt_links.
if you want to check what you have to pass in ip_relation, check table MDOBLREL and field RELTYPE_O.
If you want to read the attachment by using function module SO_OBJECT_READ, you can do that by using lt_links-instid_b. By splitting it 17 characters in to folder_id & object_id (two parameters you required to read it in that function module).
Regards,
Gokul

Similar Messages

  • In mail, my attachments, both photos and documents appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the message.  Thanks for your help, Karen.

    In mail, my attachments, both photos and documents, appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the main message????  Thanks for your help, Karen.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

  • How to get email audio attachments to ipod/itune

    When I send a song ( m4a) as an attachment to
    an iphone it plays in the mail app. ok...
    but
    How do you then transfer it to your ipod/iphone library from mail?
    I would think this would be super easy..
    Just like photos are sent to iphoto..
    Looked all over forum and cant find..
    feeling frustrated like I am missing something easy
    anyone?
    Thanks in advance

    How to get email attachments and save them to disk?
    u got the Source code which works fine if yes then please help me out, i am looking for the same

  • How to get List Item attachments name without write any custom code or any database query?

    Hi,
    How to get List Items attachments name without write any custom code or any database query?

    You can get it from Rest,
    There are 2 options,
    1) create a 'Result Source' which has a search query for that List which has attachments 
     - Use rest query to get the 'Filename' , it will have the attachment file name 
    For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be 
    http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
    You can refine the query, be giving proper 'querytext'
    2) Use the List rest api
    For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
    You can get he attachments for 1st item using this 
    http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • How to get .txt files to also show up as attachments

    If I receive an email with 4 attachments (3 .pdf files and 1 .txt file), I get 3 attachments only, and the text file is displayed within the body of the e-mail, but not as an attachment. This happens with some of my clients who send me mail, but not all; so I'm wondering if it's something the sender can do, rather than it being a problem with my .mac mail? Or, is it that they may be sending me ASCII files, that don't show up as attachments?
    Hope someone can help; we've been trying for 3 months to solve! Thank you

    File>Get Info> Options>Media Kind

  • How do you download attachments and once downloaded, where do you open it?  In the computer, it gets saved under Documents or Desktop, etc.  I can't seem to find those in iPad.

    How do you download attachments in iPad and once downloaded, where do you open it?

    do you have the evernote app?
    ok, well if you open a doc in mail app to preview it, it should say export to evernote, or another app that allows you to open files like good reader, ibooks, so it really just depends on the file type.
    if it is a picture then hold down on the photo and it will ask if you want to save it.

  • How to get photos from an email message into iPhoto?

    Not sure if this is for the iPhoto forum or the Mail forum, but here we go:
    I'm trying to figure out how to get photos I've received by email (through Mail) into iPhoto. I seem to remember seeing Jobs demonstrate it onstage a year or two ago but I can't remember what he did. I recall it was a simple one or two step process.
    Any help?

    Still works for me
    on an e-mail with photos attached go to the Save button next to the attachments list, point to the triangle to the right of Save inside the button and hold the left mouse button down - a menu will appear with save all at the top entry, a list of photos below that and "add to iPhoto" as the bottom entry - move your pointer down to the "add to iPhoto" and release and your photo will be a new event in iPhoto
    Larry Nebel

  • How to get a single pulse Using Burst MOde?

    Harlow Peeps! Just want to know how to get a SINGLE pulse generated by the AGILENT 33220A function generator? the results i get it's in the burst MODE and everything is running smoothly and fine! it's just that i want to get a single pulse froM it only and not repeated triggeriong of the pulse...
    thanks! ^^
    cheers!

    hi,
    find attached an example, how to set hp33250a ( ag33xxx )  into burst mode.
    hope this helps........... - play with it - and change it to your needs.
    regards
    Werner
    Attachments:
    hp33250a _burst.zip ‏165 KB

  • How to get bar graph in word in labwindow/CVI ?

    how to get bar graph in word in labwindow/CVI ?

    ashwinic9,
    spawning your question over more and more threads (the present one, this one and this other one) won't give you a faster answer; instead, it will irritate forum users! 
    Especially if you have at your disposal a fast way to perform a test. I pointed you some days ago to word report example, that writes a table to a word document: did you tried changing the graph into a bar graph and generating the report? I have done it for you and the result is OK, as you can see in the attached document.
    Now, since the example works well, there must be something in your particular situation that prevents the graph to be shown; that is: you must add some more data on your actual problem and maybe a small example that exposes the problem.
    But please: keep active only this discussion and let the other threads die! 
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Attachments:
    wordreport.doc ‏38 KB

  • How to get rid of the reference lines on the front panel

    I forgot how I created a couple of horizontal and vertical reference lines on the front panel. It looks like the origin lines on the front panel. When I move my program to another monitor with different resolution, all the layout is messed up because of the reference lines can not change with the resolution. Did anybody meet this before? How to get rid of them?
    Attached are the 2 creen shot of front panels.
    Thanks in advanced.
    Solved!
    Go to Solution.
    Attachments:
    front panel.png ‏63 KB
    front panel2.png ‏42 KB

    You will have to click on the top menu and choose options see below
    when you do this window will pop up and you scroll down until you get to the front panel options. See below
    Tim
    Johnson Controls
    Holland Michigan

  • How to get rid of the "time out" when using DAQ AI in the example program

    I try an example file called "AcqVoltageSamples_IntClkDigRef" (Visual C++ .NET). It works great. However, if the program has not recieved the data, it sent out a timeout message. How to get rid of the "time out"? I cannot find anywhere in the code. Is this a property I have to reset somewhere else?
    Thank you,
    Yajai.

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

  • How to get a wallet (like in Nokia 6600) for Nokia...

    Dear All,
    Can you please tell me how to get a wallet (like in Nokia 6600) for my Nokia E63?
    Narottam Das
    Kolkata, India

    Using the data from your Excel spreadsheet, this is what I get from the curve-fit functions:
    Seems like a pretty-good fit to me. I'm not sure what you're trying to do with the polynomial evaluation stuff, though.
    Message Edited by smercurio_fc on 07-30-2008 09:21 AM
    Attachments:
    Example_VI.png ‏17 KB

  • How to store Multiple Attachments in Workflow.

    Hello All,
    I am doing an scenario, in that i need to store multiple attachments in the workflow container.
    Kindly help me, how to store and also, how to retrieve those attachments form worklfow.
    I am using custom workflow.
    Thanks in advance......
    Best Regards,
    Chandran S

    Hi Jubish/Venkat
    1. I iterated this fucntion moudule to store the multiple attachments to the workflow
       SAP_WAPI_ATTACHMENT_ADD
    2. Call this FM to get the attachemnts form the workflow (pass workitem Item id which is used for storing the attchments).  SAP_WAPI_GET_ATTACHMENTS
    from above you will get objkey for each attachment as output in table.
    3. Pass the  objkey to this FM to get the contents
    SO_DOCUMENT_READ_API1'. this will retrun the content of the attachment either in object_content,   contents_hex.
    4. Pass the Obtained content to SCMS_BINARY_TO_XSTRING to get the disired format.
    Best Regards,
    Chandran S

  • How to get bitmaps in Mail?

    I can't believe that this has not been resolved.  I received an email with a Device Independent Bitmap .dib file and it shows up as an html question mark.  It is not shown as an attachment and can't be downloaded.  An older post (from 2008) that did not resolve the problem indicated you could go to gmail and download the attachment.  A slow workaround but I expect it would work.  I copied the message to outlook express and opened it from there.  Any know how to view bitmap attachments from Mail?
    Below is the relevant email text....
    <TITLE>This is my PE screenshot</TITLE>
    </HEAD>
    <BODY>
    <!-- Converted from text/rtf format -->
    <BR>
    <BR>
    <BR>
    <P><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000">
    <IMG SRC=3D"No%20AttachName" alt=3D"Picture (Device Independent =
    Bitmap)"></FONT>
    </P>
    <BR>
    <BR>
    <P><I><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
    FACE=3D"Arial">Regards</FONT></SPAN></I><SPAN LANG=3D"en-us"><FONT =
    SIZE=3D2 FACE=3D"Arial">,</FONT><I><FONT SIZE=3D2 =
    FACE=3D"Arial"></FONT></I></SPAN><SPAN LANG=3D"en-ca"><BR>
    <BR>
    <B></B></SPAN><SPAN LANG=3D"en-ca"><B></B></SPAN><SPAN =
    LANG=3D"en-ca"><B><FONT SIZE=3D2 FACE=3D"Arial">Chris =
    Molina</FONT></B><FONT FACE=3D"Times New Roman"><BR>
    </FONT><B></B><B><FONT COLOR=3D"#008000" SIZE=3D2 FACE=3D"Arial">FUTURE =
    ELECTRONICS</FONT></B><FONT FACE=3D"Times New Roman"><BR>
    </FONT><B></B><B><FONT SIZE=3D2 FACE=3D"Arial">Advanced Engineering =
    Group</FONT></B><FONT FACE=3D"Times New Roman"><BR>
    </FONT></SPAN><SPAN LANG=3D"en-ca"><I></I><I><FONT SIZE=3D2 =
    FACE=3D"Arial">Cell: </FONT><FONT COLOR=3D"#008000" SIZE=3D2 =
    FACE=3D"Arial">443.694.5737</FONT></I><BR>
    <I></I><I></I><I><FONT SIZE=3D2 FACE=3D"Arial">Office: </FONT><FONT =
    COLOR=3D"#008000" SIZE=3D2 FACE=3D"Arial">410.859.1867</FONT></I></SPAN>
    </P>
    <BR>
    </BODY>
    </HTML>
    ------_=_NextPart_002_01CDA7BC.713A0091--
    ------_=_NextPart_001_01CDA7BC.713A0091
    Content-Transfer-Encoding: base64
    Content-Type: image/bmp;
        name=ole0.bmp
    Qk02DDAAAAAAADYAAAAoAAAAVgUAAAADAAABABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8fHx
    8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx
    8fHx8fHx8/Pz9PT09PT09PT09fX19fX19PT09PT09PT08/Pz8fHx8fHx8fHx8fHx8fHx8fHx8fHx
    8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx
    8fHxgICAkpKS9fX1/Pz8/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39
    /f39/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8+/v7+/v7+/v7+/v7+/v7+/v7
    +/v7+/v7+/v7+/v7+/v7+/v7+vr6+vr6+vr6+vr6+vr6+vr69PT0sbGxp6en+Pj49fX1xsbGv7+/
    9/f39vb24ODg2tra9fX19fX1goKClJSU9/f3/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39
    /f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/Pz8/f39/Pz8/Pz8/Pz8
    /Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v79fX1srKy
    qK

    I see this issue with emails from Windows (Exchange) clients. In my case, if I right-click on the blue question mark icon I get a pop-up menu option to Download Image. Select that and the .bmp attachment will be saved to your Downloads location. A workaround at least!
    Hope that helps.
    Tim

  • How to get the image stored in archieve link as an attachment in work item.

    Hi All,
    through transaction OAWD we are storing scanned images.
    Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
    When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
    After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
    Our requirement is that the scanned image should also appear as the attachment.
    Can you please suggest how to get the image stored in archieve link as an attachment in work item.
    Regards
    Shraddha

    Hi Martin,
    with every parked document a scanned image is linked.
    I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
    At present the following functionality is available.
    The BO used is FIPP
    Objects and attachments:
    parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
    On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
    Now we want to have 2 links:
    parkeddocument:AK0108500001252008.
    image.
    When we click on the link image then the scanned invoice linked to the document should get opened.
    I am able to get the image id of the the image through  SAP_WAPI_GET__OBJECTS,
    export parameter leading_object provides the detail.
    But I am not able to figure out how to use it in my workflow to display it as an attachment.
    Hope this will give a better understanding of my question.
    can you please suggest as to how I should proceed with it.

Maybe you are looking for