How to create a collaboration room of the SAP Portal from EJB tier.

Hi.
I have created a EJB Stateless Session Beans, and I want to create a room using the API of KM.
I have used the code mentioned in this URL: http://help.sap.com/saphelp_nw04s/helpdata/en/7d/c69c42d706c66ae10000000a155106/content.htm
It works fine it is called from Web Dynpro.
I have added in my application-j2ee-engine.xml of the J2EE Proyect.
<application-j2ee-engine>
     <reference
          reference-type="weak">
          <reference-target
               provider-name="sap.com"
               target-type="library">com.sap.km.application</reference-target>
     </reference>
     <reference
          reference-type="weak">
          <reference-target
               provider-name="sap.com"
               target-type="library">com.sap.netweaver.coll.shared</reference-target>
     </reference>
     <reference
          reference-type="hard">
          <reference-target
               provider-name="sap.com"
               target-type="library">com.sap.security.api.sda</reference-target>
     </reference>
     <provider-name>sap.com</provider-name>
     <fail-over-enable
          mode="disable"/>
</application-j2ee-engine>
It was deployed correctly, but when I tried to call the method the server sent me this exception:
Caused by: javax.ejb.EJBException: nested exception is: com.hocplc.speed.exception.BaseException: com.sapportals.wcm.WcmException: Exception accessing CmSystem: com/sapportals/wcm/crt/CrtClassLoaderRegistry
at com.hocplc.speed.business.ejb.facade.ProcesarSolicitudDocumentoSSBean.crearCuartoColaboracion(ProcesarSolicitudDocumentoSSBean.java:188)
at com.hocplc.speed.business.ejb.facade.ProcesarSolicitudDocumentoSSLocalLocalObjectImpl0_0.crearCuartoColaboracion(ProcesarSolicitudDocumentoSSLocalLocalObjectImpl0_0.java:991)
... 25 more
javax.ejb.EJBException: nested exception is: com.hocplc.speed.exception.BaseException: com.sapportals.wcm.WcmException: Exception accessing CmSystem: com/sapportals/wcm/crt/CrtClassLoaderRegistry
I hope that somebody can help me
Regards  in advance.
Manuel Loayza
Living La Vida JAVA

After playing with WebDynPro and PDK  - finally I have a simple list showing.  This simple example has provided me with a good starting point - it is a pity that SAP do not provide such simple examples to allow you to get your head around the concepts.
I used the SAP NetWeaver Developer Studio to produce a version of my example using a WebDynPro and a JSPDynPage (PDK). Deployed to my EP6 server and then created iVews to show then in the appropriate theme.
My thoughts on this now are that both WebDynPro and PDK have merits - both achieve same end result with various affects.  WebDynPro is clunky and PDK is not tighly integrated with the Studio (unlike the .NET one).
To use the PDK you need to understand the TAGs and the SAPDesignGuild website helps  - but would be better if the Studio presented a graphical interface much like DreamWeaver does.
SAP's direction seems to be with WebDynPro and no longer PDK  - wonder if this is truely the case ?.  SAP does have a lot of work to do in my opinion to get both products up to scratch from a useability point of view.

Similar Messages

  • How to create a collaboration room category?

    Could someone tell me how to create a new room category?
    Thanks,
    Sudha.

    Hi Sudha,
    Bydefault sap provided four room categories and if you wish to create new room categories simply rename them and give meaningful names. If you want more info browse following links which are useful to resolve issue
    1. default_category
    2. category_1
    3. category_2
    4. category_3
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/50167b97c01193e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/85/f58ece033b3349ae5509d2ea29e23b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0c/b02cf332caa74b822def646a04529f/frameset.htm
    Please reward points.
    Cheers
    dev

  • How to create a proxy to retrieve the xml file from web services

    Hi Every one,
    We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml  file from web services by initiating call through middleware tool i used earlier.
    these are the steps i intend to follow to accomlish the requirement.  
    1) middleware tool has to initiate the call to kenexa web services to  receive the xml file when it is available.
    2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
    Can any one guide me how i can create a proxy to retrieve the xml  file from web services by initiating call through other middlewre (its not PI). 
    Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.

    Thank for reply.
    The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
    Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
    Do you know some place where i can get some info about JS and acrobat?

  • How to create a collaboration room from EJB tier.

    Hi.
    I have created a EJB Stateless Session Beans, and I want to create a room using the API of KM.
    I have used the code mentioned in this URL: http://help.sap.com/saphelp_nw04s/helpdata/en/7d/c69c42d706c66ae10000000a155106/content.htm
    It works fine it is called from Web Dynpro.
    I have added in my application-j2ee-engine.xml of the J2EE Proyect.
    <application-j2ee-engine>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.km.application</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.netweaver.coll.shared</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.security.api.sda</reference-target>
         </reference>
         <provider-name>sap.com</provider-name>
         <fail-over-enable
              mode="disable"/>
    </application-j2ee-engine>
    It was deployed correctly, but when I tried to call the method the server sent me this exception:
    Caused by: javax.ejb.EJBException: nested exception is: com.hocplc.speed.exception.BaseException: com.sapportals.wcm.WcmException: Exception accessing CmSystem: com/sapportals/wcm/crt/CrtClassLoaderRegistry
    at com.hocplc.speed.business.ejb.facade.ProcesarSolicitudDocumentoSSBean.crearCuartoColaboracion(ProcesarSolicitudDocumentoSSBean.java:188)
    at com.hocplc.speed.business.ejb.facade.ProcesarSolicitudDocumentoSSLocalLocalObjectImpl0_0.crearCuartoColaboracion(ProcesarSolicitudDocumentoSSLocalLocalObjectImpl0_0.java:991)
    ... 25 more
    javax.ejb.EJBException: nested exception is: com.hocplc.speed.exception.BaseException: com.sapportals.wcm.WcmException: Exception accessing CmSystem: com/sapportals/wcm/crt/CrtClassLoaderRegistry
    I hope that somebody can help me
    Regards  in advance.
    Manuel Loayza
    Living La Vida JAVA

    Hi Sudha,
    Bydefault sap provided four room categories and if you wish to create new room categories simply rename them and give meaningful names. If you want more info browse following links which are useful to resolve issue
    1. default_category
    2. category_1
    3. category_2
    4. category_3
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/50167b97c01193e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/85/f58ece033b3349ae5509d2ea29e23b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0c/b02cf332caa74b822def646a04529f/frameset.htm
    Please reward points.
    Cheers
    dev

  • How to create Geniric data source using the SAP FUNCTION MODULE

    Hi,
    I want to create genric data source using function module
    MD_STOCK_REQUIREMENTS_LIST_API (delivered by sap)
    for this function module where I can find  Extract Structer
    or I have to create ?
    How can i use this ?
    Thanks in Advance

    Hi Shilpa,
                  Check here..........
    Using function module as the generic extractor
    Generic Delta Update using Function Module
    Document regarding R/3 extractors using function module/user exits
    Generic extractors using FM

  • UWL Help - How can i create my own task within the Enterprise Portal

    Dear all,
    I am currently working with UWL .
    I have tried the customization and those stuffs associated with UWL , and it is working properly.
    My current issue is , how can create my own task within the Portal ( not using Ad Hoc  Workflow , which is present in Portal) ?.
    If i can create my own task within portal by API or using another method , then How can i add that task link within the drop down box that is present in the Collaboration launch pad and Mytask Workset.?
    Is there any API regarding  UWL (which is useful for creation of custom tasks in Portal using Developer Studio by means of Portal Application Creation) ?
    How can i add that custom task in the drop down ?.
    I have tried the customization of existing UWL.
    I shall be grateful to those who can help me to solve this issue with links regarding the  solution of my problem's.
    with regards
    Kishor Gopinathan

    Hi Kishore,
    I am trying to do the same thing. When i am creating Collaboration Task, it has standard templates in the dropdown like "Single Step" and "Multi-Step" etc., If i want to create my own Custom Task Template and display in that dropdown, how can i do that? Your help is really appreciated.
    Thanks
    Vijay

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How to create multi garnishment order for the same garnishment document

    Hi,
    Can anyone tell me how to create multi garnishment order for the same garnishment document. I tried to copy the entry in IT0195 but the sequence field is grayed out so it will just delete the old record. What configuration should I do to make this possible?
    Thanks a lot in advance.

    hi,
    As far as I got it.
    You cannot have multiple Garnishment order but if a need arises you have to maintain it in IT216.
    For that follow this path goto PA30->pernr->194->change->Garnishment->adjustment.
    Since like order you cannot maintain adjustment also directly.
    Regards,
    Amit
    Reward all helpful replies.

  • How to create a generalized version of the detailed polygons?

    How to create a generalized version of the detailed polygons?
    I have a table of detailed polygons (100+ vertices) and I want to get generalized version of these polygons.
    For example, assume I have a polygon with 100 vertices. Distance between vertex n and n+1 is 1.0.
    I want to get geometry (generalized polygon, line or point) where distance between vertex n and n+1 is 10.0 or more (I want vertices to be considered as one vertex if distance between them is less then 10.0).
    Is it possible to create generalized version of polygons on the fly?
    Any help is appreciated.
    Thanks.

    Scenario A:
    If all of your polygons have no interaction among them (No polygon shares any boundary with any other ones).
    In this case you can use the sdo_util.simplify in 10g to reduce the vertices in your polygons which returns new polygon geometries on the fly.
    If you found that simplify is not doing exactly what you want, you can always roll out your own implementation using PL/SQL or the new SDOAPI JGeoemtry class in Java. Both will give you complete access to the coordinate arrays in a polygon and update them back to the database after you have simplified them in your code.
    Scenario B:
    If your polygons share boundaries, then the above methods will not work since the simplification process may not preserve the topology among your polygons. What you can do then is to use the Java topo package to create a new topology by adding all of your polygons to to an empty topology (which you first create in the database and then load into memory using oracle.spatial.topo.TopoMap). Once you have a topology built in the memory, you can use methods such as oracle.spatial.topo.TopoMap.changeEdgeCoords() to simplify the edges of your polygons. You can then recreate the simplified polygons from the topology. This is just a rough guide; for more details you need to check out the java doc for the various packages mentioned above which are shipped with 10g spatial.

  • How to create a temp table in the memory, not in disk?

    in sql server, you can create a temp table in the memory instead of disk,
    then you can do the insert, delete,update and select on it.
    after finishing, just release it.
    in Oracle,
    I am wonderfing how to create a temp table in the memory, not in disk?
    thanks,

    Thanks for rectifying me Howard.
    I just read your full article on this too and its very well explained here:
    http://www.dizwell.com/prod/node/357
    Few lines from your article
    It is true, of course, that since Version 8.0 Oracle has provided the ability to create a Keep Pool in the Buffer Cache, which certainly sounds like it can do the job... especially since that word 'keep' is used again. But a keep pool is merely a segregated part of the buffer cache, into which you direct blocks from particular tables (by creating them, or altering them, with the BUFFER POOL KEEP clause). So you can tuck the blocks from such tables out of the way, into their own part of the buffer cache... but that is not the same thing as guaranteeing they'll stay there. If you over-populate the Keep Pool, then its LRU mechanism will kick in and age its contents out just as efficiently as an unsegregated buffer cache would.
    Functionally, therefore, there can be no guarantees. The best you can do is create a sufficiently large Keep Pool, and then choose the tables that will use it with care such that they don’t swamp themselves, and start causing each other to age out back to disk.
    Thanks and Regards

  • How to create a snapshot report on the specific destination?

    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john

    user8779435 wrote:
    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john
    Hi,
    when prompted just input the full path with filename for example
    Enter value for report_name: /tmp/awrreport.htmlHope this helps
    Cheers

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to create a different sid in the same  system

    Hi Experts
    In one system already i have installed HP Quality center with Oracle, Now i want to install SAP on the same system. Please help me how to create a different SID on the same system.
    Thanks in advance

    Hi,
    If you are talking about host...then when you will start installation of new system it ask for SID then choose different SID...
    Thanks
    Sunny

  • How to get the spool id or how to create a spool id for the report .

    hi,
    how to get the spool id or how to create a spool id for the report .
    this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
    my requirement is to download a pdf file from the alv grid list.

    Hi Raghu,
    Execute this program.
    REPORT  ZTEST_3318                              .
    tables: usr01.
    perform send_report_to_spool.
    *&      Form  send_report_to_spool
          text
    form send_report_to_spool.
      data: loc_dest like pri_params-pdest,
            wf_listname type char12,
            wf_listtext like PRI_PARAMS-PRTXT,
            wf_copies type i,
            wf_days type i,
            wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
            wf_valid type c.
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'AP interface' to   wf_listname .
      move: 'AP interface' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = loc_dest
          copies         = 1
          list_name      = wf_listname
          list_text      = wf_listtext
          immediately    = ' '
          release        = ' '
          new_list_id    = 'X'
          expiration     = 1
          line_size      = 200
          line_count     = 65
          layout         = 'X_65_200'
          sap_cover_page = 'X'
          receiver       = 'SAP*'
          department     = ''
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wf_params
          valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    endform.                    "send_report_to_spool
    *&      Form  write_summary
          text
    -->  p1        text
    <--  p2        text
    FORM write_summary .
    data: begin of itab occurs 0,
          matnr type matnr,
          end of itab.
    select matnr
           from mara
           into table itab
           up to 10 rows.
    loop at itab.
    write: / itab-matnr.
    endloop.
    ENDFORM.                    " write_summary
    This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
    After that use that spool for your purpose.
    If Useful award point

  • How to create an install cd with the final cut pro x app if the app comes from App.Store?

    How to create an install cd with the final cut pro x app if the app comes from App.Store?

    Just copy the Application FCPX to your CD. When you want to install drag the FCPX to the Application folder and you are done.

Maybe you are looking for