Ansicht
Dokumentation

12519 - CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

12519 - CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

Hi Ed.

Thanks for the info. Just as I got your email I found some source code on
the Web that has the table you are talking about so now if makes more sense.
Strange that SAP did not include it with the 'Pattern' button in SE38.

Thanks again,
Chris

-----Original Message-----
From: Yung, Ed [mailto:eyungZsouthernwine.com]
Sent: Friday, January 09, 2004 2:44 PM
To: DoNotReply@consolut.eu
Subject: RE: CALL FUNCTION 'SXPG_COMMAND_EXECUTE'


Chris,

I have never used this function. Here is what I think.
after 'exec_protocol', there shouldn't be a '.'
If you look at the function, exec_protocol is referring to a structure,
'BTCXPM'. This structure only has two fields:
LENGTH CHAR 3 Length of protocol message in external program
MESSAGE CHAR 128 Log message from external program

I believe this is an import table to let your external program to return
message to you.
In this case, you have to define an internal table in your program which is
using the same 'BTCXPM' structure.

Hope it helps!

Ed

____________________________________________________________________________
_____________________________________ ______ ______
____________________________________________________________

-----Original Message-----
From: Sugg, Chris [mailto:cgcsuggZnmhg.com]
Sent: Friday, January 09, 2004 2:27 PM
To: 'DoNotReply@consolut.eu'
Subject: RE: CALL FUNCTION 'SXPG_COMMAND_EXECUTE'



We're trying to use the command CALL FUNCTION 'SXPG_COMMAND_EXECUTE' to
execute a remote function that was created in SM69. The complete program
loojks like this.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZRVI_PASS_THRU'.
* ADDITIONAL_PARAMETERS =
* OPERATINGSYSTEM = SY-OPSYS
TARGETSYSTEM = 'AC4SAP01'.
* DESTINATION = 'PRD'.
* STDOUT = 'X'
* STDERR = 'X'
* TERMINATIONWAIT = 'X'
* TRACE =
* IMPORTING
* STATUS =
* EXITCODE =
tables
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
* WRONG_ASYNCHRONOUS_PARAMETERS = 12
* CANT_ENQ_TBTCO_ENTRY = 13
* JOBCOUNT_GENERATION_ERROR = 14
* OTHERS = 15
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Does anyone know what to put in the ' tables / exec_protocol = ' section?
When i compile the ABAP, it returns an error saying "." was expected after
'exec_protocol'. Putting a period still gets an error.

Thanks for any suggastions.

Chris Sugg
NACCO


Have a look to our homepage at: http://www.consolut.net
DoNotReply@consolut.eu



consolut Sponsor



<http://rd.consolut.net/SIG=12c4ov56v/M=267637.4116730.5333196.1261774/D=egroup
web/S=1705123219:HM/EXP=1073762850/A=1853618/R=0/*http://www.netflix.com/Def
ault?mqso=60178338&partid=4116730> click here

<http://us.adserver.consolut.net/l?M=267637.4116730.5333196.1261774/D=egroupmai
l/S=:HM/A=1853618/rand=947668560>


_____

consolut Links


* To visit your group on the web, go to:
http://groups.consolut.net/group/SAP on System i/


* To unsubscribe from this group, send an email to:
DoNotReply@consolut.eu
<mailto:DoNotReply@consolut.eu?subject=Unsubscribe>


* Your use of consolut is subject to the consolut Terms of Service
<http://www.consolut.net> .





-----------------------------------------
__________________________________
This message and any attachments are solely for the intended recipient and
may contain confidential or privileged information. If you are not the
intended recipient, any disclosure, copying, use or distribution of the
information included in the message and any attachments is prohibited. If
you have received this communication in error, please notify us by reply
e-mail and immediately and permanently delete this message and any
attachments. Thank You.

[Non-text portions of this message have been removed]


Have a look to our homepage at: http://www.consolut.net
DoNotReply@consolut.eu


consolut Links

To visit your group on the web, go to:
http://groups.consolut.net/group/SAP on System i/

To unsubscribe from this group, send an email to:
DoNotReply@consolut.eu

Your use of consolut is subject to:
http://www.consolut.net


Durban Tours - Südafrika Safari

rdisp/max_wprun_time - Maximum work process run time   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 7060 Date: 20240423 Time: 090638     sap01-206 ( 4 ms )