Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog programming

Former Member
0 Kudos

Dear friends ,

i have one doubt. Plz clarify that. How to provide push buttons for Scrolling UP and DOWN in dialog programming.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

They will be automatically provided if the length exceeds current page.

No need of pushbuttons.

Regards

vasu

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

do u want to scroll in table control??

0 Kudos

yes i want scroll in table control

0 Kudos

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

Former Member
0 Kudos

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