Application Development and Automation 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: 
Read only

pre-value for variable

Former Member
0 Likes
322

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
Read only

Former Member
0 Likes
292

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