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

Problem with table control in ABAP

Former Member
0 Likes
2,938

hi there,

when i start transaction KSUB i get the screen as you can see in screenshot.

At the end there is a table control (i think it is a table control) with cycles to enter. I have 12 lines there to enter values. A collegue of mine has 24 lines there to enter values.

I have NO idea where this is coming from. i even have copied the user of my collegue to a test-user, and i still only get 12 lines there. I don't know why my colleges gets 24 lines in the table control. any ideas ?

i have a z-abap in which i do a call transaction of KSUB and fill the value there. when there are more then 12 values i get in

troubles.

br, Martin

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,863
  • During SHDB recording use "default size",
  • In CALL TRANSACTION (or creating a BDC sesion) use OPTIONS FROM opt and set subfield DEFSIZE to 'X',

So the size of the screen will be the same.

Regards,

Raymond

12 REPLIES 12
Read only

gouravkumar64
Active Contributor
0 Likes
2,863

Hi martin,

The first thing is that line items ,purely depend on Configuration.

From technical side,What I know,i am explaining.

KSUB- Execute plan assessment,You can find it under Controlling ,cost centre accounting.

See my spro image attachment for more details.

Depend on internal configuration,line will come ,in my system,10 lines coming.

Create assessment cycle you can use KSU7 / KSU1.

How it is configured & what rules are there,a CO person can better explain you.

So you can post this question to CO Forum.

Hope it is little clear to you now.

Thanks

Gourav.

Read only

0 Likes
2,863

i know how KSUB and where i can find it !!! thats not the question

the question is a technical one, so the forum is the right one.

what do you mean with "internal configuration" ?

Read only

0 Likes
2,863

Hi,

May be I am wrong.

As per I think,line item coming due to Co assessment cycle configuration in KSU1.

Better a CO person will explain you.

Thanks

Gourav.

Read only

adrian_mejido
Contributor
0 Likes
2,863

Hi Martin,

The amount of fields depends on the size of your screen. Your workmate might have a bigger screen than you. Try to execute in a bigger screen.

Best regards

Read only

0 Likes
2,863

thank you Adrian, but now i have a big problem with my "call transaction" in my z-abap ! how should i know how many lines i can fill ?

br, Martin

Read only

0 Likes
2,863

Hi Martin,

The parameter which shows how many entries you'll have is SY-LOOPC.

Best Regards.

Read only

0 Likes
2,863

but the value of sy-loopc is not there before i do a "call transaction", right ? so i have no idea where to check the value of sy-loopc ?

br

Read only

0 Likes
2,863

If you use the F1 help, you can find the dynpro of these fields:

In this dynpro you have this:

In the Module "LIST" you can know how number of fields you're going to have:

In my case 23.

Best regards.

Read only

0 Likes
2,863

thank you, but how should my z-abap know the value of sy-loopc ? i need it there because THERE i have to decide how many rows i have to fill !

br, Martin

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,864
  • During SHDB recording use "default size",
  • In CALL TRANSACTION (or creating a BDC sesion) use OPTIONS FROM opt and set subfield DEFSIZE to 'X',

So the size of the screen will be the same.

Regards,

Raymond

Read only

0 Likes
2,863

I tryed Raymond's solution and I think is right for your purpose.

Best regards

Read only

Former Member
0 Likes
2,863

hi,

               i have face the same problem regarding no of lines in standard t-code differ from one pc to another pc.

                 for that kindly check the screen resolution..of your personal computer..

hope it will solve your problem .

with regards,

vikas