cancel
Showing results for 
Search instead for 
Did you mean: 

Material number length 18 on DB but 40 through conversion exit

0 Kudos
8,391

Hi,

I have a strange issue on S/4 EWM 1909 regarding material number length. Material master is configured to be 18 chars long.

When I read an EGR document via delivery service provider the material number is 18 chars long even though the underlying data type is a char of length 40 (as it should be).

However when I use the MATN1 conversion exit on a variable of type /SCWM/DE_MATNR (also 40 chars) I get a length of 40 chars:

How can I fix this? Why doesn't the conversion exit convert GV_270_INPUT_MATNR to 18 characters?

Edit:

To clarify - I want the conversion exit CONVERSION_EXIT_MATN1_INPUT to convert the material number to 18 chars

Regards,

Tim

View Entire Topic
0 Kudos

I guess I found the answer:

|{ xyz ALPHA = IN }|

This is the embedded expression for the conversion exit CONVERSION_EXIT_ALPHA_INPUT which operates on the underlying data type,

What is used for converting the Matnr according to the specified settings in OMSL is the conversion exit CONVERSION_EXIT_MATN1_INPUT (which unfortunately does not have an embedded expression...)

Regards,

Tim