Global object Services ( GOS ) in WD4A

Hi Gurus,
does anybody know if the former Global object Services ( GOS ) are availabel in WD4A?
Any planning for transforming them to the new UI-technology?
Best regards
Andreas

Even i am looking for a standard web dynpro interface for the same.
there are no Non Dialog services for Attachments to Business objects.
Currently i am using my custom code.
Get the folder ID
  CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
   EXPORTING
  OWNER                       = ' '
     region                      = 'B'
   IMPORTING
     folder_id                   = ls_fold
   EXCEPTIONS
     communication_failure       = 1
     owner_not_exist             = 2
     system_failure              = 3
     x_error                     = 4
     OTHERS                      = 5
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
  EXPORTING
    BUFFER                = CS_ATTACH-FILE_CONTENT
  APPEND_TO_TABLE       = ' '
IMPORTING
   OUTPUT_LENGTH         = LV_SIZE
  TABLES
    BINARY_TAB            = LT_CONTENT
DESCRIBE TABLE LT_CONTENT LINES LV_LINES.
LOOP AT LT_CONTENT INTO LS_CONTENT.
LS_BIN-LINE = LS_CONTENT-LINE.
APPEND LS_BIN TO LT_BIN.
ENDLOOP.
CALL FUNCTION 'SO_LOIO_PHIO_CREATE'
IMPORTING
   LOIO_OBJECT            = LS_LOIO
   PHIO_OBJECT            = LS_PHIO
EXCEPTIONS
  KPRO_MODEL_ERROR       = 1
  X_ERROR                = 2
  OTHERS                 = 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.
LS_ACCESS-COMP_ID = CS_ATTACH-FILE_NAME.
LS_ACCESS-COMP_SIZE = LV_SIZE.
LS_ACCESS-BINARY_FLG = 'X'.
LS_ACCESS-FIRST_LINE = 1.
LS_ACCESS-LAST_LINE = LV_LINES.
APPEND LS_ACCESS TO LT_ACCESS.
CALL FUNCTION 'SCMS_R3DB_EXPORT'
  EXPORTING
  MANDT                 = SY-MANDT
    CREP_ID               = 'SOFFDB'
   DOC_ID                =  LS_PHIO-OBJID
  PHIO_ID               =
  DOC_PROT              = ' '
  OVERWRITE             = '-'
  CREA_TIME             =
IMPORTING
  DOC_ID_OUT            =
TABLES
   ACCESS_INFO           = LT_ACCESS
  CONTENT_TXT           =
   CONTENT_BIN           = LT_BIN
EXCEPTIONS
  ERROR_EXPORT          = 1
  ERROR_IMPORT          = 2
  ERROR_PARAMETER       = 3
  FORBIDDEN             = 4
  OTHERS                = 5
SPLIT CS_ATTACH-FILE_NAME AT '.' INTO TABLE LT_FILE_NAME.
READ TABLE LT_FILE_NAME INTO LS_HD_CHANGE-OBJDES INDEX 1.
READ TABLE LT_FILE_NAME INTO LS_HD_CHANGE-FILE_EXT INDEX 2.
LS_HD_CHANGE-OBJLEN = LV_SIZE.
LS_HD_CHANGE-OBJPRI = '5'.
ls_hD_CHANGE-extct = 'K'.
CONCATENATE '&SO_FILENAME=' LS_HD_CHANGE-OBJDES '.'
            LS_HD_CHANGE-FILE_EXT INTO LS_OBJHD.
APPEND LS_OBJHD TO LT_OBJHD.
CLEAR LS_OBJHD.
CONCATENATE '&SO_FORMAT=BIN' LS_OBJHD INTO LS_OBJHD.
APPEND LS_OBJHD TO LT_OBJHD.
CONCATENATE '&SO_KProObjectID=' LS_LOIO INTO LS_OBJCONT-LINE.
APPEND LS_OBJCONT TO LT_OBJCONT.
CALL FUNCTION 'SO_OBJECT_INSERT'
  EXPORTING
    FOLDER_ID                        = LS_FOLD
  OBJECT_FL_CHANGE                 = ' '
   OBJECT_HD_CHANGE                 = ls_hD_CHANGE
    OBJECT_TYPE                      = 'EXT'
  ORIGINATOR_ID                    = ' '
  OWNER                            = ' '
