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: Table Control Screen Resolution

Former Member
0 Likes
2,622

Hi Abapers,

1.In BDC while handling table control , how to handle screen resolution , that means in some systems i can see 5 item entries , in some systems i can see 10 item entries how to handle this , can u send the Code relating this.

With Regards

Bhaskar Rao.M

1 ACCEPTED SOLUTION
Read only

rahulkavuri
Active Contributor
0 Likes
1,600

hi

The numeber of lines of table control for BDC depend on screen resolution, but It can't be managed by program.

So the better solution is to create a bdc doesn't depend on resolution.

It can do that using always the first two lines of table control.

When you start the simulation, first record has to be placed in first line of tc and the second in second one.

Before placing the third record, it needs to place the second record to the top and so the third record can be placed in the second line.

Before placing the next record, it needs to place the third record to the top and so the fourth record can be placed in the second line and so.

In this way your BDC'll use alwways the first two lines of tc and your program won't depend on resolution.

The problem is the transaction you need to simulate by BDC has to have a scroll functionality to allow to place the last record was elaborated to the top of tc, so the second line of tc can always be used to place the new record.

If there isn't this functionality, it's better to use a BAPI instead of BDC.

check these two

https://forums.sdn.sap.com/click.jspa?searchID=739193&messageID=823953

??

reward points if found helpful

7 REPLIES 7
Read only

rahulkavuri
Active Contributor
0 Likes
1,601

hi

The numeber of lines of table control for BDC depend on screen resolution, but It can't be managed by program.

So the better solution is to create a bdc doesn't depend on resolution.

It can do that using always the first two lines of table control.

When you start the simulation, first record has to be placed in first line of tc and the second in second one.

Before placing the third record, it needs to place the second record to the top and so the third record can be placed in the second line.

Before placing the next record, it needs to place the third record to the top and so the fourth record can be placed in the second line and so.

In this way your BDC'll use alwways the first two lines of tc and your program won't depend on resolution.

The problem is the transaction you need to simulate by BDC has to have a scroll functionality to allow to place the last record was elaborated to the top of tc, so the second line of tc can always be used to place the new record.

If there isn't this functionality, it's better to use a BAPI instead of BDC.

check these two

https://forums.sdn.sap.com/click.jspa?searchID=739193&messageID=823953

??

reward points if found helpful

Read only

Former Member
1,600

Hi,

unfortunately, I think this is very difficult to control. Pls, check in the

transaction that you are working in, if there is an option or some way,

to say explicitly, what position you need to modify.

In other way, maybe you can find a Funtion Module or a BAPI, that can do

the same work that you need to do in your batch input.

Regards,

Carles

Read only

0 Likes
1,600

Hi Friend,

Please check the option CTU_PARAMS in call transaction.This will help you for screen resolution.

Read only

Former Member
0 Likes
1,600

hi Bhaskar Rao,

While recording for transactions with table control, always enter value only in the first row and click the + button just above or below the table control to enter the second value. Now the cursor will always be in the 1st position.

Hence, we can code the program to enter the values always in the 1st row, no matter on which resolution the screen is displayed.

For old transactions (which does not use SAP Enjoy controls), instead of PLUS icon, there would be some down arrow like icon; use that action.

Hope this helps,

Sajan Joseph.

Read only

Former Member
1,600

Hi Bhaskar,

Just use the following syntax for call transaction:


"Declare itab_bdcdata with type bdcdata.
 DATA:  f_option         TYPE ctu_params.
 DATA: fitab_bdcmsgcoll TYPE bdcmsgcoll OCCURS 0.

  f_option-updmode  = 'S'.
  f_option-defsize  =  'X'.
  f_option-dismode  = 'N'.

  CALL TRANSACTION <here use ur transaction> USING itab_bdcdata
                         OPTIONS FROM f_option
                        MESSAGES INTO fitab_bdcmsgcoll.

Here in this code the defsize option makes the handling of table control same across all the systems. So just do a recording of your transaction with the default screen size & then increment the index based on the no which you get in the default recording for the table control entries.

Regards,

Chetan.

PS:Reward points if this helps.

Read only

Former Member
0 Likes
1,600

Hi,

How this issues was getting solved. i am facing the same issuee.

Regards,

Prabu

Read only

0 Likes
1,600

Is this error resolved for anyone using BDC? I am getting same error ' Dynpro is too big for internal batch input' in f-36 transaction.

Maximum its accepting 22 line items