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: 

Changing data types of fields in structures

Former Member
0 Kudos

Hello,

Currently we are working for upgrade to ECC 6.0 .

In some transactions we are using BAPI_MATERIAL_SAVEDATA to create material.

We have some additional fields in MARA and MARC table , which we fill using BAPI_TE_MARA and BAPI_TE_MARC structures.

In these structures we have different data types for fields earlier in 4.6C

Now this function module is only working if we change data types of fields in these structures only to char type. It is going for dump , if we maintain any other data type.

Could any body tell me why should we change for char data type ?

Regards,

SATYA

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check enhancement category (Extras --> Enhancement Category) for structures before enhancement. For example, for BAPI_TE_MARA structure, enhancement category is given as character type or numeric type. That means you can add the fields of data type only C and N. No other data types are allowed. If you select as not classified then you can add any data type. This option plays important role while enhancement.

Regards,

Prasanth

2 REPLIES 2

Former Member
0 Kudos

Hi Satya,

The reason could be, the BAPI may transfer data from the these strucure to some other standard structures, so while transfering if there is mismatch in datatypes, it will leads to dump. We can better understand by reading the dump analysis while you execute the BAPI. Or you can read the same using the Transaction ST22.

Regards,

Subhani.

Former Member
0 Kudos

Hi,

Check enhancement category (Extras --> Enhancement Category) for structures before enhancement. For example, for BAPI_TE_MARA structure, enhancement category is given as character type or numeric type. That means you can add the fields of data type only C and N. No other data types are allowed. If you select as not classified then you can add any data type. This option plays important role while enhancement.

Regards,

Prasanth