[resolved] Not able to connect to SAP using tSAPBapi component

One Star

[resolved] Not able to connect to SAP using tSAPBapi component

Talend v6.2.1 ( Enterprise version )
I am facing below error while using tSAPBapi/tSAPTableInput components 
Exception in component tSAPTableInput_1 java.lang.ClassCastException: com.sap.conn.jco.rt.RfcDestination cannot be cast to org.talend.sap.ISAPConnection
But using came credentials , I am not facing this issue when tSAPInput component used. Please help .

Accepted Solutions
One Star

Re: [resolved] Not able to connect to SAP using tSAPBapi component

It got resolved . The SAP JCO Version should be Talend sap APi in tSAPConnection to work with tSAPBapi and tSAPTableInput.

All Replies
Moderator

Re: [resolved] Not able to connect to SAP using tSAPBapi component

Hi,
On which build version you got this issue? Could you please post your job setting screenshots on forum? Are you able to establish the connection with the SAP system?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] Not able to connect to SAP using tSAPBapi component

Hello Saberina ,
Build version : 6.2.1.20160704_1411.
Below Job works fine :
<<Working_job.JPG>>

<<tSapInput_screenshot.JPG>>

Result 
<<--
Starting job SapFirstJob at 10:08 13/01/2017.
connecting to socket on port 3952
connection refused
0|20170113124219_fH1We|20170113124219_fH1We|20170113124219_fH1We|SapFirstJob|start job||20170113124220.060+0800
Unable to connect to 10.231.2.28 on the port 3952
1|20170113124219_fH1We|20170113124219_fH1We|20170113124219_fH1We|OnSubjobOk1|ok|start
1|20170113124219_fH1We|20170113124219_fH1We|20170113124219_fH1We|row_DATA_1|0|0|start
.------------------.
|    tLogRow_2     |
|=----------------=|
|WA                |
|=----------------=|
|DZ                |
|000000000000000042|
|DA                |
|TB                |
|TESTK             |
|SM                |
|PA                |
|GB                |
|MC                |
|SDX1              |
'------------------'
1|20170113124219_fH1We|20170113124219_fH1We|20170113124219_fH1We|row_DATA_1|10|433|stop
0|20170113124219_fH1We|20170113124219_fH1We|20170113124219_fH1We|SapFirstJob|end job||20170113124221.221+0800
Job SapFirstJob ended at 10:08 13/01/2017.

-->>

Now with same credentials below job  is giving error :
<<not_Working_job.JPG>>

Result :
<<not_Working_job_result.JPG>>
One Star

Re: [resolved] Not able to connect to SAP using tSAPBapi component

SAP_error_scrrenshots.zip.zip
screenshot uploaded.
One Star

Re: [resolved] Not able to connect to SAP using tSAPBapi component

It got resolved . The SAP JCO Version should be Talend sap APi in tSAPConnection to work with tSAPBapi and tSAPTableInput.