How to avoid decimal numbers?
Hi Experts,
I am picking PO Quantity(MENGE) field from RSEG table and displaying in the report output. It is displaying the value has '13.000' , but I need to display the same value has '13' in the report output.
Just I need to avoid the decimals characters.
Please help me out, useful answer rewarded with points.
Thanks,
Raju
Hi Raju
If ur using basic list
use DECIMALS addition with WRITE statement
ex: WRITE rseg-menge DECIMALS 0.
elseif ur using ALV
populate the fieldcatalog table with the following parameter & value for that particular field
parameter : DECIMALS_OUT
value : 0 (Zero)
ex:
WA_FIELDCAT-DECIMALS_OUT = 0.
reward if useful.
Regards
Prabumanoharan
Similar Messages
-
How to convert decimal numbers to Hours and minutes
Hi,
I am using SSRS 2005. I want to convert decimal numbers to Hours and minutes.
Say suppose, I am adding daily work hours and minutes and the total is 208.63.
Here 208 hrs and 63 minutes. How to convert this to 209 hrs 03 minutes in SSRS.
Any In-built function is there? or how to do using custom code?
Appreciate your help.
Regards,
Balasuppose if field name is TotalDailyHours you can do it as below
=CStr(Cint(Floor(val(Fields!TotalDailyHours.Value)) + ((val(Fields!TotalDailyHours.Value)-Floor(val(Fields!TotalDailyHours.Value)))*100)/60)) + ":" +
Right("00" +Cstr(Cint(((val(Fields!TotalDailyHours.Value)-Floor(val(Fields!TotalDailyHours.Value)))*100) Mod 60)),2)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to avoid decimal places in smartorms
hi friends,
i have to display a field VBAP-KWMENG (order quantity) in samrt forms it has a value 1.000 but it is display ing as 1,000.
how can i avoid those zeroes after the 1 my req is to print 1.
KWMENG is a data element with packed decimal as (15,3).
i tried VBAP-KWMENG(Z), VBAP-KWMENG(T) , VBAP-(KWMENG(K),
but it is not supprssing those zeroes.
pls urgent........
thanks in advance.
VENUMADHAVHi
Declare a local Variable in the program line.
L_display of type char .
Pass 1 to l_display .
In the ouput field pass &l_display& .
Hope this helps .
Praveen -
How to avoid batch numbers without stock in standard searchhelp?
Hi Experts,
Is there any choice to limit search help values for batch number only to batches, which have stock? I don't want to see batches, which have zero stock.
Thanks®ards,
Jirkayes u can enhance the search help in se11.
-
The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!
You must go in the labview option menu, you can select 'use the local
separator' in the front side submenu (LV6i).
If you use the "From Exponential/Fract/Eng" vi, you are able to select this
opton (with a boolean) without changing the labview parameters.
(sorry for my english)
Lange Jerome
FRANCE
"Nina" a ecrit dans le message news:
[email protected]..
> I would like to read a text file in which the decimal numbers are
> using dots instead of commas. Is there a way of converting this in
> labVIEW, or how can I get the program to enterpret the figures in the
> correct way?
>
> The program doest enterpret my figures from the text file in the
> correct way since the numbers contain dots instea
d of commas. Is there
> a way to fix this in labVIEW, or do I have to change the files before
> reading them in the program? Thanks beforehend! -
Conversion of a binary data stream to decimal numbers
Hi
I am having great difficult working out how to convert my binary data stream to decimal numbers.
The data I am reading back is in the format of a binary string, starting with the Most Significant Bit (MSB) of the first word, then the corresponding Least Significant Bit (LSB), where a word is two bytes long. A carriage return indicates message termination. The return message starts with ‘bin,’ followed by the number of bytes requested. No delimiters are used to separate the data, but a carriage return is appended onto the end of the data.
bin,<first word msb><first word lsb>...<last word lsb><CR>
e.g. bin,$ro¬z1;@*...etc
Does anybody know of any examaple vi that can help me convert this data from binary to decimal numbers?
Many Thanks
AshHi Ashley,
after getting the string you can strip the first 4 characters. After this try a typecasting to array of U16. If the numbers are not correct, you can add a swap bytes operation to the resulting array.
Message Edited by GerdW on 09-13-2006 02:46 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
Convert.png 2 KB -
How do I have Numbers recognise comma delimited information in a .csv file?
I have a .csv file with column information delimited by commas, but Numbers does not seem to have a way to automatically recognise and format.
Numbers should correctly open a comma separated value file and distribute it into columns and rows if your localization uses a point (not a comma) for the decimal. If your localization uses a comma for the decimal, a CSV file must use semicolons for separating the data. Given your question, I can only assume this is your problem. If so, you need to convert the separating commas to semicolons and do so without converting commas in the data (such as in a text field). You may also need to convert decimal points to commas without converting text periods to commas. There may be a script to do this but if you need to do this only once in a blue moon you could change your localization to US (or equivalent), import the file, then change it back.
I have a script for converting CSV to tab separated without affecting commas within text (text with commas is supposed to be enclosed by quotes in a CSV, that is how it knows not to convert them). A simple Find/Replace using TextEdit won't be so careful. But if your localization uses commas for decimals and you have any decimal numbers, the script choke on those extra commas. -
Sql Loader - Decimal numbers showing in null column
Greetings,
My apologies if this is in the wrong forum section. It seemed to be the most logical.
I have added new column to a control file used in a sql loader upload and I am getting unexpected results. Long story short, I copy foxpro tables from a network directory to my local pc. A foxpro exe converts these tables to .dat files. Sql loader then uploads the .dat files to matching oracle tables. I've run this program from my pc for years with no problems.
Problem now: We added a new column to a foxpro table and to the matching oracle table. This column in FoxPro in null for now - no data at all. I then added the new column to my ctl file for this table. The program runs, sql loader does it's thing with no errors. However, in the new field in Oracle, I'm finding decimal numbers in many of the records, when all records should have null values in this field. I've checked all other columns in the oracle table and the data looks accurate. I'm not sure why I'm getting these decimal values in the new column.
My log and bad files show no hints of any problems. The bad file is empty for this table.
At first I thought the positioning of the new column in the fox table, .ctl file and the oracle table were not lining up correctly, but I checked and they are.
I've double checked the FoxPro table and all records for this new column are null.
I'm not sure what to check for next or what to test. I am hoping someone in this forum might lend a clue or has maybe seen this problem before. Below is my control file. The new column is the last one: fromweb_id. It is a number field in both FoxPro and Oracle.
Thanks for any advise.
JOBS table control file:
load data
infile 'convdata\fp_ora\JOBS.dat' "str X'08'"
into table JOBS
fields terminated by X'07'
TRAILING NULLCOLS
(SID,
CO_NAME "replace(replace(:CO_NAME,chr(11),chr(10)),chr(15),chr(13))",
JOB_TITLE "replace(replace(:JOB_TITLE,chr(11),chr(10)),chr(15),chr(13))",
CREDITS,
EARN_DATE date "mm/dd/yyyy",
COMMENTS CHAR(2000) "replace(replace(:COMMENTS,chr(11),chr(10)),chr(15),chr(13))",
DONT_SHOW,
PC_SRC "replace(replace(:PC_SRC,chr(11),chr(10)),chr(15),chr(13))",
PC_SRC_NO,
SALARY,
SALFOR,
ROOM,
BOARD,
TIPS,
UPD_DATE date "mm/dd/yyyy hh12:mi:ss am",
STUKEY,
JOBKEY,
JO_COKEY,
JO_CNKEY,
JO_ZUKEY,
EMPLID,
CN_NAME "replace(replace(:CN_NAME,chr(11),chr(10)),chr(15),chr(13))",
JOB_START date "mm/dd/yyyy",
JOB_END date "mm/dd/yyyy",
FROMWEB_ID)I apologize for not explaining how this was resolved. Sql Loader was working as it should.
The problem was due to new fields being added to the FoxPro table, along with the fromweb_id column, that I was not informed about. I was asked to add a column named fromweb_id to the oracle jobs table and to the sql-loader program. I was not told that there were other columns added at the same time. In the foxpro table, the fromweb_id column was the last column added.
The jobs.dat file contained data from all columns in the foxpro table, including all the new columns. I only added the "fromweb_id" to the control file, which is what I was asked to do. When it ran, it was getting values from one of the new columns and the values were being uploaded into the fromweb_id column in Oracle. It is that simple.
When I had checked the FoxPro table earlier, I did not pickup on the other new columns. I was focussing in on looking for values in the fromweb_id column. When back-tracing data in the jobs.dat file, I found a value in the fromweb_id column that matched a value in a differnt column (new column) in FoxPro. That is when I realized the other new columns. I instantly knew what the problem was.
Thanks for all the feedback. I'm sorry if this was an inconvenience to anyone. I'll try to dig a little deeper next time. Lessons learned...
regards, -
How do I stop Numbers from rounding results of a quotient?
I'm trying to set up a spreadsheet that will automatically calculate what each of my housemates owes me for utilites. Currently, I have it set so that I can enter in one to three different bills and it will add them up, and it is set to divide the total by 7 to give what each person owes. Currently, I am trying to divide $37.59 by 7, but it is rounding each answer to $5.00, which is incorrect. I have all of the cells set to currency, and each at 2 decimal places. My exact quotient cell is as follows:
=QUOTIENT(C14,7)
Any help on how I can get it to display the exact monetary value after the division would be greatly appreciated! Thanks!QUOTIENT works with integers (or the integer part of a decimal numbers, so what you're seeing it the result of this arithmetic exercise (without the remainder):
The remainder is provided by the MOD (short for modul0) function.
Jerry is correct in describing the result you want as the "precise" answer rather than the "exact" answer. While both are the same for your example, the example is a special case.
Had you spent only a penny more (or a penny less) there would be no "exact" answer to the question "amount" divided by seven. There would be a correct answer, precise to the nearest hundredth of a dollar.
Regards,
Barry -
POC Weight in SAP-PS (Decimal Numbers)
Hi Fellows,
At present, I´m trying put weight to an activity, however I can not input decimal numbers.... The question is: How I can input decimal numbers in POC Weight?
Thanks in advanceHi Paulo, I checked that note, however that note it´s to show decimal number in progress analisys reporting, otherwise I need to put decimal number in the following filed
The technical information of field are -
How to avoid flash player out of memory problems
hi all,
when i am running my swf file i am getting the message saying
that " flash script causes flash player run slowly do u want abort
script ". even it's not the problem of infinite loop.in that i am
passing huge data.
please help me how to avoid this situation.It is not apparent from your posting, but if you are parsing
large amounts
of XML data you could be faced with this issue if not just a
general
performance issue.
Solution is look at how to consume the data in smaller
pieces. In other
words only download the needed data to deal with the
immediate needs of the
Flash movie and based on user interaction load additional
data. A possible
drawback is where user interaction required the data
instantly such as
rollovers for large numbers of objects.
Another solution is look at streamlining the data such as
reducing nested
levels in XML.
Finally you may have an infinite loop that depends on the
data. With test
data the code runs fine, however certain values trigger an
indefinite loop.
I am working with a few large corporate clients and the
mentality of dumping
data in large vats to the client does not take into
consideration the
technology and performance. It should be the other way round
-- know the
capacity of the technology which is the Flash player.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"kalyanchakri" <[email protected]> wrote in
message
news:ed42oe$l6j$[email protected]..
> hi all,
>
> when i am running my swf file i am getting the message
saying that " flash
> script causes flash player run slowly do u want abort
script ". even it's
> not
> the problem of infinite loop.in that i am passing huge
data.
> please help me how to avoid this situation.
>
> -
Forest trust - security issues and how to avoid
Hi guys,
I have few questions.
1/Planning do Forest trust.We have Forest + Domain functional level at WS 2003 level.
In case of trust what are the security issues and how to avoid them? Meant something like browsing in AD, possible hacking from new destination etc.
2/ What in case that the trust will not be possible create because of security reasons (rejected by other company)? What can be an workaround for that? I have idea with resource forest or ADFS? Any other ideas?
Thanks in advance or for a good link to study about.
Petr WeinerOther than broad general answers it is difficult to answer this from the negative side. I work in a very large company where we have hundreds of domains with one way trusts in place and I don't believe we have any security issues in place. With
the large numbers of domains we can't operate in any other fashion. We have a user forest and many resource forests. All of our domains and forests are operated and maintained within the company but if you have domains operated by different departments
then you can run into issues on who trusts. Also if you need to have a situation where you need to trust other companies then you start to look at ADFS, you can also use it internally for many applications as well as cloud services. But as I already
mentioned you haven't detailed what exactly is going on so it is hard to try and give you a concrete answer.
Paul Bergson
MVP - Directory Services
MCITP: Enterprise Administrator
MCTS, MCT, MCSE, MCSA, Security, BS CSci
2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
Twitter @pbbergs http://blogs.dirteam.com/blogs/paulbergson
Please no e-mails, any questions should be posted in the NewsGroup.
This posting is provided AS IS with no warranties, and confers no rights. -
Can u pls suggest how we avoid this
hi,
SELECT matnr
FROM mara
INTO TABLE l_i_mara
WHERE matnr IN r_matnr. is going to dump because of the number of records in the range r_matnr..90,999..
Can u pls suggest how we avoid thishere is it:
Local range
DATA : lr_kostl LIKE LINE OF gr_kostl,
lr_ktopl TYPE RANGE OF ktopl WITH HEADER LINE.
Local variables
DATA : lv_kostl_c(10) TYPE n,
lv_kostl_d(10) TYPE n,
lv_kostl_p(10) TYPE n.
cost centers to global range
lt_csks = gt_csks.
lr_kostl-sign = 'I'.
lr_kostl-option = 'BT'.
LOOP AT lt_csks INTO gw_csks.
Cost centers into ranges
IF gw_csks-kostl CO '0123456789'.
Only numbers in the cost center code ==> Try to create range
lv_kostl_c = gw_csks-kostl.
IF lv_kostl_p IS INITIAL.
First line or just finished
lr_kostl-low = lv_kostl_p = gw_csks-kostl.
ELSE.
lr_kostl-high = gw_csks-kostl.
lv_kostl_d = lv_kostl_c - lv_kostl_p.
IF lv_kostl_d EQ 1.
Compare if cost center is next (i.e. +1) ==> next line
lv_kostl_p = gw_csks-kostl.
ELSE.
Not next ==> append line
lr_kostl-option = 'BT'.
lr_kostl-high = lv_kostl_p.
APPEND lr_kostl TO gr_kostl.
lv_kostl_p = gw_csks-kostl.
ENDIF.
ENDIF.
ELSE.
Cost center code contains letter ==> single line
lr_kostl-option = 'EQ'.
lr_kostl-low = gw_csks-kostl.
APPEND lr_kostl TO gr_kostl.
ENDIF.
ENDLOOP.
In the lt-csks there are single values of cost centers (in sorted order!), I try to build ranges from that. Let me know if you don't understand anything.
ec -
How to print page numbers in adobe form
Hi,
Can anybody tell me how to print page numbers in adobe form.
Thanks in advance
ChaitanyaHi,
Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
My requirement is to have the user control on current page. For Example:
Example for a Invoice with 5 PO items (stands on 2 pages) :
1st page is the letter : no page number
2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
I have used the follwing java scripting:
this.rawValue = wv_pages - xfa.layout.page(this)
where wv_pages is total no of pages calculated from print program.
Please help me in this regard with some formcal or java scripting conditions.
Thank You,
Regards,
Naresh. -
i have one database table called "sms1" that table is updated every day or on daily basis it has the following fields in it:
SQL> desc sms1;
Name Null? Type
MOBILE NUMBER
RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)
SNO NUMBER
INDATE DATE
From this table the is one column "RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)" . I am splitting it into different columns like :
SQL> desc smssplit;
Name Null? Type
R VARCHAR2(2 CHAR)
C VARCHAR2(2 CHAR)
S VARCHAR2(1 CHAR)
TC VARCHAR2(3 CHAR)
NA VARCHAR2(3 CHAR)
TC2 VARCHAR2(3 CHAR)
NA2 VARCHAR2(3 CHAR)
TC3 VARCHAR2(3 CHAR)
NA3 VARCHAR2(3 CHAR)
TC4 VARCHAR2(3 CHAR)
NA4 VARCHAR2(3 CHAR)
WTHER VARCHAR2(10 CHAR)
SNO NUMBER
INSERTDATA VARCHAR2(25 CHAR)
Now I am written a procedure to insert the data from "Sms1" table to smssplit table...
CREATE OR REPLACE PROCEDURE SPLITSMS
AS
BEGIN
INSERT INTO scott.SMSSPLIT ( R,C,S,TC,NA,TC2,NA2,TC3,NA3,TC4,NA4,WTHER,SNO)
SELECT SUBSTR(RCSTCNATCNATCNATCNAWTHER,1,2) R,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,3,2) C,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,5,1) S,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,6,3) TC,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,9,3) NA,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,12,3) TC2,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,15,3) NA2,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,18,3) TC3,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,21,3) NA3,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,24,3) TC4,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,27,3) NA4,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,30,10) WTHER, SNO
FROM scott.SMS1 where SNO=(select MAX (sno) from SMS1);
END;
Now in order to update the second table with data from first table on regular basis I have written a job scheduler and I am using oracle 9.0. version...
DECLARE
X NUMBER;
JobNumber NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
job => X
,what => 'scott.SPLITSMS;'
,next_date => SYSDATE+1/1440
,interval => 'SYSDATE+1/1440 '
,no_parse => FALSE
:JobNumber := to_char(X);
END;
Now this job scheduler is working properly and updating the data for every one minute but it is taking or updating the duplicate values also ..like example:
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:49:16
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:49:16
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:50:17
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:50:17
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:51:19
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:51:19
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:52:20
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:52:20
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:53:22
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:53:22
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:54:45
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:54:45
Now I do not want the duplicate values to be updated ...and want them to ignore them.....
please I need a help on this query........How to avoid the duplicate values............Look at the posts closely:might not be needed if formatted ;)
create or replace procedure splitsms as
begin
insert into scott.smssplit (r,c,s,tc,na,tc2,na2,tc3,na3,tc4,na4,wther,sno)
select substr(rcstcnatcnatcnatcnawther,1,2) r,
substr(rcstcnatcnatcnatcnawther,3,2) c,
substr(rcstcnatcnatcnatcnawther,5,1) s,
substr(rcstcnatcnatcnatcnawther,6,3) tc,
substr(rcstcnatcnatcnatcnawther,9,3) na,
substr(rcstcnatcnatcnatcnawther,12,3) tc2,
substr(rcstcnatcnatcnatcnawther,15,3) na2,
substr(rcstcnatcnatcnatcnawther,18,3) tc3,
substr(rcstcnatcnatcnatcnawther,21,3) na3,
substr(rcstcnatcnatcnatcnawther,24,3) tc4,
substr(rcstcnatcnatcnatcnawther,27,3) na4,
substr(rcstcnatcnatcnatcnawther,30,10) wther,
sno
from scott.sms1 a
where sno = (select max(sno)
from sms1
where sno != a.sno
); ---------------> added where clause with table alias.
end;Regards
Etbin
Maybe you are looking for
-
CREATE SALES ORDER WITH REFERENCE TO INVOICE USING RECORDING
Hi, I wanted to know if it was possible to create a sales order with reference to an invoice using recording(SHDB transaction).If there is some other method please explain the method in detail(Its very urgent)
-
Function Module for Changing status of a Functional Location.
Hello, I am writing a Proxy for changing the Functional Location (T code IL02). I need to set the Deletion flag for the Functional Location. Can any body help me with how to do this. As data will be coming from XI and I have to update the Functional
-
In my SSIS Script I'm getting following error please help
Hi, I have script like : Variables varCollection = null; varCollection("User::DestinationFolder").Value = MonthwiseDirectory; But getting error like : Error 6 'varCollection' is a 'variable' but is used like a 'method' What i nedd to
-
¿Why my Windows 7 Pro have Kernel-Power error 41?
Hello, good morning, I installed Windows 7 Professional Edition and each time freezes and restarts, I open the event viewer and I see several critical events would like to see if someone can help me. They say "Event 41, Kernel-Power", I occasionally
-
Hello folks... Iam using oracle 10g r2 on windows and here is the java path D:\oracle\product\10.1.0\db_1\jre\1.4.2 C:\Documents and Settings\xxxi>java -version java version "1.4.2_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-