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

Disable Horizontal Scrollbar in Tablecontrol

Former Member
0 Likes
4,724

Hi everyobdy,

how Do I disable the horizontal Scrollbar in a TableControl?

Best regards,

Hartmut

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,072

Hi,

Alternatively, you can do this.

Goto Layout of your screen -> Click on the Screen Attributes of your table control -> You will find a field for Fixed Columns at the bottom of the attributes. Set that to the number of fields on your table control. For example, if you have 4 fields in your table control set that to 4. Your horizontal scroll bar will be disabled. You can also do what Marcin has suggested. Either ways it works.

5 REPLIES 5
Read only

former_member194416
Contributor
0 Likes
2,072

Just open the screen and enlarge the windows which contains your table control. If you enlarge enough there must not be any scrollbar.

Read only

0 Likes
2,072

Hi Gungor,

thanks for your answer.

Unfortunately this is not as easy as it seems to be.

Even if i have blank space on the right, that means the columns are less wide than the tablecontrol itselfs, the horizontal scroll bar does not disappear - i am speeking for in SAP Release 4.6C (R/3 Support Package 36).

Help is apreciated....

Best regards,

Hartmut

Read only

0 Likes
2,072

Hi,

In PBO of the screen set all columns as fixed ones. They will no longer be scroolable.


CONTROLS tab_control TYPE TABLEVIEW USING SCREEN 0100.

"in PBO
MODULE set_fixed OUTPUT.
  tab_control-fixed_cols = 5.  "give here number of your columns
ENDMODULE.

Regards

Marcin

Read only

Former Member
0 Likes
2,073

Hi,

Alternatively, you can do this.

Goto Layout of your screen -> Click on the Screen Attributes of your table control -> You will find a field for Fixed Columns at the bottom of the attributes. Set that to the number of fields on your table control. For example, if you have 4 fields in your table control set that to 4. Your horizontal scroll bar will be disabled. You can also do what Marcin has suggested. Either ways it works.

Read only

0 Likes
2,072

Marcin, Nitwick, you both hit the bull's eye

you are heros.

Best regards

Hartmut