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 problem

Former Member
0 Likes
982

Hi Friends,

I used table control wizard in my module pool program. I can also display the data in the table control, But I am not able to see my vertical scroll bar of the table control, where I am missing some data what I capture in the final internal table.

Kindly help me how to solve this issue.

Regards,

Line

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
960

Hi...

Just write down this code

<b>table_control_name -v_scroll = 'X'.

table_control_name-LINES = ITAB-LINES</b>

9 REPLIES 9
Read only

Former Member
0 Likes
960

Hi

Goto screen layout of Table control & there will be option for vertical scroll bar.

Please mark it checked, you will get the vertical scroll bar, if record exceeds the displayed records at a time.

Thanks

Sandeep

Reward if helpful

Read only

Former Member
0 Likes
960

Hi,

Look at the demo Programs ....

demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at.

Reward me ,if it is useful.

Regards

Vinoth

Read only

Former Member
0 Likes
960

Hi Line,

Just check with the below thread.

Hope it will work.

Regards,

Suresh

Read only

Former Member
0 Likes
960

Line,

set the more lines than visible line, then you get the vertical scrollbar .

if there are visible lines in table control is 20 lines, then give

DATA FILL TYPE I.

Then in PBO of the table control write the code like this

&----


*& Module STATUS_1000 OUTPUT

&----


  • text

----


MODULE STATUS_1000 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

  • Here you r filling the fill field with the no of lines in internal table.

DESCRIBE TABLE <internal table name> LINES FILL.

  • Here assigning that lines to the tablecontrol.

<tablecontrol name>-LINES = FILL.

ENDMODULE. " STATUS_1000 OUTPUT

Don't forget to reward if useful..

Read only

Former Member
0 Likes
960

Line,

set the more lines than visible line, then you get the vertical scrollbar .

if there are visible lines in table control is 20 lines, then give

DATA FILL TYPE I.

Then in PBO of the table control write the code like this

&----


*& Module STATUS_1000 OUTPUT

&----


  • text

----


MODULE STATUS_1000 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

  • Here you r filling the fill field with the no of lines in internal table.

DESCRIBE TABLE <internal table name> LINES FILL.

  • Here assigning that lines to the tablecontrol.

<tablecontrol name>-LINES = FILL.

ENDMODULE. " STATUS_1000 OUTPUT

Don't forget to reward if useful..

Read only

0 Likes
960

Hi MuraliKrishana,

I tried with your coding even I have the same value.

Regards,

Line

Read only

Former Member
0 Likes
960

Hi Line,

syntax:

CONTROLS .

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.

Check these link:

http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm

http://www.sap-img.com/abap/question-about-bdc-program.htm

http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/

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

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

Former Member
0 Likes
960

Hi Line,

Otherwise, Check this coding.

WA_CTU_PARAMS type ctu_params.

WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode

WA_CTU_PARAMS-UPDMODE = 'S'. "synchronous update

WA_CTU_PARAMS-NOBINPT = 'X'.

WA_CTU_PARAMS-NOBIEND = 'X'.

WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size

CALL TRANSACTION 'VA01' USING it_bdcdata

OPTIONS FROM WA_CTU_PARAMS

MESSAGES INTO it_mesg.

Default size will play good role in terms of resolution. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resolution. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.

Hope this resolves your query.

<b>Reward all the helpful answers.</b>

Regards

Read only

Former Member
0 Likes
961

Hi...

Just write down this code

<b>table_control_name -v_scroll = 'X'.

table_control_name-LINES = ITAB-LINES</b>