Converting Comma into Dot for Amount value
Hi All,
I need to convert the amount value in comma to dot say 1000,00 to 1000.00.Any function module is there to convert it.After converting it i need to pass this value as exporting parameter to a function module having data type as character(lenght 13).
Thnks
Deb
Hello Deb,
Try the code below:
DATA:
V_AMT TYPE WRBTR VALUE '5000,00',
V_INT1 TYPE NUMC10,
V_DEC1 TYPE NUMC2,
V_DATA TYPE CHAR13.
V_INT1 = TRUNC( V_AMT ).
V_DEC1 = FRAC( V_AMT ).
CONCATENATE V_INT1 '.' V_DEC1 INTO V_DATA.
WRITE: V_DATA.
Hope this helps.
BR,
Suhas
Similar Messages
-
I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?
You can't.
-
What is the best video converter (asf into AVI) for mac mini ox 10.5.8 leopard ppc?
Try HandBrake 0.9.5 GUI
HandBrake-0.9.5-MacOSX.5_GUI_i386.dmg
Download
Above from:
https://handbrake.fr/old.php
Also you posted this same question earlier (in Leipard Server forum) but did not receive any replies
https://discussions.apple.com/message/26541868#26541868
In the future mention that your tried -
Friends can you tell me what is the best video converter (asf into AVI) for mac ox 10.5.8 leopard ppc?
ThanksHi Mazdauk, To convert ASF to AVI, I recommend you the iorgsoft video converter which I have been using. It claims to support ASF as input and AVI as output. Anyway, I haven't converted ASF to AVI, most of the time, I convert MTS to MP4. You can have a try first.
-
Comma separated column into rows for each value
experts,
I have a two column table. The second column has comma separated string values. How can I put the values separate for each comma separated and make one row for each value?
example,
column1 | StringColumn
s1 | test, joy, happy
s2 | USA, England, India
I want the result to be like below
column1 | StringColumn
s1 | test
s1 | joy
s1 | happy
s2 | USA
s2 | England
s2 | India
thanks in advance
ebroHello ebro,
See the following for a possible solution:
http://gallery.technet.microsoft.com/scriptcenter/Convert-Small-CSV-Value-to-ffc142ff
Olaf Helper
[ Blog] [ Xing] [ MVP] -
How to change the comma and dot for Pricing
Dear All,
As per the requirement, we need to change the Comma as dot and dot as comma for all the condition type values.
Please let me know where we have to do this setting.
Also explain, what is the impact on FI after this change.
Regards,
MullairajaHello,
I hope you are talking about decimal notation in User defaults. You may choose the options in transaction SU3->Defaults->Decimal Notation.
This is user-specific settings and there will not be any impact on applications.
Thanks,
Venu -
Can't load/import converted video into itunes for sync
I converted a video into ipod format by 2 diff software. They seem to have converted correctly as I can play them in apple quicktime. I tried to bring them into itunes for sync, but can't bring them. I tried dragging into movies, tried import, tried add files. Non of them working. Can anybody help me in this, ho can I bring the file into itunes? I am using itune 7, should I go back to old ver (6.x..)?
I just converted some TV shows with iSquint, and drug them over to movies and presto they were there... I then when into Info, changed them to TV shows and they moved over to TV Shows.
It works. -
How can I create a fade (for my purposes, from black to white) using identically sized individual dots? I don't want halftone, because the size of the dots varies. I want a fade, starting from 100% concentration (black, with no space) to 0% concentration (no dots). Anyone know how to do this? Thanks!
Make a gradient and use the Color Halftone filter on it. Convert to grayscale first because you only want the black dots, and change the screen angle to 90 degrees.
Use as overlay, or as a mask: -
Converting row into column for work area.
Hi,
I have a very simple requirement.
Let we have a work area <WA> with fields F1, F2 and F3 and corresponding value as V1, V2 and V3 respectively. WA-F1 = V1,WA-F2 = V2, WA-F3 = V3 .
F1 F2 F3
V1 V2 V3
Now my requirement is I want this field name and value as entry of new internal table with three entries, like shown below.
F V ( F and V are field name of new internal table)
F1 V1
F2 V2
F3 V3
So our new table have three entries now.
One way have done is, as I know the field name so i read its value and append them one by one in new table, but it doesn't seem good and time consuming if number of fields are quite large let say 50. Then we have to append 50 times.
Do some one have other way to do this, any function module,class or any new logic.
Thanks in advance.
Hemant.Hi hemant,
Use method cl_alv_table_create=>create_dynamic_table to get dynamic internal table, using that we can get ouput in the above said format in ALV.
Example:
Say your internal table is declared like
matnr type mara-matnr,
code type wgh01-wwgha,
desc type wgh01-wwghb,
qty type mseg-menge,
sample output:
matnr--desc1desc2--
desc3
12354--34--
10
1234 is material and 3;4;10 are respective quantity
Ur field catelog will be:
lcat-fieldname = 'HEAD'.
lcat-datatype = 'CHAR'.
lcat-seltext = 'Category'.
lcat-intlen = 128.
lcat-outputlen = 50.
append lcat to fieldcat.
clear lcat.
lcat-fieldname = 'MATNR'.
lcat-datatype = 'CHAR'.
lcat-seltext = 'matnr'.
lcat-intlen = 4.
lcat-outputlen = 50.
append lcat to fieldcat.
clear lcat.
Dynamic fields:
loop at it_final into wa_final.
read table fieldcat into lcat with key fieldname = wa_final-code.
if sy-subrc <> 0.
lcat-fieldname = wa_final-code.
lcat-datatype = 'CHAR'.
lcat-seltext = wa_final-desc.
lcat-intlen = 17.
append lcat to fieldcat.
clear lcat.
endif.
endloop.
call method cl_alv_table_create=>create_dynamic_table
exporting
i_style_table =
it_fieldcatalog = fieldcat
i_length_in_byte =
importing
ep_table = newfield
e_style_fname =
exceptions
generate_subpool_dir_full = 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.
assign newfield->* to <dynamic_cat>.
create data newdata like line of <dynamic_cat>.
assign newdata->* to <dynamic_value>.
endform. " buildcat
populate value to the dynamic internal table********
form loadata .
loop at it_final into wa_final.
assign component 'HEAD' of structure <dynamic_value> to <fs1>.
<fs1> = wa_final-head.
assign component 'MATNR' of structure <dynamic_value> to <fs1>.
<fs1> = ' '.
assign component wa_final-code of structure <dynamic_value> to <fs1>.
<fs1> = wa_final-qty.
at end of head.
append <dynamic_value> to <dynamic_cat>.
clear : <dynamic_value>.
endat.
clear : wa_final.
endloop.
You have to pass <dynamic_cat> table in the ALV Grid display function module.
Regards,
Aswin. -
Convert flv into format for iMovie
I like to convert my YouTube downloads (FLV) into a format which can be used in iMovie. Which free converter is recommended?
I am using Total Video Converter. You can search it by google, the first result will be the right .
-
Convert comma delimed values to distinct records
Hello,
i wrote the following code to get the data from comma delimited row into distinct values to another table. say for example my data into column looks like this.
long_string column data looks like this:
11,12,14,16,13,18,17
11,12,13,15,16,17,18,19,20,30
11,20,30,40,67,90,87,65,76,43,23,56,78,90,12,22,34 - which doesn't have a comma at the end of the data.
i need to convert this into distinct record for each rows data.
i used mod function...
can some one help me.
DECLARE
cursor c_1 is select LONG_STRING from TEST;
rec c_1%rowtype;
temp_VAR varchar2(100);
size_of_VAR number;
number_of_VAR number;
i number;
cur_VAR varchar2(3);
begin
open c_1;
loop
fetch c_1 into rec;
exit when c_1%notfound;
temp_VAR := rec.LONG_STRING;
size_of_VAR := length(temp_VAR);
number_of_VAR := size_of_VAR/4;
if (mod (size_of_VAR,4) = 0) then
for i in 1..number_of_VAR loop
cur_VAR:=substr(temp_VAR,1,3);
INSERT INTO TEST_ST (LONG_ST_NUM)
VALUES ( cur_VAR);
temp_VAR:= substr(temp_VAR,5);
end loop;
else
dbms_output.put_line('Rules problem for LONG_STRING: ' || rec.LONG_STRING);
end if;
end loop;
close c_1;
end;
Thanks...Ah, I see, I took my requirement from the later posters as it wasn't clear from OP. It's not the aggregation problem that Listagg solves, but the inverse, disaggregation. I don't know a direct equivalent SQL function, but not to worry, it seems my weekend effort on another thread wasn't wasted because I can see a very simple variation on one of the solutions there that will solve this one very efficiently. It uses the model clause to iterate over the commas without any regular expression functions, XML, tree walks etc. to slow it down, and this approach should work for many similar problems. I'll add an id column so we know where the rows came from and a subid for ordering (you can drop them if you like), and an extra test record with no comma.
CREATE TABLE test_otn (id INTEGER, text VARCHAR2(4000));
INSERT INTO test_otn VALUES (1, '11,12,14,16,13,18,17');
INSERT INTO test_otn VALUES (2, '11,12,13,15,16,17,18,19,20,30');
INSERT INTO test_otn VALUES (3, '99');
INSERT INTO test_otn VALUES (4, '11,20,30,40,67,90,87,65,76,43,23,56,78,90,12,22,34');
SELECT id, numid, num
FROM test_otn
MODEL
PARTITION BY (id)
DIMENSION BY (0 i)
MEASURES (0 compos, 0 nxtpos, text, 0 numid, CAST ('' AS VARCHAR2(5)) num)
RULES
ITERATE (100) UNTIL compos[0] = 0
nxtpos[0] = Instr (text[0], ',', compos[0] + 1, 1),
num[ITERATION_NUMBER] = CASE WHEN nxtpos[0] = 0 THEN Substr (text[0], compos[0]+1)
ELSE Substr (text[0], compos[0] + 1, nxtpos[0] - compos[0] - 1) END,
numid[ITERATION_NUMBER] = ITERATION_NUMBER + 1,
compos[0] = nxtpos[0]
ORDER BY 1, 2
ID NUMID NUM
1 1 11
2 12
3 14
4 16
5 13
6 18
7 17
2 1 11
2 12
3 13
4 15
5 16
6 17
7 18
8 19
9 20
10 30
3 1 99
4 1 11
2 20
3 30
4 40
5 67
6 90
7 87
8 65
9 76
10 43
11 23
12 56
13 78
14 90
15 12
16 22
17 34
35 rows selected. -
Need to Convert Comma separated data in a column into individual rows from
Hi,
I need to Convert Comma separated data in a column into individual rows from a table.
Eg: JOB1 SMITH,ALLEN,WARD,JONES
OUTPUT required ;-
JOB1 SMITH
JOB1 ALLEN
JOB1 WARD
JOB1 JONES
Got a solution using Oracle provided regexp_substr function, which comes handy for this scenario.
But I need to use a database independent solution
Thanks in advance for your valuable inputs.
GeorgeGo for ETL solution. There are couple of ways to implement.
If helps mark -
How to convert hex into a string value
hei evryone!
can anyone please help me on how to convert a hex value into a string suppose.. Example i want to convert 4275646479 which is a hex value, into a string "BUDDY"? how will i do that???
Any suggestion, tutorial site would be appreciated?
Thx!something like this will convert string to byte[]
e.g.
you want to convert following.
656667 => ABC
String toConvert = "656667";
byte[] returnVal = String2byteArr (toConvert );
String FinalStr = new String(returnVal);
public static byte[] String2byteArr(String Result)
byte[] byteRet = new byte[Result.length()/2];
int k=0;
for (int j=0; j<(Result.length()); j+=2)
try
Integer I = new Integer (0);
I = I.decode ("0x"+Result.substring(j, j+2));
int i = I.intValue ();
if (i > 127)
i = i - 256;
byteRet[k++] = new Integer(i).byteValue();
catch(Exception e)
System.err.println(e);
return byteRet;
}// String2byteArr
Hope this will help you, So that i can get 3$ (:-)
Avi -
How to convert exponential data into number for the downloaded excelsheet
Hi
I have downloaded one field data i.e. having char of 50, into excel sheet and it is displaying as exponential in the excel sheet.
The data numbers should display as text only i.e 1236547896321 and not exponential
Is anyone can tell how we can do this
Thanks
PallaviHello Pallvai,
The problem of exponential is with the excel. Excel converts the large numbet into exponential.
To avoid this you can make the number into text then excel won't convert it into exponential.
For that you can do a simple trick. Just prefix a single quote ( ' ) in the field.
eg:
field = 1236547896321.
then,
constants c_quote type c value '''. "<-- single quote
concatenate c_quote field into field.
" This will make the EXCEL to consider this field as text not number and hence it will not be considered
" as exponential.
Hope this solves your problem.
Regards,
Sachinkumar Mehta -
Re: Display comma in a amount value.
Hi experts,
My requirement is i want to to display the comma in amount fields in script.
i was declared one internal table with 5 fields , in that 3 fields are amount fields , these 3 fields also i was declared as type char, because i have to do some calculations and add some text after the amount.
Here my problem is i want to display the amount value with commas and with out decimal places (12,34,500) like this.
i was removed the decimal places using 'MOVE_CHAR_TO_NUM' functin module , but i am not able to add the commas for the amount field , can any body let me know how to do this.
Thanks in advance.Hi..
You can give these amount fields type as some standard amount fields instead of char.
For Example. for netprice you can give..
data: begin of it_itab,
netpr type ekpo-netpr,
end of it/-itab.
Regards,
Vishwa.
Maybe you are looking for
-
i have a seal pack ipad mini 1 wifi and i want to upgrade to ipad mini 2 retinal display wifi is this possible , that apple take my ipad 1 wifi back and give to me new ipad retinal display wifi , i live in india, bhopal city
-
XML "Document root element is missing"
i have made a research in the forums but i have no definite solution about the error. my flash client sends XML stream to my ServerSocket. and i want to parse these XML datas. Document XMLDoc; DocumentBuilderFactory Factory = DocumentBuilderFactory.n
-
ISight external no picture recieved by others
Hi Firstly Macbook iSight works fine when video chatting through lan to web - no problems! Secondly G4 with external iSight 'appears' to work fine -ie picture preview, sound etc but when connected outside lan the recipient cannot see any pictures - s
-
I have been paying for Creative Cloud Photography plan and .....
I have been paying for Creative Cloud Photography plan and Photoshop Photography Program, I don't know if I should be. I want to be able to use Photoshop and Lightroom. Can anyone help?
-
GRC Process Control Architecture
Hi. I need to find a good documentation about the architecture of the GRC Process Control. I'm new with this technology. Any helps to me, please? Thanks