|
#1
|
|||
|
|||
Gracias me salió, y si quisiera hacer con 2 tablas z por ejemplo spfli y sflight sería i_structure_name = 'SFLIGHT', 'SPFLI' ? Y si también quiero sólo mostrar algunos campos lo tendría que hacer de la forma manual diciendo campo por campo ? parecido a lo de abajo : CLEAR ti_fieldcat. ti_fieldcat-fieldname = 'CARRID'. ti_fieldcat-tabname = 'TI_TABLA'. ti_fieldcat-seltext_m = 'CARRID'. ti_FIELDCAT-EMPHASIZE = 'C710'. ti_fieldcat-col_pos = 0. ti_fieldcat-row_pos = 1. ti_fieldcat-OUTPUTLEN = 255. APPEND ti_fieldcat. CLEAR ti_fieldcat. ti_fieldcat-fieldname = 'CITYFROM'. ti_fieldcat-tabname = 'TI_TABLA'. ti_fieldcat-seltext_s = 'CIUDAD'. " descripcion corta ti_fieldcat-seltext_l = 'CIUDAD GRANDE'. " descripcion larga ti_fieldcat-seltext_m = 'CIUDAD MED'. " descripcion media ti_fieldcat-outputlen = 8. ti_fieldcat-col_pos = 3. ti_fieldcat-row_pos = 2. APPEND ti_fieldcat. |
#2
|
|||
|
|||
Si quisieras hacerlo con dos estructuras deberías hacer... una estructura en int_fcat y otra estructura en int_fcat2 (llamando dos veces distintas a la función) y luego hacer un LOOP de int_fcat2 e ir haciendo APPENDs a la int_fcat. Pero igual algún campo lo tienes común, deberías vigilar que no se repitan.
Sí, si son solo 2 campos deberías meterlos a mano. y si por ejemplo son todos los campos de la estructura menos 1, pues deberías marcar el campo NO_OUT (o algo asi, ahora mismo no recuerdo exactamente) para el que no deseas mostrar. Después puedes ir jugando con las opciones de los campos que te da el fieldcat, que a veces salvan la vida. Si tienes cualquier duda mas, coméntame, Un saludo |
Herramientas | Buscar en Tema |
Desplegado | |
|
|