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

BDC with table control

Former Member
0 Likes
642

Can any one suggest me how to control visible lines in table control during BDC?

Actual problem is that only 2 lines are visible on screen and i have to go to upto 4 lines.

5 REPLIES 5
Read only

Former Member
0 Likes
615

For each 2 line you need to Trigger the Page down action,

You have to use some counter, once it reaches 2 then set it to 1 again and add the Okcode for Page down.

and also when you are doing that you have to pass the tablecontrol index also.

TC-FIELD( indx ) , the index value will be dynamically populate using the increment counter.

Read only

Former Member
0 Likes
615
Can any one suggest me how to control visible lines in table control during BDC?

i think it depends on screen and tcode we are using.but by default it is 4.

more over you can set your window size while BDC thru CTU_PARAMS.for more info you can open this structure in SE11 and see what parametres you can pass.

refer this code:

DATA : screenr TYPE ctu_params.

screenr-defsize = 'X'.
screenr-dismode = 'N'.

CALL TRANSACTION tcode USING bdcdata OPTIONS FROM screenr MESSAGES INTO messtab.

Amit.

Read only

0 Likes
615

TC is MM01 and value for Tax have to be populated

Read only

Former Member
0 Likes
615

Follow Amit point first and check how many are the visible lines .

then apply Vijays logic of page down.

Read only

Former Member
0 Likes
615

Hi,

It depends on the transaction. When you do the recording through SHDB, the time you your table control is shown, just check how many lines are displayed at that time.

That is the default number of lines (that can be used for page down) for the transaction.

Use that number of lines in ur code to scroll down and add new records.

Most of the transaction have + (add single entry) button, use add single entry button if that is present else you have to go with the above logic.

Thanks,

Kartavya