RE:[sap-abap] Appending zeros to use in READ_TEXT
Posted by
Admin at
|
Share this post:
|
0 Comments
| | Posted by epalmer (SR ABAPS Developer) on Aug 21 at 2:26 PM | |
Ravi,
Why do you need to design a cadilac when a chevy will do.
data: w_10(10) type n.
data: w_7(7) type c value '7777777'.
w_10 = w_7.
Just set up a data field to the size you want the output to be and make it type n. Then move the input to the data field. If for any reason you need a type C field you can move the type n to the type C and it will retain the leading zeros.
Ellie
__.____._ Why do you need to design a cadilac when a chevy will do.
data: w_10(10) type n.
data: w_7(7) type c value '7777777'.
w_10 = w_7.
Just set up a data field to the size you want the output to be and make it type n. Then move the input to the data field. If for any reason you need a type C field you can move the type n to the type C and it will retain the leading zeros.
Ellie
Copyright © 2009 CEB Toolbox, Inc. and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Related Content
In the Spotlight
White Papers
In the Spotlight
Share Knowledge About SAP Scripting. Join the New Discussion Group
View this thread online
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion