Ver Mensaje Individual
  #5  
Viejo 31/03/08, 13:09:16
ibecerra
 
Mensajes: n/a
hola, si trabajas con punteros (ASSIGNING ) no necesitar actualizar la tabla extract. ya que cuando haces lo siguiente
<table2>-campoxx = 'hola'
lo modifica al instante.
mira esto
FIELD-SYMBOLS : <table2> LIKE LINE OF extract .
LOOP AT extract ASSIGNING <table2>.
*lv_ind = sy-tabix.
*lw_ziae = <table2>.

IF NOT<table2>-zzexpedient IS INITIAL.

SELECT SINGLE * FROM prps INTO lw_prps
WHERE posid EQ <table2>-zzexpedient.
IF sy-subrc EQ 0.

*Asignamos el valor de la PRPS a los valores ZIAE.
**lo valores del puntero se actualizan inmediatamente
<table2>-zzsubdireccion = lw_prps-zzsubd.
<table2>-zztecresponsabl = lw_prps-verna.
<table2>-zzdenomipep = lw_prps-post1.

move-corresponding <table2> to ziae .
modify ziae .


eso es todo.
Responder Con Cita