File JDBC - scenario, no need of response
File to JDBC scenario insert Async scenario....
i dont want response back..but i am getting response and throws error ..how to make it without response?
i was using file adapter as sync with requestresponse bean..which caused the issue..I removed it and issue resolved...
Similar Messages
-
Dear Friends,
I am performing Simple File to JDBC scenario. For this I am using MySql. I have designed and configured all the required steps and activated. Now I went to Runtime Work Bench monitoring.. Here in Message monitoring status is "waiting". Here it has thrown one exception like this, Exception caught : Jdbc Receiver Channel:Configuration not initialized due to loading Jdbc receiver
"com.microsoft.sqlserver.SQLServerDriver" Failed :java.lang.ClassNotFound - Exception : com.microsoft.jdbc.sqlserver.SQLServerdriver.
Please help me,Now what i have to perform.
thanks in advance.check this
http://help.sap.com/saphelp_nwce10/helpdata/en/45/08546ff5200486e10000000a155369/content.htm
and
https://wiki.sdn.sap.com/wiki/x/sAA7AQ
Regards,
Ravi -
Dear All,
I am working on FILE to JDBC scenario in which I am facing with the following error:
- 2007-12-14 18:18:51 GMT+05:30: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TBL_SAP_PRODUCTS' (structure 'STATEMENTNAME1'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
the payload at the JDBC adapter is :
- <ns0:MT_JDBC_MARA xmlns:ns0="urn:abc:mm">
- <STATEMENTNAME1>
- <DbTablename action="INSERT">
<TABLE>TBL_SAP_PRODUCTS</TABLE>
- <access>
<MATERIAL_CODE>000000000001002021</MATERIAL_CODE>
<DESCRIPTION>BASICS 7 FTBL.</DESCRIPTION>
<PRODUCT_HIERARCHY_CODE>00</PRODUCT_HIERARCHY_CODE>
<MATERIAL_GROUP_CODE>R1500</MATERIAL_GROUP_CODE>
<MATERIAL_GROUP_DESC>Basics-FG</MATERIAL_GROUP_DESC>
<BASE_UNIT>S07</BASE_UNIT>
<SAP_ADD_DATE>20051219</SAP_ADD_DATE>
<SAP_MODIFY_DATE>20051219</SAP_MODIFY_DATE>
<EXTRACT_DATE>20071214</EXTRACT_DATE>
</access>
Please guide me what is the error.
Warm Regards,
N.JainHi nishu,
Go into the Repository (IR) and check the conditions mentioned for the field <STATEMENTNAME1>/TBL_SAP_PRODUCTS in the datatype, searching it by the respective namespace and check if the given input has the expected data type.
Change your payload date format according to the timestamp specified in the condition .
Regards,
Shibani
*reward with points if helpful* -
RFC to XI to File (FTP) Scenario ? Need your help
Hi XI Experts,
currently I am into one the problem where I am doing one scenario which has the case of executing RFC on the SAP RFC side and based on which I will be getting the output table which will converted to XML by SAP XI and then we get that to download to FTP server as xml file only initally.
error I am facing below:
11/14/09 18:00 Success The message was successfully retrieved from the call queue.
11/14/09 18:00 Success The message status set to DLNG.
11/14/09 18:00 Error Received XI System Error. ErrorCode: NO_MAPPINGPROGRAM_FOUND ErrorText: ErrorStack: Interface mapping Object ID 18C33445E45E347387DC803834A96D42 Software Component 8E59D621C60211DEA247C2AB0A60051A does not exist in runtime cache
11/14/09 18:00 Error Returning synchronous error notification to calling application: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_MAPPINGPROGRAM_FOUND:.
11/14/09 18:00 Error Transmitting the message using connection http://tpxidq.mycompany.com:8000/sap/xi/engine?type=entry failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_MAPPINGPROGRAM_FOUND:.
11/14/09 18:00 Error The message status set to FAIL.
11/14/09 18:00 Error Returning to application. Exception: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_MAPPINGPROGRAM_FOUND:
11/14/09 18:00 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_MAPPINGPROGRAM_FOUND:
And this is first time we are doing this type scenario if any help regarding whole scenario is also welcome.
Thanks in advance guys, I appreciate your time and effort.
Thanks & Regards,
Gaurav Patwari
Edited by: GauravPa on Nov 14, 2009 2:15 PMNO_MAPPINGPROGRAM_FOUND
1) Open Interface Determination in ID and check if correct source and target interfaces are entered there.
2) Also check the name of the Interface/ Operation Mapping whic is included in the Interface Determination
3) Make some dummy change to this Interface Determination and again activate
4) Check the ache Status in ID --> Environment --> cache Status Overview
5) In SXI_CACHE check if the Interface mapping and Interface Determination are present
6) If needed perform a cache refresh
Regards,
Abhishek. -
Approach needed for processing huge file.using file-jdbc
Hi,
My Scenario is file-jdbc. I need to update the records in database table. The size of file would be 500mb.
1)Will the recordsets per message in the sender side FCC will help me in processing the file? Any other better solution or any configuration needs to be checked on PI system? as processing should be finished in 3 hours time?
2)i need to update other table with no.of records processed per cycle with time. How to acheive this?
TIAI would suggest you to go for Stored procedures and follow as mentioned below:
1)Use recordsets per message in the sender side FCC (already mentioned by u)
2) Create a SP and and pass source payload as xml input to the SP.
Ur target structure will be something like this:
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
<StatementName>
<storedProcedureName action=u201D EXECUTEu201D>
<table>realStoredProcedureeName</table>
<param1 type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName>
pass ur source data as xml input to param1.
If u r using PI7.1 then chk this:
http://www.sappi.sapag.co.in/flat-file-to-file-senario/convert-the-input-xml-to-string-in-pi-7-1-using-standard-graphical-mapping-2/
on the database side parse the string (xml document) and then insert the data in the table.. Chk with ur DB team regarding the same. -
Hi,
I configured FILE - XI - JDBC scenario. I am transferring data from a flat file to Oracle table. In the receiving communication channel, I gave the necessary parameters.
The flat file is picking up, but at the receiving end its throwing an error that 'Class Name does not exist'.
Plz help me how to resolve this...
Thanks,
SatishHi Satish,
Please have a look at these blogs.They clearly explain the File-JDBC scenario
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
cheers ,
Prashanth -
Test cases for File to JDBC scenario?
Hi Experts,
I would like to know what are the things needs to be tested to ensure that the File to JDBC scenario holds good in the PI box. Your valuable inputs are required to verify /check my scenario configuration is free of errors.
Thanks & Regards,
Pcv.Hi,
You can try the following:
1) If the end systems require authentication and the same is not provided in PI then it should throw an error.
2) Check what happens when you dont give a mandatory field.
3) check what result you will get when you give a wrong input.
4) Check whether all your restrictions (in mapping and/or in receiver determination) are working properly.
5) Check what you need to do when the target system is down.
6) If using any FCC then check whether the conversion is done properly.....
7) See to it that you have defined a proper DB structure when you are communication with JDBC
8) Check with the end system whether your statement (Insert/Update/Delete etc) is performed properly
Regards,
Abhishek.
Edited by: abhishek salvi on Dec 4, 2008 9:58 AM -
File to JDBC Scenario using stored procedure Question
Does anyone have an aswer (or have you seen a Blog that covers it) to the problem of having to do a table refresh before doing inserts in a file 2 jdbc scenario?
Essentially the details are as follows:
I have an input file that has all the data for a table (it's a complete table dump) of lets say userdata (username, name, hiredate).
I need to pass that to an oracle database via stored procedure(s). But before I start issuing my insert (via insert stored procedure) I have to somehow issue a delete statement to delete all the contents of the table I'm about to update. I'm on XI 3.0 and aren't sure what the best solution to this may be.
Again if there is a blog that covers this then if you could point me in that direction it would be great. Otherwise if anyone has any good ideas it would be appreciated.Hi,
For structure refer this blog..
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Use two <Statement> tags as shown here and there you may have separate tablenames.
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
Thanks,
Jogula Ramesh -
Need information regarding IDOC to JDBC Scenarios.
Hi,
Kindly help me with the pre-requisites inorder to start with a scenario of IDOC to JDBC and also the scenario of JDBC to IDOC.
Regards,
Sreedhar, AvHello Sreedhar,
While we working in JDBC or JMS Adapters we should deploy the Drivers..
Go through this links,
/people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
Configuration of JDBC Adapter for SQL Server
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
If the connection is not working find the correct port number.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
JDBC- X I - R/3 Scenario
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Please check the driver path as mentioned below.
JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
No JDBC driver required.
Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
follow this thread
Re: Problem when connecting to MS Access through JDBC Adapter.
SAP Note 850116 has details
2) While we working in IDOC Adapters we should do ALE Config of IDOC Settings .
Do these configurations in R/3 and in XI...
SAP XI
1) RFC Destination (SM59)
a) Choose create.
b) Specify the name of the RFC destination
c) Select connection type as 3 and save
d) In the technical settings tab enter the details SAP SID/URL and system number#.
e) Enter the Gateway host as same details above SID/URL.
f) Gateway service is 3300+system number#.
g) In the Logon /Security tab, enter the client user & Password details of Destination system.
h) Test the connection and remote logon.
2) Create Port (IDX1)
a) Select create new button
b) Enter the port name as SAP+SID (The starting char should be SAP)
c) Enter the destination client.
d) Enter the RFC Destination created in SAP R/3 towards other system.
e) Save
3) Load Meta Data for IDOC (IDX2)
a) Create new
b) IDOC Message Type
c) Enter port created in IDX1.
SAP R/3
1) RFC Destination (SM59)
a) Choose create.
b) Specify the name of the RFC destination
c) Select connection type as 3 and save
d) In the technical settings tab enter the details SAP SID/URL and system number#.
e) Enter the Gateway host as same details above SID/URL.
f) Gateway service is 3300+system number#.
g) In the Logon /Security tab, enter the client user & Password details of Destination system.
h) Test the connection and remote logon.
2) Create Port (We21)
a) First Select Transactional RFC and then click create button
b) Enter the destination port name as SAP+SID (The starting char should be SAP)
c) Enter the destination client.
d) Enter the RFC Destination created in SAP R/3 towards other system.
e) Save
3) Create Partner Profile (WE20)
a) Create New
b) Create the Partner no. name as same the logical system name of the destination system.
c) Select Partner type LS
d) Enter details for Type: US/USER, Agent, and Lang.
e) Click on the + button to select the message type.
f) Select Partner no. and LS which ever create above.
g) Select Message type
h) Select Process code related to the Message type.
I) save.
Here in IDOC to JDBC interface we need not to config sender Adapter..
1) The main usage of a sender adapter is to convert the input format into the XI supported XML format.
Once the conversion is completed the sender agreement appends the header with the sender details.
In case of these adapters we wont require sender agreement and sender communicationchannel for the
following reasons.
Sender agreement is associated with a namespace when we shoot an idoc frm r/3 if already contains its standard sap namespace. so those is need of sender agreement
The sender communication channel use is to identify the sending system and adapter, as the idoc header contains the details there is no need to sender.
These adapters resides on ABAP stack here the integration server takes care of IDOC/HTTP to XML conversion without requirement of adapter.
The business system that is sending the adapter has already been assigned to a techinical system which normally acts as an integration server...
IDOC to xi links
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
Hope this explanation is useful to u..
Thanks,
Satya Kumar
Edited by: SATYA KUMAR AKKARABOYANA on Jun 3, 2008 9:57 AM -
Any more configureation needed for RFC -File Syncronous scenario?
HI Experts,
I am working on File to RFC syncronous scenario.
I imported RFC which has Mess, Res and Excep
I have ED which has only Mess
Now I need to send file using File Adaptor to ECC using RFC and ECC has to send resp back to File using File Adaptor.
I created:
MI
MI_File_Meg_os (File Message Output Syncronous) ---> Mess ED
> MT_Res -
> DT_Res
MI_RFC_Meg_is (Input RFC Message ) ---> Mess
> Resp
I cretaed MM for (Message and Response), IM (mapped for both mess and respose) and activated.
I created 3 Communicaiton Channel (File_Sender, File_Receiver and RFC_Receiver), Rec Determination, Sender Aggrement and Receiver Aggrement.
Do I need to create any more objects or configure ?
Thanks in Advance,
RajeevYou need RFC CC and Filereceiver CC too
Sender Agreement
Do I need to make sender CC for RFC or File receiver CC?
both
Interface determination,
for mapping File request to RFC and RFC response to File
Sender or receiver Aggrements
sender agreements with FileSender CC and receiver agreement for File receiver CC
For getting back Ack from ECC?
RFC is synchronous and can return response
goto wiki and check for pi there is exact scenario
rajesh -
The Resource Pool has already been destroyed - File to JDBC Scenario
Hi,
Error : "Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: The resource pool has already been destroyed"
Scenario : This error is occurring for the File to JDBC Scenario .
Could you please let me know why am getting this error and solution to resolve this error..
Thanks in Advance!!
Regards,
SekharHi ,
Thanks for the replies..
Just to add to have more clarity on the error for the scenario
Scenario : This error is occurring for the File to JDBC Scenario
The Scenario has a BPM involved.The synchronous send step within the BPMsends the data to the JDBC receiver adapter.The response from the JDBC
adapter is throwing the below error.
Thanks,
Sekhar -
Error in File-XI-JDBC Scenario
Dear All,
I am working on File-XI-JDBC scenario which is using stored procedure (SP_UPDATE). When I am processing the file it is giving me the following error in the message monitoring:
Unable to execute statement for table or stored procedure. 'SP_UPDATE' (Structure 'Statement') due to java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'access' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)
Please guide me what is this error all about and how this can be resolved.
Warm Regards,
N.JainDear All,
Now, I am able to update the SQL Server database but only one record is coming at the target. Can anyone please guide me what is he error in my Data types o in my mappings. Following is the source Data Type:
MT_TEST_FILE_T179T 1..1 DT_TEST_FILE_T179T
ROOT 1..unbounded
PRODH 1..unbounded xsd:string
VTEXT 1..unbounded xsd:string
DATUM 1..unbounded xsd:string
Following is the target Data Type:
MT_TEST_JDBC_T179T 1..1 DT_TEST_JDBC_T179T
STATEMENT 1..1
SP_UPDATE 1..1
action required xsd:string
TABLE 1..1 xsd:string
PRODH 1..unbounded xsd:string
type optional xsd:string
VTEXT 1..unbounded xsd:string
type optional xsd:string
DATUM 1..unbounded xsd:string
type optional xsd:string
Following are the mappings done:
EXECUTE-->@action
storedprocedurename-->TABLE
PRODH-->PRODH
VTEXT-->VTEXT
DATUM-->DATUM
CHAR-->@type.
With this stucture and mapping i am able to insert only one recored in the database even though there are multiple entries in the file.
Please guide me in solving this error so that multiple records can be inserted.
Warm Regards,
N.Jain -
Strange error in File-XI-JDBC scenario
Dear All,
I am working currently on File-XI-JDBC scenario and is facing with a stange problem.
I have writtern one simple query which is downloading the data from R/3 and is sending to XI Server local folder. From that folder File is getting picked by XI and is posted into SQL database.
Now, when I am generating the required file from R/3-DEV server then my scenario is getting executed successfully but if file is generated thru R/3-QAS Server then the scenario is giving the following error "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MARA_UPDATE' (structure 'Statement'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Error converting data type nvarchar to smalldatetime."
Also, if I am copying the complete data from the error file and paste it into a new file and executing again then the scenario is executing correctly.
I have checked the payload and didn't find anything there.
Kindly help me in solving this error.
Regards,
N.JHi Farooq,
Thanx for your reply. But this scenario is running when we are sending the file from R/3-DEV Server and also if I am copying all the contents of the error file and pasting it into a new file and then processing the file then the scenario is getting executed and I am getting no error with the same data which I have processed earlier and has thrown error.
Reg, -
Hi All,
I am doing a File to JDBC scenario, where sender side message type occurance is 0..unbounded and receiver side message type occurance is 1 in message mapping. The whole scenario working fine when both sender and receiver side message type occurance is 1 in message mapping.
When Sender side occurance is 1.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:mt_smtjdbc_sender xmlns:ns0="http://SmartJDBC">
<NAME>A</NAME>
<DEPT>B</DEPT>
</ns0:mt_smtjdbc_sender>
When Sender side occurance is 0..unbounded.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:mt_smtjdbc_sender xmlns:ns1="http://SmartJDBC">
<NAME>Dip</NAME>
<DEPT>xi</DEPT>
</ns1:mt_smtjdbc_sender>
</ns0:Message1>
</ns0:Messages>
If I use Sender side occurance as 0..unbounded I am getting the following error in adapter engine Communication channel monitor (for receiver communication channel)
Error while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
Can anybody please help me how to solve this problem?
DipankarHi,
My Sender side structure as follows.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:mt_smtjdbc_sender xmlns:ns1="http://SmartJDBC">
<NAME>DIp</NAME>
<DEPT>XI</DEPT>
</ns1:mt_smtjdbc_sender>
</ns0:Message1>
</ns0:Messages>
My corresponding Receiver side structure as follows.
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:mt_smtjdbc_receiver xmlns:ns1="http://SmartJDBC">
<Statement>
<dbTableName action="INSERT">
<TABLE>SMARTOP</TABLE>
<access>
<NAME>DIp</NAME>
<DEPT>XI</DEPT>
</access>
</dbTableName>
</Statement>
</ns1:mt_smtjdbc_receiver>
</ns0:Message1>
</ns0:Messages> -
Error comming in File to JDBC scenario.
Hi Frnds,
I am trying to do the File to JDBC scenario and is using the SQLServer.
After processing the message, it is showing executed successfully in moni but for the receciver communication channel i am getting the error like---->
Error during database connection to the database URL 'jdbc:sqlserver://10.112.132.211:1433;databaseName=DemoDB' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://10.112.132.211:1433;databaseName=DemoDB': SAPClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver'
What could be the possible solution for it.
Thnx
Raj.Hi Raj,
As Prateek mentioned, the error you are getting is because of an improper installation of a driver.
Check out the doc for the driver installtion steps : [How To Install and Configure External Drivers for the JDBC & JMS Adapters|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f]
Also, the following thread contains some more useful links : Re: What's necessary to connect SQL server to XI?
Thanks,
Pooja Pandey
Maybe you are looking for
-
OK, PS CS4 extended v. 11.0.1 on a Win XP sp3 OS I recorded a simple action set Open | Set File Info of current document | Save | Close I then performed an Automated Batch run to duplicate this on a series of more than 100 photo images in a folder.
-
Why is my eyedropper missing from my InDesign CS6 toolbar?
I have searched and searched, and can't find it anywhere. If has disappeared from my Toolbar, is there some way to restore it? Another place I can find it? I'm operating Yosemite on a new (within the past year) iMac. Thank you! --BILL
-
Looking for Apple TV power supply - any ideas?
Hi folks, My out of warranty Apple TV has an obvious power supply problem (it's totally dead, no power up whatsoever). There are a few websites that have tutorials on replacing the power supply (or hard drive, etc...). The problem is I can't find a p
-
Creating standby database through Grid Control.
Hi, I want to know if source database which we term as primary database goes down during Db creation process when given option of "Perform a live backup of primary database" during Add standby wizard in Grid Control. Please let me know if people have
-
I have set up the appropriate server addresses etc on my 6303 for access to my Easyspace POP3 mailbox, but when trying to connect I get the error message "Server does not support authentication value. Check settings". I've checked the settings with E