thespot4sap.com independent sap information
 

get SAP Access - pay monthly

SAP Tutorials    Online SAP Training    SAP CBT's    SAP Forums    SAP Articles    SAP Jobs    SAP Resumes
  SAP Access    SAP Blogs    SAP Books     Links     SAP Vendor Directory     Submit Content    Search
Previous posts in SAP ABAP
Page 5421 of 5660

How to Call Shell Script from ABAP/4

Blogger : howforge.com - Share Know-How
All posts : All posts by howforge.com - Share Know-How
Category : SAP ABAP
Blogged date : 2006 Jan 09


*---------------------------------------------------------------------*
*      FORM CALL_SHELL_SCRIPT                                       *
*---------------------------------------------------------------------*
*      ........                                                     *
*---------------------------------------------------------------------*
* --> PAR_FILENAME                                                 *
*---------------------------------------------------------------------*
FORM call_shell_script USING par_filename.

DATA: btcxpm  TYPE TABLE OF btcxpm WITH HEADER LINE,
       lc_param TYPE btcxpgpar                      .

lc_param = par_filename.

CALL FUNCTION ’SXPG_CALL_SYSTEM’
      EXPORTING
           commandname               = ’ZCOMMAND’
           additional_parameters     = lc_param
      TABLES   

exec_protocol             = btcxpm
      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
           OTHERS                    = 12.

ENDFORM.                   " CALL_SHELL_SCRIPT



Read comments or post a reply to : How to Call Shell Script from ABAP/4
Page 5421 of 5660

Newest posts
New Page 1

 

 

About Us   Contact Us   Privacy   Disclaimer   Feedback   Email Discussion   Newsletter  

Copyright © - Independent SAP Information
Learn XML, Guesthouses and B&B's