‎2008 Aug 28 4:14 PM
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.
‎2008 Aug 28 4:18 PM
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.
‎2008 Aug 28 4:35 PM
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.
‎2008 Aug 28 5:05 PM
‎2008 Aug 28 4:59 PM
Follow Amit point first and check how many are the visible lines .
then apply Vijays logic of page down.
‎2008 Aug 28 5:55 PM
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