Can't get BAPI return node in web dynpro!!
I'm calling BAPI in web dynpro, I already map the <BAPIName>_Input->Output->Return to our custom controller context. I can get the value of some other output parameters in Output node, but can't get the return node.
wdContext->currentOutputElement is Ok, but wdContext->currentBapiReturnElement is null, what is the problem??!!!
Can anybody give me an hint, or give me a example to access the return value of Bapi??
Thank you very much!
Regards,
Xiaoming Yang
Hi Vitaliano,
Thanks for your reply.
yes, I've call the invalidate method, like this:
wdContext.currentBapi_Trip_Create_From_Data_InputElement().modelObject().execute();
//wdContext.nodeBapireturn().invalidate();//do I need this?
wdContext.nodeOutput().invalidate();
But it still can't work!
The return node is a child note of Output, does it ok?
Thank you!
Similar Messages
-
I can't get the correct node (a real beginner)
I have an XML file which looks like this:
[code<lawyer>
<Country>Singapore</Country>
<Company>Allen & Gledhill</Company>
</lawyer>
<lawyer>
<Country>Singapore</Country>
<Company>Allen & Gledhill</Company>
</lawyer>.
</Lawyers>
But I can't get the right node names and values.
Here is my code:
File file = new File("lawyers.xml");
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(file);
NodeList nlLawyers = doc.getElementsByTagName("lawyer");
for (int i = 0; i < nlLawyers.getLength(); i++) {
Element elLawyer = (Element) nlLawyers.item(i);
NodeList columns = elLawyer.getChildNodes();
for (int j=0; j<columns.getLength(); j++) {
Node col = columns.item(j);
String colName = col.getNodeName();
String colVal = col.getNodeValue();
System.out.println(colName + ": " + colVal);
}What I would like to print out would be something like this:
Country: Singapore
Company: Allen & GledhillBut I am getting extra nodes and cannot get the text values. Here is the output I am getting:
#text:
Country: null
#text:
Company: nullI don't understand this output at all. Please help me get the list of node names and values?
Thank you.
-JeffIt seems that the #text nodes represent the whitespace between the formal nodes. Also, the nodes that I want to extract have a NodeTypeValue of 1. Once I had determined that I had the correct node, I had to get its child node to get the text. Here is the final code:
File file = new File("lawyers.xml");
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(file);
NodeList nlLawyers = doc.getElementsByTagName("lawyer");
for (int i = 0; i < nlLawyers.getLength(); i++) {
lawyer = new Lawyer();
Element elLawyer = (Element) nlLawyers.item(i);
NodeList columns = elLawyer.getChildNodes();
for (int j=0; j<columns.getLength(); j++) {
Node col = columns.item(j);
if (col.getNodeType() == 1) {
String strColumn = col.getNodeName();
Node txt = col.getFirstChild();
String strValue = txt.getNodeValue();
System.out.println(strColumn + ":\t" + strValue); }
} // for each column
} // for each lawyer -
LiveCycle DS , can't get the return value of fill( arg) from Assembler class
Hi all!
I'm a have small problem , can any one help me? Please
I make a project which very similar to Product project(in
example).
1) Have Assembler class: I work correctly
package flex.samples.stock;
import java.util.List;
import java.util.Collection;
import java.util.Map;
import flex.data.DataSyncException;
import flex.data.assemblers.AbstractAssembler;
public class StockAssembler extends AbstractAssembler {
public Collection fill(List fillArgs) {
StockService service = new StockService();
System.out.print(fillArgs.size());
return service.getStocks();
public Object getItem(Map identity) {
StockService service = new StockService();
return service.getStock(((Integer)
identity.get("StockId")).intValue());
public void createItem(Object item) {
StockService service = new StockService();
service.create((Stock) item);
public void updateItem(Object newVersion, Object
prevVersion, List changes) {
StockService service = new StockService();
boolean success = service.update((Stock) newVersion);
if (!success) {
int stockId = ((Stock) newVersion).getStockId();
throw new DataSyncException(service.getStock(stockId),
changes);
public void deleteItem(Object item) {
StockService service = new StockService();
boolean success = service.delete((Stock) item);
if (!success) {
int stockId = ((Stock) item).getStockId();
throw new DataSyncException(service.getStock(stockId),
null);
some require class is ok.
2) I configure in data-management-config.xml
<destination id="stockinventory">
<adapter ref="java-dao" />
<properties>
<source>flex.samples.stock.StockAssembler</source>
<scope>application</scope>
<metadata>
<identity property="StockId"/>
</metadata>
<network>
<session-timeout>20</session-timeout>
<paging enabled="false" pageSize="10" />
<throttle-inbound policy="ERROR" max-frequency="500"/>
<throttle-outbound policy="REPLACE"
max-frequency="500"/>
</network>
</properties>
</destination>
3) My client app:
I use :
<mx:ArrayCollection id="stocks"/>
<mx:DataService id="ds" destination="stockinventory"/>
ds.fill(stocks); --> Problem here
When I run this app, The StockAssembler on the server work
correctly (i use printout to debug) . But variable stocks can't get
the return value,it is a empty list.
Please help me!Hi,
The executeQueryAsync method is “asynchronous, which means that the code will continue to be executed without waiting for the server to
respond”.
From the error message “The collection has not been initialized”, which suggests that the object in use hadn’t been initialized after the execution of the executeQueryAsync method.
I suggest you debug the code in browser to see which line of code will throw this error, then you can reorganize the logic of the code to avoid using the uninitialized object.
A documentation from MSDN about Using the F12 Developer Tools to Debug JavaScript Errors
for your reference:
http://msdn.microsoft.com/en-us/library/ie/gg699336(v=vs.85).aspx
Best regards
Patrick Liang
TechNet Community Support -
Why I can't get the cookie from this web site when I can get it from google
public static void main(String[] args) throws Exception {
// I can get the cookie from "http://www.baidu.com"
// String domain1 = "http://www.baidu.com/";
// String domain2 = "www.baidu.com";
// I can get the cookie from "http://www.google.com"
// String domain1 = "http://www.google.com/";
// String domain2 = "www.google.com";
// I can not get the cookie from "http://www.csdn.net"
String domain1 = "http://www.csdn.net/";
String domain2 = "www.csdn.net";
URL url = new URL(domain1);
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
httpConn.setRequestProperty("User-Agent", "Internet Explorer");
httpConn.setRequestProperty("Host", domain2);
httpConn.connect();
String cookie = httpConn.getHeaderField("Set-Cookie");
System.out.println(cookie);
My question is: How can I get the cookie from the web site:http://www.csdn.net?I found it in my computer , the location is: C:\Documents and Settings\zhijun\Cookies\zhijun@csdn[2].txt
and there are many characters, they are:
__utma
17226283.1339458738.1221633513.1223535733.1223539291.58
csdn.net/
1600
786595712
30107528
1029600608
29960677
__utmz
17226283.1223539291.58.57.utmccn=(organic)|utmcsr=baidu|utmctr=VB.NET%B2%BB%C4%DC+%B6%CF%B5%E3|utmcmd=organic
csdn.net/
1600
4189609856
29997389
1029910608
29960677
LastVisitedForum
b7e466c6-291a-4072-acee-15d2be78c647*b5f1380c-f04c-4682-861a-54357b14186a*0a4a010e-8694-4139-b91f-a4ee1374981b*caa7532e-956b-4661-a53f-d46e3f1a8187*8b327318-2c42-4a49-8aed-ef8c33697e7f
csdn.net/
1536
2105548800
29964700
960690608
29960677
userid
2018946
csdn.net/
1536
1900813440
29963485
771368976
29960669
__utmb
17226283
csdn.net/
1600
1849111424
29960681
1029760608
29960677
ABCDEF
X1rZPCiZupWekhlTu78xWhr2Oj5GmFwk0J%252b8COfIv7IvVh2PgEPu2V7ooeZuUnene2j%252fDKJsNnZWYBSQxVkTfunvGq%252fDYuzFALM0ugLUmppZAHgfUWgQ%252bziPRLLJyFdzUpHwfG%252fReU8SfFy588HH02NPWPsO8RjgtHym%252bcJdUOnIH5J%252bkPEj%252b%252bZwlSPb5u0M0mPQRU1gOScfY4b981MifF4ksep8sZp1Ro2ofGHIg6l%252bgJ0P0XFASz2cJU8Objo%252f
csdn.net/
1536
1900813440
29963485
770898976
29960669
QWERTOP
6695
csdn.net/
1536
1900813440
29963485
771058976
29960669
activeUserName
boxiuzhen
csdn.net/
1536
1900813440
29963485
771058976
29960669
UserName
boxiuzhen
csdn.net/
1536
1900813440
29963485
771058976
29960669
PName
542a00960558bf1690fe08696d1245f407130025d59bd14ad6430f
csdn.net/
1536
1900813440
29963485
771368976
29960669
Is this prove that the csdn web site which I can not get the cookie is not using url-rewriting? -
How can I get the return code of SQL*Plus under Win2000Pro
How can I get the return code of SQL*Plus under Win2000Pro ?
In a DOS batch script? Try ECHO %ERRORLEVEL%
-- CJ -
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
Can a PDF be imported in a Web Dynpro Application
Can a PDF be imported in a Web Dynpro Application than deployed into a New Archive and be able to displayed in the browser? Instead of creating the PDF from scratch.
I am sorry, I did find the tool menu.
I did import it and created the datasources for the form.
And I get this error messege when I deploy:
Error stacktrace:
java.lang.ClassCastException
at com.acc.demo.salestaxreturn.wdp.IPrivateSalesTaxReturnCompView$IContextElement.wdSetObject(IPrivateSalesTaxReturnCompView.java:201)
at com.sap.tc.webdynpro.progmodel.context.AttributePointer.setObject(AttributePointer.java:222)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:106)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1085)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:393)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) -
Can I Design a Forum with using web dynpro for java?
Hi All:
Can i design a forum with using web dynpro for java?
I want to design an application like a simple forum which maybe has many replies.So if i use
the UI technology "web dynpro for java", i will to create UI elements dynamically.How can i control this
dynamical UI elements to keep layout ?Hi,
yes you can do that....
for exaple if you observe SDN...
you can imagine like....
A big Transparent Container(TC)....
Inside that number of other TCs(depending upon the question nd its replies...)....
In side each TC, again around 9 UIElements....
one for menioning what is the question/reply?
other for your description of question/reply...
other for your name,
displaing your fourm point... etc...
So it will be
for(loop till your (Question+No of replies))
Create Transparent Container....
Add Childs to the Container...
Decide your layout....
In case if you want to know how to create UIElements dynamically....
http://help.sap.com/saphelp_nw04/helpdata/en/4f/07cf3dd28b5610e10000000a114084/frameset.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/dynamic%2bui%2bgeneration
Regards,
Srinivas.
Regards,
Srinivas. -
How can i get the realpath of my web application in jsf manage bean
in jsp, i can use application.getRealPath("/")
but in jsf how can i get the realpath in manage bean and initializean variable.
thanksFacesContext aFacesContext = FacesContext.getCurrentInstance();
ServletContext context = (ServletContext)aFacesContext.getExternalContext().getContext();
String rootpath = context.getRealPath("/");
i use the code like that ,it can work , but when i click a button in my web page and call a function of java bean to read a file in "rootpath" , only odd number click it do well , even number click it do nothing and navigate to a blank page.
how can i do that ,.
my english is too pool ,sorry. -
Can't get 2 VM nodes to talk to each other on OEL7
Greetings -
I am planning to install RAC 11gR2 on OEL7. I got the Oracle VM machines up and running. I can access internet successfully with no issues. Also if I am on Node-1 and ping its IP, it works fine.
But when I try to ping Node-2 from Node-1 and vice virsa, I get unreachable message.
Below is my setup hots setup:
[oracle@racdev01 Desktop]$ cat /etc/hosts
# loopback
127.0.0.1 localhost.localdomain localhost
# Public
192.168.56.71 racdev01.localdomain racdev01
192.168.56.72 racdev02.localdomain racdev02
# Private
192.168.10.1 racdev01-priv.localdomain racdev01-priv
192.168.10.2 racdev02-priv.localdomain racdev02-priv
# Virtual
192.168.56.81 racdev01-vip.localdomain racdev01-vip
192.168.56.82 racdev02-vip.localdomain racdev02-vip
# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan
Pinging both public & private IPs from node-1 to node-2 and vise-versa keeps failing:
$ ping racdev02
$ ping racdev02-priv
>> My network:
Node-1: Ethernet (enpOs8) => 192.168.56.71 (public)
Node-1: Ethernet (enpOs9) => 192.168.10.1 (private)
Node-2: Ethernet (enpOs8) => 192.168.56.72 (public)
Node-2: Ethernet (enpOs9) => 192.168.10.2 (private)
Below are the setup for my 3 adapters:
I've been trying for days to get these 2 nodes to talk to each other. I'd really appreciate your help in resolving this issue..I can't proceed with RAC installation unless I get these machines talking to each other..
Thank you so much !
@AJ1. "Note. The SCAN address should not really be defined in the hosts file. Instead is should be defined on the DNS to round-robin between 3 addresses on the same subnet as the public IPs. " You may specify as much IPs for SCAN as you wish but the first one only will be used.
2. VIPs should be on the same NICs as physical IPs.
3. Probably I missed something but I found nothing concerning 3 NICs.
4. OL7 is supported starting from 11.2.0.4.
5. It is possible to configure firewall instead of disabling it.
6. It is necessary to configure OS, create user(s) and groups according to Installation Guide or use validator rpm.
7. It is possible to configure disks with udev and not to use oracleasm. -
How can I get a list of open web pages in Firefox (in Linux)?
I would like to know how to get a list of open web pages in Firefox (in Linux), because I have a shortcut to open a web page and I want to get it to see if Firefox has the page open first so that it doesn't open duplicates.
You see the "List All Tabs" button in current Firefox versions if there are that many tabs open that you get the Tab bar scroll buttons appearing.
Add code to the userChrome.css file below the default @namespace line.
*http://kb.mozillazine.org/userChrome.css
The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
*http://kb.mozillazine.org/Editing_configuration
<pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#tabbrowser-tabs ~ #alltabs-button { visibility:visible!important; }
</nowiki></pre>
* Permanent List-all-tabs Button: https://addons.mozilla.org/firefox/addon/permanent-listalltabs/ -
How to return 2 value to a method and how can i get the return value?
hi guys, this is my problem.
private void one(){
two();
private Vector, Vector two(){
return(row, column);
the problem is that I don't know how to call the two() method and return from two() to one().
please help me, i'm very new to programming........
limlthe problem is that I don't know how to call the two()
method and return from two() to one()You can doprivate Vector[] two () {
return new Vector[] {
row,
column
} // as suggested
private void one () {
Vector[] rowAndColumn = two ();
Vector row = rowAndColumn[0];
Vector column = rowAndColumn[1];
}You should consider replacing your Vector with an ArrayList, btw.
Kind regards,
Levi -
Even though I am ahving WiFi connections at my home, and I have been using the same network for a while, I can't get my IPad connected. The net is working fine as I am using my IMac linked at the same WiFi connection. I already run the reset the network process. Nothing hapenned.
Can I assume that you have connected to your home WiFi network in the past with your iPad? If you have, did you try any really basic troubleshooting steps like restart the iPad or reboot it?
Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
iOS: Troubleshooting WiFi and network connections -
How to get Portal User Context in Web Dynpro application
I have successfully integrate a web dynpro app into SAP Netweaver Portal.
Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
IUserContext userContext = request.getUser();
String firstName = userContext.getFirstName();
String lastName = userContext.getLastName();
If yes, can someone point me the name of the jar file I have to import.
Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.Hi ,
you can use the below code to get User details and add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
try
IWDClientUser clientUser = WDClientUser.getCurrentUser();
String firstName = clientUser.getFirstName();
String lastname = clientUser.getLastName();
catch (WDUMException e) {
wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
Regards,
Sunitha Hari -
Umlaut characters getting distorted while displaying in Web dynpro java
Hi All,
I have a scenario where I am reading some string values from a properties file placed in java DC.
The values read from properties file are to be displayed in Web Dynpro application.
The string values contain some umlaut characters eg (ü,ä).
While displaying in web Dynpro application the umlaut characters are getting distorted.
Any pointers for the same?
Regards
Radhika KuthialaHi Radhika,
Solution1> you can convert the property file in the encoded format, in the DC having the pr0perty file.
use this command in the command line:-->native2ascii -encoding utf8 file.txt file2.txt
Are we renaming hte files after changing the format?
In one of my previous project we have property file with the french character so we got error, to avoid this we have manually transtaled the file and utilized in the application and used the command in dos promt:-
native2ascii -encoding utf8 source.txt destination.txt ,
here if you want to replace the existing file u have to give same name source and destination file. But we have created 2 seprate file. after translation you will something like Fre/uooch king of output.
Solution3> you can read the file and save in the Strign format and use java package import java.nio.charset.; and encode the string. ---
Pls refer the below link:-
http://mindprod.com/jgloss/encoding.html
Hope this may help you.
Deepak!!!
Maybe you are looking for
-
Please help, I keep removing and installing itunes but I still can't open it. Every now and then it will let me in but I can't do everything that I should be able to do.
-
How to suppress blank lines in smartforms
Hi all, How can we suppress blank lines in smartforms? In my scenario I am having customer address details in main window. i.e. Name Street P O Box P O Box Location Post Code Telephone Fax. Suppose if there is
-
LVC_S_LAYO for multiple selection of the rows in the output failed
Hi, I have used LVC_S_LAYO for outputting the list, now i need to select some and delete, but i am unable to do it, I am able select 1 record or all the record but not as per my wish. ex: ten records are displayed in the list, I am able to select onl
-
Hi guys, i was wondering if it is possible to copy data from xml file into array and use that data to make search in some other xml file. Since i coulnt get any help on my previous post am raising this question. I have lot more to ask but right now t
-
LabVIEW 2010 SP1 - When will it be available?
Any expected date of release? Thank you Dany Dany Allard Solved! Go to Solution.