Connection to ABAP tables
Hi all,
I need a help. I am aware that from ABAP stack we can access Java table by using DBCON.
Similarly can i connect ABAP table from JAVA stack? Please advice.
Thanks
Vick
Thank you for getting back on my question.
Okay i will explain what i am trying to achieve.
I would like to write a custom Java program and would like to query the ABAP stack tables were interface messages will be stored.
With the help of ABAP program i am able to query ABAP table and also i am able to access Java table. I know how to connect Java tables from ABAP program.
But i do not know what are the possible way if any, that i can write Java program and query the ABAP table which are residing in ABAP stack.
Please advice.
Thanks
Vick
Similar Messages
-
Access ABAP tables using NWDS Java Code
All,
I am planning to write a program to autmatically update is_url entries in sxmb_admin using a Java program.
Is there a way we can access the ABAP tables using standalone Java Code? would it something like dblookup that we use in the mappings?
Your Thoughts....
Thanks.Hi Vicky - Interesting..Seems like you are trying to automate every single thing
However you can make use of Jco to connect to ABAP tables..
Check the below thread..
Help on accessing tables of SAP from the Java Application
I assume the table name is "SXMSCONFVLV" which you might have to update but not sure.. -
Error while connecting to ECC tables from Crystal
Hello,
I am trying to create a crystal report on the SAP ECC tables directly, when I try to create a new connection from u201CSAP Table, Cluster, or Functionu201D option in crystal reports 2008 I get this error" Logon Failed. Details: you don't have necessary rights to design reports against the SAP system. please contact your administrator"
Now my question is where are my rights missing, is it on BO side or SAP side, I see that I have access to SAP tables when I try to logon through the SAP logon pad it works, I could see the tables.
Please let me know your thoughts.
ThanksHi,
part of the ABAP Transports from the SAP Integration Kit are also specific authorization objects. Take a look at the Installation guide for the SAP Integration Kit in the appendix.
Ingo -
Access ABAP Table using Java (NWDS/JCO)
All,
I am trying to setup a jco connection from java program through NWDS to ECC abap table.
However I am getting the following error in NWDS:
Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Program Files\Java\jdk1.6.0_45\bin\sapjcorfc.dll: Access is denied]. java.library.path [C:\Program Files\Java\jdk1.6.0_45\bin;.]
and a parity error on my system:
"Parity blocked an attempt by javaw.exe to run sapjcorfc.dll because the file is not approved. If you require access to this file, please contact your system administrator. Scroll down for diagnostic data."
Here is the Java code...per the SAP website:
package com.sap.pi.updateAbapSxmbAdminParams;
import com.sap.mw.jco.*;
public class ReadPiAbapTables {
private static JCO.Client theConnection;
private static IRepository theRepository;
public static void main(String[] args) {
createConnection();
retrieveRepository();
try {
JCO.Function function = getFunction("RFC_READ_TABLE");
JCO.ParameterList listParams = function.getImportParameterList();
listParams.setValue("BSAUTHORS", "QUERY_TABLE");
theConnection.execute(function);
JCO.Table tableList = function.getTableParameterList().getTable("SXMSCONFVLV");
if (tableList.getNumRows() > 0) {
do {
for (JCO.FieldIterator fI = tableList.fields();
fI.hasMoreElements();)
JCO.Field tabField = fI.nextField();
System.out.println(tabField.getName()
+ ":t" +
tabField.getString());
System.out.println("n");
while (tableList.nextRow() == true);
catch (Exception ex) {
ex.printStackTrace();
private static void createConnection() {
try {
theConnection = JCO.createClient("aaa", "aaa", "aaa", "aa", "aa", "aa");
theConnection.connect();
catch (Exception ex) {
System.out.println("Failed to connect to SAP system");
private static void retrieveRepository() {
try {
theRepository = new JCO.Repository("saprep", theConnection);
catch (Exception ex)
System.out.println("failed to retrieve repository");
public static JCO.Function getFunction(String name) {
try {
return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
catch (Exception ex) {
ex.printStackTrace();
return null;Hi Vicky,
You need authorization to the S_TABU_DIS object, talk with the ABAP basis team about this to find the more restrictive role.
It's not a good idea to use the RFC_READ_TABLE, for the wide permissions needed. You could think to develop a Z RFC for this. You can check pros/cons in this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a83ec690-0201-0010-14ac-bd1d75e24a7d?overridelayout=t…
Regards. -
Access ABAP table in Webdynpro Java application
Hi All
Is it possible to access ABAP table in Webdynpro Java application
Please provide your input
Thanks
Karthi D.Hi you will connect to the remote SAP system, the
backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
of your Web Dynpro project
In WebDynpro java you RFC by using Model :
Adaptive RFC Model
1. automatically adapts to changes in function module signature
2 provides support for data types and extensibility
3.support for different structure definitions in different backend
systems (release dependent structures, custom adaptation)
Basic principles and guidelines
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
See this blog
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
Thanks,
Tulasi -
Cannot connect to abap server, please check your abap server connection
Installed new NW BPC 7.5 system on windows 2008 server but get the error as follows
when logon to BPC server:
"Cannot connect to abap server, please check your abap server connection".
"define system user group tab" is inactive in server manager also.
Server Diagnostic errors for SAP Server Connection:
Database Connection
Status Connection Error
as per note 1385864 but this note has not helped get past this status with installation.
User Type value is either set to Communication Data for all three users (BPC_ADMIN, BPC_SYSADMIN, BPC_USER).
and these accounts are not locked.
Any ideas for these errors?
Regards,
AidanHi Aidan,
"Your logon id (domain\user) does not have SystemAdmin rights; some functionality
is disabled."
This is caused by the fact that the user you are logged in as isn't in the UJA_SVR_DEFAULT table, the SYSADMIN field needs to have a value that contains your user id (i.e. DOMAIN\USER) . You can set this up with the UJA3_WRITE_SYS_USERS program.
"When I try to install APPshell the following errors occur:
@8O@ UJA_DATA_CHECK E 006 Application PLANNING's multiprovider /CPMB/ATMKOOE not exist in BW
@8O@ UJS_EXCEPTION E 003 Errors occured during "after import" method call during activation"
Aidan, sounds like something went terribly wrong during your activation process. Do this, Clean the appset with the UJS_ACTIVATE_CONTENT program and make sure that everything is completely deleted. Make sure that there is a lot of memory available for the activation and try it again.
It should work.
Hopefully this helps you.
Cheers, Scott -
BPC cannot connect to ABAP server
Hello Experts,
I'm facing the following issue when installing SAP BPC NW 7.5 SP04
When the installation is done (succesfully) I try to login to the server manager and get following error message:
"Cannot connect to ABAP server; Check your ABAP server configuration"
In the diagnostic, it is also the SAP ABAP Server connection that fails.
I'm installing this with a domain user called BPCADMIN.
In the ABAP system I added this domain user to the UJA3_WRITE_SYS_USERS program.
When I check the table: UJA_SVR_DEFAULT I see 3 times the domain\BPCADMIN user.
In the log file I get following error:
#2.0 #2010 09 03 01:35:41:020#-7:00#Error#ServerMgrService##EPM-BPC-NW##0d55515b-753b-449a-9a0f-1d3781e38f69###TestConnection#INTENSUM-NET
BPCADMIN########Plain##The ABAP server specified in the server configuration file is not reachable#
#2.0 #2010 09 03 01:40:49:608#-7:00#Error#ServerMgrService##EPM-BPC-NW##b22778de-4872-4138-a700-26cd9f8b0d68###TestConnection#INTENSUM-NET
BPCADMIN########Plain##The ABAP server specified in the server configuration file is not reachable#
#2.0 #2010 09 03 01:41:11:327#-7:00#Error#ServerMgrService##EPM-BPC-NW##38dad74d-47bc-48c0-a779-dc5fd2f1ef92###TestConnection#INTENSUM-NET
BPCADMIN########Plain##The ABAP server specified in the server configuration file is not reachable#
Strange enough, a ABAP connection with SAP LOGON works...
Can you please help me on this?
Thanks!
ErwinHI,
I checked the 3 BPC SAP ID (BPC_SYSADMIN; BPC_ADMIN; BPC_USER). They are not locked.
And all of them are communication users. I set the rules according to inst. guide.
I run the UJA3_WRITE_SYS_USERS program too.
The UJA_SVR_DEFAULT table contains these lines:
ADMIN -> BPC_ADMIN
SYSADMIN->BPC_SYSADMIN
USER->BPC_USER
I tried to login manually with these users, it is OK. (they were dialog users )
(the .Net server and the SAP BI system are not the same machines. I think this is no problem isnu2019t it ) Firewall are off on both machines.
Can I create these users at the .Net server side and login to win server with them?
I set these SAP users to BPC server .BPC_ADMIN is the BPC_ADMIN and so on. Is it OK ?
I have no idea what can be the problem.
How can I check they are BPC specified users or not? -
Errors occurred during extraction of UD Connect object field- table not fou
Hi,
In BI 7.0 system I can't select any UD Connect source object on the "Extraction" tab page of the DataSource maitenance screen. If I type the table name (which is "UDITEST") into it and then hit the "Proposal" tab page, I get the following error:
Errors occurred during extraction of UD Connect object field-list: Errors occurred during extraction of UD Connect object field-list: UDCADAPTERROR::RSSDK|200|Table: uditest not found|
Message no. RSDS_ACCESS036
Analysis:
1) We have tested the BI JDBC Connector using the URL:
http://xxxabcdev03:50000/TestJDBC_Web/TestJDBCPage.jsp
We got the list of tables displayed (UDITEST table is also displayed)=> connector is configured properly.
2) When we are trying to configure the Source system in rsa1->modelling->source systems-> UD connect -> create,
a) RFC Destination: We are using an RFC Connection that is already in place of type 'T' between the J2EE engine and BI ABAP engine. We tested this connection from SM59 -> TCP/IP connections and it is working fine.
How do we test whether the RFC between J2EE engine and BI ABAP engine is a 2 way RFC connection?
b) Logical System Name: We have manually typed in free text 'UDC_local'. Could you please clarify do we need to type in manually or select the logical system name from the F4 help?
Which logical system name should we enter here exactly.. pls clarify.
Do we have a seperate logical system name for the J2EE server...?
c) Type of Connector : JDBC
d) name of connector: SDK_JDBC
e) Source system name: SDK_JDBC
f) Type and Release : blank
Thanks to any answers in advance!
Best regards,
SyamHi,
Tried to give the Logical System Name in uppercase ie: UDC_LOCAL.
Now, when I click on the F4 of 'UD Connect Source Object' in Extraction tab, I get the message as below:
"Extraction of existing UD Connect data source objects".
But no list of tables is being displayed. When I entered the table name (UDITEST) manually, it gives the same error as :
" Errors occurred during extraction of UD Connect object field- table not found"...
Could you please specify from where is the UD Conenct source object fetched from?
Rgds
Syam -
PI internal error : HTTP connection to ABAP Runtime failed
Hi Experts,
From last 3 days,I am geting a SAP PI internal error(PFA for the detail).for that error,previous sucessful scenario also not working.The error I am getting in the 'TEST CONFIGURATION' of the ID:(sometimes i am getting this error in ' Receiver Determination' and sometimes in 'interface determination & mapping')
[ Receiver Determination
<Not found>
Internal Error
HTTP connection to ABAP Runtime failed. Error: Unexpected end of file from server URL: http://deveppi103:8002/sap/xi/simulation?sap-client=117 User: PIDIRUSER ]
Please,suggest.
Regards,
Raj TripathyHi Raj,
We had faced this issue a few days back and there was an entry missing in the table.
This issue has been discussed on this forum multiple times:
Prefix number: entry missing for system TST client
workflow- Prefix number: entry missing for system xxx Client xxx
Regards,
Sanjeev. -
Error connecting to a table in a database
I am trying to insert user login script and have an error.
Can anyone tell me why Dreamweaver MX 2004 cannot connect to
the tables in my databases? I am using MS Access 2002 and there are
tables in the databses.
I can supply a jpeg of the error if neededHello,
Are you using Windows XP SP2?
If so, it's a known issue.
Here's the fix:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19515&sliceId=2
Click on "connectivity fails with local ASP.NET and ASP
servers..."
There's a link to download the extension fix in "Workaround"
ASP: When using a local ASP test server running on XP SP2
with Dreamweaver
(i.e. the Testing Server URL prefix is set to "
http://localhost"), and you
specify "Using driver on testing server" or "Using DSN on
testing server,"
database connectivity fails. If you click the Test button in
the Custom
Connection String or Data Source Name (DSN) dialog box, it
says the
connection was made successfully. However, if you then try to
browse the
tables in the Databases panel or create a recordset, the
database tables do
not display or you get the following error message: "Unable
to retrieve
tables from this connection, click on the 'Define...' button
to test this
connection."
Workaround: Download and install the Dreamweaver extension
fix by Macromedia
that resolves this issue (Ref. 179021). To use this
extension, follow the
steps below. The steps below apply to both ASP.NET and ASP
sites:
1.. In Dreamweaver, go to the Files panel and choose one of
your ASP.NET
site definitions.
2.. Select Site > Advanced > Remove Connection
Scripts.
Note: If this option is grayed out, open an ASP.NET page in
Dreamweaver.
Removing the connection scripts will delete the contents of
the
_mmServerScripts folder, which is located in the testing
server folder. The
_mmServerScripts folder is hidden in Dreamweaver's Files
panel, but will be
visible if viewed with a different file browser. The
_mmServerScripts folder
consists of these three files: adojavas.inc, MMHTTPDB.asp and
MMHTTPDB.js.
The connection scripts are used by Dreamweaver to perform
remote database
connectivity when developing pages within Dreamweaver. These
script files
have no affect on your web pages during run-time (i.e. when a
visitor views
your ASP.NET pages via a web browser).
3.. Repeat steps 1-2 for each of your ASP.NET site
definitions.
4.. Quit Dreamweaver.
5.. Install the extension.
6.. Restart Dreamweaver.
7.. Go into the Files panel, select one of your ASP.NET
sites, and open an
.aspx file.
8.. Go into the Databases panel and delete your existing
database
connections. Before deleting them, make sure to open up each
connection and
write down the settings. You can open a connection by either
double-clicking
the connection name, or right-clicking the connection name
and selecting
Edit.
9.. Create a new database connection. Use the same
connection names you
had before, so any existing pages with DataSets and Server
Behaviors still
work correctly.
10.. Click the Test button in the database connection dialog
box. This
will upload the new connection scripts to the testing server.
11.. Repeat steps 7-10 for each of your Dreamweaver ASP.NET
site
definitions.
Note: This extension is compatible with Dreamweaver MX 2004
and Dreamweaver
MX. The current version of the extension is 1.0.2. Version
1.0.1 resolved a
database connectivity problem with the ASP VBScript server
model. Version
1.0.2 includes the fixes in version 1.0.1 and also resolves
compatibility
issues with Dreamweaver MX (version 6). You can see which
version of the
extension you have by opening the Extension Manager.
"ducati1" <[email protected]> wrote in
message
news:[email protected]...
>I am trying to insert user login script and have an
error.
> Can anyone tell me why Dreamweaver MX 2004 cannot
connect to the tables in
> my
> databases? I am using MS Access 2002 and there are
tables in the databses.
> I can supply a jpeg of the error if needed
>
> -
Dynamic configuration- Is file name stored in any abap table in PI
Hi.
Is there any ABAP table in XI containing the dynamic configuration's xml of a message.
For any file scenario Can I get the file name from any of the abap table in PI
Regards,
DeepakInteresting ABAP tables in XI
Interesting ABAP tables in XI Part I
Regards,
Phani -
Dynamic configuration in ABAP tables
Hi,
is there any ABAP table in XI containing the dynamic configuration's xml of a message (or an equivalent information in any format)?
Thanks,
Danielehi
Dynamic configurations will be a part of the xi message header
chk these tables
1.SXMSPMAST: (Integration Engine: Message Queue (Master)) The table is the master table for the monitoring information. You can get the timestamp, interface status, message id, and many more information.
2.SXMSPEMAS: (Integration Engine: Enhanced Message Queue (Master)) The table provides the namespaces, the business systems and message interfaces involved in the interface.
3.SXMSMSTATT: (Exchange Infrastructure: Message Status Description) This table provides a message status description.
4.SXMSMSTAT: (Exchange Infrastructure: Message Status) This table is helpful if you want to show the process status icon for the corresponding message state.
refer this for code sample
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/909760cb-0ec8-2a10-4a96-ee8417acfbc9
rgds
arun -
How to handle BLOB field in receiver JDBC adapter into ABAP table
Dear Experts,
I am working in a synchronous scenario with Sender ABAP Proxy to Oracle Database as receiver via SAP PO 7.4.I will be calling a stored procedure view with fields ID, NAME,Age,*** and BLOB (Image binary).
1. The response from Oracle Database field BLOB is to be stored in ABAP table.Would I have to write any JAVA program to read the BLOB or the receiver JDBC adapter will handle it and store in a table by using ABAP proxy once it reaches ECC.
2. If yes, would the JAVA program have to deal with other 4 fields.
3. Can I use a UDF mapping to this BLOB field.
Regards
Rebecca...Dear Praveen,
Thanks for your response...
Please correct me if I am wrong.
1. For 1-1 response mapping for BLOB field, I will use just use the below UDF code.
public static byte[] hexStringToByteArray(String s) {
int len = s.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
+ Character.digit(s.charAt(i+1), 16));
return data;
2. ===Using the byte data, create binary attachment in mapping for abap proxy response===
Could you please share how to create the binary attachment.. I am not clear
Regards... -
Hi
are there HR abap tables in the trial version of sap netweaver
Thanks,
Bala.No. Module tables doesn't exist.
-
Problem Create System Object in the Portal for connecting CRM abap
Hi, i creating system in the portal (JCX) for connecting system ABAP CRM (CRX), after create system try run test connection and show messages error:
Test Connection with Connector
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure that Single Sign-On is configured correctly
In the logs the portal (NWA) show messages:
Failed in creating the JCO Connection.
The logs operation system (log Security_audit.log)
Error> occured >Thu Jun 23 11:34:41,278<RfcException: message: 'mshost' missing Return code: RFC_INVALID_PARAMETER(19 Return code: RFC_INVALID_PARAMETER(19) error group: 101 key: FC_ERROR_PROGRAM
at com.sap.mw.rfc.api.RfcOptions.checkParameters(RfcOptions.java:438)
at com.sap.mw.rfc.api.RfcApi.RfcOpen(RfcApi.java:688)
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1079)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3256)
Plase help, any idea?message: 'mshost' missing Return
During the System Object Creating in System Landscape, there is any entry as Message Server Host: CRM MS HOST
and Message Server Port : sapmsSID and add this entry in etc/services --> bottom samsSID 36NN/tcp where NN is instance number.
Try this and let me know.
Thanks
SM
Maybe you are looking for
-
Wrong Album Art 4 Certin Albums
When going thur the iPod on my iPhone I c a few albums with different album art(both thur coverflow & albums). But this does not happen on my laptop.Does anybody else have this problem? If anybody can help or give me an idea as to why this happens th
-
Standalone oc4j 1.0.2.2.2
Hi All, Can anyone redirect me to the url to download standalone oc4j 1.0.2.2.2 because at below this url http://otn.oracle.com/software/products/ias/htdocs/winsoftold.html I could see only Version 1.0.2.2.1 and Version 1.0.2.2 for download. Thanks &
-
Question on top command output in solaris
Platform : Solaris 5.10 In the top output, if you look at the CPU colum, you can see that one process (2415) is consuming 95.84 % of CPU, another process (28533) is consuming 91.81%. How can this happen ? If one process is consuming 95.84 , then less
-
Advance to Supplier and Advance from Customer
Hi, I like to know what is procedure to import Advance to Supplier and Advance from Customer in SAP B1 as a Opening through DTW Tool. Which template to use for this type of transaction? What is Impact of Advance to Supplier and Advance from Customer
-
Since updating to iOS 6 on my iPhone 4S...
Since updating to iOS 6 on my iPhone 4S my iPod app runs very slow and crashes a lot. Once playing I can switch songs and what not with little difficulty, but if I go back to the list of songs/artists/etc it freezes or force quits. I don't know what