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
612

How to create a vertical scroll bar in a table control?

the exact scenario is that initialy a table control is having say 6 lines for input.now after entering data into 6th line...the table control should be ready for more input,i.e a vertical scroll bar should appear....pls reply asap.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

in the PBO include these lines

describe table it_tabctrl lines N.

<tabctrlname>-lines = N.

<tabctrlname> is the name of the table control placed on the screen.

it_tabctrl is the internal table data that is being passed to the table control.

bfore that set the properties of table control in the layout to have scrolling enable.

6 REPLIES 6
Read only

Former Member
0 Likes
594

Hi,

Check the link

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

It will help you.

Regards,

Anirban

Read only

Former Member
0 Likes
595

in the PBO include these lines

describe table it_tabctrl lines N.

<tabctrlname>-lines = N.

<tabctrlname> is the name of the table control placed on the screen.

it_tabctrl is the internal table data that is being passed to the table control.

bfore that set the properties of table control in the layout to have scrolling enable.

Read only

Former Member
0 Likes
594

hi,

For creating the scroll bar , First open the table control in layout and click on the check box ' Vertical ' and 'Horizontal ' under the label 'RESIZING' .

If you want to add rows the you can code like this under PAI,

DESCRIBE TABLE itab LINES var1.

if var1 >= 6.

append initial line to itab.

endif.

Read only

Former Member
0 Likes
594

You can get the scroll based on the entries, set the default lines.

using table control.

TC is nothing but Table control name.

TC-LINES = 10.

TC-V_SCROLL = 'X'.

Read only

Former Member
0 Likes
594

Hi

Go to the transaction which you want to record. Goto ->System->status.

Click on the GUI status and find out the fcode for the table control(subscreen), ex : p+. find out the fcode for both vertical scrollbar and horizontal scrollbar.

write your coding accordingly.

Also go through the link given below :

With Regards

Nikunj Shah

Read only

Former Member
0 Likes
594

Hi Narendra.

I would like suggest a couple of references, as it is quite similar to your case,

[SAP HELP - Standard Reference for scrolling in Table control|http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac9f35c111d1829f0000e829fbfe/content.htm]

[SDN - Reference for creating a vertical scroll bar in Table control|;

[SDN - Reference for Creating a vertical scroll bar in table control|;

[SDN - Reference for Issues related to Vertical scroll bar in table control|;

[SDN - Reference for Setting a vertical & Horizontal scroll bar in table control|;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave