PDA

Ver la Versión Completa : Posicionamiento en listado


Vique
27/04/06, 11:03:20
Hola a todos,
tengo el siguiente problema: tengo un listado de report con varias páginas. También tiene varias opciones de modificación del listado. Cuando ejecuto alguna de éstas, el listado vuelve a la primera página.

Lo que quiero es que se mantega en la página y línea dónde he hecho las modificaciones.

Hay algún modo de controlar en qué página y línea de un listado estoy? y hay alguna forma de posicionarse sobre una página y línea determinada?

Gracias por adelantado y un saludo.

sap2006
28/04/06, 16:35:59
No recuerdo bien pero creo que deben haber variables de sistema que te indiquen esto sy-lsind y alguna mas.......

sap2006
28/04/06, 17:52:47
SY-PAGNO - Number of current page of current list;
counting begins at 1;

SY-LINNO - Number of current line on current page;
counting begins at 1;

SY-COLNO - Number of column where cursor is positioned in current list;
counting begins at 1;



SY-LINCT - Number of lines per page in current list, if specified by LINE-COUNT in the REPORT statement or by NEW-PAGE; otherwise, SY-LINCT has the value zero and the length of the page is determined by its contents alone;

SY-LINSZ - Line width of current list;
Can be manipulated by LINE-SIZE in the REPORT statement or by NEW-PAGE;
the maximum line width is 1023 characters. However, you should not set the list width wider than you need. This makes the list easier to read, easier to print, and improves system performance.



SY-TITLE - Title that appears in the title bar of the display window;
can be manipulated by maintaining the text elements of the report or by SET TITLEBAR;
maximum length: 70 characters;

SY-SROWS - Current number of lines in display window;
counting begins at 1;

SY-SCOLS - Current number of columns in display window;
counting begins at 1;

Espero que te sea de ayuda! Salu2.

Vique
03/05/06, 07:05:01
Muchas gracias Sap2006,
al final consegui hacerlo usando algunas de las variables que me indicas y con la función LIST_SCROLL_LINE_TOPMOST, que situa el listado en la línea que le indiques.

Un saludo.