BDS_GOS_CONNECTIONS_GET list of attachment

Hi
I want to get information from FD03 all the attachmed list based on customer no .
could anyone help me to correct this program to get the list of attachments list please.
REPORT BDS_GOS_CONNECTION.
DATA : logical_system LIKE BAPIBDS01-log_system.
       CLASSNAME LIKE BAPIBDS01-CLASSNAME
       OBJKEY LIKE SWOTOBJID-objkey.
PARAMETERS: pa_lo_sys BAPIBDS01-log_system,
            pa_class like BPIBDS01-CLASSNAME,
            pa_objkey like swotobjidobjkey.
AT SELECTION-SCREEN.
CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'
         EXPORTING
              bor_id             = bor_id
         IMPORTING
              logical_sytem      = pa_lo_sys.
              classname          = pa_class.
              objkey            = pa_objkey.
         EXCEPTIONS
              no_objects_found     = 1
              internal_error       = 2
              internal_gos_error   = 3.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.
clear v_attno1.
i_object1-typeid = 'BUS2012'.
i_object1-catid  = 'BO'.
i_object1-instid = i_yItem-docno.
call method cl_gos_attachment_query=>count_for_object
   exporting
    is_object = i_object1
    ip_arl    = space
   receiving
    rt_stat   = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
    move wa_stat1-counter to v_attno1.
endif.             
CALL METHOD cl_gos_attachment_query=>count_for_object
EXPORTING
is_object = object
ip_arl =    space
RECEIVING
rt_stat = lt_stat.
READ TABLE lt_stat INDEX 1 into ls_stat.
count = ls_stat-counter.
*The object has to be a concatenation of your document, like this:
CONCATENATE object-instid tab-gjahr INTO object-instid.
ELSE.
CONCATENATE tab-bukrs tab-belnr tab-gjahr INTO
object-instid.
ENDIF.    
regards
Piroz

You can use function module BDS_ALL_CONNECTIONS_GET with parameter ALL set to X and NO_GOS_DOCS set to space. This returns all the documents attached to a Parked Document.
You can also use BDS_GOS_CONNECTIONS_GET.
If you have any ArchvieLink business documents assigned to the document like a scanned image then you can use function module ARCHIV_GET_CONNECTIONS.

