GOS toolbar in SAP WDA component

Hi ,
I have a requirement to add GOS toolbar in a web dynpro ABAP component. I am able to display the toolbar in a report and also tried using the method 'DISPLAY_TOOLBOX' of the class 'CL_GOS_MANAGER'. But I am unable to use the same in WDA views.
Could anyone please help me out with this requirement.
Thanks,
Divya Posanpally

Hi Divya and Kenneth,
I had similar requirements and in my case the following documents were very helpfully for me:
Attach files to GOS with Save, Retrieve, Delete functionality in SAP Web Dynpro ABAP - Part 1
Attach files to GOS with Save, Retrieve, Delete functionality in SAP Web Dynpro ABAP - Part 2
I modified LOAD_ATTACHMENT_CONTENTS method to retrieve content from 'Store Business Document' created using function:  ARCHIVOBJECT_GET_TABLE:
DATA: LENGTH TYPE SAPB-LENGTH,
         BINLENGTH TYPE SAPB-LENGTH,
         ARCHIVOBJECT TYPE TABLE OF DOCS,
         BINARCHIVOBJECT TYPE TABLE OF TBL1024.
     CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'
          EXPORTING
               ARCHIV_ID                = 'ZT'
               DOCUMENT_TYPE            = lv_doc_type
               ARCHIV_DOC_ID            = is_atta-arc_doc_id
          IMPORTING
               LENGTH                   = LENGTH
               BINLENGTH                = BINLENGTH
          TABLES
               ARCHIVOBJECT             = ARCHIVOBJECT
               BINARCHIVOBJECT          = BINARCHIVOBJECT
          EXCEPTIONS
               ERROR_ARCHIV             = 01
               ERROR_COMMUNICATIONTABLE = 02
               ERROR_KERNEL             = 03.
ls_attacont-content_x = cl_bcs_convert=>xtab_to_xstring( BINARCHIVOBJECT ).
I added attribute ARC_DOC_ID  to ATTACHMENTS node in Component Controller Context. This value is get from TOAAT in method LOAD_ATTACHMENT_LIST.
Method DO_SAVE is modified too when a new Store Business Document is created, using functions ARCHIVOBJECT_CREATE_TABLE and ARCHIV_CONNECTION_INSERT:
DATA: BINARY_TABLE TYPE TABLE OF  TBL1024,
                 SIZE         TYPE  SAPB-LENGTH,
                 DOC_TYPE     TYPE  TOADD-DOC_TYPE,
                 DOC_ID       TYPE  SAEARDOID,
                 lv_ar_object TYPE saeobjart.
            size = xstrlen( ls_attacont-content_x ).
            cl_bcs_convert=>XsTRING_to_XTAB( exporting IV_XSTRING = ls_attacont-content_x
                                             importing ET_XTAB = binary_table  ).
               IF sy-subrc = 0.
           CALL FUNCTION 'ARCHIVOBJECT_CREATE_TABLE'
           EXPORTING
             archiv_id                      = 'ZT'
             document_type                  = doc_type
             length                         = size
           IMPORTING
             archiv_doc_id                  = doc_id
           TABLES
             binarchivobject                = binary_table
           EXCEPTIONS
             error_archiv                   = 1
             error_communicationtable       = 2
             error_kernel                   = 3
             OTHERS                         = 4
           IF sy-subrc <> 0.
           ELSE.
            SELECT SINGLE ar_object INTO lv_ar_object FROM toaom
               WHERE sap_object =  WD_THIS->GS_GOS_OBJ-TYPEID AND
                archiv_id  = 'ZT' AND
                doc_type   = doc_type.
             CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
                   EXPORTING
                      archiv_id             = 'ZT'
                      arc_doc_id            = LV_ARC_DOC_ID
                      ar_date               = sy-datum
                      ar_object             = lv_ar_object
                      mandant               = sy-mandt
                      object_id             = LV_OBJECT_ID
                      sap_object            = LV_SAP_OBJECT
                      doc_type              = LV_doc_type
                      filename              = LV_filename
                      descr                 = LV_descr
                      creator               = sy-uname
                    EXCEPTIONS
                      error_connectiontable = 1
                      OTHERS                = 2.
          ENDIF.
