Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3116

UDF based on Field Length Change

$
0
0

Hi All,

 

'MATNR' field size it contains 18 characters length but when I trigger materials having more than 10 digits it throws an error.

 

Is there any UDF or Java code wherein if material size is '9' it should add 9 zeros in front followed by material(000000000+material).

 

if material size is '10' it should add 8 zeros in front followed by material(00000000+ numeric material).

 

if material size is '11' it should add 7 zeros in front followed by material(0000000+material).

 

if material size is '12' it should add 6 zeros in front followed by material(000000+material).

 

if material is alphanumeric it should not add any zeros in front.

 

 

Please help. Many Thanks.


Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>