2012 May 12 12:19 AM
Hi All,
Software Liaison EDI Notepad is intalled in SAP server. I'm trying to convert EDI input file to HTML output file. Input file is stored in SAP server.
I have defined external OS command in SM69 and when executed through ABAP always function module 'SXPG_COMMAND_EXECUTE' or 'SXPG_CALL_SYSTEM' fails with below information.
Internal table o/p it_btcxpm with 2 records
1. Can't exec external program (No such file or directory)
2. WaitForSingleObject failedwith %d (No such device or address)
Please let me know how to resolve the issue. Any example with explaination will also be helpful.
Any prerequisite is required for a SAP user to execute external OS command (like authorization).
With Regards,
Gandhi Subramani
2012 May 12 6:31 AM
first you use
CALL FUNCTION 'SXPG_COMMAND_LIST_GET' then
CALL FUNCTION 'SXPG_COMMAND_CHECK' then
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = c_extcom
additional_parameters = v_dir_input
operatingsystem = c_oper
TABLES
exec_protocol = t_result
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
also ask to your basis person about your authorization