Issues in using KM APIs in Webdynpro

we have an issue.
We have an application written in servlets to retrieve KM attributes.
We are now trying to embed it with webdynpro. We just extracted what we require from servlet code and used it in WebDynpro.
But from the errors it is showing what we understood is that the objects are not supported by WebDynpro or may be they are deprecated.
So what we want to know is that
Whether we will be able to call the servlet itself from webdynpro
Where we will get later versions of KM APIs and how to use it.
Whether the approach we take is wrong
This is our action part
public void onActionon_retrieve(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionon_retrieve(ServerEvent)
     IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
                         //IUser serviceuser = WPUMFactory.getUserFactory().getEP5User(request.getUser());
                         ResourceContext c = new ResourceContext(serviceUser);
                         // Retrieve a resource from the KM repository framework
                         IResource r = ResourceFactory.getInstance().getResource(RID.getRID("/documents"), c);
                         // read some information from the IResource and print it on the
                         // servlet request
                         //s.append("<b>Access RID</b>: "r.getAccessRID().toString()"<br>");
                    //     s.append("<b>Display Name</b>: "r.getDisplayName(true)"<br>");
                    //     s.append("<b>Properties list</b>: "r.getProperties().toString()"<br>");
                    //     s.append("<b>Current user</b>: "r.getContext().getUser().getDisplayName()"<br>");
                    String s = r.getproperties.toString();
    //@@end
Can anyone please help us on what to do?
Thanks
gayathri.

Hi Gayatri
Did you get a chance to complete the above mentioned task.If so please suggest me too, since I do have a simillar task for me to complete.
Thanks
Bala

Similar Messages

  • Which SCs are needed if I want to use KM related API in webdynpro

    Hi Gurus,
    I am using NWDI based development, i want to using KM api in webdynpro application. in the application, file will be uploaded using webdynpro fileupload component and stored in KM. I have read some tutorial and known which jars are needs. but I don't know which software component these jars belong to. I want to add that software component as dependent SC in my software component where my application resides.
    Any comment is appreciated.
    Best regards,
    John

    Hi,
    I was searching for the com.sap.security.api to be used in my NWDI project ... any idea in which DC I can find that library?
    Best regards,
    Martin

  • How to use EPCF eventing in Webdynpro

    Hi All,
    I have made a Webdynpro application as an iview in portal. Now i need to accomplish client eventing between this iview and any other portal iview. I learned from this link
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    that, this can be done through EPCF.
    I can very well write use the EPCM objects in EP components with the help of Javascript tags.
    But, I learned from my Webdynpro friends and these links
    Re: Javascript in webdynpro application.
    Re: Javascript
    Re: how to make use of javascript functionality in WD application?
    that, Webdynpro is strictly NOT the place for Javascript.
    So, Where and How to use EPCF APIs in Webdynpro?
    Shortly, In an Webdynpro application, where and how can i insert the following line of code.
    WDPortalEventing.subscribe("urn:com.sap.tc.webdynpro.test.portal","TestEvent",wdThis.wdGetTestEventAction());
    Please help me in this regard..
    Vijay.K

    Hi,
    Check this,
    /message/205009#205009 [original link is broken]
    Write that subcribe in the doinit method and handle the event in the action handler
    Check also this
    webdyn iviews and portal eventing:WebDynpro iViews and Portal Eventing
    /message/554249#554249 [original link is broken]
    Communication between 2 IViews on 2 different Pages
    Regards,
    Vijayakhanna Raman
    Message was edited by: Vijayakhanna Raman

  • Deployment Issue with MDM Java API exposed as Webservice using EJBS

    Hi Experts,
    I am implementing MDM Java APIS in Stateless session bean.Exposed that bean as Webservice and using that webservice in
    Webdynpro through Adaptive Webservice Model.
    I am facing following issue:
    Webservice works fine after deployment,after some number of execution webservice stops working and gives exception.After
    Redeployment of the Webservice, it starts working again works fine some number of execution.
    I am Using new MDMJava API.
    MDM Server Details: MDM 5.5 SP06
    I am using following code for connetion
    //////////////*************Getting Connection************///////
              ConnectionPool pool = null;
              String sessionId = null;
              try {
                   pool = ConnectionPoolFactory.getInstance("Server Ip");
              } catch (ConnectionException e1) {
                   System.out.println(e1.getMessage());
    //////////////*************Repository Session************///////
    CreateRepositorySessionCommand repSeession =
                   new CreateRepositorySessionCommand(p_pool);
              repSeession.setRepositoryIdentifier(p_repId);
              try {
                   repSeession.execute();
              } catch (CommandException e2) {
                   System.out.println(e2.getMessage().toString());
              String repIID = repSeession.getRepositorySession();
              //     Authenticate Repository
              AuthenticateRepositorySessionCommand autRepSeesion =
                   new AuthenticateRepositorySessionCommand(p_pool);
              try {
                   autRepSeesion.setSession(repSeession.getRepositorySession());
                   autRepSeesion.setUserName(p_user);
                   autRepSeesion.setUserPassword(p_Password);
                   autRepSeesion.execute();
              } catch (CommandException e3) {
                   System.out.println(
                        "RepSession Seesion" + e3.getMessage().toString());
              return autRepSeesion.getSession();
    //////////////*************user Session************///////
    GetRepositoryRegionListCommand regionListCommand =
                   new GetRepositoryRegionListCommand(p_pool);
              regionListCommand.setRepositoryIdentifier(p_repId);
              try {
                   regionListCommand.execute();
              } catch (CommandException e) {
                   System.out.println(e.getMessage().toString());
              RegionProperties[] regions = regionListCommand.getRegions();
              //                                 create a user session
              CreateUserSessionCommand UsersessionCommand =
                   new CreateUserSessionCommand(p_pool);
              UsersessionCommand.setRepositoryIdentifier(p_repId);
              UsersessionCommand.setDataRegion(regions[0]);
              // use the first region
              try {
                   UsersessionCommand.execute();
              } catch (CommandException e) {
                   System.out.println("UserSession" + e.getMessage().toString());
              String UsersessionId2 = UsersessionCommand.getUserSession();
    AuthenticateUserSessionCommand authUserCommand =
                   new AuthenticateUserSessionCommand(p_pool);
              authUserCommand.setSession(UsersessionCommand.getUserSession());
              authUserCommand.setUserName(p_userId);
              authUserCommand.setUserPassword(p_password);
              try {
                   authUserCommand.execute();
              } catch (CommandException e) {
                   System.out.println("User Seesion" + e.getMessage().toString());
              return authUserCommand.getSession();
    //////////////*************Destroy Session************///////
         DestroySessionCommand destroySessionCommand =
                   new DestroySessionCommand(p_pool);
              destroySessionCommand.setSession(p_repsession);
              try {
                   destroySessionCommand.execute();
              } catch (CommandException e) {
                   e.printStackTrace();
              destroySessionCommand.setSession(p_Uesrsession);
                   try {
                        destroySessionCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
    Do we need to relase the connection pool object also?
    Can anyone help me with the code how that can be achived?
    Please Reply if anyone has come accross similar issue or know what can be the solution.
    Thanks in Advance.
    Regards Shruti
    Edited by: Shruti Shah on Dec 18, 2008 12:52 PM

    Hi Nitin,
    Thanks for the prompt Response.
    Even I am guessing that its becose of Connection pool.
    I am destroying session as follows
                   DestroySessionCommand destroySessionCommand =
                   new DestroySessionCommand(p_pool);
              destroySessionCommand.setSession(p_repsession);
              try {
                   destroySessionCommand.execute();
              } catch (CommandException e) {
                   e.printStackTrace();
              destroySessionCommand.setSession(p_Uesrsession);
                   try {
                        destroySessionCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
    But I didnot find any method by which i can close realsse connection from connection pool.
    It would be great if you can help me how close or realese those connection.In MDM Console i am able to see those sessions even after destroying them.
    Regards Shruti.

  • Need help in developing a webdynpro application using UWL API

    Hi developers,
    Iam developing a new WebDynpro application for UWL using UWL API.the functionality is to dispaly the summary of UWL like number of unread items, total items.
    Iam getting the problem while deploying the application, iam getting warning while deployed the application.
    I have given all possible ways mentioned in the below forum link
    Re: Accessing PortalRuntime at runtime?
    The exact problem is coming at reference file.
    Please giude me how to move forward.
    1. Below is the error when given "tckmcbc.uwl~api" in the service entry
    deployed with warning :
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application local/UWLCountDemo for startup. Reason=Clusterwide exception: Failed to start dependent service ''tckmcbc.uwl~api'' of application ''local/UWLCountDemo''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
    2.Below is the error  when i gave PORTAL:sap.com/tckmcbc.uwl~api in the sharing refernce entry
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/UWLCountDemo cannot be started. Reason: it has hard reference to resource tckmcbc.uwl~api with type application, which is not active on the server.
    Thanks in Advance
    Sekhar.
    Edited by: sekhar c on Mar 21, 2009 11:24 AM

    Please see Kenichi Unnai in his blog "How to use UWL API for NetWeaver BPM Tasks"
    How to use UWL API for NetWeaver BPM Tasks
    The .sca-file can be found on the sap service marketplace, afterwards you need to import the .sca-file, add the SC to your "MyComponents" and then you can select your necessary DC's.

  • Start GP Process through Webdynpro using GP APIs

    Hello,
    I am using GP APIs to start my process programatically in webdynpro using the link :
    http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/33/198141f906040de10000000a1550b0/frameset.htm
    The first screen is a Webdynpro For Java Callable Object which has a Submit button ...on the click of this button i have written the code to start the process.....the process is getting started alright which i checked in NWA -> Guided Procedures -> Process Instance...but then it does not move to the next screen.....but just stays there........the structure params i am sending as blank since my process does not expose any input parameters.(as specified in the Library)....
    Any help would be highly appreciated...
    Regards,
    Anil

    Hi,
    Try this code:
    //@@begin startProcess()
         wdContext.currentContextElement().setProcessID("/Process ID of GP process/");
         IUser adminUser = null;
         IUser userRequesterUser = null;
         try {
              IWDClientUser clientUser = null;
              try {
                   clientUser = WDClientUser.getCurrentUser();
              } catch (WDUMException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              IUser user = clientUser.getSAPUser();
              String loginUser = user.getUniqueName();
              adminUser = UMFactory.getUserFactory().getUserByLogonID(/*Owner of process */);
              userRequesterUser = UMFactory.getUserFactory().getUserByLogonID(loginUser);
         } catch (UMException e1) {
              wdComponentAPI.getMessageManager().reportException("UME ERR " + e1.getMessage(),true);
              // TODO Auto-generated catch block
              e1.printStackTrace();
         try {
              IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(adminUser);
              IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(wdContext.currentContextElement().getProcessID(), userContext);
              IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
              int rolenum = process.getRoleInfoCount();
              String strRoleName = "";
              IGPStructure userStruct = null;
              // iterate over the required roles
              for (int i = 0; i < rolenum; i++) {
                   // create a new role instance by specifying the role's unique name
                   IGPProcessRoleInstance roleInstance = roles.createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                   strRoleName = process.getRoleInfo(i).getRoleName();
    //               wdComponentAPI.getMessageManager().reportSuccess("Roles - " + process.getRoleInfo(i).getRoleName());
                   // add a user to the role instance
                   if (strRoleName.startsWith("Requester")) {
                        roleInstance.addUser(userRequesterUser);
                   } else if (strRoleName.startsWith("role.")) {
                        roleInstance.addUser(adminUser);
                   Collection users = roleInstance.getUserAsCollection();
                   IUser usr = null;
                   Iterator ietr = users.iterator();
                   while (ietr.hasNext()) {
                        usr = (IUser) ietr.next();
                   roles.addProcessRoleInstance(roleInstance);
              //add values to the input parameters of the process
              IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
              params.setAttributeValue("/*Parameter Group Name of Process /", /Value to be passed*/);
              IGPProcessInstance prInstance = rtm.startProcess(process, "/Name of Process/", "This process has been started using the GP public API", userRequesterUser, roles, params, userRequesterUser);
         catch (ConnectionException e) {
               //TODO Auto-generated catch block
              e.printStackTrace();
         } catch (CommandException e) {
               //TODO Auto-generated catch block
              e.printStackTrace();
         } catch (GPInvocationException e12) {
              wdComponentAPI.getMessageManager().reportException("Invok ERR " + e12.getMessage(),true);
               //TODO Auto-generated catch block
              e12.printStackTrace();
         } catch (GPEngineException e2) {
              wdComponentAPI.getMessageManager().reportException("Invok ERR 2 " + e2.getMessage(),true);
               //TODO Auto-generated catch block
              e2.printStackTrace();
    //@@end
    Regards,
    Niraj
    Edited by: Niraj Kumar on Dec 4, 2009 8:32 AM

  • Does resteasy API have class loader issues when using via OSGi

    Does resteasy API have class loader issues when using via OSGi

    Hi Scott,
    THis isnt an answer to ur Question, but could u tell me which jar files are needed for the packages:
    com.sap.portal.pcm.system.ISystems
    com.sap.portal.pcm.system.ISystem
    and under which path I coul dfind them.
    Thnx
    Regards
    Meesum.

  • Reg using the GP APIs with webdynpro applications

    Hi Experts,
    I have been implementing webdynpro appln using GP APIs as a callable object in my application. In my webdynpro application i have been using RFCs to access data from the R/3 system.
    Are there any setting I need to do in Guided Procedures (portal) to run the application in portal.
    Can any one of you explain me regarding what are all the setting i need to do from the Guided Procedures perspective while using callable object that interact with an R/3 system?
    Also, I would be grateful for any other valuable suggestions from you regarding implementing webdynpro appln using GP APIs as a callable object.
    Thank You.
    Regards,
    Murthy J N.

    Please follow the below links for Webdynpro Development with Guided Procedures :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59
    https://www.sdn.sap.com/irj/sdn/xapps?rid=/library/uuid/73cc8084-0b01-0010-1788-b2304424605a
    Hope it helps.
    Regards,
    Shikhil

  • Issue with mapping XML to Java using SAX API

    I am using SAX API to Map XML Documents To Java. Is it possible to differentiate the elements based on the attribute rather than localname or element name in SAX API? because I am having the below xml structure. In SAX API we are processing the element values based on start/End Element name.
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <result name="response">
    <doc>
    <str name="art_id">192201910</str>
    <str name="title">test</str>
    <arr name="author">
    <str>Darrell Dunn</str>
    <str>William </str>
    </arr>
    <arr name="tax">
    <str>113243335</str>
    <str>233454666</str>
    </arr>
    </doc>
    <doc>
    <str name="art_id">192201911</str>
    <str name="title">test2</str>
    <arr name="author">
    <str>Darrell Dunn1</str>
    <str>William 1</str>
    </arr>
    </doc>
    </result>
    </response>
    I want to map the elements based on attributes such as
    classobj.art_id, classobj.title, classobj.tax[]. I have wriiten code below, but I am not getting the proper result.
    import org.xml.sax.;
    import org.xml.sax.helpers.;
    import java.io.;
    import java.util.;
    import common.;
    public class XmltoObjectHandler extends DefaultHandler{
    /* Creates a new instance of XmltoObjectHandler */
    public XmltoObjectHandler() {
    // Local SolrDocument object to collect
    // document XML data.
    private XmlDocument doc = new XmlDocument();
    // Local list of solr documents items...
    private Vector xmlDocuments = new Vector();
    // Local current solr document reference...
    private XmlDocument currentSolrDoc;
    // Buffer for collecting data from
    // the "characters" SAX event.
    private CharArrayWriter contents = new CharArrayWriter();
    // Override methods of the DefaultHandler class
    // to gain notification of SAX Events.
    // See org.xml.sax.ContentHandler for all available events.
    public void startElement( String namespaceURI,
    String localName,
    String qName,
    Attributes attr ) throws SAXException {
    if ( localName.equals( "doc" ) ) {
    currentXmlDoc = new XmlDocument();
    solrDocuments.addElement( currentSolrDoc );
    if( localName.equals("str"){
    for ( int i = 0; i < attr.getLength(); i++ ){
    if("art_id".equals(attr.getValue(i))){
    currentSolrDoc.art_id = contents.toString();
    if("title".equals(attr.getValue(i))){
    currentSolrDoc.title = contents.toString();
    public void endElement( String namespaceURI,
    String localName,
    String qName ) throws SAXException {
    public void characters( char[] ch, int start, int length )
    throws SAXException {
    contents.write( ch, start, length );
    public Vector getxmlDocuments() {
    return solrDocuments;
    public static void main( String[] argv ){
    System.out.println( "Example4:" );
    try {
    // Create SAX 2 parser...
    XMLReader xr = XMLReaderFactory.createXMLReader();
    // Set the ContentHandler...
    XmltoObjectHandler ex4 = new XmltoObjectHandler();
    xr.setContentHandler( ex4 );
    // Parse the file...
    xr.parse( new InputSource(new FileReader( "xmlfile.xml" )));
    // Display all documents items...
    XmlDocument i;
    Vector items = ex4.getxmlDocument();
    Enumeration e = items.elements();
    while( e.hasMoreElements()){
    i = (XmlDocument) e.nextElement();
    System.out.println(i.art_id+"\n");
    System.out.println(i.title+"\n");
    }catch ( Exception e ) {
    e.printStackTrace();
    Can anybody help me how to process this type of xml. Is there any other way we can do this? I am trying for two days. It is a big deadlock for me. any help greatly appriciated. Thanks in advance.

    I added my code inside code tags...
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.io.*;
    import java.util.*;
    import common.*;
    public class XmltoObjectHandler extends DefaultHandler{
        /** Creates a new instance of XmltoObjectHandler */
        public XmltoObjectHandler() {
        // Local SolrDocument object to collect
        // document XML data.
        private XmlDocument doc = new XmlDocument();
        // Local list of solr documents items...
        private Vector xmlDocuments = new Vector();
        // Local current solr document reference...
        private XmlDocument currentSolrDoc;
        // Buffer for collecting data from
        // the "characters" SAX event.
        private CharArrayWriter contents = new CharArrayWriter();  
        // Override methods of the DefaultHandler class
        // to gain notification of SAX Events.
        // See org.xml.sax.ContentHandler for all available events.
        public void startElement( String namespaceURI,
                String localName,
                String qName,
                Attributes attr ) throws SAXException {
              if ( localName.equals( "doc" ) ) {
                currentXmlDoc = new XmlDocument();
                solrDocuments.addElement( currentSolrDoc );
              if( localName.equals("str"){
                   for ( int i = 0; i < attr.getLength(); i++ ){               
                    if("art_id".equals(attr.getValue(i))){
                             currentSolrDoc.art_id = contents.toString();
                        if("title".equals(attr.getValue(i))){
                             currentSolrDoc.title = contents.toString();
        public void endElement( String namespaceURI,
                String localName,
                String qName ) throws SAXException {      
        public void characters( char[] ch, int start, int length )
        throws SAXException {       
            contents.write( ch, start, length );       
        public Vector getxmlDocuments() {
            return solrDocuments;
        public static void main( String[] argv ){       
            System.out.println( "Example4:" );
            try {          
                // Create SAX 2 parser...
                XMLReader xr = XMLReaderFactory.createXMLReader();           
                // Set the ContentHandler...
                XmltoObjectHandler ex4 = new XmltoObjectHandler();
                xr.setContentHandler( ex4 );           
                // Parse the file...
                xr.parse( new InputSource(new FileReader( "xmlfile.xml" )));          
                // Display all documents items...
                XmlDocument i;
                Vector items = ex4.getxmlDocument();
                Enumeration e = items.elements();
                while( e.hasMoreElements()){
                    i = (XmlDocument) e.nextElement();
                    System.out.println(i.art_id+"\n");
                        System.out.println(i.title+"\n");
            }catch ( Exception e ) {
                e.printStackTrace();
    }

  • Using Development Components in WebDynpro components - runtime failures

    Hi folks,
    I developed a couple of webdynpro components and those are working fine. As I found out that I had some common functionality ( for example tablesorter class) in there I decided to get that into a common java component that would be "used" by my other webdynpro components.
    Also that works fine as I have build a java component with corresponding public interfaces, attached the java component to the webdynpro components, uses the java classes in there, I can build the webdynpro components without any issues, ...
    But at runtime I get an exception telling me that basically the common class definitions cannot be found ...
    This is what I did :
    (1) Created a JAVA DC with a package with the common classes
    (2) Defined 2 public interfaces - API and Assembly
    (3) Created a J2EE Service Libary, added the JAVA DC Assembly Interface and build/deployed it ... No deployment issues. ( Also tried the same with "An external library" DC when the first one didn't work )
    (4) Added a reference in the WebDynpro DC towards the API public interface ( buildtime ) and to the Assembly public interface ( RunTime ) (-> not sure that one was necessary ).  The DC builds without any issues.
    (5) I run the WD application and get a dump ...
    Any ideas what I forgot or suggestions on solving this ?
    Thanks,
    Steven

    Thanks for your suggestions guys ...
    I deployed the libary JAR seperately with the J2EE Library DC ... that worked fine according to the deployment logs.
    And yes I referenced the project as well in the project configuration but that didn't do alot I am afraid ...
    I did some reading up about JAVA class loaders within J2EE and it seems that by default each J2EE application ( I assume Webdynpro is one as well ) will have a dedicated class loader which only loads the classes needed within the application ( plus the default ones ).  It seems that my library is not considered to be part of the application ... although by creating the link to the public interfaces I would assume it is ...
    Only other thing to remark is that all the components are developed as 'local components' ... I cannot imagine that would have anything to do with it ?
    Steven

  • Using TableLocking API in Stateless Session Bean through WD application

    Hi All,
    We have develpoed a webDynpro application which involved Jav Dictionary Table.
    We have given UI for Creation, Updation and Deletion of the table.For database connection we have used Stateless Session Bean.
    we have the requirement of Locking the Table record when one user is either editing or deleting the record of Table from UI, so any other user cannot update or delete the same record.
    To implement the above functionality, we have used TableLocking API with lifetime as userSession in the Stateless Session Bean to acquire a Lock for particular record.
    With lifetime as usersession the record should get unLocked automatically, if the session of application is expired and record is not unLocked Explicitly.
    We are calling the Session Bean from Webdynpro application to acquire a lock, When the Dynpro application expires the locked record should get unlocked automatically as the lifetime is defined as usersession,But the record remains unlocked only even after expiration of the application sessionand deadlock occurs for that record.
    So if anyone can suggest the solution for the above problem.
    Or some other method to Lock Particular Record from application.
    Thanks in advance.
    Regards,
    Shruti.

    HI,
    Can you resolve this issue?
    I have the same scenary, could you give me some tips?
    Thanks,
    Freddy F

  • Issue is TEXT_IO application API is not working in report builder 10g.

    Issue is TEXT_IO application API is not working in report builder 10g.
    TEXT_IO application api is working in report builder 6i. (Not working in upgrade from Oracle EBiz 11i to Oracle Ebiz R12)
    I saw that details in some forums, client_text_io is available for form builder 10g.
    Is any other api available for report builder 10g?
    If it is available what steps we need to do?

    All the CLIENT_% procedures are part of webutil in Forms. Forms uses the Java applet on the client PC to perform actions on the local PC via webutil. This is not possible for Reports.
    You can still use text_io on the server, but you need some other way to copy the files to/from the client PC.
    I wonder how you used the functionality in EBS R11. Even R11 uses web reports, so text_io already worked on the server, not the client PC.

  • Custom report  using KM API Error

    Hi All,
    I have to create a report using KM API. i got the custom report using KM API from sdn and I imported into my NWDS. While i compile it, it is giving me this error.
    "The project cannot be build because the classpath for com.sap.netweaver.bc.rf.common.exception.ResourceException is not found."
    I have imported all the required jar files.
    How can i rectify this error?  Could anyone help me out in this issue?
    Regards,
    Divya

    Hi Divya,
    > I have imported all the required jar files
    First, I don't know what you mean with "imported" - in any case, you should <i>not</i> put the JARs into your project but just reference these.
    Also, obviously you have <i>not</i> referenced <i>all the required jar files</i>; ResourceException is part of bc.rf.common_api.jar, which is part of portal application com.sap.netweaver.bc.rf, at least for NW2004s.
    Please use the ClassLocator tool (search the WebLogs for this term to get some initial instruction) to avoid such questions in the future. It will make your life much easier.
    Hope it helps
    Detlev

  • Uploading a file in KM using KM API

    Hi,
    How to upload a file into KM using KM API.
    Regards
    MQ

    Hi,
    Pls go thru the below code.
    public static final String uptoKm(com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource resource){
                               try {
                                       ResourceContext  contex= new   ResourceContext(WPUMFactory.getUserFactory( ).getEP5User(req.getUser( )); );
                                       IResourceFactory factory = ResourceFactory.getInstance();
                                         RID rid = RID.getRID(PATH);
                                          ICollection folder = (ICollection)factory.getResource(rid,contex);
                                           Content content = new Content(resource.read(true),"byte",-1);
                                         folder.createResource(resource.getResourceName(),null,content);
                                       return resource.getResourceName();
                                  } catch (NotSupportedException e) {
                                       e.printStackTrace();
                                  } catch (AccessDeniedException e) {
                                       e.printStackTrace();
                                  } catch (ResourceException e) {
                                   e.printStackTrace();
                                   return null;
                                  } catch (IOException e) {
                                       e.printStackTrace();
                 return null;
    Above method accept parameter of resource and return file name on sucessfully uploaded.
    best regards
    Hari.

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

Maybe you are looking for

  • My itunes wont open. Please help!

    I have a new computer, and have transferred all of my old files already etc., but when I downloaded Itunes and tried to open it, it starts up and tries to access the itunes store, then tells me there is a problem and closes it, but doesn't tell me wh

  • Error when I try to import db

    I get the following error when I try to import a DB from my machine (9.2) to a 8.1.7.4 Unix (Sol 2.8) box. I can import locally on my 9.1 fine. Anyone hab=ve any ideas? Thanks Here is the message: Import: Release 9.2.0.1.0 - Production on Wed Feb 5 0

  • Input conversion

    Which method (if it exists) can i use if I want to convert my hexadecimal input to a binary format that is compatible with DES operations?

  • Enduser doc and training material

    Hi Gurus, i m working on BI-CRM project and my role is to prepare enduser doc and training material for BI reports .project in now in realization stage.Can any one advise me how to prepare the these documents? points will be rewarded. thanks kranthi

  • Remote start 2007 Caravan

    Has anyone had a remote start installed in a 2007 Dodge Caravan?  Just want to find out what additional costs there is before I go in to purchase.  Thanks.