Application Development and Automation 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: 
Read only

table control

Former Member
0 Likes
589

how to get position of record in table control

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

ABEY YEH ITNA EASY HOTA TO MAIN NAHIN KAR LETA KYA NEPALI

6 REPLIES 6
Read only

Former Member
0 Likes
570

use TC-current_line which gives index of current record in table control TC

Read only

Former Member
0 Likes
571

ABEY YEH ITNA EASY HOTA TO MAIN NAHIN KAR LETA KYA NEPALI

Read only

Former Member
0 Likes
570

Within the loop pass, the system field sy-stepl contains the number of the current table control row, started at the top visible row. The system field sy-loopc contains the total number of table control rows displayed on the screen.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
570

In PAI LOOP AT <itab>

The index is <control>-current_line

or use GET CURSOR

In PAI ON VALUE-REQUEST / ON HELP-REQUEST

Use DYNP_GET_STEPL to get the step line.

Regards

Read only

Former Member
0 Likes
570

Hi kush

hope this will help you.

reward if help.

syntax:

CONTROLS .

chk the demo prog:

DEMO_DYNPRO_TABCONT_LOOP

Cursor Position on Table Controls

At PBO you can set the cursor on a specific field of a specific row of a table control.

SET CURSOR FIELD .

if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.

Go through this urls.

www.saptechnical.com

www.sap-img.com

Check the below links.

just refer to the link below

http://www.sapmaterial.com/tablecontrol_sap.html

step by step procedure with screen shots

http://www.planetsap.com/howdo_a.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm

http://sap.niraj.tripod.com/id25.html

Also you can see the below examples...

Go to se38 and give demodynpro and press F4.

YOu will get a list of demo module pool programs.

One more T-Code is ABAPDOCU.

YOu can find more examples there.

See the prgrams:

DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement

DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB

http://www.geocities.com/ZSAPcHAT

http://www.allsaplinks.com/files/using_table_in_screen.pdf

Read only

Former Member
0 Likes
570

resolved