Problem accessing custom Portal DB Table using default Datasource in VA
Hello,
I have a PAR application which tries to connect to a custom DB table defined inside the Portal DB Schema. The application uses a JNDI lookup to JDBC Connection service and uses the default DataSource (SAPJ2EDB/SAPSR3DB) defined in Visual Admin. However it gives the folowing exception while running a SQL query on the custom table,
SQLException::The SQL statement "SELECT COUNT(*) "ROWCOUNT" FROM "<Z Table Name>"" contains the semantics error[s]:
- 1:34 - the table or view >><Z Table Name><< does not exist.
I can connect and execute a SQL using the same defualt DSN on any of the standard Portal Tables like, ume_strings
Any ideas where its failing for the custom table??
I can create a new DSN in Visual Admin but would like to use the default DSN privided by the J2EE engine.
Thanks
Sandip Agarwal
Hi,
So you can execute that exact SQL statement for example via the SQL Query tool? Does that Z table actually exist in the DB? Are you just using the table name or do you fully qualify it like master.ztable (e.g. are you telling it what db to use?).
Hope this helps,
Simon
Similar Messages
-
Problem regarding the creation of Table using CSS.
Hi ,
Here I have a Problem regarding the creation of Table using CSS.
In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
width:900px;
height : auto,
Overflow : visible,
Max-height: : 200px.
If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
Thanks & Regards
MadhaviHey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?
-
Accessing custom Portal service from a java application
We have a custom portal service that connects to BW using xmla. How do you access this portal service from a java application. Not from web dynpro, jsp or servlet but from the java code.
Can we use the INITIAL_CONTEXT_FACTORY to get access to the portal service.
Thank You
D.KNow I tried the following:
I've added the prtapi.jar and the service's jar to the additional-lib folder and added the appropriate entries to library.txt and reference.txt.
Now I can obtain now the PortalRuntime, but this is not initialized.
Has anybody a solution for this problem? Help would be high appreciated!
Regards,
Matthias -
How to access custom labels in Table?
In IDML I have set up custom lables inside Table element. How can I access those labels?
Thx!Hi Michael,
If you just want to retrieve the data, you could use the following code.
//Get the node which the table is bound to
IWDNode node = wdContext.nodeTable();
//iterate thru the elements
for(int i = 0 ; i<node.size();i++)
IWDNodeElement ne = node.getElementAt(i);
Object value = ne.getAttributeValue("<column name>");
//Here you have the data in the value variable
//and you can manipulate this now
Regards,
Sudeep -
Accessing custom attributes in LDAP using WD Java - UME APIs
Hello Friends,
I am trying to access a custom attribute from LDAP in WebDynpro Java. I am using bellow code.
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser sapUser = clientUser.getSAPUser();
if (sapUser != null) {
String[] str_emp = sapUser.getAttribute(<Name Space>,"Attribute Name");
if (str_emp == null || str_emp.length == 0) {
wdComponentAPI.getMessageManager().reportSuccess(" NULL ");
return;
} else {
strEmpID = str_emp[0];
wdComponentAPI.getMessageManager().reportSuccess(strEmpID);
The name space is "$usermapping$". I am not sure why it is like that only for this attribute i am trying to access.
I am getting null value if i run this code.
Can any one help
thanks
ShobhanHi,
Are you sure this is the right namespace? The default namespace is com.sap.security.core.usermanagement.
You can get all namespaces and the names of all attributes defined for a user using methods getAttributeNamespaces and getAttributeNames : [Interface IPrincipal|http://help.sap.com/javadocs/NW04S/current/se/index.html].
Regards,
Pierre -
Customizing portal error pages using WPC seems not to work
Hi,
I am running a EP 7.01 system and have instaled the KMC-WPC component.
My goal is to edit custom error pages. I have followed the help.sap.com
guide, however i don't see any results. When i create a KM-document
iview to a non-existing document, i stll get the default 404 error
page. I have restarted the portal, but without effect. Am i missing something or is the error-page editor not meant for this kind of use? I have also tried to edit the web.xml file, but these errorpages are on a very global scale and not usefull for my purpose
BasHussain,
Yes, it is a KM document not found page
regards,
Bas -
Problem with custom validated data types using domain on 11g
Hi,
I ' m on a migration process from 10 to 11 and I notice that a custom domain didn't work correctly anymore
to be more specific every time that I was submiting a page a was getting an error cannot convert from myclass to oracle.jbo.domain.String
I search the forum and I saw a similar problem
Cannot convert type class java.lang.String to class oracle.jbo.domain.Clob
at which Frank says that it is a known bug and suggests a work around.
I use the workaround and it worked but some more issues came up:
1. If the validation fails I get the error that I throw at the validate method not in a popup with just my message
but in the whole window with the whole error stack, meaning that my custom validation is not handled like native ADF validation errors by
the framework (at 10.1.3.4 worked OK)
2 If i dont give a value at the attribute in the validation phase mdata variable is not null but is length is zero (at 10.1.3.4 its value was null)
public class AFM implements DomainInterface, Serializable {
public AFM(String val) {
mData = new String(val);
validate();
private String mData;
protected void validate() {
// ### Implement custom domain validation logic here. ###
mData==null // returns false
mData.length()==0 // returns true
3. Can i force validation only for new or updated values? I saw that the validation process is taking place every time a row is fetched.
This is not only a performance issue, the bigger problem is that if a fetched from the DB value fails the validation an error is return but the
user cannot change the value to correct it.
TIA
Tilemahossince i don't get any answer I wonder if i should have use a more provocative title like
"custom domains in 11g don't work"
is it true?
Tilemahos -
HELP: Problem accessing host Mac MSL Mini using "Screen Sharing"
I have screen sharing enabled on my mother-in-law's Mac Mini so I can access it with Chicken of the VNC.
There are 2 user accounts, one Admin and the other regular. The problem is that when Chicken Of the VNC connects and I choose one of the accounts and log-in the connection terminates and I have to close Chicken of the VNC and re-connect.
Is there something in Sharing/screen sharing that needs to be set so the connection will not terminate when switching account .From Finder help on screen sharing...
-=-=-=-
If you can’t share computer screens
If you’re having problems sharing your screen with another computer, or sharing the screen of another computer, there are several things to check.
Here are things to try if you can’t share screens:
Make sure screen sharing is turned on and you have set up sharing permissions on the computer whose screen you want to share.
Sharing your screen with other computer users
If you’re trying to share the screen of another computer, open Sharing preferences on that computer and make sure you’re in the list of users who have been given permission to share that computer’s screen.
Make sure neither computer is in sleep mode. A computer can’t share its own screen or share the screen of another computer if it’s in sleep. Adjust the computer’s settings using Energy Saver preferences.
If you’re using Back to My Mac to share screens, make sure it’s turned on on both computers.
Sharing your computer’s screen using Back to My Mac
Make sure both computers are connected to the same network, or if you’re sharing screens using Back to my Mac, make sure they’re both connected to the Internet. -
Restrict access to rows in tables using S_TABU_LIN
Hello
Is it possible to use this authorization object to restrict access to rows in data tables, based on role?
Namely, a query is created for table holding financial documents data, and I would like users in charge of one company code, to only be able to see rows relating to that company code when they execute the query.
I have defined and activated an organization criteria, and included it in the role authorization data restricted to only one company code value, but the user is still able to see all rows in the table.
The system trace doesn't show a check for the S_TABU_LIN Object while the user is executing the query.
Can anyone tell me what I'm missing?
Thanks in advance
A.If you activate S_TABU_LIN, whenever that org criterion is hit with table data being retrieved then the check will be performed. If it is a standard SAP table field then that could potentially become problematic depending how you set it up.
By extending the security in the infoset query you are turning the query from a quick and dirty tool to extract data into something that you can control as you would a bespoke report. Once your dev team have worked out what they need to do, you can apply the standard auth concept to queries with relative ease and without impacting other parts of your security.
Another thing to mention is that if your developers use logical databases to retrieve query data then there is usually auth checks incorporated in there (which don't show up in SU53 or ST01). -
How to access records of a table using index?
Hi,
I am having two subforms. Now i want to fill these 2 subforms using data from a table in dataview based on some condition by looping through this table data. Is this possible using javascript? If possible please let me know.
Thanks & Regards,
Mahidhar.Hi muralikrishna kaipha,
I can't believe this.
TOP-OF PAGE page is triggered before the first line is written to a page. That means TOP-OF PAGE is triggered by first write statement in program. INITIALIZATION is normally not used to write anything.
You must avoid to write more than one page during TOP-OF PAGE event because this will trigger TOP-OF PAGE recursively endless.
Think about it.
Regards,
Clemens -
Problem to upload excel into table using sqlldr
hi ,
i'm using following code on 10g forms (when button pressed) to upload excel to oracle table i.e.
--V_USERID_CS:=USER||'/'||PWD||'@'||CONNSTR ;
V_USERID_CS:='saf_integ'||'/'||'saf_integ'||'@'||'ORCLREG'; ---connection string for AS on this machine, control files and .csv files are also on that machine--
LOG_EVENTS('BEFORE HOST CALLING'); just to trace the message
LOG_EVENTS('SQLLDR'||' '||RTRIM(V_USERID_CS)||' '||'control='||'c:\overtime.ctl'||' '||'log='||'C:\LOG_FILE.log'||';'); just to trace the command
HOST('SQLLDR'||' '||RTRIM(V_USERID_CS)||' '||'control='||'c:\overtime.ctl'||' '||'log='||'C:\LOG_FILE.log'||';');
LOG_EVENTS('AFTER HOST CALLING'); just to trace the message
COMMIT;
LOG_EVENTS IS PROCEDURE TO TRACE THE BUG; WHICH SHOWS THE DATA AS GIVEN BELOW:
SYSDATE_1 ERROR_TEXT ID
5/14/2010 BEFORE HOST CALLING 8464274
5/14/2010 SQLLDR saf_integ/saf_integ@ORCLREG control=c:\overtime.ctl log=C:\LOG_FILE.log; 8464275
5/14/2010 AFTER HOST CALLING 8464276
i'm not getting any error but even data is not uploaded into table.
but when i get the same command from the log table run directly on that machine it's working fine.
please suggest me where is the gap?
Thanks
kami'm not getting any error but even data is not uploaded into table.
but when i get the same command from the log table run directly on that machine it's working fine.
please suggest me where is the gap?The SQLLDR.EXE file exists where. In the APPLICATION SERVER or in the CLIENT MACHINE. If it is in the client machine. Then you need to use CLIENT_HOST instead of HOST. CLIENT_HOST exists in webutil library.
-Ammad -
Problem while customizing Portal MastHead.
Hi,
I am unable to customize my portal masthead.
I can't download the par file like "System Administration -> Support -> Portal Runtime -> Browse Deployment -> WEB-INF -> deployment -> temp (or) pcd -> com.sap.portal.navigation.masthead.par.bak ".
I'm using 2004s, EP7.0 , SP6
<b>Unable</b> to <b>find</b> the <b>com.sap.portal.navigation.masthead.par.bak</b> in the ZIP FOLDER.
Any valuable inputs to solve the prob are most welcome.Are there any blogs ?
thanks in advance.
Regards ,
TilakHi,
Try to get the par directly from your server at:
\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\temp
Also, please checkout <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d07bf112-1705-2a10-1a9f-d0a705e550fa">this link</a> for detailed explanation of changing the masthead.
Hope it helps,
Roy -
Problem connecting to external SQL table using BCS in SharePoint Foundation 2010
Hi all,
I am working on SharePoint Foundation 2010. I have a requirement wherein I need to connect to SQL in some other server.
I used BCS to create external content type and then I created an external list. now when I try to view the list on browser it says "Login failed for the user NT AUTHORITY\ANONYMOUS LOGIN".
I am using "User's Identity" for authentication with SQL.
How can solve this issue. Please help.
any help is greatly appreciated.
Thanks.That sounds like you might not be using Kerberos and/or your Kerberos authentication isn't working to pass your credentials.
As you may know there's a limitation with NTLM permissions that prevents something known as the 'double hop'. This is where a server (SharePoint for example) tries to request things on your behalf. With NTLM you can't do this at all, the alternative is to
use Kerberos which can handle double hops. One thing to know about Kerberos, if it's not completely set up right then IIS and SharePoint will almost always revert to NTLM so it's easy to think you've enabled it only to discover it's failing and you're really
using NTLM.
This guide will take you through setting up Kerberos in painful detail, it's great:
http://www.microsoft.com/en-us/download/details.aspx?id=23176 -
Extract Hierarchy from LFMH(Vendor Hierarchy) table using generic datasourc
Hi All,
Can any one provide the steps to Extract Vendor Hierarchy from table LFMH? And also provide ABAP code (Function module) to extraact Vendor Hierarchy
Thank You
RahulHi,
Let me know your email address, i can forward the required document to you or mail me @ [email protected]
regards,
ravi -
Creating database and tables using datasources in a portal application
Hi All,
<b>
I have created a datasource using Visual Administrator.
Now I want to create a database and then tables using this datasource.
I have todo this in the portal application.
How to create a database and then tables into this database????
</b>
regards
BrahmachaitanyaHi,
I have created a datasource using Visual Administrator. I am trying to connect to it in my portal application. I have written the following code...
InitialContext iContext = new InitialContext();
DataSource ds = (DataSource) iContext.lookup("jdbc/CustomDataSource");
Connection connection = ds.getConnection();
But I am getting the following connection exception....
ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'sysadmin'.
can anybody tell me how to go about this exception?????
regards
Brahmachaitanya
Maybe you are looking for
-
How to create business partner temblet
Dear friends, how to create business partner temblet . please send the following mail address [email protected] Thangs in advance Regards, S.Siva
-
DynamicConfigurationException:Unable to set ASMA in Module
Hi, I have written customized adaptor module and trying to set the FileName to Dynamic Configuration object. But it is throwing error. I used the below code: Message msg = null; MessagePropertyKey key= new MessagePropertyKey("http://sap.com/xi/XI/Sys
-
AXI4 memory mapped slave user logic implementation
hi, I'm using a Spartan6 and the EDK. I'm trying to write data via PCIe/AXI to a third party IP core, and read data of this IP core. The connection looks like this: PCIe/AXI MM bridge <> AXI Interconnect <> AXI_MM_Slave <> two instances of the 3rd_pa
-
Slower than slow. Not the first I know but have some questions please.
Hello fellow Verizon users. First let me tell you about my pc. It's second hand, HP Pavilion, Windows Vista, 32-bit, Windows 7, sp2. Hope this helps. My router is Gateway Westell 7500. I have been reading the replies to others who have posted that
-
When we increase font size image also increase and becomes blurred, how to solve this?
When we increase font size then image also become large and that's why they becomes blurred, there should be a way to increase only font size not image or symbols, so that they will clear. I think in safari i saw this feature.