We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE: [sap-abap] Appending zeros to use in READ_TEXT

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by horacio zapettini
on Aug 21 at 2:46 PM
Mark this reply as helpfulMark as helpful
Performance!!!!!!!
You don't need to reinvent the wheel... you're right, but an FM call involves an extra delay. If this FM call is done within a large block of processing, you can be in trouble...

________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:53 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:42 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946584/1/1/>
Ellie,
I have a different opinion. If I already have a standard FM, why should I write my own code to do the same.
Ravi

From: sap-abap@Groups.ITtoolbox.com
To: peddu@hotmail.com
Date: Fri, 21 Aug 2009 14:25:51 -0400
Subject: RE:[sap-abap] Appending zeros to use in READ_TEXT

Posted by epalmer (SR ABAPS Developer)
on Aug 21 at 2:26 PM
Mark as helpful
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
__.____._
Copyright © 2009 CEB Toolbox, Inc. and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
horacio zapettini
SAP ABAP Enthusiast

Contributed 500 posts in a group to earn a Silver Achievement
Related Content
White Papers

In the Spotlight
Learn SAP Testing Techniques. Read the Blog
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language