Ver la Versión Completa : Ciclo Dinamico.
Eduesqueda
03/02/16, 22:47:19
Quiero en un ciclo de ABAP cualquiera dinámicamente ir variando el índice de una variable del 1 al 10. Si la variable se llama texto01...texto10 entonces como podría hacer esto en un LOOP o FOR o WHILE o DO, etc. para asignarles valores.
Gracias
Data : texto01,texto02,texto03, texto04, texto05.
field-symbols <f> type any.
data c(80).
data ind type numc length 2.
ind = 1.
while (ind<6)
concatenate 'texto' ind into c.
assign (c) to <f>.
<f> = '1'.
ind = ind + 1
endwhile.
Eduesqueda
04/02/16, 20:58:02
Data : texto01,texto02,texto03, texto04, texto05.
field-symbols <f> type any.
data c(80).
data ind type numc length 2.
ind = 1.
while (ind<6)
concatenate 'texto' ind into c.
assign (c) to <f>.
<f> = '1'.
ind = ind + 1
endwhile.
GRACIAS algo me decía que era con field symbols.
www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web