|
#1
|
|||
|
|||
Yo creo que lo que comenta es que entre el select y endselect no hay nada. Depende de lo que necesites hacer se puede arreglar de varias maneras.
Seleccionar todos los registros que cumplan la condición: SELECT NACHN NACH2 VORNA FROM pa0002 CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF t_lista WHERE mandt EQ sy-mandt AND PERNR = t_lista-ippers AND BEGDA LE t_lista-evdat AND ENDDA GE t_lista-evdat. APPEND t_lista. ENDSELECT. O mejor como dice ballan SELECT NACHN NACH2 VORNA FROM pa0002 CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE t_tabla WHERE mandt EQ sy-mandt AND PERNR = t_lista-ippers AND BEGDA LE t_lista-evdat AND ENDDA GE t_lista-evdat. Si solo quieres recuperar un único registro incluye UP TO 1 ROWS en la sentencia select (y usa el ORDER BY para recuperar el que te interese). |
Herramientas | Buscar en Tema |
Desplegado | |
|
|