![]() JavaScript does not have any facilities to interact with the OS. Import java.io.IOException import java.io.InputStream public class MainEntry JavaScript Using the IEEE POSIX Ada standard, P1003.5c: WRITE : / ' wrong asynchronous parameters!'. WRITE : / ' wrong call of SXPG_COMMAND_EXECUTE_LONG!'. WRITE : / ' command could not be created!'. * Implement suitable error handling here WRITE : 'Cant execute ls - '. * Hooray it worked! Let's try to call it CALL FUNCTION 'SXPG_COMMAND_EXECUTE_LONG' EXPORTING commandname = lv_name TABLES exec_protocol = lt_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 wrong_asynchronous_parameters = 12 cant_enq_tbtco_entry = 13 jobcount_generation_error = 14 OTHERS = 15. * Implement suitable error handling here ELSE. * Create own ls command when nothing is declared CALL FUNCTION 'SXPG_COMMAND_INSERT' EXPORTING command = ls_sxpgcolist public = 'X' EXCEPTIONS command_already_exists = 1 no_permission = 2 parameters_wrong = 3 foreign_lock = 4 system_failure = 5 OTHERS = 6. ls_sxpgcolist - opcommand = lv_opcommand. SELECT * FROM sxpgcostab INTO ls_sxpgcotabe WHERE name EQ lv_name. * Don't mess with other users' commands lv_index = sy - index. * Check commands SELECT * FROM sxpgcotabe INTO TABLE lt_sxpgcotabe WHERE opsystem EQ lv_opsys AND opcommand EQ lv_opcommand. DATA : lv_opsys TYPE syst - opsys, lt_sxpgcotabe TYPE TABLE OF sxpgcotabe, ls_sxpgcotabe LIKE LINE OF lt_sxpgcotabe, ls_sxpgcolist TYPE sxpgcolist, lv_name TYPE sxpgcotabe - name, lv_opcommand TYPE sxpgcotabe - opcommand, lv_index TYPE c, lt_btcxpm TYPE TABLE OF btcxpm, ls_btcxpm LIKE LINE OF lt_btcxpm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |