To append zeros

Hi all,
    I have a requirement in that i have to append zeors to the left of a character variable which is having length 10. While using shift statement the default character is space,  then i tried with the 'IN BYTE MODE' option but there the representation is different,Each byte is represented as two characters.Is there any easy way to append zeros to a character variable using any of the ABAP keywords.
Thanks in Advance,


Hi Shaju
CONVERSION_EXIT_ALPHA_INPUT This function module is used to append leading zeroes...
              input  = wf_version
              output = wf_version.
input = 123
output = 0000000000000...000000000000123
Hope this resolves your query.
<b>Reward all the helpful answers.</b>

Appending zeros in the end

Hi,   How can I add some zeros in the end of a field in the decimal places? I need to have 6 decimal places, so which ever decimal place is not filled, should be filled with zeros. Example: If the value is 11.123    I need to convert it to 12.123000


Hi All, One small doubt regarding this question. i.e in sO10 there is a standard text contains data 2 requirement is just display 1000 charecters only from that standard text. If i use READ_TEXT is it possible? One more doubt is T_lines tabl

Internal Representation of RSSELDONE~LNR

The field RSSELDONELNR references the system data element RSNRCHAR which is CHAR10.  When I try to use this field in a WHERE clause, the only success I have had so far is to code WHERE rsseldonelnr = "%1" which of course will return any row wher

Output Flatfile, fields alignment

Dear SAP experts, I have this output flatfile, in which, SALES and TURNO fields were left-justified. PERIO;EAN;ILN;SALES;TURNO;PERFL;SUBSFL;SALUN;%CURRENCY%;STOCK;STOUN;ARTNR;ARKTX 20071215;737052018126 ;4327498000005;1____;10.50____;W;X;ST ;EUR;0000

Confusion in output

double d = 2.2;           System.out.println( d == 2.2f );gives output as false and double d = 2.0;           System.out.println( d == 2.0f );gives output as true. Why is the first output false. isn't float converted to double before performing d==2.

How to append leading zeros

Dear Friends, In a transparent table xyz I have one field 'Bill No.' which is of character type & length 10. when I insert data in this table the value for this field gets stored as '0000000001'. I am facing a problem when the user is giving  value o

Appending to a zero length clob this works: var myClob clob begin :myClob := to_clob(' '); for rec in (select * from delme1) loop dbms_lob.append(:myClob ,to_clob(rec.ename || '\n')); end loop; end; but this does not var myClob clob begin :myClob := to_clob(''); for rec in

Append Leading Zero's

Hi , the follwing SQL generates Zero's prefixed to the rownum. While inserting the data into table all the zero's go away why ? How can i insert data with Zero's ? <SQL> select (Case length(rownum) when 1 then '0000'||rownum when 2 then '000'||rownu

NW66SP8 ClusterRessource to OES11 ClusterRessource - miggui duplicatesone folder and appends a 0 (zero) at the end of the folders name

Hi to all, while migrating from NW to OES, one clustered volume with one (and always the same) folder is duplicated with an trailing zero at the folders name. Source is USER:\Abteilung\Edv\ Destination is /media/nss/USER/Abteilung/EDV0/ while /var/op

Regarding Leading Zeros.

Hello Friends, How can I remove leading zeros in an Internal Table Value. I am writing a BDC for User Defined Transaction. Here BDCDATA-Fval contains length of 132 chars. When I append a value to BDCDATA, it is appending as right justified. when we t

Non truncation of Leading Zero

Hi All,   I am downloading a .xls file using the function module "GUI_DOWNLOAD". But it is truncating the leading zero's in some fileds. For example : in the field Account group , value is "0001" but in .xls file it is coming as "

APD - How to remove leading zero's in a String?

Hello All, I have been stumped by this challenge for a few hours now, so would appreciate your suggestions. I am using APD to produce a CSV file where the source is a query. The output requires 0MATERIAL and this is delivered by the source query. The

Leading zero getting truncated in .CSV format GUI_DOWNLOAD

Hello experts, I am trying to download the data using GUI_DOWNLOAD in .CSV format but the leading zeros are getting truncated. For instance Company code 0001 is displayed as 1 in the CSV File. But when I open the same file in notepad I am seeing 0001

How to avoid the zero readings entering into graph

I'am attaching one VI.Here I 'am trying to combine three numbers from the termination part of the motor for finding the steps it rotated. So the numbers 165,166, 167 in the combination given in VI will provide me the necessary number.I need a help th

Dynamic Extract.  Do Not Want Leading Zeros in Pipe Delimited Record

Greetings, I am using the following code to create a pipe delimited extract file dynamically.  The problem: leading zeros are being lost.  For example, when I do an extract of BKPF, BELNR is appended to the extract without leading zeros.  This is a p

Removal of first two char  zero's from field .

As i am having field BKPF-BELNR  of internal table whose value is :0000000010 BKPF-BELNR = 0000000010 i have to remove first two zero from left and append 'CE' and result like this : 'CE00000010' as i have tried shift field remove leading zeros . it


Hi,   I had made a report in which i have to display 'POSTING DATE' (iseg-budat) when we execute the report i.e. it should be displayed as  PERIOD :- _______  to _______ . 2nd problem is i had displayed the material no. ,but there are zeros which are

Zero records in generic extractor

Dear all , I have created  a generic extrator with function module but there are zero records which are getting extracted.I am able to extract records if I execute only the function module. Below is the code for the same.* FUNCTION ZGET_CUST_SALP . "

Leading zeros in SAP Script

hi,   how can i put leading zeros (functionality of FM CONVERSION_EXIT_ALPHA_INPUT) in SAP Script?? b'coz of not having leading zeros in PO number,i m facing problems in fetching the PO header text(text id = F01) using INCLUDE syntax. Message was edi