W Pub: ABAP Cursosentenciatables

<HTML>

<HEAD>

<TITLE>TABLES</TITLE>

</HEAD>

<BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#0099FF" VLINK="#AA0000">

<p align="left">⚠ &lt;b class="titulo"&gt;TABLES⚠ &lt;/b&gt;</p>

<P align="left">⚠ &lt;B&gt;Definicin⚠ &lt;/B&gt;</P>

<p align="left">Hace que una tabla de la

base de datos, una vista o una estructura del diccionario de datos sea

reconocida por un programa.</p>

<p align="left">⚠ &lt;B&gt;Sintaxis:⚠ &lt;/B&gt;</p>

TABLES <objeto-bd>.

<p><objeto-bd> es el nombre del objeto del diccionario de

datos. Adems el sistema genera un registro con la misma estructura que la

definida en el diccionario de datos que podr ser utilizada en el programa.,

por ejemplo, para realizar operaciones de lectura/escritura sobre la base de

datos. La secuencia y los nombre de los componentes del registro (comnmente

llamado rea de trabajo) de la tabla son los mismos que los definidos en el

objeto en el diccionario de datos. Para referenciar un componente de un rea de

trabajo de una tabla, vista o estructura del diccionario de datos se utiliza la

siguiente sintaxis:</p>

<objeto-bd>-<componente>

<p>La correspondencia de tipos de datos entre el diccionario de

datos y el programa es la siguiente:</p>

<table border="0" width="100%" height="461">

  <tr>
    <td width="35%" height="17">⚠ &lt;b&gt;Tipo de dato en diccionario de
      datos⚠ &lt;/b&gt;</td>
    <td width="65%" height="17">⚠ &lt;b&gt;Tipo de dato en programa⚠ &lt;/b&gt;</td>
  </tr>
  <tr>
    <td width="35%" height="17">ACCP</td>
    <td width="65%" height="17">N(6)</td>
  </tr>
  <tr>
    <td width="35%" height="17">CHAR n</td>
    <td width="65%" height="17">C(n)</td>
  </tr>
  <tr>
    <td width="35%" height="17">CLNT</td>
    <td width="65%" height="17">C(3)</td>
  </tr>
  <tr>
    <td width="35%" height="17">CUKY</td>
    <td width="65%" height="17">C(5)</td>
  </tr>
  <tr>
    <td width="35%" height="17">CURR n, m, s</td>
    <td width="65%" height="17">P((n+2)/2) DECIMALS m [ NO-SIGN ]
      </td>
  </tr>
  <tr>
    <td width="35%" height="17">DEC n,m, s</td>
    <td width="65%" height="17">P((n+2)/2) DECIMALS m [ NO-SIGN ]
      </td>
  </tr>
  <tr>
    <td width="35%" height="17">DATS</td>
    <td width="65%" height="17">D</td>
  </tr>
  <tr>
    <td width="35%" height="17">FLTP</td>
    <td width="65%" height="17">F</td>
  </tr>
  <tr>
    <td width="35%" height="17">INT1</td>
    <td width="65%" height="17">Sin correspondencia</td>
  </tr>
  <tr>
    <td width="35%" height="17">INT2</td>
    <td width="65%" height="17">Sin correspondencia</td>
  </tr>
  <tr>
    <td width="35%" height="17">INT4</td>
    <td width="65%" height="17">I</td>
  </tr>
  <tr>
    <td width="35%" height="17">LCHR n</td>
    <td width="65%" height="17">C(n)</td>
  </tr>
  <tr>
    <td width="35%" height="21">LRAW n</td>
    <td width="65%" height="21">X(N)</td>
  </tr>
  <tr>
    <td width="35%" height="17">LANG</td>
    <td width="65%" height="17">X(1)</td>
  </tr>
  <tr>
    <td width="35%" height="17">NUMC n</td>
    <td width="65%" height="17">N(n)</td>
  </tr>
  <tr>
    <td width="35%" height="17">PREC</td>
    <td width="65%" height="17">X(2)</td>
  </tr>
  <tr>
    <td width="35%" height="21">QUAN n, m, s</td>
    <td width="65%" height="21">P((n+2)/2) DECIMALS m [ NO-SIGN ]
      </td>
  </tr>
  <tr>
    <td width="35%" height="21">RAW n</td>
    <td width="65%" height="21">X(n)</td>
  </tr>
  <tr>
    <td width="35%" height="21">UNIT n</td>
    <td width="65%" height="21">C(n)</td>
  </tr>
  <tr>
    <td width="35%" height="21">VARC c</td>
    <td width="65%" height="21">C(n)</td>
  </tr>

</table>

</BODY>

</HTML>