mitosap
22/03/10, 23:02:02
Hola a todos.
Tengo facturas generadas en VF04 (pool de facturación) y quisiera agruparlas por material de producto. La tabla que recibe el smartform es la ZGS_IT_GEN y esta se vacia sobre lla GS_IT_GEN. En definiciones globales (inicialización) he tratado de recorrer esta tabla y hacer un colect para resumir por producto pero no he podido.
Loop at IS_BIL_INVOICE-IT_GEN into GS_IT_GEN.
Read table t_mara with key matnr = gs_it_gen-material binary search.
If sy-subrc ne 0. Clear t_mara. Endif.
gs_it_gen-FPLTR = t_mara-sec_factura.
* Append GS_IT_GEN to zGS_IT_GEN.
collect zgs_it_gen.
Endloop.
Al momento de remplazar el append por un collect me envia me envia error:
"ZGS_IT_GEN" is not a table with header line
De ante mano agradazco grandemente la orientacion que me puedan dar.
Tengo facturas generadas en VF04 (pool de facturación) y quisiera agruparlas por material de producto. La tabla que recibe el smartform es la ZGS_IT_GEN y esta se vacia sobre lla GS_IT_GEN. En definiciones globales (inicialización) he tratado de recorrer esta tabla y hacer un colect para resumir por producto pero no he podido.
Loop at IS_BIL_INVOICE-IT_GEN into GS_IT_GEN.
Read table t_mara with key matnr = gs_it_gen-material binary search.
If sy-subrc ne 0. Clear t_mara. Endif.
gs_it_gen-FPLTR = t_mara-sec_factura.
* Append GS_IT_GEN to zGS_IT_GEN.
collect zgs_it_gen.
Endloop.
Al momento de remplazar el append por un collect me envia me envia error:
"ZGS_IT_GEN" is not a table with header line
De ante mano agradazco grandemente la orientacion que me puedan dar.