cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Receiver - Run operating system command after not working

AntonioSanz
Active Participant
0 Kudos

Hello experts,

I've got a dual stack installation of SPA PI 7.3 over AIX.

I've got a receiver SFTP channel with a operating system command after processing. It is not working. I've looked at the channel trace and I dont even see any log of the call to the script.

Last lines I see in the log of the adapter are:

21.02.2014 08:06:29.966InformationPath is /dejar/
21.02.2014 08:06:30.178Informationsend FAC_20140221-080629-939.txt to /dejar/
21.02.2014 08:06:30.180InformationMessage was successfully processed by the JCA adapter
21.02.2014 08:06:30.183InformationMessage was successfully transmitted to endpoint <local> using connection File_http://sap.com/xi/XI/System
21.02.2014 08:06:30.189InformationMessage status set to DLVD

I've got a FTP channel with same configuration and it works fine.

Any idea why it is not doing the SO call???

Many thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Antonio,

If you have worked with the FTP channel I think you know that the command is executed in adapter engine hosting and not in the sftp server. Could you share your command?, may be, the command is not supported, have you tried to test it manually?

Regards.

AntonioSanz
Active Participant
0 Kudos

Thanks Iñaki, I am aware of that.

The command is

qsh /home/SPPADM/ack_fact_tarj_prod.sh

(we are on an AIX environment).

I have took a look at

and I have added SAP_XI_CONFIG_FILE_OS_CMD_J2EE role in SU01 to J2EE_ADMIN


I will keep you informed about the results of my action.


Kind regards.

Bhargavakrishna
Active Contributor
0 Kudos

Hi,

Please check you are using the same user J2EE_Admin.

Regards

Bhargava krishna

AntonioSanz
Active Participant
0 Kudos

Hi, Bhargava, how can I check I am using the same user J2EE_Admin?

I have tried to asign SAP_XI_CONFIG_FILE_OS_CMD_J2EE role in SU01 to J2EE_ADMIN and I still have the same problem.


SFTP is not running the OS command after processing. The trace of the adapter is:


25.02.2014 09:08:37.306InformationApplication attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System
25.02.2014 09:08:37.496InformationTrying to put the message into the send queue
25.02.2014 09:08:37.521InformationMessage successfully put into the queue
25.02.2014 09:08:37.521InformationThe application sent the message asynchronously using connection File_http://sap.com/xi/XI/System. Returning to application
25.02.2014 09:08:37.542InformationThe message was successfully retrieved from the send queue
25.02.2014 09:08:37.553InformationFile "FAC07216.TXT" successfully archived on FTP server "10.5.0.57" as "./procesados/FAC07216.TXT"
25.02.2014 09:08:37.564InformationMessage status set to DLNG
25.02.2014 09:08:37.570InformationTrying to put the message into the send queue
25.02.2014 09:08:37.870InformationMessage successfully put into the queue
25.02.2014 09:08:37.870InformationThe message was successfully retrieved from the send queue
25.02.2014 09:08:37.875InformationMessage status set to DLNG
25.02.2014 09:08:37.885InformationDelivering to channel: CC_SFTP_Facturacion_Tarjetas_Receiver2
25.02.2014 09:08:37.942InformationMP: processing local module localejbs/ModuleProcessorExitBean
25.02.2014 09:08:37.964InformationMessage entered AF MP exit bean and will now be passed to the JCA adapter
25.02.2014 09:08:38.201InformationFilesize is 14145 Bytes
25.02.2014 09:08:40.356InformationFilename is FAC_20140225-090840-356.txt
25.02.2014 09:08:40.356InformationServer is ftp.client.com
25.02.2014 09:08:40.372InformationHome directory is /

25.02.2014 09:08:40.372InformationPath is /dejar/
25.02.2014 09:08:40.605Informationsend FAC_20140225-090840-356.txt to /dejar/
25.02.2014 09:08:40.644InformationMessage was successfully processed by the JCA adapter
25.02.2014 09:08:40.645InformationMessage was successfully transmitted to endpoint <local> using connection File_http://sap.com/xi/XI/System
25.02.2014 09:08:40.699InformationMessage status set to DLVD

Any other suggestions???

And this a pic of my channel configuration

Muniyappan
Active Contributor
0 Kudos

Hi,

can you give a try like this?

qsh /home/SPPADM/ack_fact_tarj_prod.sh %f


check the help link.


Defining OS Commands for Message Processing by SFTP Adapter - SAP NetWeaver Process Orchestration, s...


Regards,

Muni.