When attaching documents using GOS send them with workflow

Hello experts,
I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.
Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".
The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.
There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.
I was trying to create an event for GOS object which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as not so strong in workflow.
I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.
Thank you all in advance.

Hello Andrés,
Thank you for replying. The main problem is starting the workflow. For that I need to create an event and that is my biggest trouble. I have seen the object IFSAP already. There are no events in it and as such I have created my custom object as super type.
So I need to create the event from scratch.
Hope my requirement is clear.
Thank you.
Edited by: Apoorv Lohani on Feb 3, 2012 7:54 AM

Similar Messages

  • Attaching URL using GOS with 2 key fields

    I found a program to attach URL using GOS. I tried the program using his sample Business object (BUS2012) and supplied a valid PO and the program works.
    When I use the program using business object BUS1505 (Real Estate Contract) and put a valid contract number, the program didn't attached the URL. When I check the business object, I found out that the key fields are 2, Company Code and Contract Number. With this, how can attach it to the program.
    Please help me on this. Thanks in advance.
    Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    Written By : Ram Manohar Tiwari
    Function   : We need to maintain links between Business Object and
                 the attachment.Attachment document is basiclally a
                 business object of type 'MESSAGE'.In order to maintain
                 links, first the attachment will be crated as Business
                 Object of type 'MESSAGE' using Message.Create method.
                 Need to check if we can also use FM
                 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
                 than using Message.Create method.
    REPORT  Z_RMTIWARI_ATTACH_DOC_TO_BO             .
    Include for BO macros
      INCLUDE : <cntn01>.
    Load class.
      CLASS CL_BINARY_RELATION definition load.
      CLASS CL_OBL_OBJECT      definition load.
    PARAMETERS:
    Object_a
       P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS1505', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '0000010000273',    " Key e.g. PO No.
    Object_b
       P_DOCTY  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       P_MSGTYP LIKE SOFM-DOCTP        DEFAULT 'URL'     NO-DISPLAY,
    Relationship
       P_RELTYP  LIKE mdoblrel-reltype DEFAULT 'URL'.
      types: BEGIN OF TY_MESSAGE_KEY,
              FOLTP   TYPE SO_FOL_TP,
              FOLYR   TYPE SO_FOL_YR,
              FOLNO   TYPE SO_FOL_NO,
              DOCTP   TYPE SO_DOC_TP,
              DOCYR   TYPE SO_DOC_YR,
              DOCNO   TYPE SO_DOC_NO,
              FORTP   TYPE SO_FOR_TP,
              FORYR   TYPE SO_FOR_YR,
              FORNO   TYPE SO_FOR_NO,
             END OF TY_MESSAGE_KEY.
      DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
      DATA : LO_MESSAGE type SWC_OBJECT.
      DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
    line.
    First derive the Attachment's ( MESSAGE )document type.
      P_DOCTY = 'MESSAGE'.
      CASE P_RELTYP.
      In case of URls
        WHEN 'URL'.
           P_MSGTYP = 'URL'.
      In case of Notes / Private Notes
        WHEN 'NOTE' OR 'PNOT'.
           P_MSGTYP = 'RAW'.
        WHEN 'ATTA'.
           P_MSGTYP = 'EXT'.
      Not implemented as yet...exit
         EXIT.
        WHEN OTHERS.
       ....exit
         EXIT.
        ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
      swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
    define container to pass the parameter values to the method call
    in next step.
      swc_container LT_MESSAGE_CONTAINER.
    Populate container with parameters for method
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE' 'Title'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTLANGU' 'E'.
      swc_set_element LT_MESSAGE_CONTAINER 'NO_DIALOG'     'X'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTNAME' P_DOCTY.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE'   P_MSGTYP.
    'DocumentContent' is a multi-line element ( itab ).
    In case of URLs..it should be concatenated with &KEY& in the begining.
      CASE P_MSGTYP.
        WHEN 'URL'.
          LT_DOC_CONTENT = '&KEY&http://intranet.corpoff' .
          append LT_DOC_CONTENT.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
         WHEN 'RAW'.
           LT_DOC_CONTENT = 'Hi How r u?' .
           append LT_DOC_CONTENT.
    In case of File attachments
         WHEN 'EXT'.
          Upload the file contents using open dataset in lt_doc_content .
          Some conversion ( Compress ) might be required.
          Not sure at this point
      ENDCASE.
      swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
      swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
    Refresh to get the reference of create 'MESSAGE' object for attachment
      swc_refresh_object LO_MESSAGE.
    Get Key of new object
      swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
      data: LO_IS_OBJECT_A type SIBFLPORB.
      LO_IS_OBJECT_A-INSTID = P_BO_ID.
      LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
      LO_IS_OBJECT_A-CATID  = 'BO'.
    Create attachment BO object_b
      data: LO_IS_OBJECT_B type SIBFLPORB.
      LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
      LO_IS_OBJECT_B-TYPEID = P_DOCTY.
      LO_IS_OBJECT_B-CATID  = 'BO'.
    *TRY.
    CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
      EXPORTING
        IS_OBJECT_A            = LO_IS_OBJECT_A
       IP_LOGSYS_A            =
        IS_OBJECT_B            = LO_IS_OBJECT_B
       IP_LOGSYS_B            =
        IP_RELTYPE             = P_RELTYP
       IP_PROPNAM             =
       I_PROPERTY             =
    IMPORTING
       EP_LINK_ID             =
       EO_PROPERTY            =
    *CATCH CX_OBL_PARAMETER_ERROR .
    *CATCH CX_OBL_MODEL_ERROR .
    *CATCH CX_OBL_INTERNAL_ERROR .
    *ENDTRY.
    Check if everything OK...who cares!!
      commit work.

    HI
    You can look at object VBAP as an example.  It'sthe sales order item and has two keys - sales order number and item number. 
    the key was created:
    BEGIN OF KEY,
         SALESDOCUMENTNO LIKE VBAP-VBELN,
         ITEMNO LIKE VBAP-POSNR,
    END OF KEY,
         MATERIAL TYPE SWC_OBJECT,
         SALESDOCUMENT TYPE SWC_OBJECT,
         _VBAP LIKE VBAP.
    ND_DATA OBJECT. " Do not change.. DATA is generated
    Here is a object instantiation - just build the key with the two fields - then when you call the macro - you pass the one field that already has both keys in it.
    GET_PROPERTY SALESDOCUMENT CHANGING CONTAINER.
      SWC_CREATE_OBJECT
        OBJECT-SALESDOCUMENT 'VBAK' OBJECT-KEY-SALESDOCUMENTNO.
      SWC_SET_ELEMENT CONTAINER 'SalesDocument' OBJECT-SALESDOCUMENT.
    END_PROPERTY.

  • HT5137 I have just updated my iphone to IOS but can't close apps I used to send them into wiggle then close but with IOS they don't wiggle they just open up again ......HELP

    I have just updated my iphone to IOS but can't close the apps I have open, I used to send them into wiggle mode then close but now I have updated they won't wiggle they just open up again................HELP

    shartez wrote:
    .. can't close the apps ...
    How to Close Apps
    Double Tap the Home Button... Then swipe the App (not the icon) Upwards... Tap the Home Button when finished.
    From Here  >  http://support.apple.com/kb/HT4211

  • Attach Documents using Generic Object Services

    With reference to Manual Bassani's SDN Contribution of code examples on how to attach documents using Generic Object Services - we have found that since implementing ECC 6 the following code no longer works (at the end of page 9):
    CALL CREATE ATTACHMENT SERVICE FROM TOOLBAR
    WHEN 'ATTACH'.
    CALL METHOD MANAGER->START_SERVICE_DIRECT
    EXPORTING
    IP_SERVICE = 'CREATE_ATTA'
    IS_OBJECT = OBJ
    EXCEPTIONS
    NO_OBJECT = 1
    OBJECT_INVALID = 2
    EXECUTION_FAILED = 3
    OTHERS = 4.
    It is necessary to use IP_SERVICE = 'PCATTA_CREA' to get this to function correctly.
    The original document can be found at [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

  • ı have bought second hand ipad. 17 apps which were downloaded by previous user with his or her apple id. I need to update them but when I try, ı can't update them with my own apple id. Device ask me to update with the id and password of previous user.

    ı have bought second hand ipad. 17 apps which were downloaded by previous user with his or her apple id are waiting to be updated. I need to update them but when I try, ı can't update them with my own apple id. Device ask me to update with the id and password of previous user. I tried I forgot but this didn't work.  So how can ı have my device forget the previous ID and use my own to update exsisting apps.
    <Email Edited by Host>

    Restore the device to factory settings with iTunes. 
    Then launch the App Store app on the iPad and sign in with your Apple iD and password:
    OT

  • I put together and sent 10 pictures from my granddaughter's birthday party. Is there a way of sending them with a link recipients can click on, rather than having all the pictures download as part of the email message?

    I put together and sent 10 pictures from my granddaughter's birthday party. Is there a way of sending them with a link recipients can click on, rather than having all the pictures download as part of the email message?

    Hello userlarry, do you have Mobile Me? You could use that. Or you could compress them, you would still need to send them in an email, but it would help with size limitations of emails.
    To compress them, put them in a folder and right click on the folder. You should see a Compress option. Then just drag the .zip file into your mail.
    Regards,
    Graham

  • I have an iphone 4s when I take pictures and send them to my computer or someone elses computer they so times appear upside down. Is it because I have windows? Can I do anything about this?

    I have an iphone 4s when I take pictures and send them to my computer or someone else they appear upside down. I have a window operating system. Is there anything I can do to reverse the pictures?

    OK, here's the explanation.  When you take a picture, the iPhone knows what orientation it is in (portrait, landscape, etc.) and adds that information to the picture's EXIF data so it knows which side is up.  Apple devices can decode this information and show the picture right side up when it is viewed.  However, Windows computers cannot do this.  They are not capable of decoding the orientation information added by the iPhone, so they are displayed in a default orientation (which may not be right side up).
    This only happens on Windows machines, and unfortunately there is nothing you can do about it, except use the rotation buttons in Windows picture view to orient the photo correctly.

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • How to attach a document using the Send mail component

    Hello,
    I would like to know how to attach a document in a email using the Send mail component.
    There are these nodes into the atom but I don't know how to use it.
    <attachment doc="/ds/grp/doc" pltype="xml">
              <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[@Role='S']/vpf:Msg/vpf:Body"/>
            </attachment>
    Does anyone know ?
    Thank you.

    Hello All,
    Regarding to the mail adapter, here are some updates:
    1. B1i will support sending HTML attachemnt via "Send Email" atom in B1 882 PL09. An example here:
    <attachment doc="test.htm" pltype="htm">
    <![CDATA[<html>
      <head>
        <title>Enter the title of your HTML document here</title>
      </head>
      <body>
        <p>Enter the body text of your HTML document here</p>
      </body>
    </html>]]>
    </attachment>
    2. In addition, B1i will support sending binary attachment and sending html content in Q1,2013.
    Thanks & Best Regards,
    Qiaoli

  • Get error when unzipping document using Java Class

    I am using an applet to unzip a compressed docuement. The document is compressed by a Java Rich client into a database and is going to be opened by a web application. So in order to decompress we are using an applet with the same unzip code. The rich client is working fine, but the applet is giving an error. Can anyone tell me what the following error means?? I have found no documentation on it and it is not giving me any real information.
    java.util.zip.DataFormatException: oversubscribed dynamic bit lengths tree
    I am using the Inflater class to unzip the doc.
    thanks,

    Can you be any more specifc about what you are doing?
    It may be a security issue as you are running the code in an applet.
    The other thing to look into would be the content type you are using to send the zipped data over http. When writing the zipped object into the HttpServletResponse on the server you must call
    setContentType("application/zip");
    For a quickish example see
    http://java.sun.com/developer/technicalArticles/Networking/Webserver/WebServercode.html
    This sets the content type based on the file to be returned extension.
    Hope this is helpful.

  • Cant do a file get from external server using file sender adapter with ftp

    Hi all,
    Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
    I have a requirement to do an ftp file get from an external server
    From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...).  So all firewall issues and communications are fine
    Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
    FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
    Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
    No messages appear in the RWB
    Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
    Regards,
    Mike

    Thanks for your responses.
    I have found the error messages in the File Adapter Monitor
    Scenario 1
    When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
    <b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
    Scenario 2
    When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
    <b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
    At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
    Questions
    I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
    I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
    The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
    I thought that being a Sender adapter it would inherently execute a Pull or Get command
    To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
    Has anyone experienced these issues?
    Please advise on next course of action?
    Regards,
    Mike

  • Issue at Portal when attaching document.

    Hi all,
    We have a Portal configured with SSO to SRM 6.0. The SSO works with SRM, but when we try to attach documents with SRM shopping card, a password prompt happens.
    The SSO was configured fine. Still the password prompt is happening.
    Any suggestions or hints would be really great.
    -Vivek

    Hi,
    Please check your authorisation . You don't have authorisation to attach a document.
    In SSO it should ask for  a password second time
    Check with ITS server
    G.Ganesh Kumar

  • I need to know the difference between planned SKF and Actual SKF from business view and when I can use one of them ?

    I need just to know the difference between plan SKF and Actual SKF in business example and when I use one of them.
    thanks

    Hi Salaam,
    Statistical Key Figure (SKF) is a base to allocate the cost between cost centers. Usually, common cost centers cost should allocate to respective department cost centers on monthly basis.
    Some of SKFs are: Calculating floor rent on SFT, Telephone charges on No. of units, and employees head count is with "Each" in SAP.
    Apart from Ajay's reply, you can consider the Canteen exp in an organization. Assume Admin, Fin and Mfg departments are getting food services from Canteen. Here, total monthly cost of Canteen exp should be allocated to respective departments. Here, we use SKF as total head count of each department and distribute the cost.
    Planned SKF is what you planned on the beginning of a period. (Assume head count was planned as 30 in the month beginning)
    Actual SKF is what exactly you consumed over the period. (Actual employees provided canteen services during the month is 25)
    BR, Srinivas Salpala

  • Mail crashing when attaching documents

    A friend of mine is having a problem with her iBook. When she tries to attach documents to messages, about 75% of the time Mail will instantly crash. There isn't anything particularly odd about these documents, as they're essentially always just Word docs.
    This started happening a few weeks ago on 10.4.5. She upgraded to 10.4.6 but that didn't fix it.
    Any ideas?
    -Greg

    Does she have overstuffed mailboxes?
    Search for earlier posts on this subject.

  • FI-CAX event 1102 when posting documents using BAPI_CTRACDOCUMENT_CREATE

    The event 1102 in FI-CAX has been implemented to copy "Alternative business partner for payments" to the document, when posting a document using transaction FPE1.
    Will this event aslo be executed when posting documents automatically via the BAPI BAPI_CTRACDOCUMENT_CREATE?
    If not, is there any other possibility to copy "Alternative business partner for payments" to the document, when posting a document automatically via the BAPI BAPI_CTRACDOCUMENT_CREATE?

    Thank you!
    In our system this note has not been implemented yet so this is something we need to fix.
    Do you know if event 1102 is supposed to be called when running FP60M/FP60P (mass activity: revenue distribution/Revenue distribution: Create and post documents)?
    Cheers,
    Teo

