Quantcast
Channel: SCN : Discussion List - Web Dynpro Java
Viewing all 1219 articles
Browse latest View live

How to Invoke webdynpro java application of 7.31 in EJB through SAP Portal 7.31

$
0
0

I have developed a Web Dynpro Java Application & the requirement is it should run in background daily in Sap Portal 7.31

For this We have developed a Web dynpro java 7.3 application & created a EJB project for scehduliong job in portal.

Application is working properly & EJB project is working properly,but  when we add Web dynpro java application in EJB project & scehdule in portal .it si giving an error.

 

Once the Application runs on schedule it is giving an "Error" as the Status

 

 

  This is the code in EJB ,but it is not working...]

 

public void onJob(JobContext jobContext) throws Exception

{

 

 

 

InitialContext ctx = new InitialContext();

 

 

 

String lookupString = "company.com~grpassign.ear";

 

 

 

Object obj = ctx.lookup(lookupString);

 

 

 

TestComp ejbHome = (TestComp)javax.rmi.PortableRemoteObject.narrow(obj,TestComp.class);

 

Grpassign ejbHome = (Grpassign)javax.rmi.PortableRemoteObject.narrow(obj,Grpassign.class);

 

 

ejbHome.wdDoInit();

 

 

 

 

 

 

 

 

 

}


NetWeaver 7.3- can not see Context tab in view

$
0
0

Hello,

we have Netweaver 7.0 and we are checking the 7.3.

I'm can not see the Context tab in the view that i created.

Is something missing in the installation?

Thanks

Moshe

How to highlight an input field at runtime ??

$
0
0

How to highlight an input field at runtime ??

Failed to resolve connection parameter for JCo Destination

$
0
0

I just installed NW73; ran initial configuration successfully.  Migrated a WDJ application to 7.3 that was developed in 7.0; also migrated Models to use ARFC3 model.  Deployed WDJ application successfully to NW73 server.  I've created RFC JCO destinations (TK_RFC_METADATA_DEST & TK_MODELDATA_DESK) using NWA-->Configuration-->Infrastructure-->Destination.

 

 

When I ran the application, getting the following error:  [any help resolving this issue is appreciated]

 

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session 815d589d196e11e382e900000093f012. The causing exception is nested. RID=81544473196e11e3939200000093f012

    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:661)

    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:347)

    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:325)

    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)

    at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)

    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)

    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)

    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:453)

    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)

    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)

    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)

    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)

    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)

    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)

    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:462)

    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:270)

    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Caused by: com.sap.tc.webdynpro.progmodel.context.DictionaryException: TypeBroker failed to access SLD: Error while obtaining JCO connection.

    at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getScalarType(DictionaryHandler.java:378)

    at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getDataType(DictionaryHandler.java:126)

    at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:438)

    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:1002)

    at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:294)

    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:974)

    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:978)

    at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:67)

    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:205)

    at com.sap.tc.webdynpro.progmodel.components.Component.getCustomControllerInternal(Component.java:668)

    at com.sap.tc.webdynpro.progmodel.components.Component.manageExternalContextMappings(Component.java:305)

    at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:265)

    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)

    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:586)

    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1453)

    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:658)

    ... 46 more

Caused by: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.

    at com.sap.tc.webdynpro.services.datatypes.core.DictionarySetup$1.fillSldConnection(DictionarySetup.java:51)

    at com.sap.dictionary.runtime.ProviderFactory.internalResolveLogicalNameToJCODestination(ProviderFactory.java:437)

    at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:361)

    at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:198)

    at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:161)

    at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:96)

    at com.sap.dictionary.runtime.DdDictionaryPool.makeDictionary(DdDictionaryPool.java:75)

    at com.sap.dictionary.runtime.DdDictionaryPool.makeDictionary(DdDictionaryPool.java:63)

    at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:230)

    at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getScalarType(DictionaryHandler.java:370)

    ... 61 more

Caused by: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:153)

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:161)

    at com.sap.tc.webdynpro.services.sal.sl.core.SystemLandscapeInternal.getJCOClientConnectionUnMapped(SystemLandscapeInternal.java:64)

    at com.sap.tc.webdynpro.services.datatypes.core.DictionarySetup$1.fillSldConnection(DictionarySetup.java:32)

    ... 70 more

Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for 'TK_RFC_METADATA_DEST'

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:603)

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:428)

    at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:237)

    at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:222)

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:84)

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:151)

    ... 73 more

Caused by: java.lang.NullPointerException: while trying to invoke the method java.lang.String.equals(java.lang.Object) of an object loaded from field com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.userDefinition of an object loaded from local variable 'this'

    at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:532)

    ... 78 more

Reasons for EJB Models in Webdynpro JAVA

$
0
0


Hi All,

 

Could you kindly share the primary reasons for usage of EJB Models in Webdynpro JAVA?

 

Best Regards,

Suresh S

Adaptive RFC Model Import in NWDS 7.0

$
0
0

Hello All,

 

I am trying to Import a RFC function using Adaptive RFC Model Approach in NWDS 7.0.

 

I am facing challenge in the following step which doesn't allow to proceed further.

 

PFB the screenshot.,

 

Already configured the necessary Jco Destination for ModelData and Metadata Instances at Portal Content Administration level.

 

Next/Finish button is greyed out. We cannot proceed further.

 

Kindly suggest me to resolve this case.

 

 

 

RFC Model.png

 

Best Regards,

Suresh S

UME Exception on use of ume api in webdynpro java

$
0
0

Hi Experts,

 

 

I am using UME api to fetch user details from portal.My scenario is i am fetching set of users from backend and need to get the user details from portal using UME api.

 

am using below code to fetch the user details.

 

 

IUser user = UMFactory.getUserFactory().getUserByUniqueName(signum);

 

but am getting below exceptions.

UMException:User found, but unique name "xxxxx" is not unique!Caused by: null1490

UMException: User "xxxxx" does not exist.Caused by: null1487.

 

I know that below exceptions are occuring because either user is not unique or user is not avilable in portal.But i dont want exception to be triggered in such case.Instead is there any method to which i can pass users from backend and check if user exist or not and then fetch user details and also if user is not unique also i want to display the user details.

 

Please help me out with this.

 

 

Thanks

Anusha

How to open new browser window by using webdynpro JAVA

$
0
0

Hi friends,

 

How to open new browser window by using webdynpro JAVA.?

 

My Requirement is, when I click on “LinkToAction” UI element in Table. That output is display the another browser window.

 

 

I create method in “LinkToAction”.

 

inti=wdContext.nodeSrcResultNode().getLeadSelection();  

            

StringresName=wdContext.nodeSrcResultNode().currentSrcResultNodeElement().getResName();

 

Output for    resName:xyz & trainings.html

                       

StringresURL=wdContext.nodeSrcResultNode().currentSrcResultNodeElement().getResURL();

 

Output for   resURL =documents/xyz/Folder View/Knowledge Content/blogs/2010/06/xyz & trainings/ xyz & trainings.html

            

StringportalDevURL="http://hostname:50500/irj/go/km/docs";

StringcombineURL=portalDevURL+resURL;

           

wdComponentAPI.getMessageManager().reportSuccess("combineURL:-"+combineURL);

 

combineURL: http://hostname:50500/irj/go/km/docs/documents/xyz/Folder View/Knowledge Content/blogs/2010/06/xyz & trainings/ xyz & trainings.html

 

When I open this output URL in Browser its working fine.

 

For Open the new browser window I wrote this line code:-

 

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(combineURL,"Window title",false);

window.open();

 

I got this error:

 

com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=http://hostname:50500/irj/go/km/docs/documents/xyz/Folder View/Knowledge Content/blogs/2010/06/xyz & trainings/ xyz & trainings.html.

 

How to solve this problem?


Change/Rename the existing group from (Group Test) to (Group XYZ) using Webdynpro JAVA

$
0
0

Dear Friends,

 

