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: 

Sapscript in_tab-value to lf_vbeln in Perform

Former Member
0 Kudos

Hello guys,

I'm trying to pass value of sales order number from in_tab-value Sapscript form into a variable of type vbeln. How do I get the leading zero's in the order number?

e.g if order is 127, i would like to have the value 000000127 in a variable.

Regards,

Ahmad

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can assign like this

&itab-vbeln(K)& it will be with leading zeroes.

regards

shiba dutta

3 REPLIES 3

Former Member
0 Kudos

use CONVERSION_EXIT_ALPHA_INPUT to convert your field into proper format i.e. to get leading aeros...

Give standard field in Output so that fieldd value will get converted into required standard field format...

Message was edited by:

sharayu kumatkar

Former Member
0 Kudos

OVERLAY '000000000' WITH over <variable>.

Message was edited by:

Muthurajan Ramkumar

Former Member
0 Kudos

You can assign like this

&itab-vbeln(K)& it will be with leading zeroes.

regards

shiba dutta