2008 Jul 23 5:54 AM
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.
2008 Jul 23 6:03 AM
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.
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.
2008 Jul 23 5:58 AM
2008 Jul 23 6:03 AM
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.
2008 Jul 23 6:06 AM
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.
2008 Jul 23 6:06 AM
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'.
2008 Jul 23 6:06 AM
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
2008 Jul 23 6:16 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |