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

Former Member
0 Likes
417

hi experts,

i am working on hr project.

i have displayed all the infotypes in tree structure format.

on expanding a infotype, i get list of subtypes it has ,and on double clicking respective subtype its corresponding fields are displayed.for field display i have used table control.

the problem i am facing is described below:

suppose ,

i click p0000(action which contains 28 fields),fields are displayed on table control.

next if i click p0002(personal details which contains 70 fields),only first 28 filelds are getting displayed.

code pbo:

MODULE get_itfld.

LOOP AT is_ftable INTO wa_itf WITH CONTROL itfldsel.

MODULE fill_itfld.

ENDLOOP.

MODULE get_itfld fills the internal table is_ftable.

MODULE FILL_ITFLD OUTPUT.

MOVE-CORRESPONDING wa_itf TO i_itf.

ENDMODULE.

actually all 70 fields are getting filled in is_ftable but while the loop execution wa_itf gets filled only till 28th field.

pls help.

thanks.

1 ACCEPTED SOLUTION
Read only

former_member209703
Active Contributor
0 Likes
390

Hi

I think you didn't fill the LINES attribute of the Table Control before displaying it (A very common issue, by the way)


MODULE get_itfld.
LOOP AT is_ftable INTO wa_itf WITH CONTROL itfldsel.
MODULE fill_itfld.
ENDLOOP.

In the GET_ITFLD Module you should include the corresponding sentence after filling the internal table


DESCRIBE TABLE is_ftable LINES itfldsel-LINES.

2 REPLIES 2
Read only

former_member209703
Active Contributor
0 Likes
391

Hi

I think you didn't fill the LINES attribute of the Table Control before displaying it (A very common issue, by the way)


MODULE get_itfld.
LOOP AT is_ftable INTO wa_itf WITH CONTROL itfldsel.
MODULE fill_itfld.
ENDLOOP.

In the GET_ITFLD Module you should include the corresponding sentence after filling the internal table


DESCRIBE TABLE is_ftable LINES itfldsel-LINES.

Read only

0 Likes
390

hi jose,

thanks.it helped me.problem solved.