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-dev] Add Zeros to a Field in Internal Table

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

Reply from arbis82 on Dec 10 at 1:47 AM
I agree with what John Louk has pointed out here. Alphanumeric values for MATNR should not be appended with leading zeros.
As this can be achieved technically with a little bit of coding, why hasn't SAP done the same in their conversion exit as well?
Pavan, just a thought. If you want to add leading zeroes to non-numeric MATNR values for the sake of comparison (IF/ELSE, CASE, etc..) why not try removing leading zeroes from the other 'MATNR' value. Also, it would be easier for us to provide a more accurate solution if you could explain the context of this problem you are facing (pseudo code, requirement, etc..).

I found this thread from earlier this year. Similar issue, and there was a good discussion on the same:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/leading-zeros-from-alphanumerical-material-4819369

---------------Original Message---------------
From: pavangonuguntla2008
Sent: Friday, December 07, 2012 7:17 AM
Subject: Add Zeros to a Field in Internal Table

Generally we copy a fields of matnr field from vbap to our internal table ,my question is normally matnr field is like 'm-01' but i want to store in my table like '00000m-01' in matnr ,
please suggest me relevant answer .

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
arbis82  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

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