Application Development 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: 

pre-value for variable

Former Member
0 Kudos

I have a variable which data type is c(15), and which store the vendor code. It could be 4 digital, 5 digital and so on. I would like to concateneate zero and vendor code, but the vendor code is variants, the mechanism should be 15 - vendor code length. How can i fill the remaining to zero. Thanks!

1 REPLY 1

Former Member
0 Kudos

Hi,

Instead of defining vendor number as C(15) refer to the standard data element LIFNR.

Then you can use FM CONVERSION_EXIT_ALPHA_INPUT for your purpose. Pass the same vendor number as impoting and exporting parameter to this FM and it will append it with zeros.

Regards,

Atish