Remove the decimals value
Dear All,
Any Idea to remove the decimals value from the text ? my parameter declare as Character type.
eg : i want from 10000.000 become 10000
thanks
Dear All,
Any Idea to remove the decimals value from the text ? my parameter declare as Character type.
eg : i want from 10000.000 become 10000
thanks
hi,
for this we can use two method one is,
data : value type p decimals 0.
value = '10000.000'.
write : / value.
Output is = 10000
Second method,
data : value type i.
value = '10000.000'.
write : / value.
Output is = 10000
If u use packed decimals
data : value type p decimals 1.
value = '10000.000'.
write : / value.
Output is = 10000.0
Similar Messages
-
Want to remove the default value of a column in a table
HI
I have a table called User_ind. This table columns have default values as 'n' like
create table user_ind(
ind_num varchar2(1)
,group_allowed varchar2(1) default 'y'
,view_allowed varchar2(1) default 'y'
now i want to remove the default values How can i procede with this.
Urgent .
Thanks in advance.
Chaitanya.In Oracle 9i you cannot remove the DEFAULT, you can only change it to null:
alter table user_ind modify group_allowed varchar2(1) default null
You can check it using this one:
select table_name,column_name,data_default
from user_tab_columns
where table_name = 'USER_IND'
Best Regards
Krystian Zieja / mob -
How stop PS6 from removing the DPI value from an image when using "save for the web"?
How stop PS6 from removing the DPI-value from an image when using "save for the web"?
Example:
- Open a tif image, that contains a dpi value (resolution).
- Use the splice tool in PS6.
- Export the slices with "Save for web", as gif-files.
Then the dpi value is removed, the gif files has no dpi value (it's empty).
How can we stop PS6 from removing the dpi value when using "save for web"?
OR:
When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels
-
Read two CSV files and remove the duplicate values within them.
Hi,
I want to read two CSV files(which contains more than 100 rows and 100 columns) and remove the duplicate values within that two files and merge all the unique values and display it as a single file.
Can anyone help me out.
Thanks in advance.kirthi wrote:
Can you help me....Yeah, I've just finished... Here's a skeleton of my solution.
The first thing I think you should do is write a line-parser which splits your input data up into fields, and test it.
Then fill out the below parse method, and test it with that debugPrint method.
Then go to work on the print method.
I can help a bit along the way, but if you want to do this then you have to do it yourself. I'm not going to do it for you.
Cheers. Keith.
package forums.kirthi;
import java.util.*;
import java.io.PrintStream;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import krc.utilz.io.ParseException;
import krc.utilz.io.Filez.LineParser;
import krc.utilz.io.Filez.CsvLineParser;
public class DistinctColumnValuesFromCsvFiles
public static void main(String[] args) {
if (args.length==0) args = new String[] {"input1.csv", "input2.csv"};
try {
// data is a Map of ColumnNames to Sets-Of-Values
Map<String,Set<String>> data = new HashMap<String,Set<String>>();
// add the contents of each file to the data
for ( String filename : args ) {
data.putAll(parse(filename));
// print the data to output.csv
print(data);
} catch (Exception e) {
e.printStackTrace();
private static Map<String,Set<String>> parse(String filename) throws IOException, ParseException {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(filename));
CsvLineParser.squeeze = true; // field.trim().replaceAll("\\s+"," ")
LineParser<String[]> parser = new CsvLineParser();
int lineNumber = 1;
// 1. read the column names (first line of file) into a List
// 2. read the column values (subsequent lines of file) into a List of Set's of String's
// 3. build a Map of columnName --> columnValues and return it
} finally {
if(reader!=null)reader.close();
private static void debugPrint(Map<String,Set<String>> data) {
for ( Map.Entry<String,Set<String>> entry : data.entrySet() ) {
System.out.println("DEBUG: "+entry.getKey()+" "+Arrays.toString(entry.getValue().toArray(new String[0])));
private static void print(Map<String,Set<String>> data) {
// 1. get the column names from the table.
// 2. create a List of List's of String's called matrix; logically [COL][ROW]
// 3. print the column names and add the List<String> for this col to the matrix
// 4. print the matrix by inerating columns and then rows
} -
How to remove the default value of "Inventory No." in Equipment Master
Hi Experts,
Need your advise
How to remove the default value for the field "Inventory No" in Equipment Master? It will goes back to the default value(TRANSIT) when i delete or change the value.
Thank You
Best Regardsi think you cannot default this value from configuration, check is there any screen variant exist for your transactions IE01/IE02, else may be any user exit is active on the equipment master transactions.
Take help of your ABAPer and verify the above.
Praveen. -
ALV grid can we remove the repetation values in field & display as one .
Dear Freinds,
i have developed a custom development relating to a salarly report based on the orgunit, the output is coming however i have one doubt in alv output.
right now my internal table data having data as follows : (iam giving only some fields)
orgunit orgdesc Empno Empname
70000905 Human Resources 7056 Richard
70000905 Human Resources 7057 Reymond Jain
70000905 Human Resources 7058 Maria Gulz
70000905 Human Resources 7061 Jacob
now in my output i dont want to have the orgunit value 70000905 and orgdesc (human resources) shouldnt not be repeated . is there any option in ALV where we I can use in
the field cat ( any parameter) where i can set that we can make the orgid as one and remove the repeation.(iam using alv grid function module).
Please help me in this regard
Regards
SyamlaHi,
Before displaying sort ur internal table.
refer this code.
*& Form sub_display_data
text
FORM sub_display_data .
*--To sort the output through material number
DATA : lwa_sort TYPE slis_sortinfo_alv.
DATA : lit_sort TYPE slis_t_sortinfo_alv.
*--Pass the values to the table
lwa_sort-fieldname = 'PERNR'. "Field name in o/p inttable
lwa_sort-tabname = 'it_final2'. "Output Internal table
lwa_sort-spos = '1'. "Sort sequence
lwa_sort-up = 'X'. "Sort in ascending order
lwa_sort-down = ' '. "Sort in descending order
lwa_sort-subtot = 'X'. "Subtotal
APPEND lwa_sort TO lit_sort.
*--Pass the values to the table
lwa_sort-fieldname = 'WORKDATE'. "Field name in o/p inttable
lwa_sort-tabname = 'it_final2'. "Output Internal table
lwa_sort-spos = '2'. "Sort sequence
lwa_sort-up = 'X'. "Sort in ascending order
lwa_sort-down = ' '. "Sort in descending order
lwa_sort-subtot = ' '. "Subtotal
APPEND lwa_sort TO lit_sort.
*--Pass the values to the table
lwa_sort-fieldname = 'WEKLY'. "Field name in o/p inttable
lwa_sort-tabname = 'it_final2'. "Output Internal table
lwa_sort-spos = '3'. "Sort sequence
lwa_sort-up = 'X'. "Sort in ascending order
lwa_sort-down = ' '. "Sort in descending order
lwa_sort-subtot = ' '. "Subtotal
APPEND lwa_sort TO lit_sort.
wa_layout-colwidth_optimize = 'X'.
IF NOT it_final2[] IS INITIAL.
*--Call the function module to display the ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = wa_layout
i_callback_program = v_repid
it_fieldcat = it_fieldcat1[]
i_default = c_chk
i_save = c_save
it_sort = lit_sort
TABLES
t_outtab = it_final2
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
*--Message No data found
MESSAGE i888 WITH text-017.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " sub_display_data
Regards,
Prashant -
Remove the existing value in Search item for FK02
Hi,
How to remove the current field value in the serach item1 for the transaction fk02, and want to insert a value in number of records.
Thanks in advance .
Viji.Hi,
Do it using BDC recording of FK02.
Regards,
Sujeet -
SAP remove the default values when modify the default warehouse at SO lines
Hi All,
Whenever I change the default warehouse field at SO lines, all the default dimension values will be removed.
Is this normal for SAP operation?
Any setting to prevent it to remove all default values?
Thank you very much.
Best Regards,
VivianHi Vivian,
Check the link
I want to remove default warehouse condition
Regards
Jambulingam.P -
hi,
i want to print distinct value
example data is given below :
Jv.No hl.no col1 col2 col3 col4 col5
1 a12 xx yy zz 11 21
b23 xx yy zz 11 21
actuallly i m not printig the hl.no in his report , for u r reference i will show to u
col1 to col 5 values printing based on the serial
jval , jserial two columns
i am writing the code in formula column
if jserial=1 then
print jval ( for that serial wat value is stored in the table that should return)
like upto serial 5 should print
col1 to col5 all the values are same only it should print distinct value
like this
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
otherwise any one value is varrying as usaualawahtever is there that only print
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
xx yy zz 154 21
need o/p like this :
Jv.No col1 col2 col3 col4 col5
1 xx yy zz 11 21
xx yy zz 154 21hi,
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
misc hanjin 12E sl UK
job no & mbol no is one group
remainings values another group.
carrier , vsl , voy , lport,dport these values fetches from the column of JOB_DESC
data's strored in the table like this:
jobparent Job desc jobserial
1 misc 1
1 hanjin 2
1 12E 3
1 sl 4
1 UK 5
2 misc 1
2 hanjin 2
2 12E 3
2 sl 4
2 UK 5
i am writing the formula column in the datamodel of second group.
if jobserial = 1 then print the value of Misc in carrier , job_serial=2 then print the value of Hanjin into vsl column.
i need to avoid the duplicate value :
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
misc hanjin 12E sl UK -- This line not required
suppose carrier,voy or any one value is different then i need to print all the data
job no mblno carrier vsl voy lport dport
111 2000 misc hanjin 12E sl UK
ABCc hanjin 34D sl UK -
Removing the Duplicate Values from output without using Keyword DISTINCT
Hi,
I'm running the below query without DISTINCT Keyword and getting Duplicate results. can you please tell me what needs to be done if I want unique values without using Distinct.
select hra.Location_code
,hra.Description
,hra.Address_line_1
,hra.Address_line_2
,hra.Address_line_3
,hra.town_or_city
,hra.Region_1
,hra.Postal_Code
,hra.country
,hra.attribute1
,hra.attribute5
,hra.attribute6
,hra.attribute8
,hra.attribute9
,hra.attribute2
,hra.attribute3
,hra.attribute4
,hra.attribute7
,hra.attribute10
from hr_locations_all hra
,per_all_people_f papf
,per_person_types ppt
, per_person_type_usages_f pptuf
,hr_all_organization_units haou
,hr_all_organization_units haou1
where 1=1
and hra.business_group_id = papf.business_group_id
and hra.business_group_id = ppt.business_group_id
and pptuf.person_id = papf.person_id
and pptuf.person_type_id = ppt.person_type_id
and ppt.system_person_type = 'EMP'
and ((hra.inactive_date is null) or (trunc(hra.inactive_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and to_date('01/01/2012','mm/dd/yyyy') between trunc(pptuf.effective_start_date) and trunc(pptuf.effective_end_date)
and((papf.effective_end_date is null) or (trunc(papf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and ((haou1.date_to is null) or (trunc(haou1.date_to)>= to_date('01/01/2012','mm/dd/yyyy')))
and papf.business_group_id = haou.organization_id
and hra.location_id = haou1.location_id;Hi,
Try using this Code
select hra.Location_code
,hra.Description
,hra.Address_line_1
,hra.Address_line_2
,hra.Address_line_3
,hra.town_or_city
,hra.Region_1
,hra.Postal_Code
,hra.country
,hra.attribute1
,hra.attribute5
,hra.attribute6
,hra.attribute8
,hra.attribute9
,hra.attribute2
,hra.attribute3
,hra.attribute4
,hra.attribute7
,hra.attribute10
from hr_locations_all hra
,per_all_people_f papf,
per_all_assignments_f paaf,
per_person_types ppt
, per_person_type_usages_f pptuf
,hr_all_organization_units haou
--,hr_all_organization_units haou1
where 1=1
and
hra.business_group_id = papf.business_group_id
and hra.business_group_id = ppt.business_group_id
and pptuf.person_id = papf.person_id
and papf.person_id=paaf.person_id
and pptuf.person_type_id = ppt.person_type_id
and ppt.system_person_type = 'EMP'
--and ((hra.inactive_date is null) or (trunc(hra.inactive_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and to_date('01/01/2012','mm/dd/yyyy') between trunc(pptuf.effective_start_date) and trunc(pptuf.effective_end_date)
--and((papf.effective_end_date is null) or (trunc(papf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
--and((paaf.effective_end_date is null) or (trunc(paaf.effective_end_date)>= to_date('01/01/2012','mm/dd/yyyy')))
and to_date('01/01/2012','mm/dd/yyyy') between trunc(papf.effective_start_date) and trunc(papf.effective_end_date)
and to_date('01/01/2012','mm/dd/yyyy') between trunc(paaf.effective_start_date) and trunc(paaf.effective_end_date)
--and ((haou1.date_to is null) or (trunc(haou1.date_to)>= to_date('01/01/2012','mm/dd/yyyy')))
--and papf.business_group_id = haou.organization_id
and paaf.location_id=hra.location_id
and paaf.organization_id=haou.organization_id
--and papf.employee_number='1010008830'
and hra.location_id = haou.location_id; -
Is Measurement Units of Indicators properties Compare the Decimals values
In my report i have a decimal value like:- v1 = 20.21, v2 = 25.65
in showing the indicators but indicators doesn't appear in the panel, and when i convert it into integer(CInt) then it displays
Please help me to solve this.........
Bikky KumarSpecify the Size of an Indicator Using an Expression:
http://technet.microsoft.com/en-us/library/ee633674(v=sql.110).aspx -
Hi All,
I want to remove the decimal values of report output based on certain condition I am using code like this
type-pools: slis.
DATA: begin of itab6 occurs 0,
chk type c,
a type p decimals 2,
b type p decimals 2,
c type c,
end of itab6.
data: ls_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
wa_layout TYPE slis_layout_alv.
itab6-a = '1.12'.
itab6-b = '2.25'.
itab6-c = '+'.
append itab6.
append itab6.
append itab6.
append itab6.
ls_fieldcat-fieldname = 'A'.
ls_fieldcat-seltext_m = 'A'.
append ls_fieldcat.
ls_fieldcat-fieldname = 'B'.
ls_fieldcat-seltext_m = 'B'.
ls_fieldcat-decimals_out = 0. "this ll do
append ls_fieldcat.
ls_fieldcat-fieldname = 'C'.
ls_fieldcat-seltext_m = 'C'.
append ls_fieldcat.
wa_layout-box_tabname = 'ITAB6'.
wa_layout-box_fieldname = 'CHK'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = ls_fieldcat[]
IS_LAYOUT = wa_layout
TABLES
t_outtab = itab6[].
But still it is not removing the decimal value.
What could be the reason?
Regards
Sagar.Thanks Florian,
Issue resolve
Regards
Sagar -
How to set the default value of a database column to NULL
Hello,
I want to set the default value of a column (VARCHAR2(20) to NULL, nut I cannot figure out to do this. I tried the following editing the offline table with JDeveloper:
Default Value : <empty> -> On database NULL
Default Value: '' -> On database ''
When I create a new column, there is no default value on the database side and when I open the tabe properties in the database navigator I can see that the default value is (null). This is what I want to see in the other column as well. I don't know why sometimes a default value is visible on the database side (when generating form offline tables to database tables) and sometimes not.
Perhaps sombody can bring some light in this issue.
Thanks ThomasHello Shay,
I have the impression that you don't understand my problem. So here step by step:
1. Create a offline Table TEST with one column TEST: VARCHAR2(20). nullable=true, no default value.
2. Generate the table to the database
3. When you look at the table properties (columns) with the database navigator the following information is displayed (sorry for the formatting):
Column Name | Data Type | Nullable | Data Default | COLUMN ID| Primary Key | COMMENTS
TEST | VARCHAR2(20 BYTE | Yes | (null) | 1 | (null) | (null)
4. Now set the default value for the column TEST in the offline table for example to 'Test'
5. Generate the table to the database.
6. When you have a look at the database table, the default value is now 'Test' (as expected)
7. Now remove the default value of the column TEST in the offline table
8. Generate the table to the database
9. When you have a look at the database table, the default value is now NULL (in uppercase letters without parenthesis)
And this is where the problem starts!
When you generate the table again with the options "Alter/Manual Reconcile" the default value of the column test is considered to be different! But in fact it should'nt be different because nothing has been changed.
Best regards Thomas
Edited by: thmayr on May 28, 2009 9:05 AM
Edited by: thmayr on May 28, 2009 9:31 AM -
i'm getting this warning,but i dont know where is it located.please let me know,where should i rectify this?
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].Hello,
This seems not related to SQL Server but more related to Fusion or a missing DLL. The following resources may help you:
http://blog.mediawhole.com/2010/08/enable-fusion-assembly-binding-logging.html
http://jamesecampbell.blogspot.com/2011/11/how-to-enable-assembly-binding-logging.html
http://www.codeproject.com/Tips/141281/WRN-Asssembly-binding-logging-is-turned-OFF
http://stackoverflow.com/questions/5986930/assembly-binding-logging-is-turned-off
Please verify if a missing DLL is specified before the "WRN: Assembly binding logging is turned OFF" message.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
How can we remove the commas from the Formula value in SAP BW BEx query
Hi All,
How can we remove the commas from the Formula value in SAP BW BEx query
We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
Regards
Venkat.Do you want to remove the commas when you run the query on Bex Web or in RSRT?
Regards
Maybe you are looking for
-
Cost of Sales & Period Account.......
Hi SAP guru's, - What is the diff. between Cost of Sales Accounting and Period Accounting approach? - What is reconciliation ledger? what is diff between Reconciliation ledger and Special purpose ledger? sure we will assign good points thanks VK
-
Internal Order settlement to one value field in CO-PA (revenue and cost CE)
hi there, we want to settle an internal order to one CO-PA Value field. The problem is, that when on the internal orders are postings with CE type revenue and costs, in settlement it reduces the internal oder by the correct amount, but in CO-PA all v
-
Hello, for our business process, we need to map a single source message to multiple target messages (of different message types). The (ABAP)mapping takes care of this mapping, so I put a transformation step after my receiver step, that invokes this m
-
Web Service Security issue. need advice!!!
I intend to create a webservice which provides a service for updating a clients data at a remote location. In other words, this service will update values stored in the database. Other than making sure that a user may not access others' data, are the
-
How do I get rid of this U2 album?i despise them and everything they represent
U.2 how to obliterate?