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 total visible Lines

Former Member
0 Likes
756

Hello Friends,

I have a BDC in Me22 , how I can find how much lines the table control from SAP will be displayed in foreground All display mode when processing BDC.

Based on this I need to populate only those lines & I will do the next page after that.

Regards

Prashant

3 REPLIES 3
Read only

Former Member
0 Likes
530

Prashant,

Sometimes when working with table controls and BDC Sessions it is easier to do a new line command after every line in the table control. When doing this, you do not have to worry about increasing the index and doing a page down for the table control. Typically what happens is the second record in the table control is always the next available for input after the new line command.

Hope this makes sense and helps.

Best Regards,

Chris H.

Read only

0 Likes
530

Thanks Christopher,

But what about table control shows 10 input lines for some user & for someother it shows 15 lines.In such cases , I need to do a page down to fill the line.

I want all these lines always to be filled.

is there no mechanism that we can find the number of visible lines based on resolution?.

Regards

Prashant

Read only

0 Likes
530

Hi Prashant,

To always get the default screen size you can use the CTU_PARAMS structure in call transaction.

Just refer standard SAP help

DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'.

DATA: bdcdata_wa TYPE bdcdata,

bdcdata_tab TYPE TABLE OF bdcdata.

<b>

DATA opt TYPE ctu_params.</b>

CLEAR bdcdata_wa.

bdcdata_wa-program = 'SAPLSEOD'.

bdcdata_wa-dynpro = '1000'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'BDC_CURSOR'.

bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.

bdcdata_wa-fval = class_name.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'BDC_OKCODE'.

bdcdata_wa-fval = '=CIDI'.

APPEND bdcdata_wa TO bdcdata_tab.

<b>opt-dismode = 'E'.

opt-defsize = 'X'.</b>

CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.

Regards,

Atish