I have existing group (Group Test) in Portal. This group having Roles, Parent groups, Child groups and Users.

 

My requirement is:-

 

 

 

I need to change/rename the existing group from (Group Test) to (Group XYZ).

 

1.       How to change/rename the Group name? :- by using Webdynpro JAVA.

2.       If change/rename the group name. By default Roles, Parent groups, Child groups and Users, it will come under new group or not?

3.       If not:- how to assign Roles, Parent groups, Child groups and Users under new group by using webdynpro JAVA?

 

Regards

Chowdary.

Highlighting Multiple Input Fields

$
0
0

I am not able to invoke reportcontextattributemessage after definigthe attribute pointer

How to search the KM Resource file by using these input fields( like as file resource Name, File Description, Created By, Modified by, Created By Date and Modified By Date)

$
0
0

Hello

 

How to search the KM Resource files by using these input fields( like as file resource Name, File Description, Created By, Modified by, Created By Date and Modified By Date) in Webdynpro JAVA Application

 

How to get the File Resource Size and Document Relevance(%) By  in Webdynpro JAVA Application

 

I need to display table in  File Resource Size and Document Relevance(%) by using Webdynpro JAVA Application

 

I’m using EP 7.0 version,

 

Could you please help me.

 

Regards

Vijay Kalluri

Where can I find jsp file for isolatedWorkArea?

$
0
0

I wsnt to change background color and scrolling for iframe

<iframe name="isolatedWorkArea" height="100%" tabIndex="0" title="Область содержимого" id="isolatedWorkArea" accessKey="c"  frameBorder="0" style="width: 100%; height: 736px;">

but I cant't find jsp for this iframe in portal server.

Can anybody help me?

Consuming SAP Gateway Service in Java WebDynpro

$
0
0

Hello,

 

We are planning to implement SAP Gateway version 7.4 and we have choosen Central Hub System as an option. Grateful if someone could clarify on the below points;

 

1. Which is the best development platform for UI which will consume Gateway Service. These developments will be deployed on J2EE Engine (on EP) and this development will be used of desktop purpose.

 

2. How to connect J2EE Engine (EP) with SAP Gateway System? We are looking at something similar to JCo/WS Destinations. Our understanding is that credentials has to be maintained in the development (code) as a clear text to establish the connection to Gateway server. This could be a security issue.

 

We are using SAP EP version 7.30 SPS5 from quite a long time and choosen Java Web Dynpro as a UI technology in which we consume Web Service (from PI) via Web Service Destinations.

 

Thank in advance.

 

Regards,

Anil Patil

Need help to automate the procedure used in User Admin role to assign user to group

$
0
0

Hi

 

 

We are using SAP Portal 7.02 SP12 version. In User Admin role using the Export button we can get the user/role/grouop details and we can save the file in the desktop .If we want to add new users to the Group then we just need to add the user id in the saved text file. Then we can import the file to the portal using the Import tab of User Admin role. 

 

The above task needs to be done by portal administrator.

 

Can you please provide the information if its feasible to automate the above procedure by developing any application? That is at scheduled time application will run automatically. This application will read the user id, portal group and language information from a file and assign the user to group and update the logon language of user in portal data base.

 

 

Thanks & Regards,

Susmita

JDO applications SAP Netweaver 7.3

$
0
0

Hi all,

 

I have a application using Java Data Objects (EJB DC migrated 6.40 to 7.3). I have this error when I make build:

 

[jdo.enhance] WARNING: Caused by: com.sap.jdo.enhancer.util.UserException: The byte code of the class file has version 1.6. This is not supported by the JDO enhancer. Please compile with the option -target 1.5.

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.assertSupportedVersion(ClassFile.java:101)

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.<init>(ClassFile.java:364)

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile1(Enhancer.java:144)

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:192)

[jdo.enhance] WARNING: ... 45 more

[jdo.enhance] aborted with errors.

 

Ant runtime 1.07 seconds

 

Ant build finished with ERRORS

JDO enhancer failed because of unknown Error: 1

Build stopped due to an error: JDO enhancer failed because of unknown Error: 1

 

Build plugin finished at 2013-03-14 10:10:49 GMT+01:00 (CET)

Total build plugin runtime: 1.35 seconds

 

 

 

 

Build finished with ERROR

 

I have read this document (http://help.sap.com/saphelp_nw73/helpdata/en/48/257a6142ac539ae10000000a421937/content.htmhttp://help.sap.com/saphelp_nw73/helpdata/en/48/257a6142ac539ae10000000a421937/content.htm), but I don't know how to do the following and if thatwill fixmy error:

 

■  JDO applications

Applications using Java Data Objects (JDO) need special attention. Though the applications themselves can be compiled and built with JDK 6, the actual JDO classes need to be compiled with JDK 1.5 or with JDK 6 using the “-target 1.5” option. JDO classes can be easily detected by their accompanying .jdo and .map files.

The requirement to use JDK 1.5-compliant build target results from the fact that the class files of JDO classes need to be post-processed by a tool known as the JDO enhancer. The class file format was significantly changed with JDK 6. However, the JDO enhancer does only support the JDK 1.5 class file format. Therefore, JDO classes must be compiled in such a way that the JDK 1.5 format is used for the class files. This can be achieved by using JDK 1.5 directly or JDK 6 with the option “-target 1.5” in the build.

 

Can anyboy help me?

 

Thanks in advance.


First Row in a table is getting selected by default in webdynpro java

$
0
0

Hi,

The first row in the table getting selected by default in wd java.

I want to have no row selected by default.

Kindly help.

 

Regards

Gaurav

Display image and text in same column of a table

$
0
0

Hi folks,

 

I need to display such a structure in my table.

 

Column1                             Column2

Image1 + Text1                    Text12         

|_

     Image2 + Text2               Text22

     |_

          Image3 + Text 3         Text 32

 

I created a table with a TreeByNestingTableColumn(for column1) and one regular column(for column2).

 

The problem, that I am facing here is, I can display either Image or Text under Column1, but not both.

 

I need to display them together with the node icon(which will come from TreeByNestingTableColumn).

Thus, the triangular icon(node icon), image and text should be displayed in the same column.

 

How can we achieve this?

 

Thanks,

Swapnil.

Complex WebDynpro Applications

$
0
0

Hi Friends,

 

Till now I have been working on simple or plain WebDynpro Components.

Please give some complex scenarios on WebDynpro that you faced and do we have any Design Patterns that we need to follow for them.

 

Regards,

Lakshmi Prasad.

Portal Branding

$
0
0

Can anyone send me a link on  documentation for web portal branding ?

ESS Leave request --- Best Arch Design for storing attachment / document.

$
0
0

Hi,

 

Customization required on ESS Leave request iview & MSS Leave request Approval Iview.

SAP NetWeaver 7.3

 

 

Requirement:

 

For employee:

While employee is applying for Leave request under Leave request iview of ESS, he should have the functionality to upload the certificate (medical certificate, tickets etc) in .jpg or .png etc.

 

For Manager:

While manager is approving the Leave, he should have the feasibility to see the attached certificate of that particular leave request in the Leave Request Approval Iview.

Note: in the Leave Request Approval Iview, not in UWL iview.

 

Design 1: Store the attachment in R/3

1)      Customize the WebDynpro Leave request wherein the comp send the attachment to Functional module.

2)      Functional module to get the attachment .

3)      FM stores the attachment in R/3 or repository.

4)      For manager, another FM to send the link or attachment to the WebDynpro.

 

Design 2: Store the attachment in Knowledge Management.

1)      Customize the WebDynpro Leave request wherein the comp store the attachment in Knowledge Management.

2)      For manager, read or get the link of the KM document into the WebDynpro Leave request Iview.

 

 

Which is the best Architecture design?

If you have implemented similar functionality, please provide the sample or solution.

 

Kindly provide your support & it will be highly appreciated.

 

 

 

Thanks in advance,

 

N S

Viewing all 1219 articles
Browse latest View live




Latest Images