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

Using data element MATNR in a customer specific database table

Former Member
0 Likes
752

Hi experts,

I am having difficulties using standard data element MATNR in a field in a customer specific database table (Z). Same applies to standard data element KPEIN.

When inserting the material number, it looks fine to me in the debugger.

00000-12-345

But when I view the table entries in transaction se16, the field appears as follows:

-345 - -

When I tick off the "Check conversion exits " from Settings -> User parameters in se16, it gets displayed in a more normal way to me:

00000-12-345

Question: Is there anything I need to do with the value before storing it to my customer specific table? Any conversions to internal-format perhaps? If yes, please suggest which standard one I could use.

Best regards,

Magnus

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
703

The domain of Data element matnr has a conversion exit(ALPHA) attached to it.

Please check.

Better to create a own domain and de with no conversion exit attached.

When I tick off the "Check conversion exits " from Settings -> User parameters in se16, it gets displayed in a more normal way

This statement makes sure that some conversion is happening at the domain level

Read only

Former Member
0 Likes
703

Problem solved.

I was not using the INPUT conversion routine on the matnr before saving it as I was in fact storing the value in OUTPUT format.

Thanks for your input!

Read only

0 Likes
703

HI as suggested i have used conversion exit ALPHA at domain level to customized field and table but still its not working ,

it should preceed with 0 eg. if length is 3 of char type and value is 2 then at the time of storing it will store as 002 and not 2

if i use it in program then its working but at domain level its not.

i need valuable suggestion, please help

Thanks