Ansicht
Dokumentation

12518 - CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

12518 - CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

Addresses (Business Address Services)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

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=egroupweb/\
S=1705123219:HM/EXP=1073762850/A=1853618/R=0/
*http://www.netflix.com/Default?mqs\
o=60178338&partid=4116730
> click here

<http://us.adserver.consolut.net/l?M=267637.4116730.5333196.1261774/D=egroupmail/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]


Durban Tours - Südafrika Safari

General Data in Customer Master   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 5574 Date: 20240329 Time: 021022     sap01-206 ( 4 ms )