IMPORTING
  OBJECT_FL_DISPLAY                =
   OBJECT_HD_DISPLAY                = LS_HD_DISP
   OBJECT_ID                        = LS_OBJECT
  TABLES
    OBJCONT                          = LT_OBJCONT
    OBJHEAD                          = LT_OBJHD
  OBJPARA                          =
  OBJPARB                          =
EXCEPTIONS
  ACTIVE_USER_NOT_EXIST            = 1
  COMMUNICATION_FAILURE            = 2
  COMPONENT_NOT_AVAILABLE          = 3
  DL_NAME_EXIST                    = 4
  FOLDER_NOT_EXIST                 = 5
  FOLDER_NO_AUTHORIZATION          = 6
  OBJECT_TYPE_NOT_EXIST            = 7
  OPERATION_NO_AUTHORIZATION       = 8
  OWNER_NOT_EXIST                  = 9
  PARAMETER_ERROR                  = 10
  SUBSTITUTE_NOT_ACTIVE            = 11
  SUBSTITUTE_NOT_DEFINED           = 12
  SYSTEM_FAILURE                   = 13
  X_ERROR                          = 14
  OTHERS                           = 15
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LS_OBJ_A-OBJKEY = IM_VBELN.
LS_OBJ_A-OBJTYPE = '/IRM/GCR'.
LS_OBJ_B-OBJKEY = LS_FOLD.
LS_OBJ_B-OBJKEY+17(17) = LS_OBJECT.
LS_OBJ_B-OBJTYPE = 'MESSAGE'.
CALL FUNCTION 'BINARY_RELATION_CREATE'
  EXPORTING
    OBJ_ROLEA            = LS_OBJ_A
    OBJ_ROLEB            = LS_OBJ_B
    RELATIONTYPE         = 'ATTA'
  FIRE_EVENTS          = 'X'
IMPORTING
  BINREL               =
TABLES
  BINREL_ATTRIB        =
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
  WAIT          =
IMPORTING
  RETURN        =
Abhi

