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

custom infotype creation-- problem

Former Member
0 Likes
459

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

3 REPLIES 3
Read only

Puneet_Gupta
Contributor
0 Likes
415

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

Read only

0 Likes
415

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

Read only

0 Likes
415

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