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

Adding a field in table

r_b9
Explorer
0 Likes
641

Following is my scenario....

1. There is a Z table which has 7 fields.

2. Table Z has a Function group attached to it with all the necessary includes and Function modules.

3. Also there is a code written to populate 3 fields of Z tables when a user enters a key field. These 3 fields are populated

from other tables by lookup for the keyfield.

4. Also there are screens attached to the Z table.

5. I have created a copy of Z table say Y table.

6. I have added one more field to table Y.

7. Also I have copied the function group, by right clicking on existing function group in SE80 and selecting copying option.

8. Now I have modified the code in includes and other necessary programs to change the references to the Y table. I have also

changed all the necessary parameters.

9. When I enter in SM30, I can see the new added field. But when I enter the keyfield, corresponding 3 fields are not populated.

10. I have checked all the necessary code and references, but yet not gettin anything.

Can any help me....is there somethg I am missing....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
610

Go to the table maintenance generator screen for the Z table. Choose the menu Environment -> Modification -> Events.

In the resulting screen, check if there are any entries. If there are, you have to replicate the same functions for Y table also.

4 REPLIES 4
Read only

eduardo_hinojosa
Active Contributor
0 Likes
610

Hi,

If I understand you, the problem is that the maintenance of this table with SM30 is before to adding new fields. So, you must do newly the maintentenance with tcode SE54. Think that it do a function module and the screens with the fields that in this moment had the table.

Regards,

Eduardo

Read only

Former Member
0 Likes
611

Go to the table maintenance generator screen for the Z table. Choose the menu Environment -> Modification -> Events.

In the resulting screen, check if there are any entries. If there are, you have to replicate the same functions for Y table also.

Read only

venkat_o
Active Contributor
0 Likes
610

Hi,

<li>Copy X table to Y table and add new fields.

<li>But you should not copy X table maintenance function group to Y function group.

<li>Generate table maintenance for Y separately and add what functionality exist for X table manually. They might have used events to get the functionality available for X table.

Regards,

Venkat.O

Read only

Former Member
0 Likes
610

Hi,

I second Venkat's idea !

You should not copy function groups.

Generate one for each new table.

Since you have already copied the function group, delete and generate again.

Regards,

Nisha Vengal.