If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Transacciones a utilizar:
GS01 – Crear Set de Datos
GS02 – Modificar Set de Datos
GS03 – Visualizar Set de Datos
Tablas involucradas:
SETLEAF
-----------------------------
EJEMPLO:
*Recuperamos la info del set de datos ZCONDICIONES
SELECT setname
valsign
valoption
valfrom
valto
FROM setleaf
INTO TABLE t_condiciones
WHERE setname = 'ZCONDICIONES'.
*Cargamos una tabla ranges
LOOP AT t_condiciones INTO wa_condiciones.
r_condiciones-sign = 'I'.
r_condiciones-option = 'EQ'.
r_condiciones-low = wa_condiciones-valfrom.
APPEND r_condiciones.
ENDLOOP.
*Realizamos un Query con el ranges del set de datos
SELECT kwert
FROM konv
INTO TABLE t_comfac
WHERE kschl IN r_condiciones
AND knumv = vbrk-knumv
AND kposn = wa_salida-posicion.
Comentario