Reg problem in Runtime Constants $SenderService
Hi
Have a problem , I am using ABAP XSLT Processor mapping (I have used message split for this particular scenario i.e. input is single file and output is multiple file)
Instead of hard coding the sender service i tried to use Runtime Constants $SenderService but this was not working .
For one to one scenrio it is working fine ,also in JAVA XSLT Processor it is working fine ....
can any one help on this
Ramamurthy
are you testing your XSL program in XI or outside ?
These runtime consants can be accessed only inside XI.
also,
<i>
If you want to access one of the constants in the XSLT program, you first have to declare the constant as a parameter, for example:
<xsl:param name="MessageId" /></i>
ref: more @
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
Similar Messages
-
** Not able to access Runtime Constants in ABAP XSL
Hi friends,
We have written one ABAP XSLT program. (XSLT program runs in ABAP Engine). This program is for the interface Mapping in XI. Source Interface occurrence is 1 and target interface occurrence is 0..unbounded. ie. We use Message Split to send source messages to multiple target messages. For this we have written one ABAP XSLT program. To find Value mappings we use 'SenderService' Runtime Constant to determine Sender Service (for Source Agency) at runtime. But the problem is, inside template the constant $SenderService did not have the value. I have given below the coding
<xsl:param name = 'SenderService'/>
<xsl:template match="/">
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:employeeDemographicsRequest xmlns:ns1="http://aprilbiztec.com">
<!-- here we are $SenderService did not receive the value -->
Friends, Could you kindly help me to solve this problem ? (ie how to access Runtime Constants in ABAP XSLT when use message Split)
Thanks in advance.
Kind Regards
Jeagthees P.
Note :
1) In normal ABAP XSLT, we are able to access Runtime Constant.
2) For the same scenario, if we use normal XSLT ie. JAVA XSLT, we are able to access Runtime Constant.Hi,
As far as I know you cannot access Runtime constants if there is a message split.
Regards,
Kumar -
Runtime Constant in XSLT :-(
Hi together,
I have one problem with constant at the runtime.
The tag <RCVPRN> is empty, but I need this for my IDoc communication.
In the SAP help stands this:
Runtime Constants
$ReceiverService
Service on the receiver side that receives the message. For example, the name of a business system.
As of SAP XI 3.0, use this constant instead of the constant RECEIVER_SYSTEM used previously.
Yes
See also: Service
If you want to access one of the constants in the XSLT program, you first have to declare the constant as a parameter, for example:
<xsl:param name="MessageId" />
In my XSLT mapping I have this:
<RCVPOR>empty</RCVPOR>
<RCVPRT>LS</RCVPRT>
<xsl:param name="ReceiverService"/>
<RCVPRN>
<xsl:value-of select="$ReceiverService"/>
</RCVPRN>
</EDI_DC40>
But during the runtime the constant is empty
<RCVPOR>empty</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPRN />
</EDI_DC40>
Have you an idea for my problem?
Bye
StefanHi Udo/all,
Thank you for your answer.
Please see in my last post:
Idoc with XSLT Mapping ALE service error
I mark in my channel:
Take Sender from Payload and Take Receiver from Payload
I must set control field by xslt maping, because the receiver is flexible.
With your setting I became a converting error to an ALE logical system.
I need the runtime constant in the xslt mapping.
Idea?
bye
stefan -
XSLT mapping, how can I include a Runtime Constants in target message
Hi, I would like in my XSLT mapping, to have an attribute include the MessageID.
From my understanding of the online help [http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm], I have the following code in my XSL:
<xsl:param name="MessageId" />
<xsl:attribute name="filename">Output_<xsl:value-of select="$MessageId"/>.xml</xsl:attribute>
But for now the result is to have a filename attribute that only contains: "Output_.xml" as if the $MessageId is empty.
Anyone experienced successfully using one of those runtime constants with XSLT mapping ?
Cheers,
gregHi, found the answer of why it was not running: I'm in a transform step of a BPM:
For more info check this thread:
[/message/435521#435521 [original link is broken]|/message/435521#435521 [original link is broken]] -
Selection dynamic Mapping Runtime Constant with a qualifier
Hello all,
i want to access a Mapping Runtime Constant out of a message mapping specified with a qualifier.
In the Integration Directory i specified in the identifier tab the following Value Pairs:
Agency Scheme Name
http://Sap.com/xi/XI XIParty ABC
R3D_310 Partner 111
R3T_310 Partner 222
R3P_310 Partner 333
In the message mapping i want to have the Name for the agency "R3T_310".
I know i can access the Name with:
constant = (String) map.get(StreamTransformationConstants.SENDER_PARTY);
But i getting everytime the name "ABC", which i don't want.
At this point i need your help, to find out how i can dynamically get the correct one??
many thanks for your help
ilkaIlka,
You can also access other Mapping Runtime constants. For example, SENDER_PARTY_AGENCY.
If needed, you can also access SENDER_PARTY_SCHEME and SENDER_SERVICE.
The SAP Help link for all the Mapping Runtime constants accessible with StreamTransformationConstants is:
http://help.sap.com/saphelp_nw04/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm
Hope this helps,
Bhanu -
Runtime constant: mapping-programm
Hello,
we got a exception branch for mapping errors in BPM.
Now we want to inform the user, which mapping programm caused the error.
Is there a runtime constant?
I already analyzed:
http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
Regards MarioHi Mario,
You can raise alerts if mapping, receiver determination etc.. fails in the integartion engine. You need to configure alert rules for this. You can go to RWB->Alert Configuration->Where did the error occur? choose integration engine and you can see different error categories and error codes which can be configured using alert rules. Refer this michal's weblog for configuring the same..
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
You can also raise an alerts from BPM for any mapping failures, send step system errors/application errors using fault messages (through exception branch).
Refer this weblog for configuring an alert in the BPM
/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
In you BPM, You can add Container Variables to Messages by using Container Opertaions(Append/Assign)
http://help.sap.com/saphelp_nw2004s/helpdata/en/59/e1283f2bbad036e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
And also you can throw this exceptions via Alerts.
Also go through these links....
http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
/people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping
http://help.sap.com/saphelp_nw2004s/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
/people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
Regards,
Abhy
Message was edited by: Abhy Thomas
Message was edited by: Abhy Thomas -
How to read runtime constants in ejb Module?
Hi all,
Anyone knows how to have special access to Runtime Constants at ejb Modules? I've searched and all I found is for Java and ABAP Mapping ...I hope it is possible! I want to read the interface name in order to choose which code my module should apply, as a case statement I mean.
Thanks in advance,
Ricardo.Hi Ricardo !
Check these links:
http://help.sap.com/saphelp_nw70/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
Parameter MessageId
Regards,
Matias. -
Hi there,
this is my query:
As we know java builds a constant pool for all the symbols if a class in a class file. This class file when loaded by VM, the constant pool is translated into the runtime constant pool in the method area of the Heap.
Does any one know if there is only 1 runtime constant pool per class or is it 1 per class instance(Object). The JVM spec did not clarify on this. Also if its 1 per class then how does the JVM know where all the instances of a class are while resolving references and also when garbage collecting???
thank a lot.
Rishabh.rishabhchandra wrote:
As we know java builds a constant pool for all the symbols if a class in a class file. This class file when loaded by VM, the constant pool is translated into the runtime constant pool in the method area of the Heap.
Symbols?
It builds it for literals.
Does any one know if there is only 1 runtime constant pool per class or is it 1 per class instance(Object). Certainly not by instance.
And more likely it is per class loader. A class can't be unloaded unless its class loader is unloader so there would be no point in managing a pool per class when it could be managed via the class loader.
The JVM spec did not clarify on this. Nor should it. That is an implementation detail of how the VM is implemented.
Also if its 1 per class then how does the JVM know where all the instances of a class are while resolving references and also when garbage collecting???Not sure that question is sensical. The only reason it would need to know is because it is using the class. And the class might not own the pool, but it certainly references it.
As for garbage collection that only occurs in the context of this question if the class loader is collected. -
Mapping runtime constant to get system details of the XI box
Hi
We have a need to get the XI system details ( sysid and the client) at runtime - when executing a mapping that we designed using Message mapping . Is there any runtime constant/udf that we can use to retrieve this information ?
We are on XI 3.0 SP23.Hi,
refer this blog by Michal..
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
just ignore the BPM part...you will need only the mapping logic and your target message will have the necessary value...also refer this link for the list of parameters that you can access:
http://help.sap.com/saphelp_nwpi71/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
http://help.sap.com/saphelp_nwpi71/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm
Regards,
Abhishek. -
Accessing Runtime Constants in PCK
Hi all
Anybody tried accessing runtime constants such as message ID in PCK, successfully?
I have written a java mapping using StreamTransformationConstants class to retrieve MessageId value. The same java mapping works fine in XI, but not PCK.
Any idea?
Many thanks.
YJto the target date mapping we have created a userdefined fuction fileName which is failing the error message when we test the interface mapping is Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_XI_ERP_FI_BAPI_ACC_DOCUMENT_POST_REQ_MM_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:BAPI_ACC_DOCUMENT_POST/DOCUMENTHEADER/HEADER_TXT. The message is: Exception:[java.lang.NullPointerException] in class com.sap.aii.mappingtool.flib3.TextFunctions method substring[null, com.sap.aii.mappingtool.tf3.rt.Context@0000000000000]
is this help full
when it is succesfull the input <HEADER_TXT>Payroll for 01/2008</HEADER_TXT>
<DOC_DATE>20080131</DOC_DATE>
when it is failed the input is
<HEADER_TXT>Payroll for 20/08.t</HEADER_TXT>
<DOC_DATE>08.t20</DOC_DATE>
thanks and regards
sandeep
thanks
sandeep -
Problem with Runtime.exec()
Hi,
I'm having a problem with Runtime.exec() . I have a batch file with debug option to FTP the desktop file to mainframe. When I executed this in Windows it's shows me the responce from the server (like ' Transfer Completed' ) for my FTP commands. But when I launch this through java it's only shows the errors not the normal responces from the server. I need this responses to confirm the proper transfer of file.
My Java Code:
String strCommand = "cmd.exe /c " + outdirectory + batchfilename;
boolean bWait = true;
Runtime r = Runtime.getRuntime();
Process pr = r.exec(strCommand);
BufferedInputStream bis =new BufferedInputStream(pr.getInputStream ());
int c=0;
/** Outlet for IO for the process **/
while (c!=-1) {
c=bis.read();
/**Now wait for the process to get finished **/
if(bWait == true){
pr.waitFor();
pr.destroy();
My Batch file is :
FTP -n -d -s:C:\IT2.cmd > C:\tIT2.log
EXIT
Thanks
SathieshAhh, you are redirecting the standard out from the ftp command to a file, therefore no output is sendt back to your java code,
you have to redirect the stderr stream, not the stdout stream in your batch file;
FTP -n -d -s:C:\IT2.cmd 2> C:\tIT2.log(notice the "2>" instead of ">")
Now your batch file should direct the error stream to the log, and the standard output back to the java program.
(I'm used to UNIX streams, not NT, but the "2>" redirection should work on NT also I guess) -
Problems with runtime.exec()
Hi All,
I am having a problem using runtime.exec()
in servlet to call a java file from the server.The server is a linux one and i am using a tomcat server-4.1.24 the server contains
some java files which i need to invoke with the help of the servlet program so i try to use exec() in servlet to invoke a particular java file in the server.The program is compiling well but no information
is displayed on the browser.Where in the servlet program i try to print the details of the particular java program that is in the server.For ur
reference i will post the code :-
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
public class ExeServlet extends HttpServlet
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
try
String path = getServletContext().getRealPath("/var/jakarta/webapps/examples/WEB-INF/classes/ServletExample.java");
/*Where it is the path of the java file that resides in the server machine(linux)Which i want to invoke and print its details on the browser*/
Runtime runtime=Runtime.getRuntime();
Process proc=runtime.exec(path );
BufferedReader br=new BufferedReader(new InputStreamReader(proc.getInputStream()));
res.setContentType("text/html");
PrintWriter pw=res.getWriter();
pw.println("<b>");
String line=null;
while((line=br.readLine())!=null)
{ pw.println(line); //Displaying the details of the ServletExample.java file in the browser
pw.println("</b>");
catch (Exception e)
pw.println("Listener *not* started!");
What is the problem here?I was so frustrated with this.Pls. do provide an immediate reply if there is any code regarding this is working pls. do provide it.It is Urgent.I will be waiting for ur reply.
Thanx,
m.ananthuHi Leo,
Thank u for the reply i still have the problem with exec() in servlets.Has i said earlier in my previous mail by using exec() i trying to execute the output of a c-program for eg,Hello.run which provides an output of "HelloWorld" which is a sample eg.The Hello.run is the directory /var/jakarta/webapps/examples/WEB-INF/classes which is also the directory where my servlet program is.Where i am using a tomcat server-4.1.24 on the linux machine 7.3.Which is the server ofcourse.
Here by using a servlet program i try to exceute the Hello.run c-program and display the output in the browser.This is what i need to do.
I also used a sample core java class put the exec() there in a method and i try to call the method in the servlet.Which is also not working.
Here is that example :-
The core java program:-
public class UsingExec
public String ExeDisplay()
try
System.out.println("ExeDisplay");
Runtime rt=Runtime.getRuntime();
Process p=rt.exec("/var/jakarta/webapps/examples/WEB-INF/classes/Hello.run");
p.waitFor();
return "true";
catch(Exception e)
return "false";
public static void main(String args[])
UsingExec ue=new UsingExec();
ue.ExeDisplay();
When i run this program only ExeDisplay at the top is displayed.
Here is the Servlet program:-
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
public class ExeServlet extends HttpServlet
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
try
res.setContentType("text/html");
PrintWriter pw=res.getWriter();
UsingExec ue=new UsingExec();
String line=ue.ExeDisplay();
pw.println(line);
catch (Exception e)
When i display this program on the browser only "false" is displayed from the UsingExec.java & nothing is displayed.
Thanx,
m.ananthu -
Massive IMAP problem, multiple iPhones - constant spinning wheel
A friend has had problems using email on his iPhone since he got it, and now after a couple of months of no problems, mine has started doing the same thing.
The problem started for him on a UK 1.1.2 firmware iPhone with an IMAP account. If you start from scratch, manually setup an IMAP account, it will connect and get your messages. However later, you will find that the iPhone email program is constantly showing the spinning wheel at the top of the screen (showing activity), not the symbol at the bottom of the screen. Worse, the battery rapidly runs down (because it is doing constant data transfers), and worse new emails do not reliably get through. This happens whether you are using GPRS, EDGE, or WiFi (does not make a difference). This problem still happens with 1.1.3 firmware. There is so much data transfer happening (or trying to happen) that the phone actually gets quite warm.
This week after a couple of months of owning my own iPhone with 1.1.3 firmware has also started doing the same thing. My main IMAP account is on a totally different server, running a different server application to my friends. However it also seems to happen with GMail accounts (using IMAP).
I am currently at home and I can see my WiFi (AirPort Extreme) base-station showing lots of activity and I know that no other WiFi devices are active so it is purely the iPhone. Turning off the email account stops the problem (and I can then see the WiFi activity stop as well) but that is hardly a solution. Also setting it to manual polling for email helps but again is not a proper solution. It is so bad that sending emails is very difficult as well.
Even though at the iPhone end nothing seems to be coming through, one can see the iPhone as a connected user at the server end (I have access to the servers, obviously not for Gmail though).
My friend has swapped his phone four times at the Apple Store and still has the problem, and as I said mine has started as well. Turning off and on does not help, resetting network settings does not help.
Apple Mail on a Mac (running both Leopard and Tiger), and other IMAP clients have no problems with the same IMAP accounts (for both of us).
Other Internet access like Web, Stock Widget, Weather Widget, even the iTunes WiFi store work fine. It is just email that is broken.Pdobry wrote:
The problem is that Mail app in iPhone is trying to download message headers via FETCH command and does not handle properly response from IMAP server which does not support partial download of email headers. It starts asking for the headers in the infinite loop which quickly drains out the battery
More recent testing by myself reveals it is getting stuck on some messages when doing the 'message peek' to get the summary of an email. It gets the subjects fine (as the first pass) but then gets stuck on some emails when doing the second pass to get the summary. Apple Mail on a Mac does not (as far as I am aware) do a message peek so does not have this problem.
The two different makes of server I have seen this problem with do support this message peek command in that at least some of the time it is working with the iPhone.
I was able to get a debug level log which shows entries like this
\[02/Apr/2008 23:56:17\]\[48699904\] {imaps} Peek FETCH executed on message 0000ba58 in folder [email protected]/INBOX
\[02/Apr/2008 23:56:17\]\[48699904\] {imaps} Sent 1 fetch responses
\[02/Apr/2008 23:56:18\]\[48699904\] {imaps} Command 293 UID FETCH 47704 BODY.PEEK\[2.HEADER\]<1177.15207>
\[02/Apr/2008 23:56:18\]\[48699904\] {imaps} Peek FETCH executed on message 0000ba58 in folder [email protected]/INBOX
\[02/Apr/2008 23:56:18\]\[48699904\] {imaps} Sent 1 fetch responses
\[02/Apr/2008 23:56:18\]\[48699904\] {imaps} Command 294 UID FETCH 47704 BODY.PEEK\[2.HEADER\]<1177.15207>
The above shows two repetitions but it keeps on (and on, and on). Other occasions show this does work for other messages. If I deliberately arrange to get the iPhone to connect to get the latest messages I can see it get stuck on a particular message, and then even if I turn it off and back on and reconnect it will get stuck on the same message. If repeated on a later date then the contents of the inbox will have changed and the message it gets stuck on will be different.
As it seems to be linked to specific messages it was not a surprise that when this is tried on a practically empty email account the problem does not occur.
This has happened with multiple different makes of mail server (well at least two), multiple email accounts, multiple users, and multiple different iPhones (one person had his swapped four times). It does not happen with 'ordinary' IMAP client software, only with the iPhone.
Even if one for arguments sake assumes the mail server is at fault and is sending the iPhone garbage, the iPhone should only try a single specific email a maximum number of times (for example five), and then give up. This would prevent it draining the battery so fast and trying to cook itself (by constantly running its transmitter). -
Problem with Runtime Workbench and with sending data from XI to SLD
Hello<br>
<br>
Could I have a little help, a hint in the two following topics:<br>
<br>
1. I run Runtime Workbench -> Component Monitoring -> Display All and I get this error:<br>
<br>
Error during communication with System Landscape Directory: User credentials are invalid or user is denied access<br>
<br>
In filesystem log I can find like this:<br>
<br>
XIRWB.com.sap.aii.mdt.frames.jsp_error [SAPEngine_Application_Thread[impl:3]_40] Fatal: Error during communication with System Landscape Directory: User credentials are invalid or user is denied access<br>
Thrown:<br>
MESSAGE ID: com.sap.aii.rwb.agent.server.rb_LCRAgent.landscapeCommunicationError<br>
com.sap.aii.rwb.exceptions.BuildLandscapeException: Error during communication with System Landscape Directory: User <br>credentials are invalid or user is denied access
at com.sap.aii.rwb.agent.server.SLDAgentBean.convertException(SLDAgentBean.java:1472)
at com.sap.aii.rwb.agent.server.SLDAgentBean.buildSLD(SLDAgentBean.java:773)
at com.sap.aii.rwb.agent.server.SLDAgentBean.provideSld(SLDAgentBean.java:269)
at com.sap.aii.rwb.agent.server.SLDAgentBean.getXIDomain(SLDAgentBean.java:711)
at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0_0.getXIDomain(SLDAgentObjectImpl0_0.java:375)
at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getXIDomain(SLDAgent_Stub.java:436)
at com.sap.aii.rwb.agent.client.EJBAgent.getXIDomain(EJBAgent.java:255)
at com.sap.aii.rwb.util.web.model.AppMainModel.getSelectedDomain(AppMainModel.java:138)
at com.sap.aii.rwb.util.web.model.DomainRep.build(DomainRep.java:121)
at com.sap.aii.rwb.web.componentmonitoring.model.ObjectIdentificationTree.getComponentTree(ObjectIdentificationTree.java:117)<br>
at jsp_component_monitoring1321125174985._jspService(jsp_component_monitoring1321125174985.java:217)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmPageProcessor.doGet(CmPageProcessor.java:27)
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.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at jsp_FC_Secure1321125169379._jspService(jsp_FC_Secure1321125169379.java:24)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
Root cause:<br>
com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access<br>
at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:577)
at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:341)
at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:280)
at com.sap.lcr.api.cimclient.CIMOMClient.performBatchOperation(CIMOMClient.java:1251)
at com.sap.lcr.api.cimclient.CIMClient.performBatchOperation(CIMClient.java:2268)
at com.sap.aii.utilxi.sld.MRSldProxy.stage1(MRSldProxy.java:989)
at com.sap.aii.utilxi.sld.MRSldProxy.loadComponents(MRSldProxy.java:918)
at com.sap.aii.utilxi.sld.MRSldProxy.loadSld(MRSldProxy.java:907)
at com.sap.aii.utilxi.sld.SubSystemFactory.createSldFromSld(SubSystemFactory.java:373)
at com.sap.aii.utilxi.sld.SubSystemFactory.createSldFromSld(SubSystemFactory.java:434)
at com.sap.aii.rwb.agent.server.SLDAgentBean.buildSLD(SLDAgentBean.java:764)
at com.sap.aii.rwb.agent.server.SLDAgentBean.provideSld(SLDAgentBean.java:269)
at com.sap.aii.rwb.agent.server.SLDAgentBean.getXIDomain(SLDAgentBean.java:711)
at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0_0.getXIDomain(SLDAgentObjectImpl0_0.java:375)
at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getXIDomain(SLDAgent_Stub.java:436)
at com.sap.aii.rwb.agent.client.EJBAgent.getXIDomain(EJBAgent.java:255)
at com.sap.aii.rwb.util.web.model.AppMainModel.getSelectedDomain(AppMainModel.java:138)
at com.sap.aii.rwb.util.web.model.DomainRep.build(DomainRep.java:121)
at <br>com.sap.aii.rwb.web.componentmonitoring.model.ObjectIdentificationTree.getComponentTree(ObjectIdentificationTree.java:117)
at jsp_component_monitoring1321125174985._jspService(jsp_component_monitoring1321125174985.java:217)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmPageProcessor.doGet(CmPageProcessor.java:27)
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.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at jsp_FC_Secure1321125169379._jspService(jsp_FC_Secure1321125169379.java:24)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
<br>
<br>
<br>
I don't know what is wrong.<br>
I have configured:<br>
- SLDCHECK work properly,<br>
- none of the users PI* type not lock,<br>
- password to the PI* users in exchangeProfile entered correctly,<br>
- In VA in the JCo RFC Provider I have properly configure: AI_RUNTIME_JCOSERVER, LCRSAPRFC, SAPSLDAPI_SID - from the ABAP I can connect to this programs ID<br>
- In VA in SLD Data Supplier I have properly configure bookmarks HTTP Settings and CIM Client Generation Settings. CIMClient Test is OK<br>
<br>
I do not know what else I can see, what else I have properly configured ... I looked at the notes:: 936093 jak i 721548...<br>
<br>
<br>
2. I can't send data from XI to SLD, ie makes me a system definition in Web As Abap and Web as Java but nothing appear to me in Exchange Infrastructure. Exchange Infrastructure is empty - what is wrong??<br>
I carried out the recommendation by 764176 and 1031321 notes<br>
<br>
I restart below applications (no effect)...<br>
com.sap.xi.directory (Integration Builder/Configuration)<br>
com.sap.aii.af.app (Adapter Engine)<br>
com.sap.xi.rwb (Runtime Workbench)<br>
com.sap.xi.repository (Integration Builder/Design)<br>
<br>
Can I ask for help and guidance in these topics?<br>
<br>
Regards<br>
RP<br>I increased logging in the NWA (Configuration -> Log Configuration) - and increased the some things here to log ALL. So that from the NWA (Monitoring -> Logs and Traces) I see a little more information (but does not follow that with which the user is a problem).<br>
<br>
Here are some interesting logs ...<br>
I was most rash or irritation of those that say about the lack of credentials u2013 I must use Viusal Administrator and set good service ...<br>
<br>
What do I have done:<br>
In the Visual Administrator -> Cluster -> Server -> Services -> SLD Data Supplier<br>
I have set in the HTTP Settings tab the host and port SLD, the user name and password is also entered as it is in the SLD. To be sure, already have set for the user entered here such roles as:<br>
SAP_SLD_ADMINISTRATOR<br>
SAP_SLD_CONFIGURATOR<br>
SAP_SLD_DEVELOPER<br>
SAP_SLD_GUEST<br>
SAP_SLD_ORGANIZER<br>
Maybe we are talking in this place about a different user?<br>
<br>
Similarly, when it comes to tab CIM Client Generation Settings - here's all the same thing done. CIMClient test shows that everything is OK.<br>
When I click the button: This trigger the transfer of data to the SLD gets the message that everything was shipped correctly. Indeed, I received an instance of JAVA in SLD<br>
Also clicked on this icon: Assign application roles to user group - got information that everything is attached properly.<br>
<br>
By ABAP side, the connections: INTEGRATION_DIRECTORY_HMI, SAPSLDAPI, LCRSAPRFC, AI_RUNTIME_JCOSERVER and AI_DIRECTORY_JCOSERVER work correctly, ie I can perform the test - which means that programs ID are properly positioned in JCO Provider in VA.<br>
<br>
Puzzling is this message:<br>
The SLD data is inconsistent.<br>
<br>
Strange also that the message (from the ABAP everything is available in SMGW no errors):<br>
Connect to SAP gateway failed<br>
<br>
And what is this error:<br>
<br>
could not sync ExchangeProfile: <br>
Thrown:<br>
com.sap.rprof.dbprofiles.DBException: Connect to SAP gateway failed<br>
Connect_PM TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner 'saptest2:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:07 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 2<br>
<br>
<br>
Below is a list of some interesting logs ...<br>
<br>
###########<br>
<br>
Insufficient permissions for getting SLD access information. You can add permissions for your application via the SLD service in the 'Visual Administrator'.<br>
<br>
#############<br>
<br>
SLD is not accessible. Check SLD Data Supplier service settings.<br>
<br>
###########<br>
<br>
"Warning","2012-02-22","07:53:50:986","Data get on com.sap.sldserv.data.GetSAPBCCentralServiceInstance class processing failed. htThe SLD data is inconsistent. This is an internal processing problem.","/System/Server/SLDService","com.sap.sldserv.DataCollector","n/a","saptest2","Server 0 60_36694",<br>
<br>
#########<br>
<br>
com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access<br>
<br>
################<br>
<br>
Full Message Text
CPA Cache not updated with directory data, due to: Couldn't open Directory URL (http://saptest2.unx.era.pl:56000/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.xit.saptest2), due to: HTTP 503: Service Unavailable
<br>
##################<br>
<br>
Full Message Text <br>
<br>
could not sync ExchangeProfile: <br>
Thrown:<br>
com.sap.rprof.dbprofiles.DBException: Connect to SAP gateway failed<br>
Connect_PM TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner 'saptest2:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:07 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 2<br>
<br>
Connect_PM TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner 'saptest2:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:07 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 2<br>
<br>
at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)<br>
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1015)<br>
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3238)<br>
at com.sap.rprof.dbprofiles.DBProfiles.getProfile(DBProfiles.java:101)<br>
at com.sap.rprof.dbprofiles.RemoteProfile.readRemoteProfileFromMedia(RemoteProfile.java:1288)<br>
at com.sap.rprof.dbprofiles.RemoteProfile.getRemoteProfileFromFactory(RemoteProfile.java:195)<br>
at com.sap.aii.utilxi.prop.rprof.ExchangeProfilePropertySource.readProfile(ExchangeProfilePropertySource.java:177)<br>
at com.sap.aii.utilxi.prop.rprof.ExchangeProfilePropertySource.sync(ExchangeProfilePropertySource.java:165)<br>
at com.sap.aii.utilxi.misc.api.AIIProperties.sync(AIIProperties.java:582)<br>
at com.sap.aii.af.service.sld.SLDAccess.syncExchangeProfile(SLDAccess.java:43)<br>
at com.sap.aii.adapter.xi.ms.SLDReader.fire(SLDReader.java:52)<br>
at com.sap.aii.adapter.xi.ms.SLDReader.run(SLDReader.java:167)<br>
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
at java.security.AccessController.doPrivileged(AccessController.java:219)<br>
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)<br>
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
<br>
##############<br>
<br>
Full Message Text <br>
<br>
Import of software component version list from component repository failed<br>
Thrown:<br>
com.sap.lcr.api.cimclient.LcrException: User credentials are invalid or user is denied access<br>
at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:577)<br>
at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:341)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:198)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:146)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:443)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:747)<br>
at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:980)<br>
at com.sap.lcr.api.sapmodel.JavaCIMObjectAccessor.enumerateInstances(JavaCIMObjectAccessor.java:211)<br>
at com.sap.lcr.api.sapmodel.SAP_SoftwareComponentAccessor.enumerateInstances(SAP_SoftwareComponentAccessor.java:204)<br>
at com.sap.lcr.api.sapmodel.SAP_SoftwareComponentAccessor.enumerateSAP_SoftwareComponentInstances(SAP_SoftwareComponentAccessor.java:239)<br>
at com.sap.aii.ibrep.server.sldaccess.interfaces.CRAccess.getSwcLinks(CRAccess.java:82)<br>
at com.sap.aii.ibrep.server.extobjects.SwcAccessor.getEoLinks(SwcAccessor.java:59)<br>
at com.sap.aii.ib.server.extobjects.EOAServiceImpl.getEoLinks(EOAServiceImpl.java:75)<br>
at com.sap.aii.ib.sbeans.extobjects.EOAServiceBean.getEoLinks(EOAServiceBean.java:66)<br>
at com.sap.aii.ib.sbeans.extobjects.EOAServiceRemoteObjectImpl1_0.getEoLinks(EOAServiceRemoteObjectImpl1_0.java:527)<br>
at com.sap.aii.ib.sbeans.extobjects.EOAServiceRemoteObjectImpl1_0p4_Skel.dispatch(EOAServiceRemoteObjectImpl1_0p4_Skel.java:232)<br>
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)<br>
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)<br>
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)<br>
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)<br>
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)<br>
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
at java.security.AccessController.doPrivileged(AccessController.java:219)<br>
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)<br>
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
<br>
##############<br>
<br>
Full Message Text <br>
<br>
An exception was thrown in the UME/ABAP user management connector. Message: Connect to SAP gateway failed<br>
Connect_PM TYPE=A ASHOST=localhost SYSNR=60 GWHOST=localhost GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner '127.0.0.1:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:06 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 16<br>
<br> -
Reg: Problem in XML PUBLISHER Report
Hi all,
I am working building report using xml publisher. Problem i facing was ,
*1. I created the template in RTF and attached to data definition*
for eg: my rtf is
sno item quantity price ( I created this field in table structure and mapped to xml data)
Total Price ( this also i am getting from data definition)
The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
Inspected By Approved By
*1)*
________________________________ 1)________________________________ Store Incharge : ______________________
*2)*
________________________________ 2) ________________________________ Received : _______________________
*3)*
________________________________ 3 ________________________________ Prepared By : _______________________
NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
Actually my need
Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
How to resolve this... any approach most welcome. Wat changes i have to make.Krishna
Modified your code a little bit.Use this
public int submitCPRequest(String shipmentId) {
System.out.println("into submitCPRequest");
OAPageContext pageContext;
OAWebBean webBean;
try {
OAApplicationModule am =pageContext.getApplicationModule(webBean);
OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = new String("XXAPL"); //Application that contains the concurrent program
System.out.println("ApplName"+ applnName);
String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
System.out.println("Concc Name"+ cpName);
String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the
//vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(shipmentId);
System.out.println("Args"+ cpArgs);
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
System.out.println("Req Id"+ requestId);
tx.commit();
return requestId;
catch (RequestSubmissionException e) {
System.out.println("Into Exception");
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
catch(Exception exception)
throw OAException.wrapperException(exception);
}Thanks
AJ
Maybe you are looking for
-
How do I move pse9 from my old laptop to a new one?
How do I move pse9 from my old laptop to a new one?
-
Upgrade HR component after EHP4 upgrade
Hello, Recently we did a upgrade from R/3 4.7x110 to ECC 6.0 EHP4 using CUUC method. For EHP4 in the MOPZ we selected some 5 usage types where HCM self services or Self services (XSS) was not selected. Now after the upgrade we hav SAP_HR in release 6
-
When I narrate my keynote presentation, why is the file size so huge?
When I narrate my keynote presentation, why is the file size so huge?
-
I'm using HAL 7.3 with Planning 9.3 and the projects (.prp) I have created open as read-only so I can't make any changes. Does anyone know how I can open the files so options can be changed? Thanks in advance. Ed
-
My Ipod touch 2nd generation has been freezing today. We have updated, restored etc and now it will not play any music - as in no sound coming from it. It looks as if it is playing, but no sound comes out. It played ok 2 days ago. Any suggestions?