Problem shile fetching values from navigateAbsolute
hi,
i need to pass a value which has "+" in end...
for example:
String Name = "aditya+" ;
WDPortalNavigation.navigateAbsolute(iviewpath,WDPortalNavigationMode.SHOW_INPLACE,
null,null,WDPortalNavigationHistoryMode.NO_HISTORY,null,null,
"Name=" +Name );
but when i fetch the value..
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String Name = request.getParameter("Name");
i get name = aditya
it doesnt give me "+"...
i believe it is taking + as an operator rather than string
can anyone help in finding out solution..
Thanks and Regards,
Aditya Deshpande
Hi, Aditya
This looks like a bug
My suggestion is to escape "+" character in some way (for example, with "\u002b") when making parameters string, and unescape when retrieving parameter values. I guess not only plus character can produse such effect.
Similar Messages
-
Problem in fetching values from Java Web Service returning ArrayList
Hi all,
I am calling an External Java web Service from BPEL. That Java Web Service is returning an Arraylist.
I am not able to assign the values returned by the Java web service to local String Variables of BPEL.
Kindly help me...Hi,
My problem has been resolved..
I have used
bpws:getVariableData('Invoke_1_useSSH_OutputVariable','parameters',concat('/ns7:useSSHResponseElement/ns7:result/ns8:item\[',bpws:getVariableData('count'),']'))
where count is the local int variable which contains the index value of the arraylist i.e. which index element we want to retrieve from arraylist.
Thanks....
Edited by: user643533 on Sep 12, 2008 12:10 AM -
Problem in Fetching value from Employee Master Date in Crystal Report
Hi All,
I am using the SAP Standard report for Sales Quotation and now my client needs a new requirement.
That is, for certain sales employee they need a manger and the manager name, email, mobile no from employee master data should be fetched.
I tried this way,
Assigned the Manager name in the OSLP, memo field and tried to equate the employee name in the OHEM table by using a parameter and tried to fetch the fields but i am not able to view any of the fields from the OHEM table.
How to fetch the fields from the OHEM table?
Help me solving this issue.
Regards,
Jananisuba Shi.
Janani..
Fetching means what .
i am not able to understood...
linking you are not able to understood or any other.
in crystal report are u getting the problem.
First in sql it slef are u able to get the problem..what just explain... -
Fetch value from Table with respect to APP_USER.
Hi,
i want to fetch value from Table with respect to APP_USER.
i am using
SELECT ID,NAME,FILE_OBJ_ID,MIME_TYPE,DOC_SIZE,BLOB_CONTENT,DESCRIPTION,UPLOAD_DATE,'Download' FROM DUMY_FILE where CREATED_BY =:APP_USER;
Show me error
failed to parse SQL query:
ORA-00911: invalid characterThanks
Edited by: 805629 on Jan 13, 2011 2:09 AMHello,
I too have the same problem.
I am using this query:
select manager from leave_mgmt where support_engg=:APP_USER
and source type is SQL Query(return single value)
but nothing is coming up in the text field. Its empty.
Please advice. Thanks in advance. -
Facing Problem with passing Values from One report to another
Hi,
I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
Please, let me know whats going wrong.
Thanks for the help.sorry for the late updation.
My First Report, Summary level is a Pivot Table.
I tried the same report with Table option, the value is passing correctly.
Is there a way to get rid of this situation using Pivot table.
Thanks for your help.
below is the original request.
Hi,
I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
Please, let me know whats going wrong.
Thanks for the help. -
i am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g
hi TimoHahn,
i am getting following exception in JDeveloper(11g release 2) Studio Edition Version 11.1.2.4.0 but it works perfectly fine in JDeveloper 10.1.2.1.0
Root cause of ServletException.
java.lang.NullPointerException
at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at org.rbi.cefa.master.actionclass.UserAction.execute(UserAction.java:163)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) -
I have Problem in fetching data from CONTROL BLOCK
Sir,
I am facing problem in fetching data from control block.
Asif.is your control-block a filter-block for the detail-block?
Do you want to see only the detail-data of the user-id you have displayed in the master? -
Swing Applet in JSP: problem with fetching data from database
i am facing a problem while fetching data from database using Swing Applet plugged in a JSP page.
// necessary import statements
public class NewJApplet extends javax.swing.JApplet {
private JLabel jlblNewTitle;
private Vector vec;
public static void main(String[] args) {
JFrame frame = new JFrame();
NewJApplet inst = new NewJApplet();
frame.getContentPane().add(inst);
((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
frame.pack();
frame.setVisible(true);
public NewJApplet() {
super();
initGUI();
private void initGUI() {
try {
this.setSize(542, 701);
this.getContentPane().setLayout(null);
jlblTitle = new JLabel();
this.getContentPane().add(jlblTitle);
jlblTitle.setText("TITLE");
jlblTitle.setBounds(197, 16, 117, 30);
jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
jlblNewTitle = new JLabel();
this.getContentPane().add(jlblNewTitle);
Vector vecTemp = getDBDatum(); // data fetched fm DB r stored here.
jlblNewTitle.setText(vecTemp.get(1).toString());
jlblNewTitle.setBounds(350, 16, 117, 30);
jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
} catch (Exception e) {
e.printStackTrace();
}//end of initGUI()
private Vector getDBDatum() {
// fetches datum from oracle database and stores it in a vector
return lvecData;
}//end of getDBDatum()
}//end of class
in index.jsp page i have included the following code for calling this applet:
<jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
width="600" height="300">
<jsp:fallback>Could not load applet...</jsp:fallback>
</jsp:plugin>
if i view it in using AppletViewer it runs perfectly and display the data in JLabel. (ie, both jlblTitle and jlblNewTitle).(ie, DATA FETCHES FROM db AND DISPLAYS PROPERLY)
BUT IF I CLICK ON INDEX.JSP, ONLY jlblTitle APPEARS. jlblnNewTitle WILL BE BLANK(this label name is supposed to fetch from database)
EVERY THING IS DISPAYING PROPERLY EXCEPT DATA FROM DATABASE!!!
i signed the applet as follows :
grant {
permission java.security.AllPermission;
Can any body help me to figure out the problem?This is the Swing Applet java code
import java.awt.Dimension;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vector;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.JScrollPane;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTree;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingConstants;
public class HaiApplet extends javax.swing.JApplet {
private JLabel jlblTitle;
private JLabel jlblNewTitle;
private Vector vec;
* main method to display this
* JApplet inside a new JFrame.
public static void main(String[] args) {
JFrame frame = new JFrame();
NewJApplet inst = new NewJApplet();
frame.getContentPane().add(inst);
((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
frame.pack();
frame.setVisible(true);
public HaiApplet() {
super();
initGUI();
private void initGUI() {
try {
this.setSize(542, 701);
this.getContentPane().setLayout(null);
jlblTitle = new JLabel();
this.getContentPane().add(jlblTitle);
jlblTitle.setText("OMMS");
jlblTitle.setBounds(197, 16, 117, 30);
jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
jlblTitle.setHorizontalAlignment(SwingConstants.CENTER);
jlblTitle.setForeground(new java.awt.Color(0,128,192));
jlblNewTitle = new JLabel();
this.getContentPane().add(jlblNewTitle);
Vector vecTemp = getDBDatum();
jlblNewTitle.setText(vecTemp.get(1).toString());
jlblNewTitle.setBounds(350, 16, 117, 30);
jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
} catch (Exception e) {
e.printStackTrace();
}//end of initGUI()
private Vector getDBDatum() {
Vector lvecData = new Vector(10,5);
Connection lcon = null;
Statement lstmt = null;
ResultSet lrsResults = null;
String lstrSQL = null;
String lstrOut = null;
try {
OmmsDBConnect db = new OmmsDBConnect();
lcon = db.connectDb();
lstmt = lcon.createStatement(lrsResults.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
lstrSQL = "select DT_ID from P_DATATABLES";
lrsResults = lstmt.executeQuery(lstrSQL);
int i = 0;
lrsResults.last();
int length = lrsResults.getRow();
System.out.println(length);
lrsResults.beforeFirst();
int recCount = 0;
while (lrsResults.next()) {
recCount++;
lvecData.addElement(new String(lrsResults.getString("DT_ID")));
// System.out.println("ID : " + lrsResults.getString(1));
i++;
}System.out.println("here 3 out fm while");
catch(SQLException e) {
System.out.print("SQLException: ");
System.out.println(e.getMessage());
catch(Exception ex) {
lstrOut = "Exception Occured " + ex.getMessage();
finally {
try {
lrsResults.close();
lstmt.close();
lcon.close();
System.out.println("[DONE]");
catch(Exception e) {
System.out.println(e);
}//end of finally
return lvecData;
}//end of getDBDatum()
}//end of classOfcourse the above code compiles and runs well. in Applet Viewer
I plugged the above Swing Applet in a JSP page index.jsp
<jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
width="600" height="300">
<jsp:fallback>Could not load applet...</jsp:fallback>
</jsp:plugin>Every thing is working fine in AppletViewer...But if i view this in any browser, then only the jlblTitle is displaying. jlblNewTitle is not displaying(this label name is actually fetching from thedatabase)
can any body help me regarding this matter.? Thx in Advance. -
Custom Rule - Problem in passin values From Rule Container to WF Container?
Hi Guys,
I am having hard time passing values back from my custom rule. I have created a custom rule to determine the agents in PFAC which takes in the Person number as import element of container. It determines the Manager as agent and I am passing Managers Person Number back to workflow. If he dont approve the Request then it will be passed to his boss. In this case I will pass this imported Mangers Person number back to rule so that his boss will be determined as agent. I have created ZRULE function module. I am passing value back from Rule container to Workflow Container using following code.
swc_set_element ac_container 'SUPERPERNR' lf_super_pernr.
I have created a element SUPERPERNR on rule container and workflow container as well .The problem is in the Rule container I am not able to create SUPERPERNR as export parameter. The tick mark is grayed out and there is no option for setting it as export.
My question is do I have create a Export element on Rule container or Not? If i just write the code
( swc_set_element ac_container 'SUPERPERNR' lf_super_pernr ) will it set the value in WF container? In my case it is not setting. I have to bind the values from rule container to WF container and if My rule container element is not allowing me to click the tick mark as export how can i pass value of of rule container back to WF Container?
Please help me guys.
Thanks,
Manish.Hi Manish,
Same scenario I have developed in my system. This all steps I did in my system.
1) Created a Z function module which takes import parameter (Parameter name = 'EMP') in the
format 'US100123'.
2) This in turn fetches back the supevisor or boss as an export parameter (Parameter name = 'BOSS') in
the format 'US100245'.
3) This function module is attached to a BUS object(SWO1).
4) While attaching this function module to BUS object you need not do any manual coding it is done
automatically.
5) Implement, release and generate this BUS object.
6) Create a new variable in your workflow (Parameter name = 'ZSUPERVISOR') for storing the value
which is returned by the Z method.
7) Create a new task.
8) Put in your BUS object name, then your Z method name, select background processing checkbox.
9) Press save, it will ask for transfer of missing elements, select yes.
10) Then you will see a green button below your Z method name click on it.
11) Top portion contains your Z method variables, below to it you have the import parameter window in
this window you should have &EMP& -> &EMP&., below to import parameter window you have
export parameter window in this window you should have &BOSS& <- &BOSS&. (This is method
binding).
12) Now click on enter button then click on back button it will generate the task binding automatically
just press yes.
13) Now click on binding exist button.
14) Here you have the Workflow container variables as well as the system container variables.
15) In the import parameter window left portion is for your workflow variables and right portion is for your
method variables. In my case i had sent workflow initiator and fetched his supervisor. The Import
parameter binding was &WF_INTIATOR& -> &EMP&. and the export parameter binding part was
&ZSUPERVISOR& <- &BOSS&.
16) Save the task and run the workflow.
Regards.
Vaibhav Patil. -
Problem reading RFC values from IRecordSet !!!!
Hi All,
I am having some problem reading values from IRecordSet. Can not seem to parse the output structure from RFC. AM using connector gateway service to execute BAPI_EXCHRATE_GETCURRENTRATES.
Here is the code,
MappedRecord input = rf.createMappedRecord("input");
input.put("DATE",new String("01011990"));
input.put("DATE_TYPE", new String("V"));
input.put("RATE_TYPE", new String("M"));
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
Object rs = null;
IRecordSet recSet = null;
Object result = output.get("EXCH_RATE_LIST");
if (result == null) {
response.write("<BR>null");
rs = new String(" ");
} else if (result instanceof IRecordSet) {
IRecordSet irs = (IRecordSet) result;
response.write("<BR>Got some dataaa");
IRecordMetaData rsmd = null;
rsmd = irs.retrieveMetaData();
irs.beforeFirst();
while(irs.next()){
response.write("Row::"+irs.getString("RATE_TYPE")+" "+irs.getString("FROM_CURR")+" "+irs.getString("EXCH_RATE"));
Am getting the pritn statement, Got Some Data on the PDK component.
But somehow not able to read the values from IRecordSet
What is the mistake here?
Pls help
Edited by: Aakash Jain on Oct 11, 2008 12:22 AMHi
Try in this way.
IRecordSet resultTable = (IRecordSet)outputParams.get("TABLE_NAME");
for(resultTable.beforeFirst(); resultTable.next(); ) {
response.write(resultTable.getString(0));
response.write(resultTable.getString(1));
Thanks -
Problems getting selected values from HtmlSelectManyCheckbox
Hello,
I am having problems getting values via getSelectedValues() from my HtmlSelectManyCheckbox component. The method returns an object array but the values are the same as the initial selectItems property.
JSP:
<h:selectManyCheckbox id="checkBox"
binding="#{userEditBean.manyCheckbox}"
value="#{userEditBean.groupIds}"
layout="pageDirection">
<f:selectItems value="#{userEditBean.allGroups}"/>
</h:selectManyCheckbox>
<h:commandButton action="#{userEditBean.ok}" value="OK"/>Bean:
public class UserEditBean extends BaseBean {
private HtmlSelectManyCheckbox manyCheckbox = new HtmlSelectManyCheckbox();
private String[] groupIds= {};
private List allGroups = new ArrayList();
public String[] getGroupIds() {
groupIds= backing.getSomeIds();
return groupIds;
public void setGroupIds(String[] ids) {
this.groupIds= ids;
public HtmlSelectManyCheckbox getManyCheckbox() {
return manyCheckbox;
public void setManyCheckbox(HtmlSelectManyCheckbox newC) {
this.manyCheckbox = newC;
public List getAllGroups() {
allGroups = backing.getAllGroups();
return allGroups;
public void setAllGroups(List newList) {
this.allGroups = newList;
public String ok() {
Object o = manyCheckbox.getSelectedValues();
}The problem is, the getSelectedValues() returns the values from the initial state of the page. The is no mark of the changes made by the user. Any help will be appreciated
Thanks,
MatekYour approach is somewhat odd. The selected values are just reflected in the groupIds, but you're overridding it with backing.getSomeIds() each time when the getter is called.
Here is a basic working example:<h:selectManyCheckbox value="#{myBean.selectedItems}">
<f:selectItems value="#{myBean.selectItems}"/>
</h:selectManyCheckbox>
<h:commandButton value="submit" action="#{myBean.action}" />MyBeanprivate List<String> selectedItems;
private List<SelectItem> selectItems;
// + getters + setters
// You can use initialization block or constructor to prepopulate the selectItems.
selectItems = new ArrayList<SelectItem>();
//or
public MyBean() {
selectItems = new ArrayList<SelectItem>();
public void action() {
// The selected items are reflected in selectedItems.
for (String selectedItem : selectedItems) {
System.out.println(selectedItem);
} -
Problem regarding accessing values from IBM Tivoli Directory Server
hi,
I am able to retrieve the values from ITDS.
But the problem is when retrieving userPassword attribute value.
Actually when i enter the userid and password in an html page and try to retrieve the corresponding user information from ITDS then it gives me exception
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
org.apache.jsp.Report_jsp._jspService(Report_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
While it is working fine for other attributes like mail etc.
Is it somewhat related to encryption of password.
How can it be solved?
ThanksHi!
pls see http://help.sap.com/saphelp_nw70/helpdata/EN/44/0761cea5c610b3e10000000a11466f/frameset.htm
if the users shall be created in the LDAP directory the UME datasource configuration has to be read/write.
Regards
Michael -
Problem in Retrive values from result set
I have a class where i do all database operation .First i fire select query and take values from result set and based on that value i fire update query.
Problem is that i am not getting all values from result set . i get only last value and when i fire update query i get error as :Resultset is closed.
I am using acess and java.You probably are using the same Statement object for both queries? Try creating separate Statement objects for each query. (My guess is this a problem with the way you're using JDBC, not a Servlet issue.)
-
Short Dump while fetching values from a Database view
Hi ALL,
Here is the code that is giving short dump
SELECT * FROM ZVMATLMOVE INTO TABLE I_MATLMOVE
WHERE BUDAT >= V_LASTRUN_DATE
AND WERKS IN S_WERKS
AND LIFNR IN S_LIFNR
AND EBELN IN S_EBELN
AND MATNR IN S_MATNR
AND BWART IN S_BWART
(Please don't say that I am using * in the select query,
I knew that it is not a good way of fetching values)
Declaration of the internal table is:
DATA I_MATLMOVE LIKE ZVMATLMOVE OCCURS 0 WITH HEADER LINE.
The variable V_LASTRUN_DATE is:
DATA V_LASTRUN_DATE LIKE SY-DATUM.
We will be getting the lastrundate value from another table. And it is passing correct value (ex. 20060731)
ZVMATLMOVE is a database view created for MKPF and MSEG table. And I checked both table were consistent.
Dump Analysis:
Runtime errors DBIF_RSQL_SQL_ERROR
Exception CX_SY_OPEN_SQL_DB
Every thing is fine. But I don't know how it is going to dump. Any suggestions?Hi !
It seams that your table is not correct / fully activated.
To check it out you should try the following:
- Go to the SE11
- Give it your table name and go to "Display"
- Check if the table is "active"
- Choose "Utilities->Database Object->Check" and see
if there are any errors
- go back and choose "Utilities->Runtime Object->Check"
and see if there are any errors
If there are any errors - try to activate the table again. You may need the "Utilities->Database Utiliy" for that.
After there are no more errors by checking all these your program should work.
Regards
Rainer
Some points would be nice if thate helped a bit. -
JCo's StatefulServerExample problem (returning a value from RFC call?)
Hi,
I'm using JCo3 and want to run StatefulServerExample sample program. I've created the ABAP-side code according to JCo's docs (2 wrappers and report ZJCO_STATEFUL_COUNTER). I'm connecting to SAP CRM. I've successfully runned all other sample programs.
I've got a problem with receiving data from the JCo server to CRM report. The error is reported on the SAP's side:
error: CALL_FUNCTION_WRONG_VALUE_LENG
description: Incorrect field length for 'Remote Function Call'.
error analysis:
A data error occured when executing a Remote Function Call
The length of one of the fields is incorrect.
Length of source field... 1
Length of target field .. 4
Data type of field....... 8
(Data type 0=C, 1=D, 2=P, 3=T, 4=X, 6=N, 7=F, 8=I)
error is triggered by the call to 'Z_GET_COUNTER' (see code below).
There is no problem with preceding calls to JCo server which do not return anything.
I would appreciate any help with this problem!
Piotr
Problematic report code:
*& Report ZJCO_STATEFUL_COUNTER
REPORT ZJCO_STATEFUL_COUNTER.
PARAMETER dest TYPE RFCDEST.
DATA value TYPE I.
DATA loops TYPE i VALUE 5.
DO loops TIMES.
CALL FUNCTION 'Z_INCREMENT_COUNTER' DESTINATION dest.
ENDDO.
CALL FUNCTION 'Z_GET_COUNTER' DESTINATION dest
IMPORTING
GET_VALUE = value.
IF value <> loops.
write: / 'Error expecting ', loops, ', but get ', value,
' as counter value'.
ELSE.
write: / 'success'.
ENDIF.It seems to me that the ABAP code in the example is wrong - it should be INT1 instead of i:
DATA value TYPE INT1.
Now it works.
Maybe you are looking for
-
Cloning ebs r12 on 11gR2 database
Hi all, our ebs r12 12.1.3 and db 11..2.0.2 OS:oul5x64 from ebs r12 12.1.3 and db 11.1.0.7 i do not have any problems with cloning, but when upgrade database to 11.2.0.2 . the template file was different and the clone failed because it could not fine
-
How do I connect my goole chromebook to my hp3510 printer
hi, can you please help me, with my questions
-
Had been able to launch URL fropm E-Mail. Now I cannot. Turned off firel and E-Mail scanners etc. Using Microsoft Outlook on Windows 7 with McAfee Total Protection
-
External ID (SSCC / EXIDV) for each item inside a heterogeneous pallet
Hello experts, I need to generate an external ID (SSCC code) to each item (box) inside a multi-product HU(pallet) in my system. In normal operation, my system picks up a delivery and packs it, creating standard HUs (one fixed quantity of one material
-
I am looking for anyone in the west Tennessee area using Wild Blue along with Apple IMac who is having a problem with their screen going complelely white every so often. Have had the maching into the Apple store in Memphis. They could not get it to