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 RBIrving on Dec 19 at 2:17 PM
Sorry, forgot to mention that you have to remove the M first.

Try it this way then. This assumes the M will only be the last character


DATA: nv_matnr(18) TYPE n,
w(3) TYPE n.


IF ematnr CA 'Mm'.

w = strlen( ematnr ).
SUBTRACT 1 FROM w.
matnr = nv_matnr = ematnr(w).
else.
matnr = ematnr.
ENDIF.

Ralph B Irving
Senior Programmer Analyst

---------------Original Message---------------
From: R. N. Wilhite
Sent: Wednesday, December 19, 2012 12:01 PM
Subject: Add Zeros to a Field in Internal Table

Ralph,

The OP's example shows an character "m" in the field. I suggest that you
put that data in your field and try your suggestion...

Neal

 
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
RBIrving  
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

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