09-14-2007 12:28 PM
Dear friends ,
i have one doubt. Plz clarify that. How to provide push buttons for Scrolling UP and DOWN in dialog programming.
09-14-2007 12:32 PM
Hi,
In dialog programming if you use 'table control' for processing the records, the scroll bar will appear automatically if the no of records is more than the no of lines displayed.
If you want further information regarding table control, please explore the standard SAP program 'DEMO_DYNPRO_TABLE_CONTROL_1'.
Hope this helps....
<b><REMOVED BY MODERATOR></b>
Regards,
Dilli
Message was edited by:
Alvaro Tejada Galindo
09-14-2007 12:30 PM
They will be automatically provided if the length exceeds current page.
No need of pushbuttons.
Regards
vasu
09-14-2007 12:32 PM
Hi,
In dialog programming if you use 'table control' for processing the records, the scroll bar will appear automatically if the no of records is more than the no of lines displayed.
If you want further information regarding table control, please explore the standard SAP program 'DEMO_DYNPRO_TABLE_CONTROL_1'.
Hope this helps....
<b><REMOVED BY MODERATOR></b>
Regards,
Dilli
Message was edited by:
Alvaro Tejada Galindo
09-14-2007 12:36 PM
If you are talking on table control/view look at <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm">Table Controls</a> (or use assistant to create the control)
if you are talking on ALV table look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf">ALV Grid Control (BC-SRV-ALE)</a>
Regards
09-14-2007 12:37 PM
09-18-2007 11:52 AM
09-18-2007 12:01 PM
TABLES demo_conn.
DATA: lines TYPE i,
limit TYPE i.
SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
<b> DESCRIBE TABLE itab LINES fill.</b>
<b>flights-lines = fill.</b>
ENDMODULE.
MODULE fill_table_control OUTPUT.
READ TABLE itab INTO demo_conn INDEX flights-current_line.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE read_table_control INPUT.
lines = sy-loopc.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
Message was edited by:
Geetha Sravanthi
09-14-2007 12:42 PM
u can write following code in PAI...
i think scroll will be available automatically...
but u can use describe statement... as follows..
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE TO SCREEN 0100.
WHEN 'VIEW'.
SELECT * FROM SPFLI INTO TABLE IT_SPFLI WHERE CARRID = CARRID_IO.
<b> DESCRIBE TABLE IT_SPFLI LINES TABLE1-LINES.</b>ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT