on 2020 Nov 09 7:02 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello timiot
Your second screen shots shows that you are using conversion-exit ALPHA, not MATN1. Try using MATN1 there.
ALPHA is a generic conversion exit and on input conversion it always fills leading zeros to the full length of a variable if the value is numeric only.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello together,
This is also possible, without using domain specific conversion exits you can ensure correct format and number of leading zeroes:
data(lv_270_input_matnr) = CONV matnr18( |{ gv_270_input_matnr ALPHA = IN }| ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.