ABAP Cursosentenciareceiveresultsfromfunctions
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>RECEIVE RESULTS FROM FUNCTION</title> <link rel="stylesheet" href="../../gaussr3.css" tppabs="http://www.gaussr3.com/gaussr3.css" type="text/css"> </head><body>
<p align="left">⚠ <b><span class="titulo">RECEIVE RESULTS FROM FUNCTION</span>⚠ </b></p>
⚠ <b>Definicin⚠ </b></p>
<p align="left" class="gaussr3">Recupera los resultados de una funcin que ha
sido ejecutada de forma asncrona. </p>
<p align="left" class="gaussr3">⚠ <b>Sintaxis:⚠ </b></p>
asincrnicamente, como por ejemplo con la sentencia⚠ <a href="call_function.htm" tppabs="http://www.gaussr3.com/abap4/sentencias/call_function.htm">CALL FUNCTION .. STARTING NEW TASK⚠ </a>.</p>
<p class="gaussr3">⚠ <b>Ejemplo:⚠ </b></p>
- Result of RFC_SYSTEM_INFO function
SYSTEM_MSG(80) VALUE SPACE.
- Exception handling</pre>
<pre class="gaussr3">CALL FUNCTION 'RFC_SYSTEM_INFO'
STARTING NEW TASK 'INFO'
PERFORMING 'RETURN_INFO' ON END OF TASK.</pre>
<pre class="gaussr3">WRITE: 'Wait for reply'.
... AT USER-COMMAND.- Return from FORM routine RETURN_INFO
IF SYSTEM_MSG = SPACE.
WRITE: 'Destination =', INFO-RFCDEST.
ELSE.
WRITE SYSTEM_MSG.
ENDIF.
...
FORM RETURN_INFO USING TASKNAME.</pre> <pre class="gaussr3"> RECEIVE RESULTS FROM FUNCTION 'RFC_SYSTEM_INFO' IMPORTING RFCSI_EXPORT = INFO
EXCEPTIONS SYSTEM_FAILURE MESSAGE SYSTEM_MSG.</pre>
<pre class="gaussr3"> REFRESH SCREEN. "Simula el campo de comando = return key
ENDFORM.</pre> <p class="gaussr3">⚠ <b>Vase tambin: ⚠ </b>⚠ <a href="call_function.htm" tppabs="http://www.gaussr3.com/abap4/sentencias/call_function.htm">CALL FUNCTION
.. STARTING NEW TASK⚠ </a>.</p>
</body>
</html>