MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Ayuda!! Como creo una tabla dinamica??? (foro/showthread.php?t=37023)

KaL 28/05/10 17:20:06

Ayuda!! Como creo una tabla dinamica???
 
Hola a todos, como estan? recurro de su ayuda para poder solucionar algunos problemas o dudas.

Quisiera saber como creo una tabla dinamica interna para luego me muestre en mi ALV LIST ????? :confused: , hay algunos campos que el usuario ingresara datos y hara click en checkbox. Por ejemplo:

Fecha - Codigo - Check1(marca) - Check2(marca) - Num1(ingresa) - Num2(ingresa) - Num3(ingresa)

Espero su ayuda, gracias de antemano.

Gracias.

Mauricio Hidalgo 28/05/10 19:48:23

data: fs_data TYPE REF TO data.
data: lt type lvc_t_fcat.
data: ls type lvc_s_fcat.
data dy_line type ref to data.

field-symbols: <dyntable> type standard table.
field-symbols: <dynline> type any.

clear ls.
ls-fieldname = 'IMPORTE'.
ls-datatype = 'CURR'.
ls-inttype = 'P'.
ls-intlen = '13'.
append ls to lt.

clear ls.
ls-fieldname = 'TOTAL'.
ls-datatype = 'CURR'.
ls-inttype = 'P'.
ls-intlen = '13'.
append ls to lt.


call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = lt
importing
ep_table = fs_data
exceptions
generate_subpool_dir_full = 1
others = 2.

* LA TABLA
assign fs_data->* to <dyntable>.

*UNA AREA DE TRABAJO O CABECERA
create data dy_line like line of <dyntable>.
assign dy_line->* to <dynline>.


Husos Horarios son GMT. La hora en este momento es 21:33:18.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web