2009 Mar 17 1:01 PM
Hi,
Is there any SAP pre-defined function module to convert material number,
example: from 000000000000000085 to 85
example: from 000000000000000087 to 87
?
Thanks.
Tee
2009 Mar 17 1:25 PM
Hi Lee,
Use Conversion_exit_alpha_output to remove the zeros from the number.
Please search your query before posting the question..as there are lot of posts on the same
Thanks & Regards
Syed
Hi Lee,
Use Conversion_exit_alpha_output to remove the zeros from the number.
Please search your query before posting the question..as there are lot of posts on the same
Thanks & Regards
Syed
2009 Mar 17 1:25 PM
Hi Lee,
Use Conversion_exit_alpha_output to remove the zeros from the number.
Please search your query before posting the question..as there are lot of posts on the same
Thanks & Regards
Syed
2009 Mar 17 1:34 PM
Hi Tee,
Welcome to SDN Forums !
You must use the correct or most appropriate forum, so this thread will be moved from ABAP Objects to ABAP, General.
Please see the Forum Rules of Engagement before posting.
Also read this thread Welcome and Rules of Engagement.
Greetings,
Marcelo Ramos
2009 Mar 17 1:40 PM
Hi,
You can use the function module CONVERSION_EXIT_MATN1_OUTPUT of the function group OMCV.
Pass the material number in 00000085 format to the exporting parameter INPUT, and receive the output in format 85 in the Importing parameter OUTPUT.
DATA: f_matnr type matnr value '0000085'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = f_matnr
IMPORTING
output = f_matnr.
Best Regards,
Suresh
Edited by: Suresh S on Mar 17, 2009 2:41 PM
2009 Mar 17 1:37 PM
CONVERSION_EXIT_MATN1_INPUT Function Module for Material Number Conversion (INPUT)
CONVERSION_EXIT_MATN1_OUTPUT Function Module for Material Number Conversion (OUTPUT)
2009 Mar 17 1:39 PM
Hi,
Welcome to SDN
Please Search Before posting.
Test the following Sample code it will solve out your problem,
DATA: m(10) VALUE '0000000012'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = m
IMPORTING
output = m.
WRITE: m.Best Regards,
Faisal
2009 Mar 17 1:41 PM
if you want SAP to store them as 85 instead of 000000000000085, you can set it in cutomizing under
lexographic settings.
where you can do a setting which will not add leading zero's while creating material itself.
2009 Mar 17 2:43 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |