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

Issue with BDC Table Control

former_member207873
Participant
0 Likes
1,504

Hi Experts,

I am using BDC for the change of one line item of delivery. It is VL02n and I know enjoy transactions are not BDC friendly, but I am forced to use this because there is no BAPI or FM which will cater to my need as I am in 4.6 C. I have an Inbound Idoc data coming, where in there will be Del No and Line item. So I have to find the line item in the table control. I read lot of threads about this on scn. But I didn't find any expert backing the use of DEFSIZE in Options of call transaction. What is the efficient way of handling this keeping in mind the screen resolution could be different for different users.

Cheers.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,248

VL02N is an enjoy transaction, so if you continue to use it, it may work now but cause problems later. If you must use BDC, I would suggest that you use the old transaction (VL02) instead.

The screen has a "Position cursor" (FCODE = 'POPO') popup that will allow you to select whatever line you want without worrying about DEFSIZE.

Rob

6 REPLIES 6
Read only

Former Member
0 Likes
1,248

Best way to deal with the varying screen size of different user is to to record in def size and then programiing it using DEFSIZE in options of call transactions.

But here I am not sure what are you trying to achieve with it.

If you want to select that particular line item  then one way is select all the line items in an internal table and check the Index of your particular item. Now select that line in the table control using the index.

Hope this helps.

Read only

nishantbansal91
Active Contributor
0 Likes
1,248

Hi Jay,


The best way is to use the table control with the default screen only.

Do one thing first run the T-code vl02n in SHDB in default mode then count the no. of line that are visible during the default mode and modify your code according to that.

Thanks

Nishant

Read only

SwadhinGhatuary
Active Contributor
0 Likes
1,248

Hi Jay,

Let us first discuss what is the use of DEFSIZE .

suppose you record bdc in your laptop and create program that transaction is having a table control in the screen.and after 5 row you have to page down for that table control so that you enter data for 6th row on wards you have to page down after 5 only because only 5 rows are visible at a time .

when you run application in big screen desktop then in that case you have 7 rows visible at a time so we design the program in such a way that it will page down after each 5th row, which will create problem.

so when we go for SHDB we have a check box for default screen resolution, which means no of rows visible in laptop and desktop will same (suppose let it 4 rows at a time). So after each 4 rows page down will trigger and only 4 rows are visible for laptop and desktop (any size). so program run perfectly.

hope you are now clear actual use of DEFSIZE in bdc program

Read only

0 Likes
1,248

In 4.6C that option is not there. So my doubt is where adding the option defsize in options parameter in call transaction will do the job ?

Read only

0 Likes
1,248

we use cpuparam in call transaction , actually i do'not have much clear picture in case 4.6

Read only

Former Member
0 Likes
1,249

VL02N is an enjoy transaction, so if you continue to use it, it may work now but cause problems later. If you must use BDC, I would suggest that you use the old transaction (VL02) instead.

The screen has a "Position cursor" (FCODE = 'POPO') popup that will allow you to select whatever line you want without worrying about DEFSIZE.

Rob