Similar Messages

  • Global Object Services (GOS) Attachments Deleted from Maintenance Task List

    We use the Global Object Services (GOS) Attachments function to attach Word and Excel Documents to Maintenance Task Lists (transactions IA02, IA09). Recently we noted that more than 300+ Attachments had been deleted/removed from the GOS list visible via IA03/IA09. We are at a loss for explaining how this occurred- all Attachments appear to have been deleted at once/instantaneously. We can see the underlying tables (SGOSHIST and others) still contain entries, but we do not understand why the Attachments are no longer visible in the GOS list via Maintenance Task Lists, or how the ability to access these via GOS can be restored. This is not occurring with other PM Object Attachments - only Task Lists. Any help or suggestions appreciated.

    Is it possible that there was some authorisation change in a role associated with task lists? That would be consistent with the immediate loss - but only in the task list area. Another thought - has anyone been doing any programming in the Generic Object Services Business Add-Ins (perhaps for another module?) - They might have inadvertently clobbered your use?
    Do you use the GOS notes functionality? Does that still work?

  • Global object Services ( GOS ) for service users

    Hi,
    It is possible to have GOS ( Global object services ) ability for Service user type?
    As far as I know only Dialog users has that ability.
    Thanks,
    Krishna.

    it is not possible for service-users. never was.

  • Regarding Generic Object Services (GOS)

    Hi
    Is there any Tcode/Std. Report where I can see the document attached through Generic Object Services (GOS).And which tables are involved in Generic Object Services (GOS).Whenever I attach document entry goes in SOOD table.What are other tables for this.
    Thanks in advance.

    Hi ajit,
    Welcome to SDN.
    Below is the link for complete documentation on GOS,
    http://help.sap.com/saphelp_erp2005/helpdata/en/be/3fe63659241157e10000009b38f889/frameset.htm
    Regards,
    Azaz Ali.

  • Generic Object Services (GOS) + ArchiveLink against IXOS.

    Hi all,
    I'm currently working on a project where I'm supposed to extend the Generic Object Services (GOS) Icon with a menu item for storing documents down to IXOS through ArchiveLink, and a functionality for retrieving them / attaching them to an email.
    So far, I concluded that I need to create a class, whose superclass is CL_GOS_SERVICE, and at least override the EXECUTE() method with some functionality.
    The ARCHIVOBJECT function group contains some (probably)
    useful function modules - like ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_BYTES / ARCHIVOBJECT_GET_TABLE.
    My problem so far is that I don't see the "connection",
    ARCHIVOBJECT_CREATE_FILE takes ARCHIV_ID, DOCUMENT_TYPE
    and PATH as arguments (parameters), and returns ARCHIV_DOC_ID - an unique ID to the stored document
    But how is the link between the archived document and the business object (i.e. the current object of the transaction I'm in) maintained?
    Thanks in advance,
    regards,
    Lars Wilhelmsen

    Hi again,
    Thanks for the answers, they were very helpful,
    but the customer isn't happy with the "Store business Documents" and it's Drag n' drop interface.
    I'm to develop a new GOS menu item, that will show
    a normal Open File dialog, and a following popup
    where the user can change the document title shown
    in the Attachment list.
    ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_TABLE
    along with ARCHIV_CONNECTION_INSERT should probably
    cover the functionality I need.
    I know both the BOR type ID and the object ID is
    available to me in the Execute() method of the GOS menu handler I'm overriding, but for the ARCHIV_CONNECTION_INSERT, I'm supposed to supply an AR_OBJECT parameter (I know that this information is stored in the TOAOM table), but I have no clue where to get this information for the current object I'm trying to add an attachment for.
    Regards,
    Lars Wilhelmsen

  • Generic Object Services (GOS) feature to be activated on QP01/02/03

    My client want to have the Object Services(GOS) capability turned ON on
    QP01, QP02 and QP03 screens which will allow them to link documents to
    the Inspection Plan. And right now that feature/icon is not there on
    QP01/QP02/QP03 screens. When I tried to activate the 'Services for
    Object' on those screens, I got the message 'No Service Available'.
    Could anyone please provide a solution to turn on that feature for the
    Inspection Plan screens?
    Thanks & Regards,
    AnjiReddy Pulagam.

    You need to implement a BADI to generate the GOS toolbar for that transactions, and put this code inside:
    DATA: LO_MANAGER  TYPE REF TO CL_GOS_MANAGER,
              LA_OBJ      TYPE BORIDENT.
    * Set object Key
        LA_OBJ-OBJTYPE = 'BUS1191'. "Bussiness object for inspection plan
        LA_OBJ-OBJKEY  = inspectionPlanIdentifier. " Inspection plan number
    * GOS toolbar
        CREATE OBJECT LO_MANAGER
          EXPORTING
            IS_OBJECT    = LA_OBJ
            IP_NO_COMMIT = SPACE
          EXCEPTIONS
            OTHERS = 1.
    Regards

  • Enable Generic Object Service (GOS) for CS01-CS03

    Hi Gurus,
    ¿how I can enable GOS service in CS01-CS03 to use attachments, Workflow, notes, etc.?
    Thanks.

    Hi,
    Go through following links which will help you get details about GOS :
    Generic Object Services (GOS)
    http://wiki.sdn.sap.com/wiki/display/SI/FrequentlyaskedquestionsaboutGenericObjectServices+(GOS)
    Hope this helps.
    Regards,
    Tejas

  • 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.

  • Events available in Generic Object Services (GOS)?

    Hello everybody
    Searched around in SDN and also tried to find something useful in our system (SWO1) but can't find useful information on GOS events so I guess it probably doesn't exist?
    I'm searching a way to catch GOS events when someone adds, changes or deletes an attachment (URL) in the generic object services of an object, e.g. for a material master (BUS1001006). I'd like to create a change document for this and based on that to trigger some further processing for one of our interfaces.
    Anybody out there knowing how to achieve this?
    TIA and best regards,
    Renaud

    There's a couple of BaDIs with GOS names such as GOS_SRV_REQUEST that might help.  Otherwise I'd try using SE30 with lots of logging options set on to trace where you may be able to grab this info from.  GOS subscriptions may be another thing to look at.
    Jonathan

  • Attachments Activating Generic Object Services (GOS) in VA41/VA42 at item level

    Hi to All,
    I'm trying to manage attachments for sales document at item level.
    I've already read this wonderfull post (Activating Generic Object Services Toolbar in SAP Objects) but I didn't understand how manage attachments at item level.
    Please, if anyone has ideas of how to achieve it please share solutions.
    Thanks & Best Regards,
    Umberto

    Hi again,
    Thanks for the answers, they were very helpful,
    but the customer isn't happy with the "Store business Documents" and it's Drag n' drop interface.
    I'm to develop a new GOS menu item, that will show
    a normal Open File dialog, and a following popup
    where the user can change the document title shown
    in the Attachment list.
    ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_TABLE
    along with ARCHIV_CONNECTION_INSERT should probably
    cover the functionality I need.
    I know both the BOR type ID and the object ID is
    available to me in the Execute() method of the GOS menu handler I'm overriding, but for the ARCHIV_CONNECTION_INSERT, I'm supposed to supply an AR_OBJECT parameter (I know that this information is stored in the TOAOM table), but I have no clue where to get this information for the current object I'm trying to add an attachment for.
    Regards,
    Lars Wilhelmsen

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • Generic Object Service (GOS)

    Can anyone tell me for what documents that the GOS is available.
    Generally I need to know whether it is available for all logistics documents and whether other types if so what are the types.
    Thanks

    Hi,
    The Generic Object Services offer functions that are available in various SAP applications which are bases on Business objects.
    The generic object services can be used for ant/all/only objects of the Business Object Repository (BOR).
    This link may be helpful - http://help.sap.com/saphelp_nw04/helpdata/en/c4/3fe63659241157e10000009b38f889/frameset.htm
    Regards,
    Anand Mandalika.

  • Generic Object Services (GOS) Question

    I'm using "GOSAddObjects" to store documents but I wanted to know where/how SAP stores these document. I can't seem to find if they are saved in a table or where they go. Any help would be great.
    David

    Hi,
    it is sophisticated and there are some SAP notes. You may start with note 530792 - Storing documents in the generic object services
    regards
    Walter Habich

  • Generic Object Services(GOS)-Link to URL

    Hi,
    I have a requirement in Generic Object Services.I have to Create External Document(URL) [example:www.sap.com] in <b>background</b> for a FI document(which is viewed in Txn FB03).
    Any idea to achieve it?
    Thanks,
    S.Banukumar

    did you manage to do this?

  • Usage of "Global Object Services" in WD4A possible?

    Hi SDN,
    we are planning to develop an application as successor of an existing SAPGUI application.
    In the old app we use the GOS for the administration of attachments.
    Is there any possibility of using the GOS in the new app in WD4A?
    Thanks a lot.
    Andreas

    what i understood is you want to attatch a GOS doc from WDA application .. rite?.. We can acheive this throgh API's ARCHIV_CREATE_TABLE where you need to pass businees object types...similiarly wwe have lot many other API's to access docs...
    Reagrds
    Anuj Goyal
    Message was edited by:
            Anuj Goyal

Maybe you are looking for

  • Monthly broadband usage -- BT knows, how do I find...

    ok, so I've been forced back to BT's website again. It took 30 seconds for my blood to boil -- why is it such a poor site? The core issue I have is that I always want to communicate with BT via email, NOT via phone. That way I'm on equal terms and I

  • It's Smart Sync selective posible?

    We need technical advising about Synchronization methods on Mobile Engine 2.1 or 2.5. (The plataform is still undefined). We have to develop a customer application which have to implement management of orders. Our customer would like us to implement

  • Issue with cropping my PiP

    Well, I got the Muvipix book. But I dont think im finding a solution to my problem within the book. After inserting a Picture in Picture I need to crop out some of the new Video. So I crop it up just right. But when I save it and open to view it, it

  • Cover for nokia 113

    does anyone know where I can get a silicone skin cover for a nokia 113. I am a bit clumsey with phones but dont really want a pouch. any ideas??

  • How to fetch exactly one (e. g. the first) record in a query?

    Hi, I have some tables representing rooms, doors and keys. Each key opens one room. Some rooms have more than one door. So the depencencies are like this: key <-1-n-> door <-1-1-> room There is a view for the keys: CREATE VIEW v_keys AS SELECT ... FR