How to transfer GOS attachment to my work item

Hi Friends,
  I have the following requirement. The user while creating a Appropriation request in tcode IMA1N will create an attachment using Generic Object Services(GOS). once he saves my workflow will trigger and it will go to approval. I need to show the attachment created using GOS in my Work item. How to achieve this. Please advice.

I have some annotations:
The object type ARCHIVE is for archived Data Files from the DataArchiving. The object type for ArchiveLink documents is  IMAGE
The default method is  .Display   to display the document.
The GOS-Attachment is not a SAP ArchiveLink document. This attachment is stored in SOOD and linked via the GOS-relationship table SRGBTBREL
The business object, that can be used here is: SOFM
The object instance needs to be found with a custom self-made background method, to find the correct link and create an object instance.
After that, this instance can be used as a secondary method in the work item's execution or attached to the ADHOCOBJECTS as already mentioned here.
Good luck,
   Florin
P.S.: Similar reply cross-posted to SAP-WUG

Similar Messages

  • Transfer GOS Attachment (Single/Multiple) from custom program to XK01

    Hi,
    GOS - Generic Object Service is a way one can attach single / multiple attachment. I have a custom program where there is a GOS with some attachment (used CL_GOS_MANAGER class).
    Next I need to send / transfer this GOS attachment from my custom program to say a standard transaction , eg XK01.
    Whether we can achieve this functionality, ie. we are able to create/save attachment but is there a way to send attachment (not via email) such that the same attach itself to the GOS of the standard transaction. I don't see any method in the CL_GOS_MANAGER class by which we can achieve this!
    Any suggestion/solution will be highly appreciated!
    Thanks,
    Deb

    Hi,
    I am trying to send attachment linked to a custom BO to standard BO eg, LFA1 using 'GOS_SERV_TOOLS_TEST' (copy_linked_objects).
    Surprisingly, I am able to copy/send attachment list within same BO (LFA1) from one LIFNR to another LIFNR. But the same method does not work when I try to copy attachment between diff BO example from VENDOR BO to MATERIAL BO. Why is it so?
    Also it does not work between a custom BO & standard BO. Please suggest in case I am missing on anything!
    Thank,
    Deb

  • How to transfer the attachment (DB object in the table:SOC3) to FTP Server

    Hi,Experts:
         I have a requirement to transfer an attachment to FTP Server,but the attachment have exist in  DB for objects  table(SOC3),I can down it to local PC via FM:SO_OBJECT_DOWNLOAD,but  i can't transfer it to FTP Server via Dataset?
    Thanks a lot in advance...........

    Hi Marcel,
    Thanks for the reply,
    I have exported the .gml file from the dev server Then i trying to import that .gml file in the production server. when i click on the import file option .it is opening the popup and disappearing immediately with out browsing the file I dont know wht is the problem around it.
    But agin in the production server, i have just opend one existing model. then i clicked on the Import file option. then the popup is allowing me to browse the .gml file. but after i browsed the file,  if say ok, it will be merging with the already opened model itself.
    Can u please tell me , what is the problem, i am not able to browse the file ,when no model is not opened in the VC.
    REgards
    Vijay

  • Issue with attaching pdf in work item

    Dear Friends,
      I am trying to attach Adobe form output to a work item and send it in for approval. I have converted the Adobe form output to binary format inside the program using function module 'SCMS_XSTRING_TO_BINARY and passed it to the workflow container while starting the workflow and then inside the workflow i used the below code inside a method convert the binary to xstring format and then attach it to the workitem. But when I open the attachment from business workplace I am getting an error that There was an error opening this document, the file is damaged and could not be repaired.
      I tried to debug the method and found that everything seems to be fine, even I checked the Adobe output by sending it as an email attachment and I am able to open the same Adobe form attachment in the email. So I suspect that I am doing something wrong while converting the same(binary to xstring) in the workflow. Please advise what would be wrong with the below code.
    DATA:  wid TYPE swwwihead-wi_id,
                op_len TYPE wsuser-wsuserinstanceno,
               it_solix_tab TYPE solix-line OCCURS 0.
    DATA : zswr_att_header TYPE swr_att_header,
               zswr_att_id     TYPE swr_att_id,
               lo_sofm TYPE swc_object,
               zxstring TYPE xstring.
    swc_get_element container 'WID' wid.
    swc_get_element container 'OP_LEN' op_len.
    swc_get_table container 'IT_SOLIX_TAB' it_solix_tab.
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
       EXPORTING
         input_length = op_len
       IMPORTING
         buffer       = zxstring
       TABLES
         binary_tab   = it_solix_tab.
    zswr_att_header-file_type = 'B'.
    zswr_att_header-file_name = 'Attachment.pdf'.
    zswr_att_header-file_extension = 'PDF'.
    zswr_att_header-language = 'EN'.
    BREAK-POINT.
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
       EXPORTING
         workitem_id = wid
         att_header  = zswr_att_header
         att_bin     = zxstring
      IMPORTING
        att_id      = zswr_att_id.
    swc_create_object lo_sofm 'SOFM' zswr_att_id-doc_id.
    swc_set_element container 'SOFM' lo_sofm.

    Hi
    I feel like this part of teh code might be creating a a problem.
    zswr_att_header-file_type = 'B'.
    zswr_att_header-file_name = 'Attachment.pdf'.   "<------ Just give the name of the file , no extension needed as .pdf"
    zswr_att_header-file_extension = 'PDF'.              " <---- Since here you are already specifying the type of file.
    zswr_att_header-language = 'EN'.
    Regards
    Pavan

  • How to deactivate *Schedule Background Job for Work Items with Errors* SWU3

    Hello Guys,
    Can any one tell me how do I DEACTIVATE Schedule Background Job for Work Items with Errors in sap workflow SWU3.
    Currently it is green which I don't want. I want to stop this service.
    Regards
    NK

    Hello,
    You could also just stop the job in tx SM37.
    But why would you want to do this? As a test?
    regards
    Rick Bakker
    hanabi technology

  • Hi is it possible to attach PDF as a attachment to the work item

    hi is it possible to attach PDF as a attachment to the work item

    Hi!
    Maybe it help's u:
    <a href="http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1076071,00.html?NextURL=http%3A//searchsap.techtarget.com/expert/KnowledgebaseAnswer/0%2C289625%2Csid21_gci1076071_tax299365%2C00.html%3Fbucket%3DETA">Attaching a .pdf file to a work item</a>

  • Couldn't open attachment of a work item in the business  work plance

    Dear Friend,
    Any body so kind to help me resolve the following issue.
    One of our user not open the attachment(Puchase order rejection reason) of a perticular work item in his business workplace(swap). However another user can able to open the attachment for the same work item.
    For your kind information, both of the user have same authorization.
    Regards,
    sp sahu

    Hi All,
    Thanks you all for your kind reply.
    However I am not yet find the solution the the above issue.
    I noticed that the user can able to open the attachment like ALI (ABAP list document). However user not able to open the attachment with class RAW (SAP editor document).
    Any body so kind to reply for this post.
    Your effort should be highly appreciated.
    Regards,
    sp sahu

  • How to handle the situation to forward work item manually?

    Hi All,
    In my workflow -
    For agent determination I have some custom logic to determine agents. If custom logic donu2019t return any agents then the requirement is work item needs to send back to workflow initiator.
    My issue-
    When no agent determines
    1.Work item needs to send back to workflow initiator - and he should not able to Approve or Reject work item - He Can only forward work item to any other person manually (he determines to whom it should forward).
    2. After manually forwarding the work item it is normal process 2 level of approval from that point .
    Please let me know for the first item how to handle the situation?
    I have developed 2 section - one goes with regular agent determination -
    and the other one when no agent determines then I am assigning back to workflow initiator. Now I want to handle that - initiator should not accept or reject and he can only forward to someone. How to develop this?
    Please let me know your thoughts.
    Thanks in advance.
    Rajesh,

    Hi All,
    Thanks for the answers.. sorry for late replay.. requirement was not confirmed.
    1. As I described in my question
    After my custom conditions.. I have to send workitem back to initator ( Now initiator forwards the work item to someone else  ( need to restrict  users  based on role - )..
    While doing this process initiator should not have access to approve or reject he should only forward the workitem.
    After forwarding the work item -this person should have approve or reject options.
    My question is not answered..
    1. As Vijay told..
    Dont give Approve and Reject Options and in Description u specify like
    If I dont provide approve/reject when I am sending the work item to initiator - After initiator forwarding this work item - how do we the other approver will get options  Approve and Reject?
    2.  AS -surjith kumar
    If your Using the Rule or Expression you have to restrict via coding -  This will solve one of my problem -
    How I can restict  users with role based?
    My problem is not solved.. Initiator should not have access to approve but He should only forward the work item...
    Please let me know...

  • How to prefill ECC transactin with GP work items value?

    Hi Experts,
    I have  requirement where I have made a customised transaction of XK03 and implemented it as an iview in portal.Firt time when the page loads I want a few fields like company code ,account group and purchaisng organisation to be prefilled with the values I have stored in work items of the Guided Procedures.I guess it can be done by parameter mappings.Can you plaease explain how to do it ?
    Thanks
    Vinay

    Hi Vinay
    According to me youe purpose of this Parameter Mapping i.e company code/Purchasing org etc(In generic sence) is to  ensure that <b>server-side controllers can react intelligently to user actions on the client,</b> it is necessary to associate parameters with certain client-side events.
    Event parameter names (i.e company code/accounting group etc) are hard-coded within each UI(click the url for more info on user interface) element. If an event <u>has an associated event parameter, then the UI element will automatically place a value into the event parameter.</u> <u>This part of the coding is done for you automatically; however, you must ensure that the value of the client-side event parameter is received by the server-side action handler.</u>
    In the case of the DropDownByIndex UI element, the hard-coded parameter is called index. Its value will be supplied automatically as part of the client-side event – but this is all happening on the client-side. You need to transport the value of index back to the server, and then ensure that the client-side event parameter becomes a parameter to the server-side action handler.
    This process is known as parameter mapping, and is achieved as follows:
    1) firstly u can obtain the name of the parameter associated with the client-side event. This can be found by looking in the documentation of the UI element and looking at the mappingOf() method. For example, by looking at IWDCheckBox.mappingOfOnToggle(), you will find that the event has a parameter called checked which is of type boolean.
    2) Create an action in the view controller.
    3) Define a parameter for the action of the same data type as the event parameter. You will often find it helpful to make the server-side action parameter name the same as the client-side event parameter name, though this is not mandatory.
    4)Associate the event parameter with the action parameter. The coding to do this is shown in the next example.
    You can find detailed info on <a href="http://help.sap.com/saphelp_nw04/helpdata/en/25/d41a403233dd5fe10000000a155106/content.htm">this URL</a>
    Hope it will hint you.
    Krutarth

  • How to access other user's inbox work items?

    Hi,
    I have to view what all work items are avaialble in a particular user's inbox. How to achieve this?
    Is it possible?
    -Nick

    Hi Nick,
    So you would need all the other users inbox items to be displayed in your SBWP rite?
    You can do this by substitution. Please follow the below steps.
    Go to SBWP of the user whose inbox you want to see.
    SBWP -> settings -> office settings  ->  Substitution -> Add ur inbox in the substitute field and substitute all authorizations .(Check for the End date as well).
    You need to follow the same for all the other users.
    After this, Log in your SBWP and check if you are able to see all the user's inboxes or not.
    Thanks,
    Nick S

  • How to get all kind of GP work items for all users

    Dear all:
       Basing GP implementation,we can only get the single user's work item. Is that possible to get all of the users' work items,and can filter the work item via time field?
      thanks a lot.

    ISearchResult result=UMFactory.getUserFactory().getUniqueIDs();
                   IUser iuser;
                   while(result.hasNext())
                        iuser=UMFactory.getUserFactory().getUser(result.next().toString());
    The above code retrives all the users from the UME
    IGPUserContext context = GPContextFactory.getContextManager().createUserContext(iuser);
    IGPWorkItem[] workitems = GPProcessFactory.getRuntimeManager().getWorkItems(GPWorkItemStatus.getTypeForCode("1"), context);
    You will get the WorkListItems in the workitems array. The type for code which is 1 currently, must be changed according to the requirement. It is different for Completed, Inprogress Tasks, etc.
    Hope this will help you!

  • How to use the url in the work item

    hi ,guys ,
       I have question in design the workflow, my scenario is as follows : I develop the workflow in the sap gui ,then integrate it into the portal using uwl . now i want add a link in the work item ,before approver excute the work item ,the approver can click the url to view the detail approval information ,and the system popup a web window which link to the pcui application . and someone advise me to maintain the href in the work item text ,but i have no iead on it ?can anybody give me some advices or sample material ?thanks in advance .
    Jialiang.Qiu

    Hi
    If we talking about adding an URL in the GUI workitem display you can proceed as follows:
    1. In the workitem text editor, change the editor to line editor (Goto -> Change editor)
    2. enter the tag /* (Usually used for comments) to the left
    3. enter the URL on the line as follows <a href=http://www.cnn.com> click here</a>
    Regards
    Morten Nielsen

  • How to transfer iTunes purchased songs from work system to home system

    I have an itunes account set up on my computer at work and have recently purchased songs that reside at work. Unable to burn purchased songs on work system.
    Signed in at itunes at home and unable to find songs purchased with same itunes sign in id at work.
    How do I go about finding the songs using the same id.

    They are on your work computer. You canot download them again (for free) from iTunes.
    You need to copy them off the work computer.
    Use an iPod or a removable drive.
    You can email them although the file would be pretty big.
    You can FTP them somewhere.

  • How to transfer files from old not-working iPod to new one?

    i've got a 4th gen U2 iPod that has "died." replaced battery, still doesn't work. i keep getting either a sad face symbol or low battery (but not charging). don't know what's wrong or what to do. if i buy a new iPod, can i transfer my old music to it??

    The Migration Assistant utility that is included with all recent versions of OS X. Instructions can be found in the OS X Help.

  • How to open an attachment in a calendar item

    My boss has an iPad that she uses offsite at meetings.  I put relevant emails and other Microsoft or Adobe documents into the notes section of the calendar item, but she can't open them unless she logs into our company site and accesses the calendar through that.  Is there any way she can avoid having to log in and just open the documents straight from the calendar?

    oracle training books are relatively good, no good book on store, but you may try the book called 'advanced forms and reports 6', which is not for starters, but not bad.

Maybe you are looking for

  • Can't update to iOS 4.2.1. Please help

    Hello everyone, I have got a Second Generation iPod touch, which is running on iOS 4.0.2, and I thought it should be updated. Now I've downloaded iOS 4.2.1 directly from iTunes, this is the last firmware the 2G iPod touch can handle, but anytime I wa

  • Error in XPRAS_UPG Phase for report RSR_VARIANT_XPRA

    Upgrade from 4.6C to SAP ERP 2005 SR2 with all support packs During execution of background job for RSR_VARIANT_XPRA, TP terminates with exit code "12" and halts the upgrade process. On manual execution report throws error message Program class RSR_R

  • To create database

    How to create Database in oracle 10g

  • How To Backup Mail for Legal Purposes

    How do I back up a Mail folder for legal purposes. Is printing out suffecient? These may need to be used in court and I want to make sure I have them saved or printed out properly. Thanks in advance - Macbook Mom

  • Multiple selection drop down list

    hi everybody, i need to enhance the view BUPASEARCHB2B by adding a drop down list that allows for multiple selection.... please help.... urgent... thanks