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 ameensha on Dec 7 at 8:27 AM
Hi Pavan,

Try using the overlay function. For this you need to first declare a
char variable and initialize with zero then overlay the char var. with
matnr. pass this char var to the work area and append it.
Here you need to see that the char variable again set to all ZEROs before
overlaying.

Ex.
l_val = '000000000000'.
overlay l_val with wa_vbap-matnr.
wa_final-matnr = l_val.
.......
.......

Hope this solves your issue.

Regards,
Ameenshah.

---------------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
ameensha  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

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