Saving in sap database using kpro
hie gurus, I'm configuring dms for the first time in ECC 6.0. I'm trying to store files in SAP DB using kpro however when I have created and checked in originals when i try to save the DIR i get an error that says error when trying to save with kpro. What could be the problem ? please help.
regards musi
Hi Musiyandakarue
You have set Indicator Use KPRO in Define Document Types. So remonve this Selection.
Please Go through these Links for your Problem.
Storage of Data in Storage Systems Using the Knowledge Provider
http://help.sap.com/saphelp_erp60_sp/helpdata/en/8a/d31c34044611d3951d00a0c92f024a/content.htm
Checking an Original Application File into the SAP Database
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/1c27f743c711d1893e0000e8323c4f/content.htm
This will clear your Problem.
With Regards
Mangesh Pande
Similar Messages
-
How to upload the data from XML file to SAP database using IDOC
Hi,
I need some steps to upload data from XML format file from other directory to SAP database using IDOC.
how to approch this please if any one knows give me ans
it will be a great help ful to me
Thanks in Advance
MallikThank you vijay,
But i heard that by using this Fun modules, when we are passing IDOC in back ground schedule, so some other depended FM not supporting, so how to approach this and how to avoid this problem.
Have you worked on this before if any one worked on this please help me out
And thank you once again for your valuable information
Best Regards
Mallik -
Can we connect and access SAP database using db adapter?
Hi,
I need couple of details:
1) Can we connect to SAP database using db adapter and run select query to extract data from the SAP database tables?
2) Where can I download SAP adapter? How to install it? and how to plug that in to the JDev?
Cheers1) Can we connect to SAP database using db adapter and run select query to extract data from the SAP database tables? It is possible as long as back-end DB version of SAP are supported by DB adapter. Oracle recommends SAP connectivity through Oracle Application Adapter for SAP rather than direct connection to SAP Database tables.
2) Where can I download SAP adapter? How to install it? and how to plug that in to the JDev?http://www.oracle.com/technology/products/integration/adapters/pdf/DS_OracleASAdapter_SAP.pdf
http://www.oracle.com/technology/software/htdocs/devlic.html?url=/technology/software/products/ias/htdocs/101202.html
http://download.oracle.com/docs/cd/E12524_01/doc.1013/e14201/toc.htm (Installation)
http://download.oracle.com/docs/cd/E12524_01/doc.1013/e14196/toc.htm (SAP adapter configurtation)
Manoj -
DMS Storage in SAP Database with Kpro.
Hello SAP Gurus,
we are using the ECC 6.0 client and still have not configured any content servers for storing the originals,
but i could make use of Kpro Tick in Document type and attach n no of file to DIR,
also i have tried using KPRO tick and also making the file Size as 00000,
but its working and allowing me to store originals in DMS_C1_S1 content repository.
But when i dont give Kpro tick in document type, then original is not checked in using KPRO, (but again it is also storing original in SAP Database), then it is at this point it is required to give the file size or else it is giving the error, what is the reason for this strange behavior,
as in both the case the document is getting stored in SAP database only.
as content repository DMS_C1_S1 is again using SAP Data Base itself. (Verify from OACT transaction.)
Please clarify,
Points awaiting.
regards
PriyaDear friends thanks for your reply,
as i have detailed in my quiry,
i could see if we use Kpro we can attach more than 2 originals in a DIR, and also get the advantages of Kpro,
and if i dont give Kpro tick only 2 originals can be attached in the original.
but in both the cases the original is being stored in the SAP Database only.(in my case as content server is not yet installed)
i want to know as the original files if stored in SAP DMS either with Kpro or with out Kpro, can this original files stored be copied in to external storage device say CDs and opened with out SAP logon. (like opening the files in normal windows system)
thanks and regards,
Priya
Edited by: Priya S on Feb 19, 2009 11:46 AM -
Saving data in database using textbox and save button
Hello. I just want a help about my code because when i close the application the data that i add is not been saved.
Here is my code of save:
function saveData(event:MouseEvent):void
status.text = "Saving data";
insertStmt = new SQLStatement();
insertStmt.sqlConnection = conn;
var sql:String = "INSERT INTO employees (firstName, lastName, salary) VALUES (:param, :param1, :param2)";
insertStmt.text = sql;
insertStmt.parameters[":param"] = firstName.text;
insertStmt.parameters[":param1"] = lastName.text;
insertStmt.parameters[":param2"] = salary.text;
insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
insertStmt.execute();
Here is the full code:
import fl.data.DataProvider;
import flash.data.SQLResult;
import flash.data.SQLConnection;
import flash.filesystem.File;
import flash.data.SQLStatement;
import flash.data.SQLConnection;
var conn:SQLConnection;
var createStmt:SQLStatement;
var insertStmt:SQLStatement;
var insertStmt2:SQLStatement;
var insertStmt3:SQLStatement;
var selectStmt:SQLStatement;
var insert1Complete:Boolean = false;
var insert2Complete:Boolean = false;
saveBtn.addEventListener(MouseEvent.CLICK, saveData);
loadBtn.addEventListener(MouseEvent.CLICK, getData);
init();
function init():void
conn = new SQLConnection();
conn.addEventListener(SQLEvent.OPEN, openSuccess);
conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
status.text = "Creating and opening database";
// Use these two lines for an on-disk database
// but be aware that the second time you run the app you'll get errors from
// creating duplicate records.
// var dbFile:File = File.applicationStorageDirectory.resolvePath("DBSample.db");
// conn.openAsync(dbFile);
// Use this line for an in-memory database
conn.openAsync(null);
function openSuccess(event:SQLEvent):void
conn.removeEventListener(SQLEvent.OPEN, openSuccess);
conn.removeEventListener(SQLErrorEvent.ERROR, openFailure);
createTable();
function openFailure(event:SQLErrorEvent):void
conn.removeEventListener(SQLEvent.OPEN, openSuccess);
conn.removeEventListener(SQLErrorEvent.ERROR, openFailure);
status.text = "Error opening database";
trace("event.error.message:", event.error.message);
trace("event.error.details:", event.error.details);
function createTable():void
status.text = "Creating table";
createStmt = new SQLStatement();
createStmt.sqlConnection = conn;
var sql:String = "";
sql += "CREATE TABLE IF NOT EXISTS employees (";
sql += " empId INTEGER PRIMARY KEY AUTOINCREMENT,";
sql += " firstName TEXT,";
sql += " lastName TEXT,";
sql += " salary NUMERIC CHECK (salary >= 0) DEFAULT 0";
sql += ")";
createStmt.text = sql;
createStmt.addEventListener(SQLEvent.RESULT, createResult);
createStmt.addEventListener(SQLErrorEvent.ERROR, createError);
createStmt.execute();
function createResult(event:SQLEvent):void
createStmt.removeEventListener(SQLEvent.RESULT, createResult);
createStmt.removeEventListener(SQLErrorEvent.ERROR, createError);
addData();
function createError(event:SQLErrorEvent):void
status.text = "Error creating table";
createStmt.removeEventListener(SQLEvent.RESULT, createResult);
createStmt.removeEventListener(SQLErrorEvent.ERROR, createError);
trace("CREATE TABLE error:", event.error);
trace("event.error.message:", event.error.message);
trace("event.error.details:", event.error.details);
function addData():void
status.text = "Adding data to table";
insertStmt = new SQLStatement();
insertStmt.sqlConnection = conn;
var sql:String = "";
sql += "INSERT INTO employees (firstName, lastName, salary) ";
sql += "VALUES ('Bob', 'Smith', 8000)";
insertStmt.text = sql;
insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
insertStmt.execute();
insertStmt2 = new SQLStatement();
insertStmt2.sqlConnection = conn;
var sql2:String = "";
sql2 += "INSERT INTO employees (firstName, lastName, salary) ";
sql2 += "VALUES ('John', 'Jones', 8200)";
insertStmt2.text = sql2;
insertStmt2.addEventListener(SQLEvent.RESULT, insertResult);
insertStmt2.addEventListener(SQLErrorEvent.ERROR, insertError);
insertStmt2.execute();
function insertResult(event:SQLEvent):void
var stmt:SQLStatement = event.target as SQLStatement;
stmt.removeEventListener(SQLEvent.RESULT, insertResult);
stmt.removeEventListener(SQLErrorEvent.ERROR, insertError);
if (stmt == insertStmt)
insert1Complete = true;
else
insert2Complete = true;
if (insert1Complete && insert2Complete)
status.text = "Ready to load data";
function insertError(event:SQLErrorEvent):void
status.text = "Error inserting data";
insertStmt.removeEventListener(SQLEvent.RESULT, insertResult);
insertStmt.removeEventListener(SQLErrorEvent.ERROR, insertError);
trace("INSERT error:", event.error);
trace("event.error.message:", event.error.message);
trace("event.error.details:", event.error.details);
function getData(event:MouseEvent):void
status.text = "Loading data";
selectStmt = new SQLStatement();
selectStmt.sqlConnection = conn;
var sql:String = "SELECT empId, firstName, lastName, salary FROM employees";
selectStmt.text = sql;
selectStmt.addEventListener(SQLEvent.RESULT, selectResult);
selectStmt.addEventListener(SQLErrorEvent.ERROR, selectError);
selectStmt.execute();
function saveData(event:MouseEvent):void
status.text = "Saving data";
insertStmt = new SQLStatement();
insertStmt.sqlConnection = conn;
var sql:String = "INSERT INTO employees (firstName, lastName, salary) VALUES (:param, :param1, :param2)";
insertStmt.text = sql;
insertStmt.parameters[":param"] = firstName.text;
insertStmt.parameters[":param1"] = lastName.text;
insertStmt.parameters[":param2"] = salary.text;
insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
insertStmt.execute();
function selectResult(event:SQLEvent):void
status.text = "Data loaded";
selectStmt.removeEventListener(SQLEvent.RESULT, selectResult);
selectStmt.removeEventListener(SQLErrorEvent.ERROR, selectError);
var result:SQLResult = selectStmt.getResult();
resultsGrid.dataProvider = new DataProvider(result.data);
// var numRows:int = result.data.length;
// for (var i:int = 0; i < numRows; i++)
// var output:String = "";
// for (var prop:String in result.data[i])
// output += prop + ": " + result.data[i][prop] + "; ";
// trace("row[" + i.toString() + "]\t", output);
function selectError(event:SQLErrorEvent):void
status.text = "Error loading data";
selectStmt.removeEventListener(SQLEvent.RESULT, selectResult);
selectStmt.removeEventListener(SQLErrorEvent.ERROR, selectError);
trace("SELECT error:", event.error);
trace("event.error.message:", event.error.message);
trace("event.error.details:", event.error.details);Your database system may well have a setting for character encoding when creating new databases. If you set that to unicode JDBC should store and retrieve UNICODE strings automatically.
As to the HTML side, you should generally use UTF-8 encoding. You need an editor which understands UTF-8. JSPs and servlets have ways of specifying the encoding which goes into the http headers. For static HTML pages you may have to add a header like:
<META http-equiv="Content-type" value="text/HTML; charset=UTF-8">
When receiving form data you need to do
request.setCharacterEncoding("UTF-8"); -
Error while saving file to database using messageFileUpload
Hi,
In my OA Page I have messageFileUpload to save the file to a database. I have a custom stored procedure that I call in the AM that takes the file as BLOB and insert it into the table. My problem is for smaller files it works fine but as soon as I try to save a larger file i.e. over 0.5 MB I am getting the following errors. Sometime I get size error sometimes I get unreasonable conversion requested error. How can I solve this so it takes any size of file and save it.
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Data size bigger than max size for this type: 2251264;
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested ; Here is what I have in my Controller code snippet
BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
Serializable[] parametersFile = { fileName, contentType, fileSize, uploadedByteStream };
Class[] paramTypesFile = { String.class, String.class, Long.class, BlobDomain.class };
am.invokeMethod("saveFile", parametersFile, paramTypesFile);Here is the AM method that also invokes the Stored Procedure and pass the file as BLOB to save
conn = (OracleConnection)dbTransaction.getJdbcConnection();
cStmt = (OracleCallableStatement)conn.prepareCall(
"{CALL FILE_PKG.saveFile(:1, :2, :3, :4)}");
cStmt.setString(1, fileName);
cStmt.setString(2, fileContentType);
cStmt.setNUMBER(3, new NUMBER(fileSize.intValue()));
cStmt.setBinaryStream(4,uploadedFile.getBinaryStream(),fileSize.intValue());Any help is appreciated.
ThanksI was able to resolve it and used the below code just in case if anyone else trying to save the BLOB
byte[] barray = uploadedFile.getBytes(0,fileSize.intValue());
oracle.sql.BLOB data = oracle.sql.BLOB.createTemporary(conn, true, BLOB.DURATION_CALL);
data.putBytes(1,barray);
cStmt.setBlob(4,tempBlob); -
How to convert UIView object to NSData and vise-versa for saving it in database using sqlite
I am using sqlite for my project which stores all the data including text fields , id , and one UIVIew object in a column having BLOB datatype .
Now while retriving the data i use
const char *raw = sqlite3_column_blob(selectstmt, 3);
int rawLen = sqlite3_column_bytes(selectstmt, 3);
NSData *data = [NSData dataWithBytes:raw length:rawLen];
view =[NSKeyedUnarchiver unarchiveObjectWithData:data];
where data is NSData obj n view is UIView obj ,
also while inserting data i use ,
NSData *data=[[NSData alloc]init];
data=[NSKeyedArchiver archivedDataWithRootObject:view];
// [data dataForView:notes.view];
sqlite3_bind_blob(updateStmt, 2, [data bytes], [data length], SQLITE_TRANSIENT);
But this is not working properly ... the Data object is giving some length,
while using the view the view object is null
is there any other solution to do the same ?There's a ton of information here: [http://www.json.org/] and I can't believe you didn't find that site yourself.
-
Hi,
I am new to XI and doing a sample scenario.
The data from file is sent to RFC in SAP and RFC is updating Z tables.
I am facing the problem.
The file is read and I am monitoring the details in SXMB_MONI.
I could see the data content here. The data to be transferred.
The RFC is getting invoked but blank values are updated in my Z table.
There is no problem with the RFC or the insert query. I have checked it with manual execution.
Also if I hard code values in RFC, they are inserted successfully.
But values coming from file are not getting updated.
I think the values are not coming in the RFC.
However the success flag is seen in SXMB_MONI.
Can anyone help me out?
I cannot debug the RFC to check if the values are actually coming or not.
Would appretiate with points.
reagrds,Hi,
if you changed the RFC many times (and imported again into repository)
restart XI (j2ee part at least)
you can also debug the RFC from XI - create an endless loop
inside your RFC and when XI will call it go inside via SM50
Regards,
michal -
I seen in some sites that we can query the SAP database using doQuery()..
If i use the tablename eg.OCRD used by SAP for my application.. Is there any chance of changing the table name in SAP..
If anybody having exposure in SAP SDK please give me some ideas about thatFollowing code works for me (in VB):
Dim rs As SAPbobsCOM.Recordset
Dim query As String
Try
query = "SELECT * FROM OCRD"
rs = oCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
rs.DoQuery(query)
Console.WriteLine("aantal regels ", rs.RecordCount)
If rs.RecordCount > 0 Then
Dim file As String = "c:\temp\bp.xml"
Console.WriteLine("file: ", file)
rs.SaveXML(file)
End If
Catch e As Exception
Dim message As String = _
e.[GetType].ToString + ":" + vbCrLf + _
e.Message + vbCrLf + _
e.StackTrace
Console.Error.WriteLine(message)
MsgBox(message, MsgBoxStyle.Critical)
End Try
Regards,
Jacco. -
Populating SAP Database table using JDBC adapter
Hi Folks,
I have a requirement to populate a SAP database table say ZTABLE using XI. The Model is the table has to be populated through a file which will be processed by SAP XI. Basically this is a File to JDBC scenario. The database used is ORACLE. Kindly provide me some idea to go ahead.I tried to place the MS access table in the shared folder of the Application server system but still it seems the table is not being populated.
did you check the log in your receiver channel? (/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn)
The requirement is to update the tables directly as those are the custom tables.
i would still say that do not update SAP tables directly from XI/ PI.....this is not a standard architecture/ solution.... -
Error saving job to database for standard jobs scheduling
Hi,
In IDES server when iam goto Tr.code -- SM36 -- Standard Jobs -- Default Scheduling iam getting below error.
Error saving job to database
Message no. BT117
Diagnosis
The SAP system was unable to save the current job in the database. This failure suggests that there is a problem with the database system or with the network connections between the SAP application servers and the database system.
System Response
Job not saved and not scheduled.
Procedure
To analyze this problem, start by checking the system log for messages about network or database problems. You can also use the computing center management system to check your system for problems.
Guide me for the same.
ThankuHI,
Sometimes this error will come.
Try to schedule jobs manually using SM36 instead of using standard job button.
Also you can check this thread
Re: Error saving job SAP_REORG_JOBS to database
Which seems to report same problem.
Its nothing to take with database conenctivity as SAP is up and running .
Try this and revert.
Regards, -
Document stores in both SAP database and Content Server
Hi,
We don't want to store doc. in SAP database and chose to use content server. We have KPro checked in configuration also.
Our basis team has created a content repository ZP that points to the content server, in the document area.. they enter "ARCHLINK" instead of DMS. So they told me to create doc. and pick this new ZP to store the doc. But we I created a doc. in CV01N, went to check in the original, the new repository ZP is not on the list of choice to pick from. So I cannot store the doc. in that new content repository.
Our basis team told me that if we use DMS in the document area, the doc. stores in both SAP database and Content Server. We don't want to have doc. stores in SAP database that's why we have content server.
How can I create DMS and store in content server only (not SAP database) ?
Thank you,
Sam SchwartzbergHi Samantha,
While check-in activity are you able to choose the new content repository i.e. ZP?
If not then use t-code OAC0 and while creating the repository check whether the certificate is activated by basis or not .
If not then you need to activate the certificate for the new repositoty in CSADMIN then only it will appear in the list while "check-in" the dcouments.
Please check for the same. Also check the t-code OACT , this new repository is shown or not.
I hope this will resolve the query.
Regards,
Ravindra -
How to access SAP database tables with Java (Jco)
Hi!
I need to develop a Java Client for SAP with access to the SAP database. Is there a way to do this directly in Java (the db access) or do I have to use some ABAP logic in between to get the information to the java client? If so, are there any existing ABAP functions to read AND write db tables? Or do I have to create my own wrappers for each table I need to read and write?
Thanks,
Konradhi,
i am sending code .i think it will help u
try {
// Add a connection pool to the specified system
// The pool will be saved in the pool list to be used
// from other threads by JCO.getClient(SID).
// The pool must be explicitely removed by JCO.removeClientPool(SID)
this.objClient = JCO.createClient(strClient, // SAP client
strUserID, // userid
strPwd, // password
strLang, // language
strHost, // host name
strSysNr);
this.objClient.connect();
// Create a new repository
// The repository caches the function and structure definitions
// to be used for all calls to the system SID. The creation of
// redundant instances cause performance and memory waste.
this.objIRepository =
JCO.createRepository("MYRepository", this.objClient);
} catch (JCO.Exception ex) {
System.out.println("Caught an exception: \n" + ex);
JCO.Function objFunction =
this
.objIRepository
.getFunctionTemplate("BAPI_MATERIAL_AVAILABILITY")
.getFunction();
objFunction.getImportParameterList().setValue(strPlant, "PLANT");
objFunction.getImportParameterList().setValue(strMaterial, "MATERIAL");
objFunction.getImportParameterList().setValue(strQuantity, "UNIT");
this.objClient.execute(objFunction);
JCO.Structure ret =
objFunction.getExportParameterList().getStructure("RETURN");
String strRetMsg = ret.getString("MESSAGE");
if (strRetMsg.equals("Unit is not created in language")) {
arrResult.add("error");
return arrResult;
} else {
String strQty1 =
objFunction.getExportParameterList().getString("AV_QTY_PLT");
if (strQty1.equals("0"))
result = "no";
else
result = "yes";
arrResult.add(result);
return arrResult; -
Hi,
In IDES ECC6.0 Ehp 3 (Os: window 2003 64bit DB: oracle 10.2.0.2) server when iam goto T-Code -- SM36 -- Standard Jobs -- Default Scheduling iam getting below error.
<error saving job to database>
So I patched oracle 10.2.0.1 to 10.2.0.4, and kernel patch with latest one.
But, the same error occured.
I tried to execute r3trans -d at the OS level,the results is <The system cannot execute the specified program>.
In SM21, i am getting below error
<error saving job to database>
&CAUSE &
The SAP system was unable to save the current job in the database. This failure suggests that there is a problem with the database system or with the network connections between the SAP application servers and the database system.
&SYSTEM_RESPONSE&
Job not saved and not scheduled.
&What_TO_DO&
To analyze this problem, start by checking the <DS:TRAN.SM21>system log for message about network or database problems. you can also use the <DS:TRAN.SRZL>computing center management system to check your system for problems. >
I checked SM28 and SICK and it reports no error.
Please help how can I schedule the standard jobsMake sure you use the proper kernel, for 64bit there are two kernels:
- one for AMD64 and Intel64
- one for Itanium-2 64bit
The R3trans seems to be the wrong one - as I would suggest are the brtools.
Markus -
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D.
Maybe you are looking for
-
TS3274 I have multiple safari windows open, how do I close them 1 at a time?
Does anyone no how to accomplish closing safarie window 1 at a time or even all at once?
-
Every version of this file is skipped on 2 different iPods like it's zero seconds long !?
Firstly, this question, posted an hour ago, has to be pretty directly involved --- https://discussions.apple.com/thread/6407228 Before the whole mess of "replace iPod / which requires iTunes 10.7 / which I install on native Lion / which somehow preve
-
Hello Everyone, I am new to this forum and also new to event-driven programming. Anyways, I am doing a small exercise to get myself familiar with event-driven programming. In particular, the program responds to keys entered on a keyboard. The exercis
-
I am an XI Developer but I am trying to expand my knowledge into ABAP a little... Basically I want to know how to create an RFC that I can call from XI. I want a scenario where the following is done. In the Sender System I want a Program/Function Mod
-
Hi I'm designing Christmas cards (I know its July!) for a relative who runs a local branch of "Citizens Advice Bureau" and I need help identifying the font the logo uses. Here is a highish res image of the logo: http://www.southwarkadvice.org.uk/ima