Not applicable

tSapIdocReceiver

Hi,
We want to use the component tSapIdocReceiver to send IDOCs from SAP to Talend through RFC:
-We setup a SAP RFC server on a server. It starts up sucessfully
-I created a RFC connection to the program ID configured in SAP RFC server. Connection is OK and IDOCs sent to this RFC destination are OK (Status 03)
-I created a job whose first component is a component tSapIdocReceiver. The jobs runs successfully but IDOCs that should be theorically in the JMS queue of the SAP RFC server are not processed. I have just this log:
2016-05-19 09:32:10|CzfQn5|CzfQn5|CzfQn5|9092|EAI|TEST_SAP_RECEIVE|_-AM_UArwEeacL5RBkgUOog|0.1|Default||begin||
2016-05-19 09:32:17|CzfQn5|CzfQn5|CzfQn5|9092|EAI|TEST_SAP_RECEIVE|_-AM_UArwEeacL5RBkgUOog|0.1|Default||end|success|6706
I can see two reasons:
1-Even if all is ok from SAP side, there is no IDOCs in the JMS queue to consume. How can I check what there is in the JMS queue of the SAP RFC server ?
2-My job is not well configured. I enclosed it. If anyone has a suggestion or can send me one job using a tSapIDocReceiver working ?
TEST_SAP_R… .zip
One more question: In tSapIdocReceiver, there is a user and a password. Are they the UNIX user and password where JMS broker is running ?
Or are they one of the user/password that we can see in the file users.properties in directory Talend-SAP-RFC-SERVER/conf/user-authentication whose content is:
system=manager
user=password
guest=password                                        
 
Thanks for your help.
Regards.
Eric
2 REPLIES
Not applicable

Re: tSapIdocReceiver

I flagged UNICODE option in RFC destination on SAP and now I can consome the idocs. But if the job with component tSapIdocReceiver is not running when IDOCs are sent to SAP RFC server, they are lost...
Yet in the file tsap-rfc-server.properties, I have:
# Whether JMS messages should be replicated in durable queues
rfc.server.jms.replicate.in.durable.queues=true
# ISO8601 retention period for JMS messages in durable queues
rfc.server.jms.durable.queues.retention.period=P7D

# Whether JMS messages are persisted or not
rfc.server.jms.persistence=true
# File system location used by JMS broker to persist data
rfc.server.jms.data.directory=/app/Talend/Talend-SAP-RFC-SERVER/files/
Any suggestion ?
Eric
Not applicable

Re: tSapIdocReceiver

Got it...
There are 2 modes:
-Keep runing forever :
Only idocs sent while job is runing are consumed

-Batch
Every IDOCs in the queue are consumed

Eric