Maybe you are looking for

  • What is iLife (and other newbie questions

    googled this and went to several other sources (wikipedia, apple search) but could not find any good definitions for these terms (at least that a mac newbie could understand)    what is:  1) iOS  2) iLife  3) since i don't own any apple devices other

  • My Macbook Pro with Mavericks keeps freezing, What can I do?

    I switched from PC a year and a half ago, so the computer is still pretty new. It's been freezing a lot lately, I have 4gb ram. It'll just suddenly freeze while running programs or stop working altogether, and a few minutes ago it said I had "run out

  • Word wrapping incorrect inside JTextPane on MAC 0.5/10.4 and Linux OS

    Hello java-dev team, In my application, I am using JTextPane as a text editor to create RTF text. The problem I observed with the JTextPane on MAC OS and Linux OS flavors (I tested on Ubuntu 8.04) is: whenever I am changing any of the text property (

  • Business Area in Contract(ES22) is blank on move-out cancellation though IC Web

    Hi expert, Need help in finding the root cause for the below scenario: During move-in through IC-Web, business area field is getting populated in ECC at contract level(ES22). Then we create a move-out, business area field still remains. But when we c

  • Difference between iPhoto Library and Package

    Hi,    Out for 4 iPhoto libraries on my iMac, only my daughters is shown as "Kind" = "Package".  All others show "Kind" = "iPhoto Library". I need to move my daughters Libray to the Mac Mini Server as all or albums are gettnig too big.  All libraries