Similar Messages

  • How can you create a new category list and attach it to a new incident template

    We intend to create helpdesks for various teams e.g. Facilities, IT, HR etc and allow staff to email separate email addresses via the exchange connector.  So incidents get assigned to separate queues categorised via the support group set in the
    assigned template used by the connector.  I want separate category lists for each template so IT staff don't see Facilities categories etc. This all works apart from having separate Incident classification lists attached to the appropriate template. 
    Thanks
    David

    So I suppose I have to do something similar to the blog post below.  I assume that if I create a new 'facilities incident' class I can create a distinct category list and attach that to a template without showing the default category list?
    Thanks
    David
    http://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-6241-00-00-03-47-72-46/SCSM-Creating-a-user-classification-field-using-the-Authoring-Tool.docx

  • How to make a original frame same with Comment List and Attachment?

    How can I make original frame looking like Comment List?
    I'm using Windows XP and Adobe Acrobat 9 Pro and Acrobat 9 SDK.
    I want to make a new plug-in that use a new frame.
    The new frame is looking like Comment List and Attachment.
    I want to show my original list and input form to the frame.
    It is close to Comment List frame, but I want to show original list.
    Additionally, I want to add new button upper of Comments Button on Navigation Button Panel.
    Can I have any help?

    There is no support in the SDK for adding your own panels.
    There is no support for modifying the existing panels.

  • Moving a List Item attachment from one list to another

    Hi,
    What are the best way of coping / moving the List Item attachment using
    jQuery / JavaScript in SharePoint 2013 from one list to another.
    Thanks
    Saroj
    Impossible is nth but good coding :-)

    For your needs better try to code your own solution. See
    SharePoint JavaScript Class Library for details. You can have two possible architectures:
    Make all work from JavaScript. And the first your step will be
    addItem method of SP.List.
    Make processing of selection on client in JavaScript and call your custom server-side component (may be an application page) for items copying (creating copies in new list of already existed items from initial list.). See
    this for example.
    Also be careful with context.load. It's recommended to write all next code in context.executeQueryAsync. Use Firebug in FF and developer tools in Chrome for debugging your code and to find what is wrong.
    Or 
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    var siteUrl = 'Site Url';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List1');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var objListItem = listItemEnumerator.get_current();
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List2');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', objListItem.get_item('Title'));
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededFinal), Function.createDelegate(this, this.onQueryFailed));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function onQuerySucceededFinal(sender, args) {
    //Do next set of operation if needed
    </script><input name="btnVarIQReject" onclick="retrieveListItems()" type="button" value="Submit"/>
    Please use my above POC code to start. This will copy all the title field value from list1 to list2
    If this helped you resolve your issue, please mark it Answered

  • Convert list item attachment from docx to pdf using Word Automation Services

    I have been trying to convert List Item attachments from docx to pdf using word automation services, it works in a normal document library but when I use the list attachment it throws a null reference error.
    var settings = new ConversionJobSettings();
    settings.OutputFormat = Microsoft.Office.Word.Server.Conversions.SaveFormat.PDF;
    var conversion = new ConversionJob("Word Automation Services", settings);
    conversion.UserToken = SPContext.Current.Site.UserToken;
    var wordFile = SPContext.Current.Site.RootWeb.Url + "/" + wordForm.Url;
    var pdfFile = wordFile.Replace(".docx", ".pdf");
    conversion.AddFile(wordFile, pdfFile);
    conversion.Start();
    Using reflector I was able to see my problem lies in Microsoft.Office.Word.Server.FolderIterator.cs where it uses SPFile.Item which returns NULL
    internal void CheckSingleItem(SPFile inputFile, SPFile outputFile)
    Microsoft.Office.Word.Server.Log.TraceTag(0x67337931, Microsoft.Office.Word.Server.Log.Category.ObjectModel, Microsoft.Office.Word.Server.Log.Level.Verbose, "OM: FolderIterator start a single item: source='{0}'; dest='{1}'", new object[] { inputFile.Url, outputFile.Url });
    Stopwatch stopwatch = Microsoft.Office.Word.Server.Log.StartPerfStopwatch();
    try
    this.CheckInputFile(inputFile.Item);
    this.CheckOutputFile(outputFile.Url);
    Is there any way to get around this?

    Hi Qfroth,
    According to your description, my understanding is that when you use word automation service to convert Word to PDF for list item attachment, it throws the null reference error.
    I suggest you can create an event receiver and convert the word to memory stream like below:
    private byte[] ConvertWordToPDF(SPFile spFile, SPUserToken usrToken)
    byte[] result = null;
    try
    using (Stream read = spFile.OpenBinaryStream())
    using (MemoryStream write = new MemoryStream())
    // Initialise Word Automation Service
    SyncConverter sc = new SyncConverter(WORD_AUTOMATION_SERVICE);
    sc.UserToken = usrToken;
    sc.Settings.UpdateFields = true;
    sc.Settings.OutputFormat = SaveFormat.PDF;
    // Convert to PDF
    ConversionItemInfo info = sc.Convert(read, write);
    if (info.Succeeded)
    result = write.ToArray();
    catch (Exception ex)
    // Do your error management here.
    return result;
    Here is a detailed code demo for your reference:
    Word to PDF Conversion using Word Automation Service
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Using script to delete list item attachment

    $.ajax({
    url: "/_api/lists/getByTitle('Test')/getItemById(1)/AttachmentFiles/getByFileName('test.txt')",
    method: 'DELETE',
    headers: {
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    i want to delete list item attachment using script.
    Above code working only in ie
    in firefox and chrome it fails
    Any sugestion clads

    working fine when i degug the script...

  • Copy List Item Attachment for archiving using SharePoint Designer 2013

    hi,
    how to Copy List Item Attachment for archiving using SharePoint Designer 2013

    1. You can use access:
    http://viziblr.com/news/2011/11/5/batch-exporting-sharepoint-2010-list-item-attachments-using.html
    Or you can try below script
    You can loop through each list item, and get each attachment.
    List<SPAttachment> attachments = new List<SPAttachment>();
    SPList list = SPContext.Current.Web.Lists["My List"];
    foreach (SPListItem item in list.Items)
    attachments.AddRange(item.Attachments.Cast<SPAttachment>());
    If this helped you resolve your issue, please mark it Answered

  • HT203128 An "Up Next" list has attached itself to the bottom of my mini player (iTunes 12).  How do I get rid of it?

    An "Up Next" list has attached itself to the bottom of my mini player (iTunes 12).  How do I get rid of it?

    Hello mhlrs,
    Great question! You can close the “Up Next” list by tapping this button:
    iTunes 12 for Mac: Play songs
    http://support.apple.com/kb/PH19476
    Cheers,
    Matt M.

  • Something strange in my router's list of attached devices.

    This might be a tough one.
    Here is my setup: Imac g5, cable modem and netgear rangemax wireless router, ethernet connection, WEP encrytion with SSID broadcast disabled. Currently not taking advantage of the wireless yet.
    Here is the strange thing: Most times (I am paranoid and check all the time to see if anyone is trying to creep into my network), when I check my list of "attached devices" in my router login page I see this:
    Attached Devices
    IP Address: 1. 192.168.1.3
    Device Name: -
    MAC Address: (don't know if I should show that)
    Notice that there is no "device name."
    And sometimes I see this:
    Attached Devices
    IP Address: 1. 192.168.1.3
    Device Name: YOUR-XB2X7J77GN
    MAC Address: ***************
    Obviously, the weird thing here is the "device name."
    Now, I googled my device name: YOUR-XB2X7J77GN and got a few hits that contained words like "hack" and such and some hits that didn't really saying anything suspicious. Didn't find anything that seemed to do with wireless networking though. Seems like someone else somewhere in the world would have noticed this and posted in some forum about it but nothing that I found, which I think seems a little odd. Google this name and see what you think.
    Question: Why does my device name change sometimes and should it be changing. Is this worth looking into and do most user's just not care to even look at this stuff?

    Don't know, but I've read in Apple articles and elsewhere that WPA is more secure than WEP, and that was prior to WPA2. You might want to consider switching over.

  • How to download list item attachment from display.aspx

    Im uploading documents
    to list item in list by
    using file upload control. Now I should download that file. I can able to insert documents into list item in attachment column which is predefined but am how can I download the attachments by clicking on the link in display.aspx.
    I have written this for uploadFile controller.
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["list2"];
    //SPListItem itemId = list.GetItemById(5);
    int itemId=3;
    SPListItem newItem = list.GetItemById(itemId);
    byte[] contents = null;
    if (FileUpload1.PostedFile != null && FileUpload1.HasFile)
    using (Stream fileStream = FileUpload1.PostedFile.InputStream)
    contents = new byte[fileStream.Length];
    fileStream.Read(contents, 0, (int)fileStream.Length);
    fileStream.Close();
    SPAttachmentCollection attachments = newItem.Attachments;
    string fileName = Path.GetFileName(FileUpload1.PostedFile.FileName);
    attachments.Add(fileName, contents);
    newItem["CLMSAttachments"] = fileName;
    newItem.Update();
    Thanks in advance.

    Hi ,
    It is your browser that decides to download/open the file.
    If you have compatible client software for the file (word for docx) your computer will by default automatically try to open it.
    But we can force the download. You have to develop a handler/aspx page that will just handle the file download and you have to override the http header "content-disposition" to "attachment;filename=yourfilename"
    Here a sample :
    var fileName = "myfile.sql";
    var r = context.Response;
    r.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
    r.ContentType = "text/plain";
    r.WriteFile(context.Server.MapPath(fileName));
    Hope that will help you
    Moudhafer

  • How To Send Invoice List as attachment in User Decision Step?

    HI All,
    I have developed a workflow in which there is one ZMETHOD in which i will get the list of invoices.and that i want to send it as attachment to User Decision Step.
    How to do this?
    Regards,
    Arpita

    If your users will have access to MIR4, why not just bind the business object BUS2081 as an adhoc object into your decision step?  That would solve everything pretty nicely, I think. 
    Regards,
    Sue

  • More items in "recent places" list when attaching documents?

    Hello,
    I find it very useful to have the "recent places" list when browsing for a file I want to attach to an e-mail. In almost all of the other programs I use, however, the recent places list seems to have about twice as many listed as the Mail program. Is there a way to increase the number of items in the recent places list?
    Thanks in adavance!

    Hi David,
    The feature request that I would be asking for would be to add to the number of items that appear in the "recent places" list when you go to attach a document to an e-mail. I am a graphic designer, and use the Adobe programs most of the time, and they seem to have about 10 (as opposed to 5) items in the recent places list. Since I jump from project to project, I have several "recent places" and it is a handy and time-saving way of browsing for recently "browsed-for" items. Unfortunately, I find that 5 items it not quite enough-- in going to a new place, the least "recent place" gets bumped off the list. A recent places list of 10 seems to work really well (which is also the number used by Eudora, which I recently gave up in favor of Mail).
    Thanks for the link-- I'll make the request!

  • How to insert sharepoint list item attachment to sql server db programatically

    Hi,
    I need to insert sharepoint list item attachments to sql server db programatically. Could some one suggest some approach and if any one work on it please provide the code. Thanks in advance

    hi,
    you can do it using powershell. Use the below script to loop through all the items attachments inside list.
    $web = $site.RootWeb<br />
    $Lists = $Web.Lists[$ListName]
    $Library = $web.Lists[$LibName]
    foreach($listItem in $Lists.Items)
    if($listItem.Attachments.Count -gt 0)
    Write-Host "**************************************************"
    Write-Host $listItem.Attachments.Count"Attachment(s) available in the ListItem:" $listItem.Title
    Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
    $i=0
    foreach($attachment in $listItem.Attachments)<br />
    $i++
    Write-Host $i".Attachment Name:" $listItem.Attachments.UrlPrefix$attachment
    $file = $web.GetFile($listItem.Attachments.UrlPrefix+$attachment)
    Write-Host "Adding Files to Library:"$Library.Title
    $bytes = $file.OpenBinary()
    Write-Host "Successfully Added"<br /> Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
    Write-Host "**************************************************"
    And use the below script to insert into SQL.
    #Connect to DB
    $DB = “server=MyInstanceName;integrated security=sspi;database=Bob”
    $conn = new-object System.Data.SqlClient.SqlConnection($DB)
    #Build the command and parameters
    $cmd = New-Object System.Data.SQLClient.SQLCommand
    $cmd.CommandType = [System.Data.CommandType]‘StoredProcedure‘
    $cmd.Parameters.Add(“@Col1″, [System.Data.SqlDbType]‘VarBinary‘)
    $cmd.Parameters[“@Col1″].Size = -1
    $cmd.Parameters[“@Col1″].Value = $bytes
    $sql = "INSERT INTO <table> (Col1) VALUES " + $cmd.Parameters[“@Col1″]
    #Execute the command
    $conn.Open()
    $cmd.ExecuteNonQuery()
    P.S. There may be some syntax error you have to make it work but the concept is right.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Sending E-Mail with ABAP List as Attachment with custom Extension

    Hello everyone.
    I have the following problem:
    I want to send a ABAP list as an attachment to an external e-mail address with a <b>custom file extension</b>.
    Everything works fine, exept the thing with the file extension.
    I am using FB 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    When I choose 'ALI' as Packing_List-Doc_Type everything works fine, but the attached file has the extension 'txt'.
    When I choose e.g. 'lbl' as Doc_Type, the extension is correct, but the file contains invalid data.
    Packinglist code:
    <i>AttType = 'ALI'.
    Describe Table ObjBin Lines TabLines.
    Read Table ObjBin Index TabLines.
    ObjPack-Doc_Size = ( TabLines - 1 ) * 255 + strlen( ObjBin ).
    ObjPack-Transf_Bin = 'X'.
    ObjPack-Head_Start = 1.
    ObjPack-Head_Num = 1. "0.
    ObjPack-Body_Start = 1.
    ObjPack-Body_Num = TabLines.
    ObjPack-Doc_Type = AttType.
    ObjPack-Obj_Name = 'ATTACHMENT'.
    ObjPack-Obj_Descr = cFileName.
    Append ObjPack.</i>
    function call:
    <i>Call Function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                Document_Data              = DocData
                Put_in_Outbox              = 'X'
           TABLES
                Packing_List               = ObjPack
                Object_Header              = ObjHeader
                Contents_Bin               = ObjBin
                Contents_Txt               = ObjTxt
                Receivers                  = RecList
           EXCEPTIONS
                Too_Many_Recievers         = 1
                Document_Not_Sent          = 2
                Document_Type_Not_Exist    = 3
                Operation_No_Authorization = 4
                Parameter_Error            = 5
                X_Error                    = 6
                Enqueue_Error              = 7
                Others                     = 8.</i>
    Thanks for your help,
    Arndt

    Hi,
    look here:
    Re: How to email an attachment with more than 255 characters?
    Andreas

  • How can I determine which word triggered a dictionary list in attachment?

    We have IronPort C160 and an outgoing message was blocked due to our language filters.  The logs indicate that an attached word document matches
    dictionary-match("sexual_content_txt", 1).
    Since the dictionary match is not in the actual body of the e-mail, the triggered phrase is not highlighted in our policy view in the web gui.  I can download the attachment and after reading it, I find no issues with it at all (its a legitimate policy from a VP to an Auditor).  I am going to release the email as was requested.  However I am just curious as to what in carnation is triggering the dictionary match.  Is there any way to find this out?  Sometimes there are some nonsense words that we do find from time to time and we remove them from the dictionaries.

    Keith,
    I wrote a Perl script to solve this problem. It loads the patterns from an exported content dictionary, then reads stdin and attempts to match each line against the patterns, and prints the matches it finds. AsyncOS uses Python's "re" module under the hood, so Perl's regex interpreter isn't the best match, but it gets the job done. This script would be better written in Python, but I don't know Python.
    There are a few caveats to using a script like this. First, IronPort doesn't document exactly what regex patterns underly their Smart Identifiers, so you won't be able to interpret these. Second, the "match whole words" and "case senstive" settings are not exported with a dictionary. If you want to respect them then you'll need to use something like command line options on your script to signal them. For me, it was sufficient to ignore the "match whole words" setting and to make all matches case insenstive.
    ++Don

Maybe you are looking for

  • Digital Video Camera not showing up as device on desktop

    I have a 6 year old sony digital video camera. I am able to connect via firewire and upload video using imovie without a problem. It shows up as an option in imovie as dv-vcr. However the video camera does not show up in the desktop and when it is co

  • Purchase Requisition Closure

    Hi, 1) I have a scenario where a PR is raised for 100 qty of a certain item and released. A PO is then created (based on the PR) for Qty of 70. Now I donu2019t want another PO to be created for the remaining 30 qty (based on the same PR). So is there

  • WebUtil ActiveX - WUO-706 error

    I am using Form 10.1.2.0.2 and WebUtil 106. I have a ActiveX dll that contains dialog form. If the the dll does not show the form then everything works fine. As form in dll must be shown, when run bellow error comes up WUO-706: Unable to invoke Metho

  • How to know the var Type

    Hallo. I need a help. I wish to know if the user input is a correct uint type or int type or Number type.. Is there any way to know it? Thx Max

  • HT1222 iOS 5.1 Download

    Why am I getting a contacting the iPhone server when downloading iOS 5.1?