‎2006 Jul 05 7:40 PM
Hi
i had created an infotype with two tabs by copying the standard infotype 0002.
on the second tab there is table control ....
can any one help me how to code this table control and how to save the data ???
thanks in advance
srinivas
‎2006 Jul 05 9:25 PM
Hi Srinivas,
For a table control on the infotype, the database structure (Pnnnn) should have as many fields as the table control.
Eg. If the table control has say 3 columns ColA,ColB and ColC.
For best performance SAP says that a max of 20 Rows should be allowed. so you will have to define fileds ColA1,ColB1,ColC1, ColA2,ColB2,ColC2...... till ColA20,ColB20,ColC20 in your Pnnnn structure.
Check the table the definition P0008 (the strucutre for infotype 0008 which has a table control).
Then each cell of the table control has to be mapped to each of these fields.
Hope this helps.
Regds,
Puneet
‎2006 Jul 06 12:22 PM
Hi Puneet
thanks a lot for ur help.
but is there any code to be written by myself in the infotype creation.
perviously i had created an infotype with out subscreen and table control the i did nto write that much code..
but here i am creating two more subscreens in that i an using table control..
the screens which i am creating apart from standard 2000 screen is 2020 and 2040.
shall i have to include the standard modules from 2000 to 2020 and 2040..
thanks in advance
srinivas
‎2006 Jul 07 9:40 PM
Hi Srinivas,
Here you will have to write create your own subscreens and write code to handle the data from your subscreens and map it back to the Pnnnn structure.
This kind of infotype requires a lot of custom coding.
Thanks,
Puneet