Error on SXPG_COMMAND_EXECUTE
Hi all,
I want to execute a DIR on a external system and I've created a SM69 commant named ZTEST_DIR to do it.
The code of the DIR is RUNRMTCMD CMD('dir t:\docs\cdphtesp ') RMTLOCNAME(XXXXX *IP) RMTUSER(XXXX) RMTPWD('XXX') and it works fine. (with two slash but it does not show)
The probles is that the directory must be variable so, I need to user the additional parameters ( the flag to allow that is checked ).
Then the code of the command is RUNRMTCMD CMD('dir ') RMTLOCNAME(IXXXX *IP) RMTUSER(XXXX) RMTPWD('XXXX') and on the additional parameteres I put the directory as 't:\docs\cdphtesp' (with two slash but it does not show) but it does not work fine it returns an error String '\DOCS\CDPH' contains a character that is not valid.
I've created also a test program to execute it on the SXPG_COMMAND_EXECUTE (I paste the code at bottom) but with the same result.
Can anybody help me?
Thanks in advance.
DATA: d_commandname LIKE sxpgcolist-name,
d_exit_code LIKE extcmdexex-exitcode,
d_status LIKE extcmdexex-status,
d_aditional_parameters like SXPGCOLIST-PARAMETERS.
DATA: li_execution LIKE btcxpm OCCURS 0 WITH HEADER LINE.
d_commandname = 'ZTEST_DIR'.
d_aditional_parameters = 't:\docs\cdphtesp'. (again two slashes)
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = d_commandname
ADDITIONAL_PARAMETERS = d_aditional_parameters
terminationwait = 'X'
IMPORTING
status = d_status
exitcode = d_exit_code
TABLES
exec_protocol = li_execution
EXCEPTIONS
no_permission = 1.
Edited by: Legoles_ dlb on Jun 10, 2009 3:56 PM
Edited by: Legoles_ dlb on Jun 10, 2009 3:58 PM
Finally the problem was resolved; Special characters must be escaped.
Similar Messages
-
Regards the issue on the db13 error is like SXPG_COMMAND_EXECUTE failed
dear all,
we are using
os: windows 2003
databse :oracle 10.2.0.4
sap version: ecc 6.0
& on the production system is on the cluster environment
the issue is when ever i am firing any thing from the db13 it is throwing an error like
SXPG_COMMAND_EXECUTE failed for BRBACKUP - Reason: program_start_error: For More Information, See SYS
Job started
Step 001 started (program RSDBAJOB, variant &0000000000013, user ID BASIs)
Execute logical command BRBACKUP On host xxx
Parameters:-u / -jid TAPIN20100403132120 -i force -c force -n 1 -v SCRATCH
SXPG_STEP_XPG_START: is_local_host: rc = 403
SXPG_STEP_XPG_START: host = xxx
SXPG_STEP_XPG_START: is_local_r3_host: rc = 802
SXPG_STEP_XPG_START: RFC_TCPIP_CONNECTION_OPEN: rc = 1003
SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003
SXPG_COMMAND_EXECUTE(LONG)
<timestamp> = 20100403132151
COMMANDNAME = BRBACKUP
ADDITIONAL_PARAMETERS =
-u / -jid TAPIN20100403132120 -i force -c force -n
1 -v SCRATCH
LONG_PARAMS
OPERATINGSYSTEM = ANYOS
TARGETSYSTEM = xxx
DESTINATION
SY-SUBRC = 1003
SXPG_COMMAND_EXECUTE failed for BRBACKUP - Reason: program_start_error: For More Information, See SYS
Job cancelled after system exception ERROR_MESSAGE
it had became very critical
go live is very near for us
so, kindly help me soon......................
thanks in advance
praveen kumarHi,
You have to install a standalone gateway
follow Note 657999 - Installing a Standalone Gateway in an MSCS Environment
-Joel -
Hi,
Our Production server is in High Availability on Unix ( DB node active & CI Node active).
When I am executing the initialize tape or triggering the backup from DB13 in our production we are getting the below error.
SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error:
Even in DB12 when I click on the detailed log of any backup log, it is giving the same error.
In System log we got the below error.
Error 1003 when executing external command brtools on
(in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:)
Error 1003 when executing external command brtools on
(in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:)
RFC SAPXPG_DBDEST_<HOSTNAME> connection test giving the below error
Logon Connection Error
Error Details Error when opening an RFC connection
Error Details ERROR: timeout during allocate
Error Details LOCATION: SAP-Gateway on host ProdApp / sapgw00
Error Details DETAIL: no connect of TP sapxpg from host PROD-DB-SRV
after 20 sec
Error Details COMPONENT: SAP-Gateway
Error Details COUNTER: 869
Error Details MODULE: gwr3cpic.c
Error Details LINE: 2007
Error Details RETURN CODE: 242
Error Details SUBRC: 0
Error Details RELEASE: 700
Error Details TIME: Tue Mar 30 09:07:51 2010
Error Details VERSION: 2
I have created .rhosts and .rshosts files in both DB & CI nodes under path /home/trpadm as below
CI Node
ProdApp:trpadm 27> cat .rhosts
PROD-DB-SRV
PROD-APP-SRV
ProdApp:trpadm 28> cat .rshosts
PROD-DB-SRV trpadm
PROD-APP-SRV trpadm
trpadm
DB Node
ProdDB:trpadm 2> cat .rhosts
PROD-DB-SRV
PROD-APP-SRV
ProdDB:trpadm 3> cat .rshosts
PROD-DB-SRV trpadm
PROD-APP-SRV trpadm
trpadm
But below command is giving error
ProdApp:trpadm 24> rsh PROD-DB-SRV -l trpadm sapxpg
rshd: 0826-813 Permission is denied.
rsh is happening in both the nodes.
In CI node when iam doing rsh to DB node it is connecting. Pleas find the below logs
ProdApp:trpadm 17> rsh PROD-DB-SRV
trpadm's Password:
Welcome to AIX Version
6.1! *
Please see the README file in /usr/lpp/bos for information pertinent
to *
this release of the AIX Operating
System. *
Last login: Wed Mar 31 11:36:53 IST 2010 on /dev/pts/1 from
Prod_App_boot_1
ProdDB:trpadm 1>
In DB node when iam doing rsh to CI node it is connecting. Pleas find the below logs
ProdDB:trpadm 1> rsh PROD-APP-SRV
trpadm's Password:
Welcome to AIX Version
6.1! *
Please see the README file in /usr/lpp/bos for information pertinent
to *
this release of the AIX Operating
System. *
Last unsuccessful login: Tue Mar 23 16:05:26 IST 2010 on ftp
from ::ffff:10.0.1.39
Last login: Wed Mar 31 11:36:30 IST 2010 on /dev/pts/1 from
Prod_DB_boot_1
ProdApp:trpadm 1>
the below entries are already maintained in /etc/services file on both the nodes.
sapgw30 3330/tcp
sapdp30 3230/tcp
Please look into this and suggest us.Hi,
I have cross checked every thing, it is ok.
Praveen,
As per your suggest, i have changed the background server in DB13. It didnot help us.
Problem is RFC are giving errors.
Logon Connection Error
Error Details Error when opening an RFC connection
Error Details ERROR: timeout during allocate
Error Details LOCATION: SAP-Gateway on host <host> / sapgw00
Error Details DETAIL: no connect of TP sapxpg from host <host> after 20 sec
Error Details COMPONENT: SAP-Gateway
Error Details COUNTER: 4853
Error Details MODULE: gwr3cpic.c
Error Details LINE: 2007
Error Details RETURN CODE: 242
Error Details SUBRC: 0
Error Details RELEASE: 700
Error Details TIME: Mon Apr 5 09:18:49 2010
Error Details VERSION: 2
When i am doing rsh from one node to another node it is asking for password, but it should not ask.
and also the below error for sapxpg
rsh <hostname> -l <sid>adm sapxpg
rshd: 0826-813 Permission is denied.
i have created .rhosts in both the nodes and maintained the values for hostname with <sid>adm user correctly.
Please look into this and suggest.
Regards,
Raj -
SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program
Hello,
We have installed MSCS cluster on OFS for SAP ERP EhP4 SR1.
This installation is successful and both the nodes are running.
However, as soon as i execute any of the DB13 jobs, I get the mentioned error.
SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error.
This is stopping us from releasing the system to the end users, which effectively delays our GO-Live till the problem is resolved.
Please advise what all steps or notes are to be followed to make DB13 working in MSCS clusrer.
Regards
AnkitaHi,
Briefly describe your system architecture ?
Have you followed/implemented SAP Notes [446172|https://service.sap.com/sap/support/notes/446172] and [657999|https://service.sap.com/sap/support/notes/657999] carefully, by comparing your existing settings?
Have you analyzed the log entries in SM21, also at Operating system level Logs ?
If you Database is on another host then SAPXPG_DBDEST_<dbhost> or <virtual_dbhost> (a TCP/IP connection) will play an important role for executing SAPXPG command. Test SAPXPG_DBDEST_<dbhost> or <virtual_dbhost> RFC connection with its Trace logs.
Regards,
Bhavik G. Shroff -
Error 801 when executing external command on
Hello,
I have installed CCMS agents and CCMS ping in my system yesterday. And activated the CPH BGD jobs for SL reporting purpse. Now I am getting an error "Error 801 when executing external command on" under class LC 2. I am not able to find any relevant note or help for this error. Any idea why this happens? How can I solve this? The details as follows:
EXTERNAL COMMAND: rc = Error 801
SXPG_COMMAND_EXECUTE(LONG):
<timestamp>: 20100310144206
COMMANDNAME: PING
ADDITIONAL_PARAMETERS: s-sapcae
LONG_PARAMS:
OPERATINGSYSTEM: AIX
TARGETSYSTEM: sapasmc1
DESTINATION:
SY-SUBRC: 801
Regards,
RajeevHi,
I have activated the trace level to 3 and now I get some messages in dev_cp which is as follows:
Trace file of control program (trace level 3)
< Function: BtcTrcInit> Function: main SAPXPG 720
2010-03-11 08-52-09 : Before BtcXpgDetach
> Function: BtcXpgDetach < Function: BtcXpgDetach Accept RFC connection from R/3 system
2010-03-11 08-52-09 : Before RfcAccept
2010-03-11 08-52-09 : RfcAccept returned OK
Begin of check_if_security_list
security check switched OFF
End of check_if_security_list
Begin of check_trace_option
End of check_trace_option
Install RFC call SAPXPG_START_XPG
Install RFC call SAPXPG_START_XPG_LONG
Install RFC call SAPXPG_END_XPG
Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
2010-03-11 08-52-09 : Before first call of RFCDispatch
Security: rfcexec_logon_check
rfcexec_logon_check: logon_user = TT4WNUC
sapxpg_logon_check: rfc_attr.user = TT4WNUC
rfcexec_logon_check: client = 100
2010-03-11 08-52-09 : After first call of RFCDispatch
2010-03-11 08-52-09 : Before call of RfcClose (sequencing error)
2010-03-11 08-52-09 : After call of RfcClose (sequencing error)
< Function: main
2010-03-11 08-52-09 : End of SAPXPG: main
I think the issue is with the user TT4WNUC. Could you please let me know from where I can change this user?
Rajeev -
Error BT616 when calling function module SXPG_COMMAND_EXECUTE in background
Hi All,
We use function module SXPG_COMMAND_EXECUTE with a custom command we defined in SM69 to move files in unix (mv command).
The function module call has worked fine for almost a year and recently we have been seeing an error (BT616) in our job lob (SM37) when the program is run in background. We have not been able to reproduce the error in foreground mode and it seems to be occuring only periodically in the background. (The appropriate SAP authorization objects where assigned to the batch job ID and the steps on the batch job.) We are in the process of setting up the trace flag and performing analysis on the trace log via ST11 to help identify the issue.
After perform analysis on SXPG_COMMAND_EXECUTE, the error is occurring when calling function module SAPXPG_END_XPG for exception 2, system failure, yet function module SAPXPG_END_XPG does not exist. I assume this is a program at the operating system level and is just a signature of the parameters to be passed to the operating system program.
Below is part of the SAP function module SXPG_COMMAND_EXECUTE that is failing.
* Now we have to wait for the termination of the external
* command if the caller wants us to.
IF TERMINATIONWAIT = 'X'.
CALL FUNCTION 'SAPXPG_END_XPG'
DESTINATION DESTINATION
IMPORTING EXITSTAT = STATUS
EXITCODE = EXITCODE
TABLES LOG = LOG
EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE MSG
SYSTEM_FAILURE = 2 MESSAGE MSG.
I performed a where used on function module SXPG_COMMAND_EXECUTE, and most of SAP programs call the function module with the parameter TERMINATIONWAIT = 'X', so I assume we should pass X as well.
Any ideas on what could be causing this issue?
Mike VondranI also remember I have this kind of issue, as I have some UNIX script at OS( UNIX) level . The problem was with the ID , as it dont have proper authorization at OS level ( UNIX ) . Please check this ID authorization. This could be the one of reasons if youre sure from SAP standpoint.
Hope thisll give you some guide line..
Thanks
Bye -
SXPG_COMMAND_EXECUTE - returns an error
Hi All,
I am using the FM SXPG_COMMAND_EXECUTE to run a unix script which fetches a pdf file written from ABAP code into
application server.
I have written the pdf file, and while run separately the Unix script is working fine.
But the FM which calls the unix script, SXPG_COMMAND_EXECUTE, returns errors which say that the pdf file could not be opened. I have written the pdf file in binary form on the application server.
Please help.
This is my code:
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = gv_bin_filesize
bin_file = gt_bin
TABLES
otf = gt_otf
lines = gt_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
data: mstr_print_parms LIKE pri_params,
gv_file type string value '/usr/sap/ABAP-TMP/',
wa_pdf_tab like line of gt_pdf_tab,
it_docs TYPE STANDARD TABLE OF docs,
it_lines TYPE STANDARD TABLE OF tline,
gv_frontfile type string ,
wa_lines type tline.
concatenate gv_file wa_final-pernr '.pdf' into gv_file.
open dataset gv_file for output in binary mode.
transfer gt_bin to gv_file.
close dataset gv_file.
CONSTANTS: c_extcom TYPE sxpgcolist-name VALUE 'ZHRPAYSLIP',
c_oper TYPE syopsys VALUE 'Linux'.
DATA: v_dir_input TYPE sxpgcolist-parameters. " Input Directory
DATA: t_result TYPE STANDARD TABLE OF btcxpm.
concatenate wa_final-pernr
gs_reclist-receiver
'93210951'
into v_dir_input
separated by space.
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.
Thanks,
AnitaHi guys,
Issue has been resolved. I was writing the pdf file in the application server, wheras the Unix script had some other directory as its present working directory.
As we are using the same directory for the purpose, this directory and folder name was hard coded in the Unix script as well,
so that the confusion of path is resolved.
Thus this issue was resolved from the Unix script itself.
Thanks.
Anita Jeyan. -
SXPG_COMMAND_EXECUTE error
Hi All,
Jobs in db13 are failing with below error.
04.08.2010 05:00:46 Job started
04.08.2010 05:00:47 Step 001 started (program RSDBAJOB, variant &0000000000059, user ID xxxxx)
04.08.2010 05:00:47 Execute logical command BRCONNECT On host dbSID
04.08.2010 05:00:47 Parameters: -u / -jid STATS20100609000000 -c -f stats -t ALL
04.08.2010 05:01:27 External communication error at program start (see system log)
04.08.2010 05:01:27 SAPXPG_START_XPG_LONG: sy-subrc ne 0
04.08.2010 05:01:27 destination = SAPXPG_DBDEST_DBSID
04.08.2010 05:01:28 SXPG_STEP_XPG_START: execute_sapxpg: rc = 1.003
04.08.2010 05:01:28 SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003
04.08.2010 05:01:28 SXPG_COMMAND_EXECUTE(LONG)
04.08.2010 05:01:28 COMMANDNAME = BRCONNECT
04.08.2010 05:01:28 OPERATINGSYSTEM = ANYOS
04.08.2010 05:01:28 TARGETSYSTEM = dbSID
04.08.2010 05:01:28 DESTINATION = SAPXPG_DBDEST_DBSID
04.08.2010 05:01:28 SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS
04.08.2010 05:01:28 Job cancelled after system exception ERROR_MESSAGE
And SAPXPG_DBDEST_DBSID rtc connection failed with timeout error.
Logon Connection Error
Error Details Error when opening an RFC connection
Error Details ERROR: timeout during allocate
Error Details LOCATION: SAP-Gateway on host ciSID.ncsbe.eu.jnj.com / sapgw52
Error Details DETAIL: no connect of TP sapxpg from host dbSID.ncsbe.eu.jnj.com after 20 sec
Error Details COMPONENT: SAP-Gateway
Error Details COUNTER: 98
Error Details MODULE: gwr3cpic.c
Error Details LINE: 2030
Error Details RETURN CODE: 242
Error Details SUBRC: 0
Error Details RELEASE: 701
Error Details TIME: Wed Aug 4 13:41:27 2010
Error Details VERSION: 2
System log is showing " Error1005 when executing external command brtools on SAPXPG_DBDEST_DBSID (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg :Error when openi)".
When i check detail logs also it is throwing error " SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS ".
DB and CI are on different hosts.
SAP : SAP EHP 1 for SAP NetWeaver 7.0
DB : Oracle 10.2.0.4.0
OS : HP-UX
Gateway is running, I see gateway profiles exist at OS level in /usr/sap/SID/SYS/profile.
But gateway profiles haven't been created in RZ10.
Is this causing the issue. Can you please help me out here.
Thanks in advance.
Edited by: SAP Basis on Aug 4, 2010 7:59 AMError Details Error when opening an RFC connection
Error Details ERROR: timeout during allocate
Error Details LOCATION: SAP-Gateway on host ciSID.ncsbe.eu.jnj.com / sapgw52
It's using RFC to connect so check SM59 -> TCP/IP Connections -> SAPXPG_DBDEST_<SID>
Make sure the Technical Settings are correct and you can do a successful "Connection Test".
Nelis -
Error in db13 SXPG_COMMAND_EXECUTE failed
Hi
I have ecc6 ehp4 with oracle on windows this is cluster environment, I have installed standalone gateway on node2 successfully as per note 657999 and its up & running
When I keep db and application on separate nodes I cannot schedule any job in db13 I am getting error as below
Job started
Step 001 started (program RSDBAJOB, variant &0000000000039, user ID TABRAYZ)
Execute logical command BRCONNECT On host SAPFNP
Parameters: -u / -jid CHECK20110727155211 -c -f check
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such deviceor address)
SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: unknown
Job cancelled after system exception ERROR_MESSAGE
Please help me guys.
Thanks
Abdul TabrayzHi,
there are two things that you need to make sure:
1) Make sure your RFC for sxpg should run on gateway host of virtual db in SM59.
2) Please make sure that you should have set additional env variable as per SAP note 378648 for user <sid>adm.
Thanks
Sunny -
DB13 job failed due to SXPG_COMMAND_EXECUTE error
Hi,
I received an error when I try run the BRCONNECT Database Action Calendar (tx. DB13), either it's a Database check, statistics updates, etc. The error messages are as follows:
Job started
Step 001 started (program RSDBAJOB, variant &0000000000166, user ID SETIR0)
No application server found on database host - rsh/Gateway will be used
Execute logical command BRCONNECT On host tdcwsxd1
Parameters: -u / -c -f check
SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS
Job cancelled after system exception ERROR_MESSAGE
FYI, we're using DB instance (DB) and Central Instance (CI) on each separate box in the unix environments. SAP Basis rel. 620 with SP level SAPKB62053.
If I execute the command directly in DB instance, it works fine but not from SAP trx DB13.
Command: brconnect -u / -c -f check.
Thanks and best regards,
MarkHi Mark,
Sorry I see you are running on Unix, I am only familiar with Windows environment, but however on Windows I would do the following:
1) Install a so called Standalone Gateway on the DB-host.
2) copy the sapxpg executable to the directory where the gateway is installed.
2) Change the SAPXPG_DBDEST... RFC connection to point to, or use this gateway (gateway options).
That's all....
(How to Install a standalone gateway or Gateway instance is normally described in the SAP installation guide).
But as I sad, I am not sure if this is possible under Unix also, and the way to go...
Regards
Rolf -
Getting Error after executing SXPG_COMMAND_EXECUTE.
After execution of Function module SXPG_COMMAND_EXECUTE following message is displayed:-
" Can't execute external program(Exec format error)
External Program terminated with exit code 1"
please suggest the cause why we are getting the message.Hi
In my case operating system command is not wrong. I am just giving for test mv ( to move file from one dir to other) still its giving me same error. If it works, then I can try for decripting the file.
I have tried below ways for testing in SM49. don't know what was causing the problam. Please help me in this.
Command name ZMV2
Operating system HP-UX / Windows NT / Unix / anyos
Operating system command
mv
Parameters for operating system command
Additional parameters
D:\usr\sap\DEC\DVEBMGS00\work\usra.out D:\usr\sap\DEC\DVEBMGS00\work\usra_r.out
OR
usr\sap\DEC\DVEBMGS00\work\usra.out
usr\sap\DEC\DVEBMGS00\work\usra_r.out
executin Target : selected Local
Error I am getting in SM49 : Can't exec external program (No such process) WaitForSingleObject failedwith %d (No such device or address)
It will be very greatfull, If you can help me on this. -
Error in FM: SXPG_COMMAND_EXECUTE
Hi,
I am using FM: SXPG_COMMAND_EXECUTE to encrypt file for appication server but i am getting below errors:
- Can't exec external program (Unknown error)
- WaitForSingleObject failedwith %d (No such device or address)
Can you please suggest me on this?
Below parameter passing into FM:
w_addparam = 'C:\usr\sap\DIE\SYS\src\ABC.txt'. ( Appication server TXT file path Name)
w_finalencrpt = 'C:\Desktop1\abc1.txt'. (local drive path name)
w_status = space (No value).
w_exitparam = space (No value).
CONCATENATE w_addparam w_finalencrpt
INTO l_encrtpt_ap SEPARATED BY space.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZIFI_ENCRYPT'
additional_parameters = l_encrtpt_ap
IMPORTING
status = w_status
exitcode = w_exitparam
TABLES
exec_protocol = t_exec_protocol
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.
IF sy-subrc EQ 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.Try to get the log from the called system, like in the following sample
REFRESH lt_protocol.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = lv_command
additional_parameters = lv_parameters
IMPORTING
exitcode = lv_exitcode
TABLES
exec_protocol = lt_protocol.
IF exitcode NE 0.
cl_db6_backend=>set_attribute( id = cl_db6_backend=>id_caller
value = cl_db6_backend=>val_caller_cockpit ).
CALL FUNCTION 'DB6_SHOW_SXPG_ERROR'
EXPORTING
command = lv_command
PARAMETERS = lv_parameters
server = sy-host
return_code = sy-subrc
exitcode = exitcode
TABLES
exec_protocol = lt_protocol
EXCEPTIONS
OTHERS = 0.
ENDIF.
Regards,
Raymond -
Post Author: rkolturu
CA Forum: Data Integration
I tried to execute a job which is compiled and error free but get the error below has any one of you any workaround for this problem
5308 4880 PAR-010102 12.12.2007 08:44:52 |SessionJOB_XYZ
5308 4880 PAR-010102 12.12.2007 08:44:52 Syntax error at line : 00297-182
5308 4880 PAR-010102 12.12.2007 08:44:52 0-189393172: near found expecting .
5308 4880 PAR-010102 12.12.2007 08:44:52 Syntax error at line : <>: near found .
5308 4880 PAR-010102 12.12.2007 08:44:52 2 error(s), 0 warning(s).
5308 4880 PAR-010102 12.12.2007 08:44:52 . Please check and fix the syntax and retry the operation.Hi,
If CI & DB are on different host this error normally occures.SAP return codes 236 means no connection to gateway, can you check it?
Also check whether TCP/IP RFC connection SAPXPG_DBDEST_* is working fine or not.If it is not working fine then please check whether you have mentioned below details
Program sapxpg
Target Host DB Host name
Gateway Host DB host/gateway host
Gateway service sapgw##
Also refer SAP Note 108777 - CCMS: Message 'SAPXPG failed for BRTOOLS' & Note 446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13
Hope this helps.
Thanks,
Sushil -
Error while executing a job via dbacockpit
Hi,
I encountered the below errores while trying to execute a dba job (cleanup log, backup redo log...)
What could be the cause ? Could it be the SAPPROD_00 windows service that's not working ?
Please advise. TIA !
SAP-Basis System: Operating system call connect failed (error no. 10061)
SAP-Basis System: Communication error, CPIC return code 017, SAP return code 236
SAP-Basis System: > CPI-C function: CMINIT(SAP)
Background processing: Error1005 when executing external command brconnect on SAPXPG_DBDEST_BELLSERVER (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:Error when openi )Hi,
If CI & DB are on different host this error normally occures.SAP return codes 236 means no connection to gateway, can you check it?
Also check whether TCP/IP RFC connection SAPXPG_DBDEST_* is working fine or not.If it is not working fine then please check whether you have mentioned below details
Program sapxpg
Target Host DB Host name
Gateway Host DB host/gateway host
Gateway service sapgw##
Also refer SAP Note 108777 - CCMS: Message 'SAPXPG failed for BRTOOLS' & Note 446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13
Hope this helps.
Thanks,
Sushil -
Error while schedulingg update stat in db13
Dear Experts,
Please look into my issue we are facing an error while scheduling update statistics in db13 and I tried to open detailed log
It is given
SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error: For More Information, See SYS
Please help me how to solve this my error
RegardsHi,
Check the owner for BRBACKUP, BRARCHIVE, and BRCONNECT in kernel,
these files should be with SIDADM, if not change the owner to SIDADM and rerun the update stats.
and also Refer the note 446172
Regards,
Ram
Maybe you are looking for
-
Calculating values from row to row with pure sql?
Hello, I'm searching for a way to calculate values from row to row with pure sql. I need to create an amortisation table. How should it work: Known values at start: (they can be derived with an ordinary sql-statement) - redemption amount RA - number
-
Hi all, I have 1 page in a script with 3 windows Header MAIN AND FOOTER I have some hardcoded text in header and footer and want it in every page I see my header and footer if i have very few records say if the records in my main window fits in page
-
FM transmitter for I-pod Touch
I have a new I-pod Touch and am looking to buy an FM transmitter for my car. Can someone direct me to a good buy? Thanks! Kelly
-
OLAP Universe Filter for Constant
Hello I am trying to create a universe filter. We have a BO OLAP Universe on top of MSAS 2008. We are at BOXI 3.1 SP2/FP2.2 <FILTER KEY="[Date].[Calendar Date].[Date]"><CONDITION OPERATORCONDITION="InList"><CONSTANT CAPTION="[Today].item(0).MEMBER_C
-
The hard drive on my iMac died followed only a month by the hard drive on my Time Capsule!! I backed up a lot of stuff on iDisk, but I can't figure out how or if I can restore my web-site. I backed up the Web folder off of my home folder to iDisk. I'