Regards.

Similar Messages

  • Activate GOS toolbar in WAM04 transaction

    Hi Experts,
    Can you tell me how can we activate the Generic Object Services toolbar for transaction WAM04 (disposal documents) in EHS Waste Management?
    Or write a functional specification for that?
    Thanks

    Dear Abbie
    Go through the below documentation for GOS Tool Bar configuration
    Activating Generic Object Services Toolbar in SAP Objects
    Balajee

  • How to download the attachments from GOS toolbar.

    Hi,
    I am facing a problem. I have to go to transaction ME33k and click the GOS toolbar. Then click on the attachment list. After the attachment list arrives, I need to transfer the files to the local system. The issue is that I need to do all this using a custom program. The custom program will transfer the files into the local system and then mail them to specified recipients.
    The custom program has been made but I am unable to download files from the SAP internal location to the local PC. Please advise.

    Please try the next abap code to download all applicant attachments. SAP system 6.40
    in this -  OBJECT_ID - applicant SAP number
    data: i_connections type BDN_CON occurs 0,
            i_connections_rec type BDN_CON .
    data fol_id        like soodk.
    data doc_id      like soodk.
    data: OBJCONT type SOLI occurs 0 .
    DATA: PATH TYPE CHAR255,
              COMP_ID TYPe CHAR255 .
    CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'
      EXPORTING
        CLASSNAME                = 'APPLICANT'
        OBJKEY                   = OBJECT_ID
      CLIENT                   = SY-MANDT
      TABLES
        GOS_CONNECTIONS          = i_connections
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT i_connections INTO i_connections_rec .
    move i_connections_rec-LOIO_ID to FOL_ID .
    move i_connections_rec-LOIO_ID+17(25) to doc_id .
    CALL FUNCTION 'SO_OBJECT_READ'
      EXPORTING
        FOLDER_ID                        = FOL_ID
        OBJECT_ID                        = doc_id
      TABLES
        OBJCONT                          = OBJCONT           .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT i_connections INTO i_connections_rec .
    move i_connections_rec-LOIO_ID to FOL_ID .
    move i_connections_rec-LOIO_ID+17(25) to doc_id .
    CALL FUNCTION 'SO_OBJECT_READ'
      EXPORTING
        FOLDER_ID                        = FOL_ID
        OBJECT_ID                        = doc_id
      TABLES
        OBJCONT                          = OBJCONT          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONCATENATE 'D:\GOS\' i_connections_rec-DESCRIPT '.' i_connections_rec-DOCUCLASS into PATH .
    CONCATENATE i_connections_rec-DESCRIPT '.' i_connections_rec-DOCUCLASS into COMP_ID .
    CALL FUNCTION 'SO_OBJECT_DOWNLOAD'
      EXPORTING
        DEFAULT_FILENAME       = COMP_ID
        FILETYPE               = 'BIN'
        PATH_AND_FILE          = PATH
        EXTCT                  = 'K'
        NO_DIALOG              = 'X'
      TABLES
        OBJCONT                = objcont          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP .

  • How to redefine GOS toolbar function "SEND OBJECT WITH NOTE" for deliveries

    Hello Abapers,
    for inbound and outbound deliveries (tcodes VL01N, VL02N, VL03N, VL31N, VL32N, VL33N) I have to replace the GOS toolbar function SEND OBJECT WITH NOTE with a redefined function matching the following specifications:
    - Title field needs a different content
    - Text (note content) should be filled by default, maybe with standard text, but can be overwritten
    - All attachments in the attachment list of the object should be included by default or be selectable thru an additional button
    Also possible could be an addiitonal toolbar function SEND ATTACHMENTS WITH NOTE as a copy of SEND OBJECT WITH NOTE.
    Although I checked the SDN forums for a matching solution, I couldn't find one in tons of GOS threads.
    Perhaps someone had solved a similar problem to send obejct with notes from GOS toolbar with several of the object's attachments.
    Maybe some GOS classes have to be redefined for that, but this should only be available for deliveries, not for the other BOR types.
    I'm waiting for your ideas.
    Best regards,
    Klaus
    Edited by: Klaus Babl on Feb 16, 2012 10:13 AM

    No the list of steps done to solve the issue:
    1. Copy of class CL_GOS_SRV_SEND_OBJECT to new class /SIE/IS_BSD_GOS_SRV_SEND_ATT.
    2. SM30 for table SGOSATTR: New entry for new service ZSO_SENDATT for the new class.
    3. Copy of methods ON_SERVICE_SUCCEEDED, CHECK_STATUS, CREATE_ROOT_ITEM and ON_LINK_CREATED from class CL_GOS_SRV_ATTACHMENT_LIST to the new class.
    4. New code added to the top of method CHECK_STATUS to show the service for deliveries only:
    IF  is_lporb-typeid  NE  'BUS2015'
    AND is_lporb-typeid  NE  'LIKP'.  
        ep_status = mp_status_invisible.
        EXIT.
    ENDIF.
    5. Copy of function group SAPLSGOS_OUTBOX and function module SGOS_SEND_OBJECT_WITH_NOTE to own copies.
    6. Before calling cl_bcs=>short_message  there are several steps to do:
    - CALL METHOD cl_binary_relation=>read_links
    - CALL FUNCTION 'SO_DOCUMENT_READ_API1' for all links
    - cl_document_bcs=>create_document for all those documents (we are using types ATTA, NOTE and URL)
    - APPEND those created documents to the attachment table and pass it to i_attachments of cl_bcs=>short_message
    Solved issue!
    COMMENT: This SDN wiki document is outdated and doesn't work any more:
    http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-SendingGOSattachmentstoanemailaddress
    Best regards,
    Klaus

  • Embed GOS toolbar on the application toolbar

    Hi Techies,
    Can we embed the GOS toolbar (not the icon which comes by default) on the application tool bar of a Z-Transaction?

    Google search
    http://www.google.co.uk/#hl=en&source=hp&q=sapgosincustomprogram&btnG=GoogleSearch&meta=&aq=f&oq=sapgosincustom+program&fp=2b5b11435ced62e0
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3414700)ID0044424050DB01771510453548909121End?rid=/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3&overridelayout=true
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3;jsessionid=(J2EE3414700)ID0044424050DB01771510453548909121End

  • Open a file like Gos toolbar

    Hello,
    I need in a ALV list, view file that file corresponding in each line(with double click), i go to GOS toolbar and i can open or save the file that i want, but in my program i only can download the file with SO_OBJECT_DOWNLOAD function.
    Anyone can help me.
    Best Regards.
    Eduardo Paiva

    Hello,
    With the function SO_OBJECT_DOWNLOAD i do the download of documento to SAP WORKDIR (CALL METHOD cl_gui_frontend_services=>get_sapgui_workdir) and with method CALL METHOD cl_gui_frontend_services=>execute i open the document.
    Problem solved.
    Best Regards.
    Eduardo Paiva

  • Opened SE80 & tried creating WDA Component. Layout page not displaying

    Dear All
    I am new to WDA. I would like to create a WDA Component. I opened up SE80, the layout tab doesn't seems to be loading. It shows page cannot be displayed. Kindly let me know what else I need to do.
    I read in help portal, they mentioned to active ICM/ICF I am not sure where to do this. Kindly advice.
    Thanks in advance
    Kind Regards
    Ramamoorthy D

    Kindly go through below link:
    [Web Dynpro ABAP Configuration|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm]
    Also check following things (which are generaly not required in normal enviornment):
    1) Check host file entry with server addres and server name
    goto start-> run-> type 'drivers' ->etc-> open host file in note pad -> make server entry
    2) check proxy settings of browser
    tools->internet options->connections->lan settings-> advanced->exceptions
    Regards,
    Saket

  • Problem in ECM involving HRECM00_PLANNING_OVERVIEW(standard WDA component)

    Hi Guys,
    I am currently working in HR module(ESS/MSS).Here we will have to use the standard WDA component HRECM00_PLANNING_OVERVIEW to implement the budget approver application.
    If you launch it in portal and select a budget owner that gets populated in the first screen and click on "Review Details" button it basically calls a java web dynpro application which shows all the employess under that particular budget approver.
    If you open  HRECM00_PLANNING_OVERVIEW in se80,and goto the method "onactionopen_planning"(method which gets fired when "Review Details"  button is clicked) you will see the last stament as-
    ELSE.
              wd_this->launch_planning_ui( ).
            ENDIF.
    Double click and go inside  aunch_planning_ui().
    method LAUNCH_PLANNING_UI .
      DATA fpm                  TYPE REF TO if_fpm.
      DATA navigation           TYPE REF TO if_fpm_navigation.
      DATA key                  TYPE fpm_s_navigation_key.
      DATA target_key           TYPE string.
      fpm = cl_fpm_factory=>get_instance( ).
      " Store table of pernrs in memory so that comp planning UI can read it
      wd_assist->write_memory_for_planning(
        EXPORTING
          crevi               = wd_this->selected_crevi
          planning_pernr_tab  = wd_this->planning_objec_tab ).
      " Navigate to Compensation Planning iView
      key-key1 = 'HRECM'.
      key-key2 = 'HRECM_LAUNCH_PLANNING'.
      navigation = fpm->get_navigation( is_key = key ).
      target_key = navigation->get_key_from_alias( iv_alias = 'ECM_WDJ_LAUNCH' ).
      navigation->navigate( iv_target_key = target_key ).
    endmethod.
    This is the standard code for the method.
    navigation = fpm->get_navigation( is_key = key ). In this line its callin get_navigation and getting all the navigation parameters for the java wd application i beleive. If you go inside method get_navigation you will find in the last line its assigning
      APPEND ro_navigation TO mt_navigation.
    in mt_navigation if you go deep inside the class attributes at debug mode and see the attibute mt_target you will get an attribute application_params inside which the portal path(in bold) is getting fetched.
    application_params
    LINK_TEXT |Review Details                                                 |
    OBLIGATORY|X                                                                  |
    APPLICATIO<POP                                                               |
    APPLICATIO<ECM_WDJ_LAUNCH                                                 |
    PATH_TO_PA<ROLES://portal_content/com.sap.pct/line_manager/com.sap.pct.erp<
    Parameter_<                                                               |
    disabled  |                                                               |
    invisible | 
    I want to know from where it is getting the portal path(path_to_pa)?Because i have to change the portal path for my use.
    Please help experts.
    Thank,
    Saikat.

    Oops....forgot to close the thread.
    solved this a long time back.It can be configured by the transaction lpd_cust.
    thnx,
    saikat.

  • WDA Component Theme Change

    Dear All,
    I want to Change theme of WDA Component. Using parameter WDTHEMEROOT i m passing new theme but its not working.
    So i have tried to pass the theme programmatically using SAP-CSSURL. It is taking the theme but the theme layout is not displayed, like backgroud color or any color its not appearing on page.
    Your reply will be appriciated.
    Regards,
    KK

    Hi All,
    I am going through similar issue, We have a URL LInk in WebDynPro ABAP application. we wanted the Link color to be Pink similar to portal theme color for links in portal.
    I got this to work by setting WDFORCEEXTERNALSTYLESHEET = 'X' & disabling LightSpeed with WDLIGHTSPEED = ' ' / blank.
    So, we got the Pink color link in WD app now. but The RoadMap UI element we had in WebDynPro component is not getting generated.
    We tried to get URL color in WD abap from portal with just WDFORCEEXTERNALSTYLESHEET = 'X. then UI elements like RoadMap & Tables are all not getting populated properly. By disabling LightSpeed, everything is coming fine except RoadMap...
    Any ideas here ?
    Thanks,
    Phani

  • List of items waiting in the SAP connect component in SOST transction

    Hi All,
    In SOST transction we can see the list of items waiting in the SAP connect component
    I want to get this list of items
    Could you please tell me how I can get this list?
    Thanks in Advance
    Snehal

    Hi All,
    Thanks for your reply.
    The tables SOSC and SOOD are used to find the list of waiting objects to send.
    My problem is ,  I have to delete some specific entries  from this list through code so that these entries will not send to approver.
    Is it sufficient to delete entry of seletced objtects from table SOSC?
    Also could you please tell me about other tables like SOST?
    Thanks in Advance
    Snehal

  • WDA Personalization bug when running multiple instances of the same WDA component

    I have found an issue relative to WDA personalization that it seems to be a bug for me.
    Scenario:
    In my scenario, I have a Web Dynpro component A which has two usages of the same Web Dynpro Component B (USAGE1 and USAGE2).There is a WDA application APPL_A defined to fire WDA component A. I have defined a component configuration COMP_CONF1 for WDA component B and an application configuration APP_CONF1 for WDA application APPL_A. This application configuration applies the same component configuration COMP_CONF1 to both usages USAGE1 and USAGE2.
    Runtime behaviour:
    At runtime, I execute application APPL_A using the application configuration APP_CONF1. When I personalize something in the USAGE1 of WDA component B, the effects does not appear in USAGE2 until a page refresh is done. Obviously, as both usages uses the same component configuration at rutime the effects of personalization should be applied to both, but WDA configuration framework fails to apply the changes instantaneously to USAGE2.
    Have you expermiented this behaviour? Is there any workaround for this?

    I have found an issue relative to WDA personalization that it seems to be a bug for me.
    Scenario:
    In my scenario, I have a Web Dynpro component A which has two usages of the same Web Dynpro Component B (USAGE1 and USAGE2).There is a WDA application APPL_A defined to fire WDA component A. I have defined a component configuration COMP_CONF1 for WDA component B and an application configuration APP_CONF1 for WDA application APPL_A. This application configuration applies the same component configuration COMP_CONF1 to both usages USAGE1 and USAGE2.
    Runtime behaviour:
    At runtime, I execute application APPL_A using the application configuration APP_CONF1. When I personalize something in the USAGE1 of WDA component B, the effects does not appear in USAGE2 until a page refresh is done. Obviously, as both usages uses the same component configuration at rutime the effects of personalization should be applied to both, but WDA configuration framework fails to apply the changes instantaneously to USAGE2.
    Have you expermiented this behaviour? Is there any workaround for this?

  • How to call a CRM transaction from WDA  component

    I have requirement where i need to open the CRM transaction CRMD_BUS2000126 from WDA with the object id selected in the context. To be more specific all i need to do is to open the activity screen of a particular give activity number from a WDA component.
    I have checked out the previous threads there is a solution how to fire a transaction from WDA, but i need to send a parameter to this transaction to open that particular activity number screen.
    please advice asap.
    Thanks,
    Shyam

    Karthikeyan,
    Please make sure that flag attribute is under some node, say NODEA. NOW please select the interface node property and input element  of NODEA.
    now NODEA will be available in interface controller. Interface controller acts like a global  controller between two different components.
    So from interface controller you can take that flag value.
    pls reply back if you have any confusion.
    Regards
    Srinivas

  • SAP ERP Component

    Most of the SAP ERP Component has been installed by the client but some are not installed as the client is saying that it not applicable in thier system, is there anyone can verify if the current SAP ERP Component of the client is good enough for the Integration configuration of the Cloud for Travel and thier SAP ERP.
    Attached is the list of SAP ERP Component that client has in thier system.

    Hi Joey,
    this looks like the customer installed all FI/CO relevant components but no components for employee master data or payroll processing.
    If the customer doesn't use the ERP system for their HCM processes, this looks ok for me.

  • Naming Standards for SAP's Component Model Objects....

    In using SAP's Component Model, Scenario 3, there's a great deal of confusion in trying to version tracks, sc's, dc's, etc.
    Since SAP does not currently have Best Practices for the use of the NWDI and the Component Model, can someone else provide me with some advice?
    Thank you

    Hi Peggy,
    to find out more about all the NWDI terms it is a good idea to first read the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/01/9c4940d1ba6913e10000000a1550b0/frameset.htm">architecture manual</a> about NWDI/JDI.
    Regards,
    Benny

  • SAP NetWeaver component naming (and numbering)

    I have noticed this week (10-Oct-2005) that a number of the NetWeaver components have been renamed. For example, Enterprise Portal now seems to be called NetWeaver Portal, etc.
    What is the next 'evolution' of SAP NetWeaver component naming (and version numbering)?

    Hi,
    Just to add to my colleagues response. The SAP NetWeaver components are actually going away (they still exist for historic reasons). The new approach will start with SAP NetWeaver 2004s.
    Because of the growth of SAP NetWeaver technology and the reuse of features from one component in another and in new capabilities there is little sense in retaining the components naming.
    Is BI still BI if new functionality means you always access it through a portal for admin and query execution?
    So as the portal needs J2EE, BI will requires ABAP, J2EE, Portals, kmc, and BI from SAP NetWeaver. Is this the same old BI? We don't think so.
    This simply stops making sense to have pigeon holing component names on an ongoing basis especially when you start really blurring the lines between 'components'. They do not work!
    So SAP is now delivering SAP NetWeaver features and functions as IT Practices and IT Scenarios. These replace the component based rollout of SAP NetWeaver. For more information see the SAP service marketplace (http://service.sap.com/netweaver)
    You will still see the SAP NetWeaver 'fridge' slide as this is showing capabilities of SAP NetWeaver (example: BPM and Integration broker). Their will be more and more capabilities added as we add more meaningful groupings of technologies (example of recent ones: SAP NetWeaver MDM and Visual Composer).
    So, in short the component names are going away and being replaced by IT Practices/IT Scenarios.
    I hope this helps,
    Mike.
    P.S. Release numbers also history for SAP as we don't have components - so you will only see SAP NetWeaver release names like 2004s.

Maybe you are looking for

  • Printing problem with EPSON DOT MATRICS 1600

    Dear All, I am doing the reporting package, and need to print smartform on printer: EPSON DOC MATRICS 1600. But the problem is: 1. if print from SAP using device type: CNEPSON, all the contents on the form which should be display on one line becomes

  • Writing XMP to multiple file formats (PDF, JPEG,  TIFF, etc)

    Hi, I am developing a server-side component that embeds XMP data into a file (of various formats) and then provides these files for client download. I have been using the XMP toolkit for generating the metadata, however i now have the problem of gett

  • Droid incredible 2 phone calls can't be answered

    If my Android Incredible 2 is in the sleep mode and the screen has gone dark when a call comes in the slide answer feature does not work.  It is a brand new phone so I have not uploaded apps (some internet posts claimed too many apps wrecked the answ

  • Why has Media Encoder stopped working?

    Hi, I've been using media encoder to output files. It was working fine but it's suddenly stopped. All I get are 24 kb files. Has anyone had any experience with this issue? Any insight would be greatly appreciated. Thank You ! Johnny

  • How to change "button in region position" to "button among items"

    Is this possible at all? And vice versa ? Rene