Hello Ronak,
I was able to encrypt the .txt file.
we have to do below steps to encrypt the file.
I.Basis team has to Install PGP s/w on UNIX server
2.Create OS commnads encrypt/decrypt from SM59
3.Call encrypt command from using the FM
concatenate 'filename' '-r' 'publickey of ur vendor to whom u want to send the file' into v_input separated by space.
*Encrypt File with TMO Public Key.
call function 'SXPG_COMMAND_EXECUTE'
exporting
commandname = 'ZUNIX_COMMAND_EN' "SM69 Unix command"
additional_parameters = v_input
operatingsystem = c_os
importing
status = e_status
exitcode = e_exitcode
tables
exec_protocol = t_result.
I hope this will help you. Let me know if you need more info.I will be more happy help you.