How to get values from resultset when using subquery???
Hi ,
I have a problem in executing sql query from java.
I am executing an sql query which return a intersection of values from 3 tables.
Here is the query I am using
select id from dps_user where id in (select b.id from dps_user b,laserlink c
where c.userid='univ.'||b.login and c.status in(1,3,8,9,10)
intersect
select b.id from dps_user b,laserlink c
where c.userid=b.login and c.status in(1,3,8,9,10)).
this query is working fine from sql .
when I am trying to excute the same query from java nothing is coming into resultset.
String ISP_AND_EMAIL="select id "+
" from dps_user where id in (select b.id from dps_user b,laserlink c "+
"where c.userid='"+"univ.'"+" ||b.login and c.status in(1,3,8,9,10)"+
" intersect "+
" select b.id from dps_user b,laserlink c"+
" where c.userid=b.login and c.status in(1,3,8,9,10))";
System.out.println(ISP_AND_EMAIL);
rs=stmt.executeQuery(ISP_AND_EMAIL);
How to use concatinate string (|| ) in java.
can anyone help to retrieve the values from this resultset...
Thanks
concatnation is done using + in java.
I am doubtful about the following line where there may be error
"where c.userid='"+"univ.'"+" ||b.login and c.status in(1,3,8,9,10)"+
I don't know if the univ. is a string or some variable.I need more clarification on this line,then i may help u.
thx
Similar Messages
-
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM -
How to get values from an IFrame...
Hi everyone. I have come to a complete stop i my project and need to ask the following: How do i get the values from an IFrame.
Situation: I have a main.jsp page that contains an IFrame(data.jsp). Data.jsp is basically made up of a bunch of checkboxes. The state of these boxes(checked or unchecked) is determined and set by a JAVA program and the results are then stored in a StringBuffer. Contents of Stringbuffer could look something like this: <tr><input type='checkbox' name='box0' CHECKED></tr>.
The StringBuffer in then presented in the IFrame(data.jsp) like so: <%=res.getInfo()%>
The user should be able to check or uncheck the boxes from the main.jsp page then when pressing a submit button the changes should be stored in a DBase.
After the submit button have been pressed i go into my Servlet's doPost() method for some basic processing. This is were the problem starts. I usally use HttpServletRequest.getParameter(String param) to get values from the main.jsp page. But these checkboxes are stored in the IFrame, so how do i go about to retrieve the values from data.jsp from the doPost() method or in some other way maybe. This is quite urgent and i hope that i have explained the scenario in enough detail.
Any help would be greatlly apritiated.
Best regards
PeterHello
Just try this link
http://www.faqts.com/knowledge_base/view.phtml/aid/13758/fid/53
HTH -
How to get values from a stored package variable of type record ?
Sir,
In my JClient form, I need to get values from a database stored package variable of type record. And the values are retained in the JClient form for the whole session. The values are copied only once when the form is started.
What is the best way to do that ?
Thanks
StephenStephen,
not sure what your model is, but if it is Business Components, I think I would expose the properties as a client method on the application module. This way all JClient panels and frames will have access to it. You could use a HashMap to store the data in teh app module.
If JDBC supports the record type, then you should be able to call it via a prepared SQL statement. If not, you may consider writing a PLSQL accessor to your stored procedure that returns something that can be handled.
Steve Muench provides the following examples on his blog page
http://otn.oracle.com/products/jdev/tips/muench/stprocnondbblock/PassUserEnteredValuesToStoredProc.zip
http://otn.oracle.com/products/jdev/tips/muench/multilevelstproc/MultilevelStoredProcExample.zip
Frank -
JSF:how to get value from dinamically generated HtmlInputText components�H�H
<h:panelGroup binding="#{dynamicInputGroupBean.group}"/>
public HtmlPanelGroup getGroup() {
if (this.getSelectedComp() == null) {
return this.group;
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
this.group = new HtmlPanelGroup();
Set pSet = this.getSelectedComp().getParameterses();
int size = pSet.size();
this.instanceValue = new String[size];
int i = 0;
for (Iterator it = pSet.iterator(); it.hasNext();) {
Parameters tempP = (Parameters) it.next();
HtmlOutputLabel outputLable = new HtmlOutputLabel();
HtmlInputText inputText = new HtmlInputText();
inputText.setId("p" + i);
String valueBindingExpression = "#{dynamicInputGroupBean.instanceValue["+i+ "]}";
System.out.println(valueBindingExpression);
ValueBinding valueBinding = application
.createValueBinding(valueBindingExpression);
inputText.setValueBinding("value", valueBinding);
outputLable.setFor(inputText.getId());
outputLable.setValue(tempP.getParaname() + ": ");
group.getChildren().add(outputLable);
group.getChildren().add(inputText);
i++;
// group.getChildren().add(new HtmlInputText());
return group;
}as codes show above, i successfully genera HtmlInputText dinamicaly�C
but i got problems while i try to print those values...
after the the jsp page presents in my browser,
i input some words in the input components,
and then click a commandButton hold an action to print their value
action code :
String[] tempArray = this.getInstanceValue();
for (int i = 0; i < tempArray.length; i++) {
System.out.println(tempArray);
only NULL has been printed in the consol ....not the word i inputed!!!
so my question is how can i get values from those
dinamically generated HtmlInputText ????This approach is odd. What's the functional requirement after all? You normally attach the inputtext value to a backing bean property and do the desired command button action which is attached to a backing bean action method. In this method you then use the value for the query.
-
How to get value from one context node to otehr contect conde in diff views
Hello Guru's
We have a rek which is of getting the value from one context node to other context node,
for example there is Total value in BT111H_OPPT/ITEMLIST (One context node) we need to have the same Total value in the in BT111H_OPPT/DETAILS (other context node) automatically
Inputs are highly appricated.......Hello,
Thanks for your Reply
But my rek is i want to get value from different views
eg BT111H_oppt/itemslist(contex node - BTADMINI) field net value to BT111h_opp/Details(Context node - BTopporth)
for this which method should i use to chive this.
Thanks.. -
How to trap null return values from getters when using Method.invoke()?
Hi,
I am using Method.invoke() to access getters in an Object. I need to know which getters return a value and which return null. However, irrespective of the actual return value, I am always getting non-null return value when using Method.invoke().
Unfortunately, the API documentation of Method.invoke() does not specify how it treats null return values.
Can someone help?
ThanksWhat do you get as a result?I think I know what the problem is.
I tested this using following and it worked fine:
public class TestMethodInvoke {
public String getName() {
return null;
public static void main(String args[]) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
Object o = new TestMethodInvoke();
Class cls = o.getClass();
Method m = cls.getMethod("getName", (Class[]) null);
Object result = m.invoke(o, (Object[])null);
if (result == null) {
System.err.println("OK: Return value was null as expected");
else {
System.err.println("FAILED: Return value was NOT null as expected");
However, when I use the same technique with an EJB 3.0 Entity class, the null return value is not returned. Instead, I get a String() object. Clearly, the problem is the the EJB 3.0 implementation (Glassfish/Toplink) which is manipulating the getters.
Regards
Dibyendu -
How to get values from afLiterator ?
Hi All,
I have a grid populated records using af:Iterator. Row are populated from the List model(say product list). The iterator component i binded in the bean.
Now i have showing 5 records per page. total 3 pages are there.
There is a boolean check box for each rows. and a common check box to select all the rows in the page.
I dont know how to get the rows of current set when i select the SelectAll checkbox, similarlly i have to do the same when i go to page 2 of the iterator.(page 2 means next range of records in the iterator)
My requirement is using the af:iterator not af:table.. please helpHi,
af:iterator does i) not keep track of selection states and ii) stamp data
i) The selection state needs to be tracked with <f:attribute ...> tags added to the check box component. The value of the attribute should identify the row (ideally by a unique key). The name of the attribute is up to you. When you iterate over the selected check boxes you call getAttribute() on the check box component to access your custom attribute for identifying the row instance
ii) rows are no individual instances and there fore cannot be directly accessed. af:forEach may be a better fit for your use case as it created component instances that then allow you to call the JSF parent container and getChildren on this. You then look for the checkbox component instances and verify its selection state. For selected components you the access the custom attribute
Frank -
How to get values from workflow to program
Hello everybody,
I am stuck with an issue in workflow. I want to know how can I get the values of workflow in Abap program.
Scenario:
The workflow is triggered when a user does the transaction MIGO.
The user gets a workflow in his SAP inbox. He clicks on the link and is able to view details in MIGO.
I want to get the material number and year in program ( as shown below)
I am new to workflow, is there any kind of binding to do? And maybe a method or function module which will allow to get these values in program.
Thanks a lot
RegardsHello,
With some help here and there, we have been able to set up the workflow. Special thanks to Modak Gupta.
I'm sharing the steps below. I would be grateful if someone could explain the different binding, what are their purposes depending on the place they are done, etc. I am still not very at ease with the binding. Thanks.
Requirement:
Once MIGO is done, the client wishes to do another MIGO. For him to know that the first MIGO has been done, he needs to get it in his SAP Inbox (Workflow). From there, he can just execute the workflow and he will do the second MIGO.
Steps:
1. Create a BAPI in SE37 to get the purchase order (we need it because we will open the second MIGO with the purchase order of the first MIGO). We will also call the transaction MIGO in the BAPI (For our requirement, it is ZMIGO, but very similar to MIGO, just some different customizing).
In the BAPI, use the function module BAPI_GOODSMVT_GETDETAIL to get the purchase order.
A BDC is also done in the BAPI to open ZMIGO with the purchase order.
Code:
FUNCTION zbapi_call_transaction.
*"*"Interface locale :
*" IMPORTING
*" VALUE(MATERIALDOCUMENT) TYPE MBLNR
*" VALUE(MATDOCUMENTYEAR) TYPE MJAHR
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRETURN
DATA: gt_items TYPE STANDARD TABLE OF bapi2017_gm_item_show,
gs_items TYPE bapi2017_gm_item_show,
gt_return TYPE STANDARD TABLE OF bapiret2,
gs_header TYPE bapi2017_gm_head_02,
l_materialdocument TYPE bapi2017_gm_head_02-mat_doc,
l_matdocumentyear TYPE bapi2017_gm_head_02-doc_year.
DATA: gs_bdcdata TYPE bdcdata,
gt_bdcdata TYPE TABLE OF bdcdata,
l_opt TYPE ctu_params.
l_materialdocument = materialdocument.
l_matdocumentyear = matdocumentyear.
CALL FUNCTION 'BAPI_GOODSMVT_GETDETAIL'
EXPORTING
materialdocument = l_materialdocument
matdocumentyear = l_matdocumentyear
IMPORTING
goodsmvt_header = gs_header
TABLES
goodsmvt_items = gt_items
return = gt_return.
READ TABLE gt_items INTO gs_items INDEX 1.
IF sy-subrc EQ 0.
CLEAR gs_bdcdata.
gs_bdcdata-program = 'SAPLMIGO'.
gs_bdcdata-dynpro = '0001'.
gs_bdcdata-dynbegin = 'X'.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = 'BDC_CURSOR'.
gs_bdcdata-fval = 'GODYNPRO-PO_NUMBER'.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = 'GODYNPRO-PO_NUMBER'.
gs_bdcdata-fval = gs_items-po_number.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = 'BDC_CURSOR'.
gs_bdcdata-fval = 'GODEFAULT_TV-BWART'.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = 'GODEFAULT_TV-BWART'.
gs_bdcdata-fval = '101'.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = 'BDC_CURSOR'.
gs_bdcdata-fval = 'GODYNPRO-PO_NUMBER'.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = 'BDC_OKCODE'.
gs_bdcdata-fval = '=OK_GO'.
APPEND gs_bdcdata TO gt_bdcdata.
l_opt-dismode = 'E'.
l_opt-defsize = 'X'.
CALL TRANSACTION 'ZMIGO' USING gt_bdcdata OPTIONS FROM l_opt.
ENDIF.
ENDFUNCTION.
2. Create a Business Object in SWO1.
It is a copy of BUS2017, we have added our BAPI and an event. We also modified the program.
Modify the program by clicking on Program above:
Add the parameters in the new method (BAPI)
Add the parameters in the new Event.
3. Implement the BADI in SE18 / SE19
BADI: MB_DOCUMENT_BADI -
Method: MB_DOCUMENT_BEFORE_UPDATE
Get the purchase order
Use the function module SAP_WAPI_CREATE_EVENT to pass values from program to workflow.
Code:
method IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE.
DATA : BEGIN OF key,
mblnr TYPE mkpf-mblnr,
mjahr TYPE mkpf-mjahr,
END OF key.
DATA : event_container TYPE TABLE OF swcont.
DATA : objkey TYPE sweinstcou-objkey.
DATA : s_xmkpf TYPE mkpf.
DATA: l_RETURN_CODE TYPE sy-subrc,
l_event_id TYPE SWR_STRUCT-EVENT_ID,
lt_container TYPE STANDARD TABLE OF SWR_CONT,
ls_container TYPE SWR_CONT.
data :INPUT_CONTAINE type table of SWR_CONT ,
x_cont type swr_cont.
" numéro commande d'achat
DATA ls_xmseg TYPE mseg.
CLEAR ls_xmseg.
READ TABLE xmseg INTO ls_xmseg INDEX 1.
x_cont-ELEMENT = 'MATERIALDOCUMENT'.
x_cont-VALUE = ls_xmseg-mblnr.
APPEND x_cont to INPUT_CONTAINE.
x_cont-ELEMENT = 'MATERIALDOCYEAR'.
x_cont-VALUE = ls_xmseg-mjahr.
APPEND x_cont to INPUT_CONTAINE.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
object_type = 'ZYBI'
object_key = objkey
event = 'EVENT2'
COMMIT_WORK = space
IMPORTING
RETURN_CODE = l_RETURN_CODE
EVENT_ID = l_event_id
TABLES
INPUT_CONTAINER = INPUT_CONTAINE.
endmethod.
4. Create the workflow in SWDD
Add the Business Object in the container and tick Import.
Create a task with the following details.
Click on Binding in the above screen:
Create an Activity and attach the task to it.
Affect Agents
Add a starting event in Basic Data.
Add a Process Control to end the workflow.
Workflow Final should look like this:
I hope it would be helpful to some of you. Sorry about the binding, there might be some issues not correct. But normally, if you follow the steps as they are, and for binding, you do Automatic Binding, it should be ok.
Thanks -
How to get values from a TextFiled
This may be a newbie question, that's okay, because I'm new to JHeadstart.
I have a page for changing a user's password. The page has 3 fields (userid, oldpassword, newpassword) and a button (save). When the user clicks the button I want to capture the values the user is sending and run a SQL statement against the database with values from the textfields in the SQL statement.
I have a class that contains a custom method alterUser() that will do the SQL execution. The problem is that my values that show up in create(AttributeList attributeList) in the TextFields are showing up as null. See bottom of code below....
Suggestions?
package mil.af.aces.hf.persistence.bc4j;
import oracle.jbo.server.EntityImpl;
import oracle.jbo.server.EntityDefImpl;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.AttributeList;
import oracle.jbo.Key;
import java.sql.Statement;
import java.sql.SQLException;
import javax.servlet.ServletRequest;
import oracle.jbo.JboException;
import oracle.cle.process.ProcessInfo;
import oracle.cle.process.ProcessConstants;
import oracle.clex.process.controller.HttpServletController;
import mil.af.aces.hf.persistence.bc4j.common.HfJhsApplicationModuleImpl;
import oracle.jheadstart.persistence.bc4j.common.Bc4jDBTransaction;
// --- File generated by Oracle Business Components for Java.
public class VhfChgPswdImpl extends EntityImpl
implements AttributeList
protected static final int DBMSID = 0;
protected static final int OLDPASSWORD = 1;
protected static final int NEWPASSWORD = 2;
private static EntityDefImpl mDefinitionObject;
* This is the default constructor (do not remove)
public VhfChgPswdImpl()
* Retrieves the definition object for this instance class.
public static synchronized EntityDefImpl getDefinitionObject()
if (mDefinitionObject == null)
mDefinitionObject = (EntityDefImpl)EntityDefImpl.findDefObject("mil.af.aces.hf.persistence.bc4j.VhfChgPswd");
return mDefinitionObject;
* Gets the attribute value for DbmsId, using the alias name DbmsId
public String getDbmsId()
return (String)getAttributeInternal(DBMSID);
* Sets <code>value</code> as the attribute value for DbmsId
public void setDbmsId(String value)
setAttributeInternal(DBMSID, value);
* Gets the attribute value for OldPassword, using the alias name OldPassword
public String getOldPassword()
return (String)getAttributeInternal(OLDPASSWORD);
* Sets <code>value</code> as the attribute value for OldPassword
public void setOldPassword(String value)
setAttributeInternal(OLDPASSWORD, value);
* Gets the attribute value for NewPassword, using the alias name NewPassword
public String getNewPassword()
return (String)getAttributeInternal(NEWPASSWORD);
* Sets <code>value</code> as the attribute value for NewPassword
public void setNewPassword(String value)
setAttributeInternal(NEWPASSWORD, value);
// Generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception
switch (index)
case DBMSID:
return getDbmsId();
case OLDPASSWORD:
return getOldPassword();
case NEWPASSWORD:
return getNewPassword();
default:
return super.getAttrInvokeAccessor(index, attrDef);
// Generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception
switch (index)
case DBMSID:
setDbmsId((String)value);
return;
case OLDPASSWORD:
setOldPassword((String)value);
return;
case NEWPASSWORD:
setNewPassword((String)value);
return;
default:
super.setAttrInvokeAccessor(index, value, attrDef);
return;
* Creates a Key object based on given key constituents
public static Key createPrimaryKey(String dbmsId)
return new Key(new Object[] {dbmsId});
public void alterUser(String dbmsId, String newPassword)
Statement st = null;
try {
String sql = "ALTER USER " + dbmsId + " IDENTIFIED BY " + newPassword + ";";
Bc4jDBTransaction tr = (Bc4jDBTransaction)getDBTransaction();
st = tr.createStatement(0);
int rows = st.executeUpdate(sql);
System.out.println("Updated Rows="+rows);
catch (SQLException s) {
throw new JboException(s);
finally {
try {
if (st != null) st.close();
catch (SQLException s) { /* ignore */}
protected void create(AttributeList attributeList) {
super.create(attributeList);
System.out.println("In Create Method");
System.out.println( "Request = " + HttpServletController.HTTPREQUEST.toString()); // = "HTTPREQUEST"
System.out.println("Posted Attribute 1 = " + this.getPostedAttribute(1).toString() ); // = null
System.out.println("Posted Attribute 2 = " + this.getPostedAttribute(2).toString() ); // = null
System.out.println("looping through values");
// SHOWS THAT THERE ARE 3 OBJECTS, BUT ALL THREE ARE NULL
String myNames[] = getAttributeNames();
Object myValues[] = getAttributeValues();
System.out.println("array sizes");
System.out.println(" > myNames:" + myNames.length) ;
System.out.println(" > myValues:" + myValues.length) ;
for (int i = 0; i < myNames.length; i++) { // LENGTH IS THREE
System.out.print( "name: " + myNames);
if (myValues[i] != null)
System.out.println(" value= " + myValues[i].toString() );
else
System.out.println(" value: is NULL ...:" + myValues[i]); // << PRINTS THIS 3 TIMESHi,
The BC4J create statement fires when the "New" button is pressed, so when an EMPTY record is created. It's normal that at that point all attributes are null.
What you probably want to do, is catch the "Save" process. You can do that by overriding the doDML method (menu: Tools - Override Methods). At that point the attributes should not be null anymore.
Hope this helps,
Sandra Muller
JHeadstart Team -
How to get values from a query string in URL in a jsf page?
if i have a url, http://my.com/?name=john+smith, how do i get the values from that url in a jsf page and then pass those values to a servlet?
i know how to do that in jsp using "request.getParamter("name")" and save it in a bean and then forward to a servlet. But what about in jsf?Hello,
Try this:
Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
String name = (String) requestMap.get("name");If isn't worked one of these methods probably will solve your problem.
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap();hth. -
How to open document from mac when using windows without transferring the file?
How can i open a document from mac when i am using windows without transferring it?
depend on the document program more then anything else really
when ever I open a doc with word it make a history for undo and redo action file in the same dir
with bootcamp you only have read not write access to the osx partition so it would fail to be able to create that file
but if you can get word or whatever program you use to open the file not to place a temp file in the same dir
or use a program which did not make any type of temp file or used a program where the temp file would be located elsewhere where you decide it would work file -
How to get a report "closed" when using the ReportViewerBean
I read the article /people/ted.ueda/blog/2008/12/20/crystal-reports-for-eclipse--ensuring-report-cleanup from Ted Ueda regarding cleaning up reports for the RAS server. However, I'm trying to figure out how to get this accomplished for a thick client accessing a local rpt file and then displaying that file using the ReportViewerBean. I can't seem to get the report closed. I tried the dispose() techniqe from the article, but with no success.
My basic process is:
1) Press button on main frame to open and set up report
2) Pass open report (via ReportClientDocument) object to the viewer frame class (which views report in separate window using ReportViewerBean)
3) Close viewer window when done, destroy ReportVieweBean and close ReportClientDocument
4) Press button again on main frame later to view report
If I set up the report but skip the step of sending the report to the viewer frame, ReportClientDocument.isOpen() will go from true to false after I execute just the ReportDocumentClient.close() command. However, if open the viewer frame, I cannot get the report closed.
In the window closing event for my viewer window I have:
public void quit() {
try {
CrystalReportViewer crv1 = new CrystalReportViewer();
crv1.setReportSource(reportClientDoc.getReportSource());
reportViewer.destroy(); //this is a ReportViewerBean
reportClientDoc.close(); //this is a ReportClientDoc
crv1.dispose();
//the following is always true
System.out.println("ReportClientDoc.isOpen: " + reportClientDoc.isOpen());
this.dispose();
catch(ReportSDKException ex) {
ex.printStackTrace();
catch(ReportSDKExceptionBase ex) {
ex.printStackTrace();
I'm using the latest Java CR4E 12.2.205.825 downloaded from the CR4E website. Any ideas?
Edited by: Joseph Huber on Mar 16, 2010 8:13 PMThe webservices you are trying to use are not the ones used for enterprise, they are used for non-enterprise applications accessing reports that are stored in a specific location on the web server.
Here are samples that use our Enterprise SDK:
[https://boc.sdn.sap.com/samples/84/1193|https://boc.sdn.sap.com/samples/84/1193]
Here are samples that use our Enterprise Web Service SDK:
[https://boc.sdn.sap.com/samples/84/1197|https://boc.sdn.sap.com/samples/84/1197]
You can also look at the SDK documentation available here:
[http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm] -
How to Get Value from a Variable to restrict a Key Figure ?
I am trying to make a query in Query designer, we are running BI7.
I have a user entry veriable on the Fiscal year period, the user will need to enter a period they want the report for, i.e. 07.2008 for July 2008 report and 04.2008 for April 2008 report.
Based on what the user entered as the starting period (in the variable entry), I have to then use that initial value and show the Year to date value (of sales etc) in the next column.
To Clarify, if user entered 07.2008 then all the data from 01.2008 to 07.2008 needs to be in the next column. if user entered 04.2008 then all the data from 01.2008 to 04.2008 should be in the next column.
So to summarise according to my understanding, I want to get the value from a variable and pass it onto another variable to restrict a key firgure (sales amount)...
Can someone please clarify what i need to do here?
Many thanks in advance, points will be awarded accordingly.hi,
please follow the below steps:
1. Create a new varialbe , this variable should be processed by customer exit.
2. In the column section, create a new column and drag the sales key figure, also drag fiscal year period and restrict with the new variable.
3. In the cmod tcode write a customer exit code to extract the value of the user entry and assign it your variable, you can refer to the below code.
WHEN '< New VAR name>'.
IF I_STEP = '2'. "AFTER THE POPUP
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = '<Fiscal Year Period VAR Name>'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4).
L_S_RANGE-LOW+4(3) = '001'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "LOW E.G. 2001006
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
For ex- if the user enters 008/2008, this code will create as range assign 001/2008 - 008/2008 value to the variable.
hope it helps,
rgs,
Parth.
Maybe you are looking for
-
Can see contents of remote disk, but can't see it's contents
Hi community. My configuration: MBA 13" (late 2010) and a Win7 computer with a DVD drive. Done everything as described in this note: http://support.apple.com/kb/HT1777 On MBA, I see the entry "Remote disk" on the sidebar, i see my Win7 PC in the list
-
Using a returned set of tuple as a table in another query.
I want to do the following, and I'm having problem finding a solution. I want a function a that returns a set of rows and then I want do do a select statement later where the return value from a is treated as a table in the from statement. One exampl
-
IE table rendering issues. Any ideas how to eliminate extra cell spacing rendered by IE
I have a problem with IE 9 rendering a table. This particular page has a larger table rendered for an application. 1. I have disabled all CSS on the site (its strictly in the table render on the site) 2. Removed as much spacing as possible in
-
How events are handled in mac os x
Hi I am trying to write an application to handle driver asynchronous event.. it should be similar to iwevent in our linux.. can anybody give me an idea as how to start with it.. and what are all the API's used for the same.. Thanks in advance
-
HT3325 I can't find Keynote Remote at the app store
I've gone to the App Store and can't find Keynote Remote available. Is it no longer used? Is there a replacement?