Need help to build Portal Insert URL in OAM..
Hi All,
I have a requirement to customize the user Manager screen in such a way that i need to get only the search criteria tab(but not any of the tabs or links) and the search results.
To achieve this i have builded below Portal URL.
http://training.orademo.com/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=search&comp=true
By using this above URL i am able to hide all the tabs in the browser but i need to have that search criteria to be displayed in the screen.
Can any one please suggest me the solution to achieve this.
Its bit urgent requirement.
Thanks in advance.
Siva Pokuri.
Hi Colin,
Thanks for your quick response.
URL that i posted will search the users in OAM. But my requirement is like i have to select the attribute and search type and search value from that page(in that Page i should not have UserManager, GroupManager, Org Manager, Identity SYstem Console tab and My Profile , reports ...etc links should not be appear) i sould be able to select the attribute that i would like to search only. so the search functionality should be there.
Based on this req i have to build the URL.
Please help me.
Thanks & Regards,
Siva Pokuri.
Similar Messages
-
Need help in building a utility...?
Gurus,
I need to build a dynamic selection screen for a utility that will extract data from a legacy database. I am not sure how to do it....I have the design in mind but will need help from you experts in the implementation.
So i need to have to twol radip buttons on the selection screen such that when one radio button is clicked then few other select options come on the screen and when the other radio button is selected then different select options come on the screen.
Once the user any of these two radio buttons and fill in the respective values for the parameters, then i have to fire native SQL queries on the legacy SQL database.
Any suggestions...
First i need to code the dynamic selection screen ....Your help will be appreciated...
ThanksPlease have a look at below link. May be helpful to you...[Dynamic Selection Screen|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a07a330f-126c-2910-c684-d2a45f0f37dd]
I hope it helps.
Best Regards,
Vibha -
Need help on the Portal Logged on Users Custom tool
Hello Everyone
I am trying to build a tool by following the below blog written by Micheal Nicholls,
Building a tool to monitor who is logged on to an SAP NetWeaver Portal...
can some body suggest me on how to start building this.
I am assuming I need to create two portal components and create an iview with the second component. so that it will fetch the users from the file wher the first component has placed on the temp directory. is it correct.
Do I just need to deploy the first component or do anything specific with that?
could some body pls suggest me regarding this. Appreciate your valuable answer.
Thanks
RIoYes you need to make two components and deploy them to your portal. After that you need to find the file SessionManager.jsp at the o/s level of the portal and replace the call of the rtc_script with a call to your component. Restart the portal server and see what happens!
Please note that this is not supported. The idea was to show how you might want to proceed. It is not a fully functioning solution. -
Need help dynamically building combo-boxes...
How can I dynamically build drop down lists?
I was thinking about using a dynamic page, with bind variables
set for sql statements inside <oracle></oracle> tags, or passing
the variable from the first selection to the second selection of
another page (or the same page?)...
Another thing I was thinking about would be to base a form on a
DB procedure, and pass the selections to the procedure, and re-
build the lists that way...
I need to avoid client side processing (javascript) because of
accessiblity concerns.
Any ideas would be greatly appreciated...
RyanAjay,
The following is an excerpt of the code I used. Because of a
lack of time, I haven't made the code generic. The code is used
to interface with Oracle Reports 6i & Oracle Configurator. The
configurator (config_hdr_id & config_rev_nbr) parameters are
selected by the user and passed into Oracle Reports using related
dynamic combo-boxes. Pay particular attention to the
wwpro_api_parameters.get_value function as well as the onChange
javascript. Hope you can take pieces of this for an example.
The following is the code for a Portal dynamic page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Configurator Reports</title>
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Comment out script for old browsers
** this function will open a new URL for the Reports CGI
** executable to run the report
function runReport()
// semi-constants for JavaScript
var cgiexe = "runrep.sh";
var slash = "/";
var colon = ":";
var qmark = "?";
var paramsep = "&";
** URL parameter values
** We should check for nulls, http://, etc. but not for now
var dtlist = document.REPFORM.WEBHOST;
var WEBHOST = dtlist.options[dtlist.selectedIndex].value;
var WEBPORT = document.REPFORM.WEBPORT.value;
var dtlist = document.REPFORM.SERVER;
var SERVER = dtlist.options[dtlist.selectedIndex].value;
var dtlist = document.REPFORM.REPORT;
var REPORT = dtlist.options[dtlist.selectedIndex].value;
var dtlist = document.REPFORM.P_HEADER_ID;
var P_HDR_ID = dtlist.options[dtlist.selectedIndex].value;
var P_REV_NBR = document.REPFORM.P_REV_NBR.value;
var dtlist = document.REPFORM.USERID;
var USERID = dtlist.options[dtlist.selectedIndex].value;
var dtlist = document.REPFORM.DESTYPE;
var DESTYPE = dtlist.options[dtlist.selectedIndex].value;
var dflist = document.REPFORM.DESFORMAT;
var DESFORMAT = dflist.options[dflist.selectedIndex].value;
var dtlist = document.REPFORM.MIMETYPE;
var MIMETYPE = dtlist.options[dtlist.selectedIndex].value;
// construct the final URL given the parameters
var URL = "http://" + WEBHOST + colon + WEBPORT +
"/dev60cgi/"
+ cgiexe + qmark +
"server=" + SERVER + paramsep +
"report=" + REPORT + paramsep +
"p_header_id=" + P_HDR_ID + paramsep +
"p_rev_nbr=" + P_REV_NBR + paramsep +
"userid=" + USERID + paramsep +
"destype=" + DESTYPE + paramsep +
"desformat=" + DESFORMAT + paramsep +
"mimetype=" + MIMETYPE;
// alert("Opening a window with the following URL : \r\r" +
URL);
// open the new window with the constructed URL
//runWindow = window.open(URL);
//Point the current window to the URL to run the form
this.window.location.href=URL;
function getRevision(form)
var l_config_hdr_id =
form.P_HEADER_ID.options[form.P_HEADER_ID.selectedIndex].value;
window.location.href =
"/pls/portal30/!PORTAL30.wwpob_page_util.redirect?_pageid=61&_tab
string=&_portletmode=&_cache=1&cz.p_config_hdr_id="+l_config_hdr_
id;
return false;
//-->
</SCRIPT>
</head>
<body>
<form NAME="REPFORM" METHOD="GET" onSubmit="return false">
<table BORDER=0 CELLSPACING="5" valign="top" align="left">
<tr>
<td ALIGN=LEFT COLSPAN="2"><font face="arial" size="-1"><B>Enter
configuration data and click the button to submit the selected
report.</B></font></td>
</tr>
<TR><TD> </TD></TR>
<tr><td valign="top"><table BORDER=0 CELLSPACING="2">
<TR><TD COLSPAN="3" ALIGN="LEFT">
<FONT COLOR="#6666CC" FACE="arial,helvetica"
SIZE="-1"><NOBR><B>Report Parameters</B></NOBR></FONT>
</TD></TR>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Report:</font></td>
<td><font face="arial" size="-1"><select NAME="REPORT">
<option SELECTED
VALUE="portal_test_report_6i.rdf">portal_test_report_6i.rdf
</select></font></td>
</tr>
<ORACLE>
-- Dynamically retrieving the Configurator Header ID's.
-- kreierso 8-oct-01
declare
v_config_hdr_id oc_config_ord_qte_lookup.config_hdr_id%type;
begin
v_config_hdr_id :=
to_number(portal30.wwpro_api_parameters.get_value('p_config_hdr_i
d','cz'));
htp.p('<TR><TD ALIGN="left"><font face="arial"
size="-1">Configuration Header ID:</font></TD>');
htp.p('<TD><font face="arial" size="-1"><SELECT
NAME="P_HEADER_ID" onchange="getRevision(this.form)">');
htp.p('<OPTION VALUE=" "> ');
for r_get_hdr_values in (
select cz.config_hdr_id, cz.config_rev_nbr
from cz_config_hdrs cz
order by cz.config_hdr_id desc
) loop
if v_config_hdr_id = r_get_hdr_values.config_hdr_id then
htp.p('<OPTION SELECTED
VALUE="'||r_get_hdr_values.config_hdr_id||'">'||r_get_hdr_values.
config_hdr_id);
else
htp.p('<OPTION
VALUE="'||r_get_hdr_values.config_hdr_id||'">'||r_get_hdr_values.
config_hdr_id);
end if;
end loop;
htp.p('</SELECT></font>');
htp.p('</TD></TR>');
htp.p('<TR><TD ALIGN="left"><font face="arial"
size="-1">Configuration Revision:</font></TD>');
htp.p('<TD><font face="arial" size="-1"><SELECT
NAME="P_REV_NBR">');
for r_get_rev_values in (
select cz.config_rev_nbr
from cz_config_hdrs cz
where cz.config_hdr_id = v_config_hdr_id
order by cz.config_rev_nbr desc
) loop
htp.p('<OPTION
VALUE="'||r_get_rev_values.config_rev_nbr||'">'||r_get_rev_values
.config_rev_nbr);
end loop;
htp.p('</SELECT></font></TD></TR>');
end;
</ORACLE>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Format:</font></td>
<td><font face="arial" size="-1"><select NAME="DESFORMAT">
<option SELECTED VALUE="RTF">RTF
<option VALUE="PDF">PDF
<option VALUE="HTML">HTML</select></font></td>
</tr>
<tr><td> </td></tr>
<tr>
<td ALIGN=RIGHT><FONT face="arial" size="-1"><input TYPE="SUBMIT"
NAME="Runrep" VALUE="Run Report"
onClick="runReport();"></FONT></td>
<td ALIGN=RIGHT><FONT face="arial" size="-1"><input TYPE="RESET"
NAME="Reset" VALUE="Reset"></FONT></td>
</tr>
</table></td>
<td valign="top"><table BORDER=0 CELLSPACING="2">
<TR><TD COLSPAN="3" ALIGN="LEFT">
<FONT COLOR="#6666CC" FACE="arial,helvetica"
SIZE="-1"><NOBR><B>Report Paremeters (Hidden
Candidates)</B></NOBR></FONT>
</TD></TR>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Userid:</font></td>
<td><font face="arial" size="-1"><select NAME="USERID">
<option SELECTED
VALUE="kreierso/password@DEV11">kreierso/password@DEV11
</select></font></td>
</tr>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Type:</font></td>
<td><font face="arial" size="-1"><select NAME="DESTYPE">
<option SELECTED VALUE="cache">cache
<option VALUE="Printer">printer
<option VALUE="File">file
</select></font></td>
</tr>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Mimetype:</font></td>
<td><font face="arial" size="-1"><select NAME="MIMETYPE">
<option SELECTED VALUE="application/msword">application/msword
</select></font></td>
</tr>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Reports
Server:</font></td>
<td><font face="arial" size="-1"><select NAME="SERVER">
<option SELECTED
VALUE="Rep60_dev11_shane.dci.com">Rep60_dev11_shane.dci.com
</select></font></td>
</tr>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Web Host:</font></td>
<td><font face="arial" size="-1"><select NAME="WEBHOST">
<option SELECTED VALUE="shane.dci.com">shane.dci.com
</select></font></td>
</tr>
<tr>
<td ALIGN=LEFT><font face="arial" size="-1">Web Port:</font></td>
<td><font face="arial" size="-1"><input type=hidden
NAME="WEBPORT" VALUE="7500">7500</font></td>
</tr>
</td></tr></table>
<TR><TD> </TD></TR>
<TR><TD ALIGN="CENTER" COLSPAN="2">
<font face="arial" size="+1" color="#000099">This is currently
being developed.... ~Thanks, Kirk.</font>
</TD></TR>
</table>
</form>
</body>
</html> -
Need help in building a Query in AR -Daywise Report wih separate outstandin
Hi,
I need to build a report in AR (AR-Daywise Report with separte outstanding)
How to proceeed with sql query for getting the AR-Daywise Report with separte outstanding?
Any help will be needful for me
Thanks and RegardsPost your question in the the Financials forum, you may get a better/faster response.
Financials
Financials
Thanks,
Hussein -
URGENT | Need HELP to build programmatic view criteria
Hi
I need to build programatic view criteria like below,
((JobId = "SH_CLERK" AND Salary > 2500) OR ( Salary > 2500))
AND (DepartmentId =100)
Kindly help how can we achieve this,
The ViewCriteriaItem objects like below, how to link them to achieve like above statement.
ViewObjectImpl empVOImpl = getEmployeesView1();
ViewCriteria vc = empVOImpl.createViewCriteria();
ViewCriteriaRow vcr = vc.createViewCriteriaRow();
//criteria for employee id
ViewCriteriaItem vci1 = vcr.ensureCriteriaItem("JobId");
vci1.setValue("SH_CLERK");
//criteria for showing employees whose salary are more than 10000
ViewCriteriaItem vci2 = vcr.ensureCriteriaItem("Salary");
vci2.setOperator(">");
vci2.setValue(new Number(2500));
//criteria for department
ViewCriteriaItem vci3 = vcr.ensureCriteriaItem("DepartmentId");
vci3.setOperator("=");
vci3.setValue(new Number(100));
vc.addElement(vcr);
empVOImpl.applyViewCriteria(vc);
- Rajesha
Edited by: user12820425 on May 15, 2013 10:18 AMHi Rajesha,
You can follow below steps.
1)Create VOImpl for VO on which you have query based.
2)Remove Column(eg.JobId) from standard Default ViewCriteria
3)In VOImpl create method to Create View custom Criteria, Add element
public ViewCriteria addCustomVC(){
ViewCriteria vc = null;
vc = this.createViewCriteria();
vc.setName("customVC");
ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
vcRow.setConjunction(ViewCriteriaRow.VC_CONJ_AND);
if(getJobId() != null){
vcRow.setAttribute("JobId", "' job_id = "+getJobId()+"'");
}else {
vcRow.setAttribute("JobId",null);
vc.addElement(vcRow);
return vc;
}4)Override standard method public String getCriteriaItemClause to exclude above columns
@Override
public String getCriteriaItemClause(ViewCriteriaItem viewCriteriaItem) {
//JobId
if( "JobId".equals(viewCriteriaItem.getName()) ) {
return (String) viewCriteriaItem.getValue();
}else{
return super.getCriteriaItemClause(viewCriteriaItem);
}5)Override public void executeQuery() method to add custom view criteria
@Override
public void executeQuery()
applyViewCriteria(addCustomVC(), true);
super.executeQuery();
removeApplyViewCriteriaName("customVC");
}Thanks,
Jit -
Need help in recovering portal admin password - URGENT
Hi,
I am unable to start the ALUI LDAP Service and couldn't login to the portal too. Below is the error that I am getting when trying to start the ALUI LDAP Service and I m looking for help to reset the administrator password.
INFO | jvm 1 | 2013/01/16 20:33:11 | Initiating LDAP server start sequence...
INFO | jvm 1 | 2013/01/16 20:33:11 | Starting server on port : 3389
INFO | jvm 1 | 2013/01/16 20:33:11 | Initializing LDAP/X.500 BER protocol codec...
INFO | jvm 1 | 2013/01/16 20:33:11 | Detected 98 active CPU cores.
INFO | jvm 1 | 2013/01/16 20:33:11 | ApacheOpenLogFactory successfully loaded.
INFO | jvm 1 | 2013/01/16 20:33:12 | ApacheOpenLogFactory successfully loaded.
INFO | jvm 1 | 2013/01/16 20:33:12 | Could not start LDAP listener on port 3389:javax.naming.ConfigurationException: Unable to instantiate authtication provider Java class "com.bea.alui.directory.backend.auth.plumtree.PlumtreeAuthenticator". Please check your configuration and ensure that jvm has permission to instantiate this class.
INFO | jvm 1 | 2013/01/16 20:33:12 | WrapperStartStopApp: start main method completed
INFO | jvm 1 | 2013/01/16 20:33:12 | Wrapper Manager: ShutdownHook started
INFO | jvm 1 | 2013/01/16 20:33:12 | WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook
INFO | jvm 1 | 2013/01/16 20:33:12 | Send a packet STOP : 0
DEBUG | wrapperp | 2013/01/16 20:33:12 | read a packet STOP : 0
DEBUG | wrapper | 2013/01/16 20:33:12 | JVM requested a shutdown. (0)
DEBUG | wrapper | 2013/01/16 20:33:12 | wrapperStopProcess(0) called.
DEBUG | wrapper | 2013/01/16 20:33:12 | Sending stop signal to JVM
DEBUG | wrapperp | 2013/01/16 20:33:12 | send a packet STOP : NULL
INFO | jvm 1 | 2013/01/16 20:33:12 | Received a packet STOP :
INFO | jvm 1 | 2013/01/16 20:33:13 | Thread, Wrapper-Shutdown-Hook, handling the shutdown process.
INFO | jvm 1 | 2013/01/16 20:33:13 | calling listener.stop()
INFO | jvm 1 | 2013/01/16 20:33:13 | WrapperStartStopApp: stop(0)
INFO | jvm 1 | 2013/01/16 20:33:13 | WrapperStartStopApp: invoking stop main method
INFO | jvm 1 | 2013/01/16 20:33:13 | Initiating LDAP server stop sequence...
DEBUG | wrapper | 2013/01/16 20:33:09 | JVM signalled a start pending with waitHint of 5000 millis.
DEBUG | wrapperp | 2013/01/16 20:33:09 | read a packet STARTED :
DEBUG | wrapper | 2013/01/16 20:33:09 | JVM signalled that it was started.
DEBUG | wrapperp | 2013/01/16 20:33:10 | send a packet PING : ping
INFO | jvm 1 | 2013/01/16 20:33:11 | Received a packet PING : ping
INFO | jvm 1 | 2013/01/16 20:33:11 | Send a packet PING : ok
DEBUG | wrapperp | 2013/01/16 20:33:11 | read a packet PING : ok
DEBUG | wrapper | 2013/01/16 20:33:11 | Got ping response from JVM
INFO | jvm 1 | 2013/01/16 20:33:11 | OpenLog: Registered application name: aluidirectory.osha-trn-wcims-01.alui (local machine only)
INFO | jvm 1 | 2013/01/16 20:33:11 | Initiating LDAP server start sequence...
INFO | jvm 1 | 2013/01/16 20:33:11 | Starting server on port : 3389
INFO | jvm 1 | 2013/01/16 20:33:11 | Initializing LDAP/X.500 BER protocol codec...
INFO | jvm 1 | 2013/01/16 20:33:11 | Detected 98 active CPU cores.
INFO | jvm 1 | 2013/01/16 20:33:11 | ApacheOpenLogFactory successfully loaded.
INFO | jvm 1 | 2013/01/16 20:33:12 | ApacheOpenLogFactory successfully loaded.
INFO | jvm 1 | 2013/01/16 20:33:12 | Could not start LDAP listener on port 3389:javax.naming.ConfigurationException: Unable to instantiate authtication provider Java class "com.bea.alui.directory.backend.auth.plumtree.PlumtreeAuthenticator". Please check your configuration and ensure that jvm has permission to instantiate this class.
INFO | jvm 1 | 2013/01/16 20:33:12 | WrapperStartStopApp: start main method completed
INFO | jvm 1 | 2013/01/16 20:33:12 | Wrapper Manager: ShutdownHook started
INFO | jvm 1 | 2013/01/16 20:33:12 | WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook
INFO | jvm 1 | 2013/01/16 20:33:12 | Send a packet STOP : 0
DEBUG | wrapperp | 2013/01/16 20:33:12 | read a packet STOP : 0
DEBUG | wrapper | 2013/01/16 20:33:12 | JVM requested a shutdown. (0)
DEBUG | wrapper | 2013/01/16 20:33:12 | wrapperStopProcess(0) called.
DEBUG | wrapper | 2013/01/16 20:33:12 | Sending stop signal to JVM
DEBUG | wrapperp | 2013/01/16 20:33:12 | send a packet STOP : NULL
INFO | jvm 1 | 2013/01/16 20:33:12 | Received a packet STOP :
INFO | jvm 1 | 2013/01/16 20:33:13 | Thread, Wrapper-Shutdown-Hook, handling the shutdown process.
INFO | jvm 1 | 2013/01/16 20:33:13 | calling listener.stop()
INFO | jvm 1 | 2013/01/16 20:33:13 | WrapperStartStopApp: stop(0)
INFO | jvm 1 | 2013/01/16 20:33:13 | WrapperStartStopApp: invoking stop main method
INFO | jvm 1 | 2013/01/16 20:33:13 | Initiating LDAP server stop sequence...
INFO | jvm 1 | 2013/01/16 20:33:13 | LDAP server stop sequence failed:java.net.ConnectException: Connection refused
ERROR | wrapper | 2013/01/16 20:33:46 | Shutdown failed: Timed out waiting for signal from JVM.
ERROR | wrapper | 2013/01/16 20:33:46 | JVM did not exit on request, terminated
INFO | wrapper | 2013/01/16 20:33:47 | JVM exited on its own while waiting to kill the application.
DEBUG | wrapper | 2013/01/16 20:33:47 | Signal trapped. Details:
DEBUG | wrapper | 2013/01/16 20:33:47 | signal number=18 (SIGCHLD), source="unknown"
DEBUG | wrapper | 2013/01/16 20:33:47 | Received SIGCHLD, checking JVM process status.
STATUS | wrapper | 2013/01/16 20:33:47 | JVM exited in response to signal SIGKILL (9).
DEBUG | wrapper | 2013/01/16 20:33:47 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
DEBUG | wrapperp | 2013/01/16 20:33:47 | server listening on port 32010.
STATUS | wrapper | 2013/01/16 20:33:47 | <-- Wrapper Stopped
Edited by: 982366 on Jan 16, 2013 9:21 PMDear Satish,
My email adds is : [email protected]
Do u have any MSN or Yahoo Messenger, so you could guide me in real-time.
I'm in Indonesia and my internet connection was extremly slow.
I need to wait for 12 Hrs just to donwload the EXE. zip. And another 1 hours with failure installment process.
I've told in the forum about my progress and still having difficulty to connect to the SQLPLUS in path.
My aim is to get install iSQLPlus.
I'm not urging you to assist me, just when you feel[b] free and happy, you can mail me back or chat online with me by providing me you messenger address.
Thank you very much in advance for your geneoursity bow
Warmest rgds,
Harry.- -
Need Help to build a report "GL Account-wise Outstanding Balance as on"
Hi All,
i have a requirement to build a GL Account-wise Outstanding Balance as on date...
report format
1.Date of Transaction
2.Journal Source
3.Journal Category
4.Opening Balance
5.Debit for the period
6.Credit for the Period
7.Closing Balance
Parameters
Company Code
Account No
Account Description
GL Date(As on)
Currency
my query
select trunc(gjh.posted_date) "Date of Transaction",je_source "Journal Source",je_category"Journal Category",
abs(sum((begin_balance_dr-begin_balance_cr))) "Opening balance",sum(period_net_dr) "Debit for the period",sum(period_net_cr) "credit for the period",
abs(sum((begin_balance_dr-begin_balance_cr)+(period_net_dr-period_net_cr)))"Closing Balance"
from gl_je_headers gjh,gl_je_lines gjl,gl_code_combinations gcc,gl_balances gb
where gjh.je_header_id=gjl.je_header_id
and gjl.code_combination_id=gcc.code_combination_id
and gcc.code_combination_id=gb.code_combination_id
and gjh.currency_code=gb.currency_code
and gjl.set_of_books_id=gb.set_of_books_id
and gjh.period_name=gb.period_name
and gcc.segment1='01'
--and gjl.code_combination_id=12854
and gjh.currency_code='USD'
and gb.actual_flag='A'
and gjh.status='P'
and gjl.status='P'
and gjh.period_name=to_char(sysdate,'Mon-yy')
group by gjh.posted_date,je_source,je_category
pls someone help me to correct the queryWell, you may want to look at the activity for one specific account, in detail, before you try to get involved in summarizing/grouping the detail. That way you will begin to understand what the grouping function in the SQL statement is going to do to you. You do not say what is wrong with your query, but I am assuming that your numbers for the Opening Balance and the Closing Balance are too high. Would that be a correct assumption? The problem, as I see it, is that you are joining the gl lines detail to the gl balances table. That means every record (row) in the join for that account for the desired period is going to have the beginning balance dr and cr columns. So if you sum up that column, you are going to sum up the beginning balances multiple times. What you need to do is first summarize your detail activity by the date, journal source, and journal category, and the debits and credits sums, for the period in question, and store that result, Then do a second query that joins that result set to the gl_balances table. Also not sure what null values are doing to you, if you have them in the debit and credit fields. You may have to convert the null values to a 0 as part of this whole process. Or do this via a custom program. Or if you have a data warehouse, you might want to see if you can handle this in the data warehouse. So some options to thiink about.
John Dickey -
Hello Experts,
I have been assigned to a CRM-UI Object which is basically to create follow-up action i.e. creating debit/credit memos with reference of one/multiple billing documents.
SAP has already provided an option to create the follow-up action for 1 billing document at a time, but the requirement is to create follow-up action for multiple billing documents at a time. For example, There are 2 invoices raised against a dealer "DEL" and due to some reason the dealer wants to send back the products.
Now the dealer wants to create only 1 claim/return for those 2 invoices, Which Standard SAP doesn't provide.
I did some of the development and added the 'Follow-up create' Button to the search result work area of the billing search. But could not able to build the link between the Billing and Sales order Components.
It would be really a great favor if you can guide me to build this navigation link.
Please let me know if any further information required.
Please find the attachment for step-by-step process.
Codes and Configs:
Method DO_PREPARE_OUTPUT to provide the “Follow-up Create” Button
method DO_PREPARE_OUTPUT.
CALL METHOD SUPER->DO_PREPARE_OUTPUT .
DATA:
lr_coco TYPE REF TO cl_beabds_b_bspwdcomponen_impl,
ls_button TYPE crmt_thtmlb_button,
lv_usage TYPE string,
lv_info TYPE string,
lv_info_transfert TYPE string,
lv_show_btn_transfer TYPE boolean VALUE abap_false,
lv_show_btn_cancel TYPE boolean VALUE abap_false,
lv_show_btn_split TYPE boolean VALUE abap_false,
lv_show_btn_create TYPE boolean VALUE abap_false,
lr_col TYPE REF TO if_bol_bo_col,
lv_show_separator TYPE abap_bool,
lv_num_marked TYPE i,
lr_entity TYPE REF TO if_bol_bo_property_access,
lv_appl TYPE bea_appl_ubd.
lr_coco ?= comp_controller.
lr_col = me->typed_context->ubdheader->collection_wrapper->get_marked( ).
lv_num_marked = lr_col->size( ).
* Decide based on the usage which buttons should appear, others are not shown by default
CALL METHOD lr_coco->get_env_info
IMPORTING
ev_usage = lv_usage
ev_info = lv_info
ev_info_transfert = lv_info_transfert.
CASE lv_usage.
WHEN cl_beabds_b_bspwdcomponen_impl=>gc_usage_search_result.
IF lv_info_transfert = cl_beabds_b_bspwdcomponen_impl=>gc_inf_trans_search_result.
lv_show_btn_create = abap_true.
lv_show_separator = abap_true.
ENDIF.
ENDCASE.
if lv_show_btn_create = abap_true.
* Separator between two buttons if needed
IF lv_show_separator = abap_true.
CLEAR ls_button.
ls_button-type = cl_thtmlb_util=>gc_separator.
APPEND ls_button TO gt_buttons.
lv_show_separator = abap_false.
ENDIF.
CLEAR ls_button.
IF lv_num_marked > 0.
ls_button-enabled = abap_true.
ELSE.
ls_button-enabled = abap_false.
ENDIF.
ls_button-text = text-001.
ls_button-id = 'BTN_CREATE'. "#EC NOTEXT
ls_button-on_click = 'CREATE'. "#EC NOTEXT
APPEND ls_button TO gt_buttons.
lv_show_separator = abap_true.
ENDIF.
endmethod.
METHOD eh_oncreate.
* Added by wizard: Handler for event 'CREATE'
TYPES: BEGIN OF ty_trans,
process_type TYPE crmt_process_type,
proc_type_descr_20 TYPE crmt_description_20,
subobject_category TYPE crmt_subobject_category,
subob_cat_descr_20 TYPE crmt_description_20,
END OF ty_trans.
DATA: lt_trans TYPE STANDARD TABLE OF ty_trans ,
ls_trans TYPE ty_trans ,
lv_ref_struct TYPE REF TO ty_trans.
DATA:
lv_struct_ref TYPE REF TO crmt_extbt_il_header_ref,
lv_value_node TYPE REF TO cl_bsp_wd_value_node,
lr_ent TYPE REF TO if_bol_bo_property_access,
lv_bo_coll TYPE REF TO if_bol_bo_col,
ls_ref_header TYPE crmt_extbt_il_header_ref,
lv_title TYPE string,
lr_comp_ctrl TYPE REF TO cl_beabds_b_bspwdcomponen_impl,
lr_cw TYPE REF TO cl_bsp_wd_collection_wrapper,
lr_col TYPE REF TO if_bol_bo_col,
lr_col_proc TYPE REF TO if_bol_bo_col,
lr_bo TYPE REF TO cl_crm_bol_entity.
IF gv_fu_popup IS NOT BOUND.
lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/FOLLOW_UP' ).
gv_fu_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'MainWindow'
iv_usage_name = 'UCBTEXTFOLLOWUP'
iv_title = lv_title ).
ENDIF.
CREATE OBJECT lv_bo_coll TYPE cl_crm_bol_bo_col.
lr_comp_ctrl ?= me->comp_controller.
lr_cw = lr_comp_ctrl->typed_context->ubdheader->collection_wrapper.
lr_col = lr_cw->get_marked( ).
CREATE DATA lv_struct_ref.
CREATE OBJECT lv_value_node
EXPORTING
iv_data_ref = lv_struct_ref.
CHECK lr_col IS BOUND AND lr_col->size( ) > 0.
CREATE OBJECT lr_col_proc TYPE cl_crm_bol_bo_col.
lr_bo ?= lr_col->get_first( ).
WHILE lr_bo IS BOUND AND lr_bo IS NOT INITIAL.
lr_bo->get_property_as_value(
EXPORTING
iv_attr_name = 'HEADNO_EXT'
IMPORTING
ev_result = ls_ref_header-object_id ).
ls_ref_header-object_type = 'BILLDO'. "#EC NOTEXT
lv_value_node->set_properties( ls_ref_header ).
lv_bo_coll->add( lv_value_node ).
lr_bo ?= lr_col->get_next( ).
ENDWHILE.
gv_fu_popup->set_on_close_event( iv_view = me iv_event_name = 'FOLLOWUP_SEL_CLOSED' ).
gv_fu_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
gv_fu_popup->open( iv_inbound_plug = 'EXTFOLLOWUP' iv_collection = lv_bo_coll ).
ENDMETHOD.
method EH_ONFOLLOWUP_SEL_CLOSED.
* Added by wizard: Handler for event 'FOLLOWUP_SEL_CLOSED'
DATA:
lr_context_node TYPE REF TO cl_bsp_wd_context_node,
lr_current TYPE REF TO cl_crm_bol_entity,
lr_col TYPE REF TO if_bol_entity_col,
lr_wdw TYPE REF TO cl_bsp_wd_window.
IF gv_fu_popup->get_fired_outbound_plug( ) EQ 'LEAVE'. "# EC NOTEXT
lr_context_node = gv_fu_popup->get_context_node( iv_cnode_name = 'BTORDER' ). "# EC NOTEXT
CHECK lr_context_node IS BOUND.
lr_current ?= lr_context_node->collection_wrapper->get_current( ).
CHECK lr_current IS BOUND.
CREATE OBJECT lr_col
TYPE
cl_crm_bol_entity_col.
lr_col->add( lr_current ).
lr_wdw = me->comp_controller->if_bsp_wd_window_manager~get_window( 'MainWindow' ).
lr_wdw->call_outbound_plug( iv_outbound_plug = 'NAVIGATE_CREATE' iv_data_collection = lr_col ). "#EC NOTEXT
ELSEIF gv_fu_popup->get_fired_outbound_plug( ) EQ 'LEAVEPROCTYPE'. "# EC NOTEXT
gv_fu_popup->set_on_close_event( iv_view = me iv_event_name = 'FOLLOWUP_SEL_CLOSED' ).
gv_fu_popup->open( iv_inbound_plug = 'EXTFOLLOWUPITEMS' ).
ENDIF.
endmethod.
method OP_NAVIGATE_CREATE.
* Added by wizard: Outbound plug 'NAVIGATE_CREATE'
DATA:
lr_window TYPE REF TO cl_bsp_wd_window.
lr_window = me->view_manager->get_window_controller( ).
lr_window->call_outbound_plug( iv_outbound_plug = 'NAVIGATE_CREATE'
iv_data_collection = iv_data_collection ).
endmethod.
Thanks,
Subhash.Hi Srikanth,
I believe You are trying to implement dynamic navigation..
lv_data_collection->add( lv_descriptor_object ).
I can see lv_data_collection is not having the actual entity just the descriptor object details you are adding in the lv_data_collection..
If you don't have the context node binding between source and destination component, add the required data to lv_data_collection
, in the target component inbound plug retrieve the same data entity and set it on the relevant context node.
To get an idea, check standard component for where dynamic navigation is implemented.
Hope this helps..
Cheers,
Sumit Mittal -
Need help in building search query
Guys ..
Problem Description:
I have a huge table that is indexed using CONTEXT.
I want to write a search query that considers the following:
1. number of keywords match
2. takes care of spelling mistakes, synonyms and acronyms
3. proximity - the keywords should not be too far of each other.
e.g. I have this phrase: "Horizontal Stabilizer Trim Brake"
I was thinking of writing a query like:
SELECT SCORE(1) SCORE,
TEXT text
FROM MY_TABLE
WHERE CONTAINS(TEXT, '(Horz | Horizontal) ACCUM (Stab | Stabilier) ACCUM Trim ACCUM (Brk | Break)', 1) >= 0
ORDER BY SCORE DESC
The results doesnt look satisfactory. I have not used "near" operator as i dont know how to use it.
Please help me as I am very much new to Oracle Text.
-GWell, I'm not going to write the function for you, but we can at least talk through a general strategy.
A lot depends on how you help your users on the front end -- for example, if they're searching a technical document, you may want to return results that aren't perfect matches but you do want to make sure the user picks 'mandatory' and 'useful' keywords in a way that lets you figure out which ones are really important. On the other hand, if you're google and have to handle queries like 'horizontal stabilizer trim brake' and 'were Pete and Jenny in the break room' then you run the risk of spending too much time looking for interesting words, almost doing a full-text search on the query trying to derive meaning.
So I'm going to presume that you have some control over what/how the users generate their searches so that finding keywords isn't the issue.
The plan will be to parse the query a bit to find the interesting words, clean them up, and weigh their importance, then use transformed data to build the query template to score various combinations.
So here's some pseudocode for the function:
function parse_query(pQueryWords in clob) returns clob as
begin
generate_token_list (); -- split the query into a set of individual tokens/words
for each token in token_list
if it's a mandatory word then accumtokenlist := accumtokenlist || ' ' || token ||'*10' -- weigh the presence of the token strongly
if it's a useful word then accumtokenlist := accumtokenlist || ' ' || token ||'*5' -- domain-specific words are also important
if it's a stopword or reserved word, then do not add it to the list
if it's not on my lists, then accumtokenlist := accumtokenlist || ' ' || token
and normaltokenlist := normaltokenlist ||' ' || token
end;
--so now, we have two lists, one for NEAR and one for ACCUM
now build the guts of the template
querytemplate := querytemplate || '<seq> || normaltokenlist || '</seq>';
querytemplate := querytemplate || '<seq> || replace (accumtokenlist, ' ',' ACCUM ') || '</seq>';
querytemplate := querytemplate || '<seq>$' || replace(normaltokenlist,' ','$') || '</seq>';
querytemplate := querytemplate || '<seq>? || replace(replace(accumtokenlist,' ',' ?'),' ', ' accum ') || </seq>'; -- first fuzzy the words, then accum
querytemplate := querytemplate || '<seq>? || replace(replace(normaltokenlist,' ',' ?'),' ', ' near ') || </seq>'; -- first fuzzy the words, then near
return querytemplate
end;So, with a 'cooked' query text that is template-friendly, all we need to do is apply a template that is aware of your inputs:
query_Template_string := '
<query>
<textquery lang="ENGLISH" grammar="CONTEXT"> horizontal stabilizer*5 trim brake*10
<progression> '
|| parse_query('horizontal stabilizer trim brake') ||
' </progression>
</textquery>
<score datatype="INTEGER" algorithm="COUNT"/>'
</query>So that's an example of one approach. -
Need help in Publishing the application URL
hi,
I am using Aoolication Express 3.0. I need to publish the URL of my application, so that both the database and application can be accessed from any computer using the URL.
Can anyone help me with that.
Thank you in advance.I read yesterday (from the advanced tutorial documentation):
"You can determine the URL to your application by positioning the mouse over the RUN icon on the Application home page. The URL appears in the status bar at the bottom of the page."
It works.
Deb -
Need Help on Mobile Portal Development
Hello everyone!
I am trying to develop a portal (client) for web services on mobile devices that supports CLDC and MIDP, like the Yahoo! Go.
I was just wondering what technologies I need to learn and tools I have to use to develop the portal application. I have been developing game applications using J2ME for quite sometime now, and this portal application is new to me that is why I am asking for 'guidance' in what steps I have to take.
Any help is greatly appreciated. :)Hi,
Pls chk this links;might be useful.
"Getting Started with Mobile Client Applications":
http://help.sap.com/saphelp_crm50/helpdata/en/50/45c33a1dfe105ae10000000a11402f/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/0e/c90d3888a6b510e10000009b38f8cf/frameset.htm
Regards,
CSM Reddy -
Can anyone tell me how to make cursor smaller after inserting picture so that l can add somethimg right next to it instead of bottom of picture. Meaning the next line is too low
AFAIK, you can't. The nature of TextEdit is that it allows the picture to be treated as a character and adjusts the cursor size for that line.
You need a app that supports transparent overlays. -
[noob needs help] Loading image from a URL
Hey everyone. I'm new here. And I'm new at J2ME as well.
I have a simple school project and I have doubts about it. I've searched everywhere on the net yet I could not find the solution. Anyways, I do understand the concept of loading images by putting the files in the "res" folder and use:
try
img = Image.createImage("/burgerimgsmall.jpg");
catch (Exception e)
e.printStackTrace();
But my project requires me to load an image from a URL. How do I go about doing that? If it helps, here's the URL:
http://img.photobucket.com/albums/v703/punkgila/burgerimgsmall.jpg
Thanks guys!Don't worry, downloading image from http is also simple. Look into Photoalbum demo in wtk2.5
-
Hi,
I have a requirment where the table data looks like as below:
COL_NAME COL_NAME1
RAW_SDP FCT_SDP
FILENAME FILENAME
SDPID SDPID
CDRID CDRID
ORIGINALCDRNODEID ORIGINALCDRNODEID
ORIGINALCDRID ORIGINALCDRID
SUBSCRIBERNUMBER SUBSCRIBERNUMBER
COL_NAME and COL_NAME1 are the 2 columns in the table
RAW_SDP and FCT_SDP data is stored asTable Names.
I want a scenario where i want to pick the data(shown below) as condition as COL_NAME='RAW_SDP'
FILENAME
SDPID
CDRID
ORIGINALCDRNODEID
ORIGINALCDRID
SUBSCRIBERNUMBER
Any help will be benefitial
Thanks and RegardsOk, first you need to be clear what you are referring to...
By "excel file" are you referring to a CSV file (i.e. a flat file you can load in notepad and look at the data) or are you referring to a ".xls" file that is a MS Excel workbook?
If it's a CSV/flat file then you should use external tables to read the data...
http://www.psoug.org/reference/externaltab.html
If it's a .xls workbook file then you will need to set up an ODBC connection and create it as an external database...
e.g.
1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
EXCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
(CONNECT_DATA =
(SID = EXCL)
(HS = OK)
Here SID is the name of data source that you have just created.
3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = <hs_sid>)
(ORACLE_HOME = <oracle home>)
under SID_LIST_LISTENER like:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\ORA9DB)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = ORA9DB)
(ORACLE_HOME = d:\ORA9DB)
(SID_NAME = ORA9DB)
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = EXCL)
(ORACLE_HOME = D:\ora9db)
Dont forget to reload the listener
c:\> lsnrctl reload
4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
In this file set following two parameters:
HS_FDS_CONNECT_INFO = excl
HS_FDS_TRACE_LEVEL = 0
5- Now connect to Oracle database and create database link with following command:
SQL> CREATE DATABASE LINK excl
2 USING 'excl'
3 /
Database link created.
Now you can perform query against this database like you would for any remote database.
SQL> SELECT table_name FROM all_tables@excl;
TABLE_NAME
DEPT
EMP
Maybe you are looking for
-
Hello BI gurus, This may be confusing so I will try my best to explain... I am working on a report in which I need to allow the user to choose a specific Date and Time period. Now I have both Date and Time avaliable in my infoprovider. If I create
-
Convert pdf and output to html
I need help! If I have a pdf file and I want to upload to iFS, should I convert it to html or test format and save to database with iFS feature? Or it's better to save as a pdf file and output as html with iFS feature. Also, if I a some images in the
-
How-to get the JSF application context path?
I want to do a redirect from within a JSF backing bean. How do I get the application context path? I plan to do this in the constructor of the backing beans in order to validate the user has previously logged in. public BackingBeanName() FacesContext
-
I have problems to activate imessage and facetime on my iphone
i have problems to activate imessage and facetime on my iphone, it doesnt work with my phone number, only with icloud and when somebody tries to contact me on facetime, it show them that im not connected, please help!
-
How to add audio SFX into the "stock" FCPX efx library / browser?
I have some new SFX to compliment third-party visual transitions / efx. How can I add them to my FCPX sfx library (in the effects browser)? BACKGROUND: I realized I could drag the folder (with the new SFX) into the efx browser window. However, the SF