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: 

BAPI_MATERIAL_SAVEDATA - Update of custom fields dumping

Former Member
0 Kudos
153

Hi All.

I'm trying to populate custom fields with BAPI_MATERIAL_SAVEDATA, but the program is dumping within the BAPI. The fields I'm trying to populate is in structure 'BAPI_TE_MARC'. The reason for the dump is that the way I defined one of my fields in structure 'BAPI_TE_MARC' is as a DECIMAL field: 4 characters with 2 decimals. But if I run it in debug mode it displays the field as being PACKED 3 characters.

Is there any reason why this is happening?

Thank you,

Edwin.

2 REPLIES 2

Former Member
0 Kudos
58

Dear Edwin,

Define you input structure same as the one defined in BAPI it will resolve your issue.

Regards,

Gaurav Sood

anup_deshmukh4
Active Contributor
0 Kudos
58

Hello Edwin Saunders ,

Probably the extra fields should be of flat Char type.