‎2011 Nov 05 12:17 PM
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.
‎2011 Nov 05 12:36 PM
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.
‎2011 Nov 05 12:36 PM
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.
‎2011 Nov 05 5:06 PM