#19
|
|||
|
|||
Pasar tablas
He pensado en dividir el problema, como cojo 4 tablas del programa, poner en una dentro del SMARTFORMS.
O sea tengo: - DEFINICIONES GLOBALES -> Tipos tengo algo así: "TYPES: BEGIN OF wa_tutabla, tu_campo1 type tipo, tu_campo2 type tipo, TYPES END OF wa_tutabla. TYPES: it_tutabla TYPE STANDARD TABLE OF wa_tutabla" - DEFINICIONES GLOBALES -> Datos Glob. tengo algo así: it_tabla typo it_tutabla. wa_tabla typo wa_tutabla. El lista de Campos On/OF, veo claramente que dentro de it_tabla tengo tu_campo1 , tu_campo2. Pero cuando voy a hacer Crear->Logica Proceso->Línea de Programa,para rellenar mi tabla interna o sea it_tabla. CLEAR: it_tabla, it_tabla[]. LOOP AT WS_ENTRADA1. MOVE WS_ENTRADA1 TO it_tabla-tu_campo1. APPEND it_tabla. ENDLOOP. LOOP AT WS_ENTRADA2. MOVE WS_ENTRADA2 TO it_tabla-tu_campo2. APPEND it_tabla. ENDLOOP. Cuando verifico me sale un mensaje como este: "it_tabla" is a table without a header line and therefore has no component called "tu_campo1". Alguien me puede ayudar? |
Herramientas | Buscar en Tema |
Desplegado | |
|
|