GOS(Generic Object Services) for Custom program ?

Hi All,
My requirement is to have GOS option to attach document for Custom program against each record.
Do anybody have faced the same kind of requirement,please let me know how to do.
Bharathi.J

Hi Bharathi
i to got the same requirement
through manually im attaching the files,notes and URL's
but how to attach through any class
i use CL_GOS_DOCUMENT_SERVICE in that
CREATE_ATTACHMENT method
but it is not attaching the files to my GOS menu
can u  help me
Thanks
Surendra

Similar Messages

  • Generic Object Services for Custom Object Type

    I would like some advice please. I am not an ABAP Developer but I would like to enable the generic object services for transaction PP01 for a custom object type.
    I have searched for information, which suggests that the object needs to be published using the function module SWU_OBJECT_PUBLISH so that it is available in the Business Object Repository. If this is correct, please could someone tell me (in simple terms) how I can do this (with the assistance of an ABAP developer)?
    My colleague did some debugging which seemed to suggest that in order for the generic object services to be available, the field OBJTYP needs to be populated in table T778O. Is this correct? If so, how should this be done?
    Your advice would be greatly appreciated.
    Regards
    Corinne

    Hi,
    i'm also looking for the solution you have asked for.
    if you know how to do it please reply me with the solution.
    Thanks,
    suresh

  • Generic Object Services for a standard transaction code

    Hi,
    We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit trail we have been asked to use "Generic Object Services" in transaction code ABAA.
    Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that handles the approval process in order to depreciate the asset. How to show this workflow details using Generic Object Services. This is a very critical issue, any help will be very help ful.
    Please let me know should you require more information on this topic.
    Thanks,
    Ashish

    Hello Ashish,
    i dont think activating of GOS will solve ur probs..... GOS wont create a WF item ...... try to get some kind of GOS before u do anything in SAP systems.
    u can do like this ......
    1 create custom screen where u can enter asset details and store in custom tables....and generate one custom doc.number to track.
    2. trigger WF when user submits it for approvals.
    3.Upon final approvals.--->run BDC to do postings......
    4.Give a Option to attach documents to the parking documents. ( that GOS ).
    regards
    Prabhu

  • How to create a Generic Object Services for a standard tcode.

    Hi,
    We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Object Services" in transaction code ABAA.
    Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Services. This is a very critical issue, any help will be very help ful.
    Please let me know should you require more information on this topic.
    Thanks,
    Ashish

    Instead of copyg the std fm to z, do the following,
    1. Go to se37 open FM VIEW_KURGV in display mode.
    2. Click on the spiral icon on the top.
    3. Then in menu go edit->enhancment options -> show implicit enhancement
    4. """""""""""""""""""""" kind of lines will appear in the cde, just rt click on the line at the place u want to insert the code and select
         enhancement implementation create.
    5. Give apropriate name for thi , it will inset a n place to write your code.
    This is an std sap methodology and is supported in upgradde also.

  • How to activate GOS (Generic Object Services) in Transaction SU01?

    Dear All,
    We want (for documentation reason) activate GOS (Generic Object Services) within Transaction SU01 (User Maintenance).
    I looked already around for Setup Guidelines, but did not find anything.
    Has anybody already acitivated GOS within SU01 and would explain this?
    Regards,
    Markus

    Hi Vamshi,
    SD_SWU_ACTIVE is the parameter, but it is not for SU01, it is VA02 and VA03 only.
    Thanks,
    Naga

  • How to call GOS(Generic Object service) attachment ( BMP file ) into SAP

    How to call GOS(Generic Object service) attachment ( BMP file ) into SAP script
    Example: MM02 Service object there attaching the bmp file the same file i need to call script based on the material number
    Please provide the procedure and  coding.
    Thanks in advance
    Raju

    Hi,
    The following link may be useful to u.
    help.sap.com/printdocu/.../BCSRVOBS.pdf

  • GOS: Generic Object Services (BC-SRV-GBT)

    Hi All,
    I have a requirement to implement GOS for our Netting document - object type OIA_BUS001, we need to link a url to our document. And I managed to get the toolbox to appear besides the gui title, using both the FM SWU_OBJECT_PUBLISH and the OO codes that was provided in the SAP help.
    But the results is not quite right - in both cases, when I click on the toolbox -> create, all the functions listed, 'Create attachement, 'create note', etc, are greyed out.
    Is there something that I'm missing here?
    That's not the least of my problems. When (being optimistic here) this ok, I need to find a way on how to update the url in the background....
    Appreciate if anybody have some pointers here.
    Regards,
    Nik

    Try the following code.
    /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
    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 'BUS2012', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '4700000368',  " Key  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, created programatically'.
      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://www.gtservicing.com' .
          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.

  • Generic Object Services for a Z program

    Hello all!
    I need to create a Z application for displaying master material data, related batchs, associated QA, and PP data, all in one screen.
    I need to have the Object Services Toolbox in the top of my screen just like in Material Master appears, for using it to attach files, notes, etc, being in this environment.
    I have read about first I need to create a BO in SW01, and then to call some methods in class CL_GOS_MANAGER.
    Does anyone have experience or any idea for do that?
    thank you very much,
    Ibrahim

    Slight modification,  check that a number has been entered in the field before you put the toolbox on the screen.
    report zrich_0001 .
    parameters: p_qmnum type VIQMEL-qmnum.
    at selection-screen output.
    <b>check p_qmnum <> space.</b>
      call function 'SWU_OBJECT_PUBLISH'
        exporting
          objtype                 = 'BUS2038'  "Maint notification
          objkey                  = p_qmnum
    *     CREATOR                 = ' '
    *     METHOD                  = ' '
    *   TABLES
    *     CONTAINER               =
       exceptions
         objtype_not_found       = 1
         others                  = 2.
    start-of-selection.
    I tested this with a valid notification,  I created an attachment in IW22,  then ran this program,  entered the number, hit enter, went into the toolbox, and my attachement was there.
    Regards,
    Rich Heilman

  • Urgent!!!  Issue in using GOS(Generic Object Services)

    Hello Friends,
    I have created a GOS Business object and i am using this to attach documents at the selection screen of my programs.
    The implementation is successfull and working fine. When i execute my program, i can see the GOS Toolbar, i am able to upload document from my PC and view in the attachment list too.
    But the issue is, when i end my session, and try to see attachment list by executing the program again, it comes blank with no documents. This means, once i end the session, i am not able to see the attachments that i have created earlier.
    Any helpful input will be appreciated and rewarded.
    Thanks and Regards,
    Vikas Bittera.

    Hello Vikas
    The document has to be uploaded to the <b>BDS </b>(Business Document Service).
    I will give you an example how I did this:
    1. Create business object 'ZREPORT'.  " for attaching documents to reports
    2. Call transaction <b>OAER </b>(Business Document Service) with the following parameters:
        - Class name = 'ZREPORT' (my business object)
        - Class type  = 'BO' (business object)
        - Objekt key  = leave empty or enter name of report (if empty, a popup appears)
        - Storage system = 'BDS_DB' (seemed a good choice to me)
    3. Execute
    4. In the BDS choose tabstrip "<b>Create</b>" (lower left part of screen). Right-click on the <i>Word document icon </i>and choose<i> Import File</i> from the context menu.
    As soon as you have uploaded your Word document it is visible in your business object (attachment list). When you display the attachment list and right-click on the document you can directly open it in the BDS.
    Regards
      Uwe

  • Generic Object Services for MB21

    Dear friends,
      I would like to have GOS toolbar for Material Reservation - Tcode - MB21/22/23. Since this is not available in standard I have used implicit enhancement for creating instance of the class CL_GOS_MANAGER when the reservation is created(MB21) and then pass the key(reservation number) once the reservation number is available using  set_id_of_published_object method of class CL_GOS_MANAGER. I have used the code mentioned in the below link. I can see the GOS toolbar in the MB21 screen and able to attach documents as well. But the problem is I am not able to view them in MB22/23 even though I instantiate CL_GOS_MANAGER  with the key(reservation number). I think apart from instantiating the object and passing the key we need to do some more code to be able to view the documents in the change and display tcodes. Let me know what i am missing.
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3fe63659241157e10000009b38f889/frameset.htm

    Dear friends,
      I would like to have GOS toolbar for Material Reservation - Tcode - MB21/22/23. Since this is not available in standard I have used implicit enhancement for creating instance of the class CL_GOS_MANAGER when the reservation is created(MB21) and then pass the key(reservation number) once the reservation number is available using  set_id_of_published_object method of class CL_GOS_MANAGER. I have used the code mentioned below. I can see the GOS toolbar in the MB21 screen and able to attach documents as well. But the problem is I am not able to view them in MB22/23 even though I instantiate CL_GOS_MANAGER  with the key(reservation number). I think apart from instantiating the object and passing the key we need to do some more code to be able to view the documents in the change and display tcodes. Let me know what i am missing.
    Set object Key
       la_obj-objtype = 'BUS2093'.
       la_obj-objkey  = rkpf-rsnum.
       IF rkpf-rsnum IS NOT INITIAL and go_manager is not initial.
           CALL METHOD go_manager->set_id_of_published_object
                EXPORTING
                  is_object = la_obj.
         else.
         CREATE OBJECT go_manager
           EXPORTING
             is_object      = la_obj
             ip_no_instance = 'X'
           EXCEPTIONS
             OTHERS         = 1.
         endif.

  • Rename file title in GOS ( Generic Object Services )

    Hi All,
    When I use GOS to attached a business document for example in ME22N ( Create PO)
    when I display the attachment list, the file will be named/title as  "Archive Link document content Storage" which based on the document type text.
    Is there any possibilities to change the filename according to the filename???
    Any GOS out there ...pls adv.
    Thanks

    Anyone have solution for this?

  • GOS(Generic Object Service) User Restriction

    Hi
    can any one help me in this issue
    how to restric the users in GOS
    Thanks
    Surendra

    GOS access is generally provided for dialogue users, if you want to restirct user you can ask your security team to change the user type to OTHER THAN Dialogue in SU01 > logon data.

  • FB03 GOS (Generic Object Services) not working at header level

    Hi all,
    We have a problem with transaction FB03 when we try to display attached image documents for Fi documents.
    At Header level we have no image.
    At post level we can see the attached image.
    How can we let the display of image list active from Header level.
    Thank you in advance.
    Kind Regards
    Mohammed

    Hi,
    I have same problem but in this case only user specific.
    2 users with same authorization. First can park the invoice, attach document and can view after document save. Then he post document and able view attachment added during park.
    But other user when upload attachment during park document not able to view same attachment when document is posted. Also strange part is when this user upload new attachment during posting other users are not able to see new attachment he has attached during posting.
    I dont see any authorization difference in two except parameter values for F02, F03 and FP is different.
    Can anybody tell me how this can be resolved?
    Thanks,
    Bharati

  • GOS - Generic Object Services - Change dynamically the title of attachments

    Dear Experts,
    how can I change dynamically the title of the single attachment in the attachment-list of cl_gos_manager?
    I hope you can help me.
    Thanks in advance.

    Thanks for reply.
    I solved the problem by the following way:
    - Function ARCHIV_GET_CONNECTIONS for getting all linked documents
    - Showing list in popup with ALV-Grid
    - SET HANDLER handle_double_click
    - Function ALINK_DOCUMETS_DISPLAY_MIX for viewing selected document on popup
    Marco

  • How to use Generic Object Services(GOS) for each table control record.

    Dear Expert,
                       I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but  i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
    Thanks in Advanced
    Bhuwan Tiwari
    Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
    Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM

    You haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality.  You need to provide more information to resolve an issue like this.

Maybe you are looking for

  • Enhanced 3 fields unavailable in BI after DS enhancement

    I did datasource enhancement in R/3 to add 3 fields into DS "0FI_GL_4". Then I go to RSA6 to click unhide for those 3 fields, activate DS. And then I put coding in CMOD. After that I replicate DS to BW system. I found those 3 fields are existing in D

  • BPEL Async usecase

    Hi, Any design thoughts on the below use case: I have a BPEL process that reads order header messages from jms queue A and another BPEL process thats read order line items messages from jms queue B. orderid is the key id that is present in both the m

  • Firewall identifies bridge cs5.1 Extensions\...\plugins\xslt.dll as dangerous module

    I'm running Photoshop CS5 X64 on win7 64. Online Armor FW advises against loading xslt.dll on pshop launch, describing it as a dangerous module and determining it to be a virus or dangerous program. Can't find anything on the net on this dll when loc

  • Clean out library

    I preparation for dropping another 2GB of RAM into my iMac and upgrading to Lion, I want to do some serious maintenance on my Mac. I've installed and deleted countless applications since 2006 and suspect there are lots of old preference files and oth

  • I have troubles with listeners on a movieclip. does anybody can help me?

    I have been working with this for two days and i cant make it work.......I am going crazy.... Ok i have this code if someone can help... i will appreciate that A LOT. The thing is if i compile the program everything works well, if i upload it or test