Application Development 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: 

Including new fields to the standard table

Former Member
0 Kudos

Hi all ,

I have enhanced the standard table /AFS/MARM ( using .INCLUDE ) by adding 3 fields ( have also done the appropriate coding required ) . But because of this there is an error occuring in one of the standard programs , so I am getting a dump while creating a sales order. If I remove the newly added fields , everything works properly again !!

Can you please help me out in this ? .APPEND and .INCLUDE should not give dump anywhere right ?

Regards,

Deepthi

7 REPLIES 7

Former Member
0 Kudos

hI

In contrast to append structures, Customizing includes can be inserted into more than one table.

As an example the customizing include that we created (CI_DEMO) could be a part of multiple tables in the database whereas the append structure (ZDEMO_APPEND) can only be assigned to one table. (here MARA).

This provides for data consistency throughout the tables and structures affected whenever the include is altered.

varma_narayana
Active Contributor
0 Kudos

Hi Deepthi..

1. Use APPEND Structure for enhancing a Table .

2. After activating the Table Check the Status whether it is "Partially Active" . In that case it will give dump if you try to access this table.

3. To avoid this (means to Activate the Table) you have to goto SE14(DATABASE UTILITY) and select the Button "Activate and adjust the table".

Then the table is adjusted and activated.

Now it will work.

<b>reward if Helpful.</b>

Former Member
0 Kudos

Hi,

It is better to use APPEND in case enhancing the standard table because INCLUDE will leads to conversion of structure in database whereas appending an append structure does not lead to the conversion of the table as it just added without changing the existing structure.

Thanks,

Muthu.

Former Member
0 Kudos

Hi ,

I tried with both .APPEND and .INCLUDE . But it is not working

Regards,

Deepthi

0 Kudos

Hi Deepthi,

You can able to activate it partially so use SE14 to adjust and activate the table. If still you have the problem then mention the details of dump.

Thanks,

Muthu

Former Member
0 Kudos

Hi Muthu ,

The table is activated completely . There is no problem with that .

However because this table is used elsewhere , there is a dump while creating a sales order. ( In program /AFS/SAPLMG01 , there is an assignment happening of the table to which I added fields - /AFS/MARM and /AFS/MEINH. Since the number of fields are unequal , I get a dump .) I have to add fields to /AFS/MARM for some other application ! Please suggest how do I go about doing this.

Regards,

Deepthi

0 Kudos

Hi Deepthi,

You have to search the other table which is assigning the value to it and enhance that if needed. Goto SE80, select the function group give MG01 search for the table.

Thanks,

Muthu.