Connection Object from devices FM
hi all,
Is there any function Module that can be used to retrieve the connection object for a device.
regds,
stock
Hi stock,
Use ITOB_FUNCLOC_READ_SINGLE by inputing device in I_FUNC_LOCATION field. The resulting connection object will be in the export parameter E_OBJECT_REC. ie E_OBJECT_REC-TPLMA will be your connection object.
Please reward points if useful.
Regards,
Harikrishna.
Similar Messages
-
Error in creating Connection Object and Device Location
Hi ,
When i am creating Connection Object and Device Location , system is giving dump . all other object are working fine.
the error is gievn below :
Error in reading table TE130.
i checked this the table , its have no entries ( mainly field ISTYP is blank ) and this is the cause of problem .
Could you please tell me that how to fill this table before creating Connection object and device location. i think some configuration should be needed for this but i dont know how .
thanks and regards
Deepak.Hi Deepak,
You can check standard configuration in client 000.
Meanwhile you can use this settings:
ISTYP TPLKZ FLTYP NUMKI NUMKE
C AO_GP A 01 OC
D AO_GP G 02 OC
This is where you define structure indicator for isu technical location category.
ISTYP correspond to the type of technical location in ISU, C for connection object and D for device location
The content of TPLKZ is defined in the following menu in SPRO.
Plant Maintenance and Customer Service
Master Data in Plant Maintenance and Customer Service
Technical Objects
Functional Locations
Create Structure Indicator for Reference Locations/Functional Locations
Hope it helps,
Regards,
Daniel Valenzuela
Edited by: Daniel Valenzuela on Feb 4, 2008 3:22 PM -
Connection object from application module
hi
i was wondering if there is someway to retrieve the Connection object from the application module. something like:
java.sql.Connection conn = appMod.getConn();
i'm using JDeveloper 9.0.3.4
Thanks in advanced
VitorTake a look at
http://radio.weblogs.com/0118231/2004/01/30.html#a232
Sascha -
Creating logical/virtual connection object from physical connection
Can anybody help me what is creating logical/virtual connection object and how to create it from physical connection in java ??
Thanks in advance...WHile you are waiting for an answer, you might want to review the related Oracle documentation:
For 10g, all docco is at http://www.oracle.com/pls/db102/portal.portal_db?selected=3 and docco I suspect will help you is "Java Developer's Guide" and "JDBC Developer's Guide and Reference" -
Obteain connection object from application module
Hello
I am working with ADF 10g using BC4j , I am in application module implementation class, how can I obtain the java.sql.connection object used by my application module?to execute prepared statements follow
http://download-uk.oracle.com/docs/html/B25947_01/bcadvgen005.htm#sm0297
to access the SQL connection itself (for whatever reason)
Re: how to get connection from adf bc?
Frank -
Passing Connection object from web tier to ejb tier
I am having a multi threaded application where i am creating multiple threads and doing ejb lookup in each thread and there in ejb it is creating a database connection.
But i wish to pass only a single connection so that total no of free connections will be more.
i am creating a connection in my web tier and passing it in each thread and then to ejb tier. But i am getting a class cast exception
java.lang.ClassCastException: com.sun.gjc.spi.ConnectionHolder
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.write(DynamicMethodMarshallerImpl.java:338)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.writeArguments(DynamicMethodMarshallerImpl.java:407)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:157)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
Please give some insight where i am doing wrong also suggest me a better way to do it.
TIA
~seshuHi Krishendu,
I think this is a bug in 9.0.2 that is fixed in 9.0.3/9.0.4.
Can you please contact Oracle support and see whether they can provide a patch for this problem.
regards
Debu -
How to store Connection object and call it from other programs.
Hi,
I am trying to connect to the database, store the connection object and use this connection object from other standalone java programs.
Can any one tell me how to do this? I've tried in the following way:
In the following program I am connecting to the database and saving the connection object in a variable.
public class GetKT2Connection {
public static void main(String[] args) {
String url = "jdbc:odbc:SQLDsn;
String dbUser = "sa";
String dbPwd = "sa";
Connection kt2conn = Connection connection = java.sql.DriverManager.getConnection(url, dbUser, dbPwd);
if(kt2conn == null) {
System.out.println("Database Connection Failure!");
else {
System.out.println("Connected to Database...");
GetKTConnectionObj.storeKT2ConnectionObj(kt2conn);
} Here is the program to save connection object in a variable.
public class GetKTConnectionObj {
static Connection kt2Connection = null;
public static void storeKT2ConnectionObj(Connection conn) {
kt2Connection = conn;
public static Connection getKT2ConnectionObj() {
try {
return kt2Connection;
catch(Exception e){
System.out.println(e);
return null;
}Now from the following code I am trying to get the connection object that is stored. But this is throwing NullPointerException.
public class Metrics_Migration {
public static void main(String args[]) {
try {
java.sql.Connection connection_1 = GetKTConnectionObj.getKT6ConnectionObj();
catch(Exception e){
}kt2Connection is null. You need to store it first, to make it not null. Otherwise it will stay null forever. And why on earth are you trying to do this THIS way?
If you are running the two applications separately, it wont work either. -
Connection object repliction from isu to crm
Dear Experts,
I want to replicate the connection object from ISU to CRM could you tell me what are the configuration steps to be maintain in the CRM sytem so that the connection objects replicates to CRM.
Thanks & Regards
Boyz.
Moderator note: thread locked - no research done, available in other threads.Hello,
Please see note 632749 for help with this issue.
Please also check the foloowing points:
1. Are there any contract account entries existing in the table 'TFK_BUAG_REF' (IS-U System).
2. Check the contract account entries in your IS-U system with the transaction 'CAA3'. Are they existing ?
3. The buag class entry in table 'TFK_BUAG_REF' (IS-U System) is corresponding to the buag class entry in your business agreement (CRM system).
I hope this is helpful.
Regards
Olivia
Edited by: Olivia Walsh on Jan 24, 2011 5:40 PM -
Error in creating connection object
Dear Experts
When I am creating connection object using ES55 , I get Stop message saying : " Alternate ID not supported" and when i see Help it indicates : An alternative indicator is active in Customizing of the functional location. This functionality is not supported for connection objects and device locations
what could be going wrong
Plesae suggest me the solution
Thanking you in advance
warm regards
narasimhaHi,
Please check the following settings in SPRO:
Plant Maintenance & Customer Service - -Master Data in Plant Maintenance & Customer Service --Technical Objects --Functional Locations --Alternate Labeling of Functional Locations - - Activate Alternative Labeling --
In this setting pls inactive the setting for Alt.Label.Then go to ES55 and try.It will work.
Thanks,
Banasri Mitra -
Webdynpro JCO Connection Object
Hello,
I have a Webdynpro Application with a View.
In the View I call a RFC-Function at the R3 System.
Now I want Debug the ABAP-Coding in the RFC-Function.
Do anyone know how I get the JCO Connection Object from a Model Class ?
I've checked this:
wdContext.nodeEqui().getCurrentElement().model();
It doesn't work,.....
I want set the ABAP debuging ON with the Methode setAbapDebug(true)
Thanks
MikeHello,
Thanks,
now it works. I've never told you, I used a Custom Controller in der View.
Client myClient =
wdThis
.wdGetMyEquiController()
.wdGetContext()
.nodeBapi_Equi_Create_Input()
.currentBapi_Equi_Create_InputElement()
.modelObject()
.modelInstance()
.getJcoClient();
myClient.setAbapDebug(true)
Best regards,
Mike -
Advantages of connection object
Could someone explain the advantages or rather difference in passing the Connection object from a JSP to a servlet instead of creating one (and returning to the pool) in the servlet itself?
Thanking youDo you mean the advantage of holding onto a connection over multiple requests versus making a new one each request?
There it usually comes down to 2 things:
1) Faster response time if new connections don't have to be made, or you don't have to wait for another connection to be freed for the pool
2) Probably more importantly you can maintain multi-request transactions. If you have a transaction with the DB that may take several steps of user interaction, if you maintain the same connection then if you need to you can roll back all the changes (cancel) that the user made. If you make/get new connections each time then it is harder to roll back and you could leave the DB in an unwanted state.
If you mean in the same request... then I don't know - other than it is easier to handle all the exceptions in a servlet then in a JSP (nature of working with Java code directly) -
Connection object creation error(ES55)
Dear Friends,
When I try to create a connection object using tcode ES55 I am getting an error "Alternative ID Not supported", Message E7045, "An alternative indicator is active in Customizing of the functional location. This functionality is not supported for connection objects and device locations".
If I deactivate at Functional Location Level, system asks activation settings are not maintained.
Can somebody guide me on this issue.
with regards,
DayanandDear william,
I am not able to execute tcode ES55, becoz if I activate alternate labeling, system throws an error to deactivate it. If I deactivate it system throws an error to activate it.
Please suggest how to overcome this. We are using IDES 800 only. Do we need to update any patches.
with regards,
Dayanand -
Error when run the transaction ES55 or ES56 of Connection Object
Dear Expert,
I like to say that our organzation is going to SAP 4.7 to 6.0. All the basis activity has been comlpleted & now its testing time.
I was faced the problem when create connection for Business partner. Actually when I write the t-code ES55 for creation of coonection Object in SAP menu path & press enter then show the error "system settings for the alternative labeling of functional locations have not been maintained in Customizing."
So I have activate the funclocation location alternative labelling. after that again run the T-Code es55 this time show the error "An alternative indicator is active in Customizing of the functional location. This functionality is not supported for connection objects and device locations"
Please suggest me how we customized the conection object 7 how will resolve the error.
Thanks & Regards,
DeepakHello Deepak,
please read note 964931:
These alternative labeling systems are not provided with the standard
product for the IS-U connection object and device location.
If you want to use alternative labeling systems for the IS-U connection
object and device location, SAP recommends a remote consulting.
Regards
Olivia -
CRM/ISU: Notes (or Texts) at Connection Object Level and replication
Hi there,
I am trying to replicate to CRM (and back to ISU) the Text objects linked against the Connection Object in ISU.
The idea is to have two texts area in the Connection Object in the WebIC that can be replicated back to the related ISU's ones.
The requirement is to replicate those texts (multiline texts, textarea, notes) linked against the Connection Object from CRM to ISU.
The connection object in CRM is a "casted" Individual Object that can be linked against Notes (or Texts), isn't it?
So the IObjects can have a Notes Assignment Block.
The problem is that from an WebIC point of view the Notes Assignment block obviously are not shown.
Have someone of you done something like that before? Any idea?
Thanks.
Regards,
Carlo.Hey Bill, thanks for the links. Question - is the Utilities Check Cockpit available externally? I try the link but receive an authorization issue using my new S-id
I am trying the following link:
https://service.sap.com/~sapdownload/011000358700001040272011E
Thanks,
James -
ISU-CRM Initial load of connection object
Hi All,
Currently we are working on replication of connection object from ISU to CRM
We have followed the settings as metioned in cookbook-ISU/CRM replication of technical object.
During initial download,BDOC's are going into error with with the error "General error (exception) in product API" and "Validation error occurred: Module VALIDATE_MSGBDOC_FOR_CONNOBJ, BDoc type SI_CONNOBJ.
We have created subcategories for connection object and POD in the hierarchy R3PRODSTYP.
What other setting are we missing?
Regards
NIkhilHi ,
The number range is maintained.
I was debugging the code and one function module COM_PR_SET_CHECK_ALL is giving error "Assign a base category to the product"
Diagnosis "When you create a product you must assign it a category. This category is used for number assignment and must be from the hierarchy assigned to the application Product (see also No hierarchy assigned to the application Product)."
Procedure :Assign the appropriate category to the product.
Any idea about the error?
The replication is working perfectly fine in our sandbox system and FM is returning no error.
Regards
Nikhil
Maybe you are looking for
-
BAPI_GOODSMVT_CREATE Error - The material does not exist or is not activatd
Scenario is to make a Goods Receipt on a material which is being imported from external sources. There is a purchase order created for this already in SAP. From MII we are using standard BAPI - BAPI_GOODSMVT_CREATE and passing the fields below: GM_Co
-
Insert code in prgram to check sales order exits in your own program
Hi Experts I want to insert a coding in IDOC , can anyone write in abap coding and show .....The program is to check if sales order for category PSTYV ( CATEGORY ) for items ... if found set flag true else set flag false... Eg clear flag insert code
-
How to sell scientific article in iTunes?
Hi, I have translated very important scientific article and have authors permission to publish it. Please give me ideas how to publish it on iTunes store. Thanks for any answer/help. Kind regards, Raimis
-
Has anyone bought the colored cases for their Mac? If so please share the pros and cons
I have seen these cases on Tv shows and online would like to know if anyone else is using it. And if so is it a good product to buy?
-
File not showing in SXMB_MONI
Hi Frnds, i did one synchronous Scenario File2Soap Using WSDL file Currency converter and am using PI 7.31 Dual stack. file picking Successfully to target but in sxmb_moni the msg was not showing please tell me anyone what is the problem. Regards, Ra