Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tcode SM69

Former Member
0 Likes
577

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

1 REPLY 1
Read only

Former Member
0 Likes
358

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