Convert to Format
Hi
w_rwbtr is a character field.
Suppose the value of w_rwbtr is 1234567
I want to display it in the format
1,234,567.00
Can any one help me please.
Will reward helpful answers.
check this...
data: pack type p DECIMALS 2,
field type char10 VALUE '1234500'.
pack field to pack.
*move field to pack.
write field.
write : pack.
You can use PACK command or directly use MOVE TO
Similar Messages
-
How to convert date format(mm/dd/yy) into dd-mm-yy
I want to convert date format(mm/dd/yy) into dd-mm-yy
like 12/23/06 into 23-sep-06hey, you can use SimpleDateFormat to format your date. this is sample code, maybe could help you.
class dateFormat
public static void main(String[] args)
Date now = new Date();
System.out.println("Before format : "+now);
SimpleDateFormat sdf = new SimpleDateFormat( "dd-MM-yy" );//Change your date format in here.
String display = sdf.format(now);
System.out.println("After format : "+display);
}If you already understand about my sample code, i think it's easy to make your own date format. Just modified few line of my code. -
How to convert date format dd.mm.yy into yyyymmdd?
Hello experts,
how to convert date format dd.mm.yy into yyyymmdd?
Thanx
AxelHi
go through these previous threads on similar question
https://forums.sdn.sap.com/click.jspa?searchID=673529&messageID=1763194
Date Conversion in Flat File
converting the DATE(yyyymmdd) into MONTH(yyyymm) format
Date Format Conversion from MM.DD.YYYY to YYYYMMDD
gives clear idea
Reagrds
Kiran
Message was edited by:
ravi kiran naalla -
Adobe Product API for converting mulptiple formats into PDF and to Embed PDF into PDF ?
Hi Team,
Is there any adobe product that allow us to convert multiple formats into .pdf format and also allow us to attach (embed) other pdf files object into a pdf, is there any .net API for that, I want to do this through programming.
Regards
AmitWe want to use this product for our application, for the purpose of converting different files formats into a PDF file and also for attaching files into a single PDF using a web application and windows service. I have to evaluate some features and point regarding this product which are as below:
1. PDF form creation in future requirement.
2. Maximum files size that i can convert into PDF.
3. Memory management when converting N number of files.
4. Compatibility with C#, .Net Framework 4.0, using MS Visual Studio 2010.
5. Support of the product for future.
6. Primary requirement to use PDFLiveCyle for above features.
7. Basic guidelines before using PDFLiveCyle.
8. Ease of coding using PDFLiveCyle.
9. 32bit or 64bit support.
10. Lisencing information
Regards
Amit Mishra -
How to convert date format to ISO8601 in Oracle BPEL
Hi,
I need to convert date format from YYYY/MM/DD 00:00:00 to YYYY-MM-DDThh:mm:ss format in oracle BPEL. Can any of you help me out. Thanks in advance.Hi Anuj,
I have use the below mentioned code to convert the date format.
<db:P_X_DATE_FROM>
<xsl:value-of select='concat(substring(../VALUE,1.0,4.0),"-",substring(../VALUE,6.0,2.0),"-",substring(../VALUE,9.0,2.0),"T",substring(../VALUE,12.0,8.0))'/>
</db:P_X_DATE_FROM>
Thanks & Regards,
Jyotirmoy. -
How to convert Date format into day in ssrs reports?
Hi
How to convert date format into day?
10/01/2010 as like Monday like that?=weekdayname(datepart("w",Fields!mydate.Value))
-Vaibhav Chaudhari -
Need help in converting date format
Hi,
Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
Thanks,
Raj.I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
Edited by: user11165753 on 7-dec-2009 23:50 -
Converting iMovie format to a format that I can edit with Adobe Premier Pro
How can I convert iMovie format to a format that I can edit with Adobe Premier pro 7 program?
Install the free flip4mac player and you'll be able to view it.
-
Function module to convert date format from yyyymmdd to mmddyyyy format
function module to convert date format from yyyymmdd to mmddyyyy format
Hi Rajitha,
Do like this
Data: Var1 type sy-datum,
var2(8) type c.
var1 = sy-datum.
Concatanate var1+4(2) var1+6(2) var1+0(4) into var2.
write var2.
Reward Points if this helps,
Satish -
Is there any function module to convert date format?
Is there any function module to convert date format from mm/dd/yyyy to dd.mm.yyyy or sy-datum?
Hi,
wirte statement converts any date fomat in system date fromat
WRITE w_DateTO w_date_sys.
Regards,
Sriram -
How to convert date format to MM/DD/YYYY
Hi,
How to convert date format to MM/DD/YYYY.
Thanks,
Senthilhi,
tri with this function module
data :l_date(10) type c
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = SY-DATUM
IMPORTING
DATE_EXTERNAL = l_date.
this function module converts date from 20050601 to external format which is specified in user profile
cheers,
sasi -
How to convert date format into sap standard format?
Hi All,
In SAPUI5 screen i have one simple form in form i have date field which is format (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
I want convert date format in sap format (YYYY/MM/DD).
One more issue, when i am fetching the data from sap table,but the date display with time and time zone.
eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
I want to display only date.
Thanks,
Prashant.Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
I checked in console, but date is display like mm/dd/yy
In my controller.js file i have written code
OData.request
requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "GET",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch"
function (data, response){
var header_xcsrf_token = response.headers['x-csrf-token'];
OData.request
requestUri:
"http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "POST",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token
data:
Empid:Emp_id,
Empname:Emp_name,
Start_Date:Emp_sdate,
// End_Date:Emp_edate,
Status:Emp_status,
City:Emp_city,
Location:Emp_location,
and in my CREATE_ENTITY method
method ES_SODATA_CREATE_ENTITY.
DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
ls_userinfo TYPE zsodata.
DATA ls_temp TYPE sy-datum.
* Read Request Data
io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
* Fill workarea to be inserted
ls_userinfo-Empid = ls_request_input_data-Empid.
ls_userinfo-Empname = ls_request_input_data-Empname.
ls_userinfo-Start_Date = ls_request_input_data-Start_Date.
ls_userinfo-End_Date = ls_request_input_data-End_Date.
ls_userinfo-Status = ls_request_input_data-Status.
ls_userinfo-City = ls_request_input_data-City.
ls_userinfo-Location = ls_request_input_data-Location.
* Insert Data in table ZUSERINFO
INSERT zsodata FROM ls_userinfo.
IF sy-subrc = 0.
er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
ENDIF.
endmethod.
But still i am getting an error
POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
I am able to insert all field except date field. How to insert date field in sap table. -
Convert date format yyyy-mm-dd to yyyymmdd
Hi All,
Could you please tell me how to do the mapping format to Convert date format yyyy-mm-dd to yyyymmdd
or
Please provide any UDF for this conversion.
Thank you .
Regards,
Bharat KumarHI ,
You can easily do that by using the standard datetransformation fuction . in the property of that function put your coming source and desired target format . However once you specify the source format then the source field should always be in thaat format
Regards,
Saurabh -
How to convert Julian format date to regular date format
Hi,
I'm trying to convert Julian date(e.g. 2455657) passed to regular date format(e.g. 2011/4/6), but the Julian date is shown without conversion.
I set the following code, and changed the format to "Date" with "yyyy/M/d" format, but "2455657" is displayed, not "2011/4/6".
<?xdofx:to_date(HIRE_DATE_J,'J')?>
I also set the following with "Text" format field, but it still shows "2455657".
<?xdofx:to_char(to_date(HIRE_DATE_J,'J'),'YYYY/MM/DD')?>
How can I convert Julian format to regular date format?
Thanks in advance
ToruTake a look at the following post: http://blogs.oracle.com/xmlpublisher/2007/08/more_date_calculations.html
and look at the comments section. Based on the comments, it appears that you can not convert from Julian format and you would have to do this in your query.
Thanks,
BIPuser -
Convert date format YYYYMMDD to DD.MM.YYYY
hi
i was wondering is there a FM which convert date format YYYYMMDD to DD.MM.YYYY
instead of u know cutting the YYYY and MM and DD and concatement them againHi ,
See this piece of code
Data : w_date type dats value '20080903',
w_date1(10),
Constants : C(1) value '.'.
w_date1 = w_date.
concatenate w_date+6(2) w_date+4(2) w_date+0(4) into w_date1 separated by C.
Write : / w_date1.
With Regards.
Alwasy Learner -
Question about get web service result in actionscript and convert data format
Hi, All
I have question about how to get dataset from web services
and put it in tree structure. I have 2 questions about this:
1, How can I get data correctly in actionscript?
I have no problem to get data by
<mx:ArrayCollection id="acFolder"
source="{mx.utils.ArrayUtil.toArray(MyGServices.getFolder.lastResult)}"
/>
And display in datagrid.
But when I try to use
public function
handleFolderContents(event:mx.rpc.events.ResultEvent):void{
arData=mx.utils.ArrayUtil.toArray(event.result);
acData=new ArrayCollection(arData);
input.text=acData.getItemAt(0).id;
Seems I can’t get data, it always say:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
2, how to convert data format
I get data from web service and want to convert it to tree
structure, as mention below:
I get:
<Array>
<id>111</id>
<Name>Production1</Name>
</Array>
<Array>
<id>222</id>
<Name>Production2</Name>
</Array>
Convert to:
<mx:XMLList id="treeData">
<node>
<node label="Production1" data="111">
<node label="Production2" data="222"/>
</node>
</node>
</mx:XMLList>
Please help me.
Thanks.First, don't specify the package path in the argument
declaration. Instead import the event object:
import mx.rpc.events.ResultEvent;
The docs state this emphatically.
Second, try "lastResult", in place of "result":
arData=mx.utils.ArrayUtil.toArray(event.lastResult); // I am
not positive about this. I maybe recall reading that result was ok
for the event object, but maybe not.
Finally, why do you want to convert the xml? You certainly
could, but it would be a manual process, recursively reading the
existing xml nodes and building the new structure, but again, why?
Just use a labelFunction if necessary to display the nodes as
you wish.
Tracy
Maybe you are looking for
-
Is there actually a way to back up attached drives and have it work?
I have 2 identical 500GB drives attached to my Mac Mini (media computer). One of them contains nothing but my iTunes library (a little over 120GB) and I was just manually copying that to the other once a week or so. After reading up on Time Machine i
-
Switching Computers: How Do I Transfer My Library The Easy Way?
There are several parts to this question. So I'll try to be as clear as possible. Here's the story, I bought a new laptop over 1 year ago but I'm not able to transfer my library as it is exactly on the old one. So now I think it's high time I switche
-
Images are not loading in Adobe 8
Does anyone know why images in PDF (from word to PDF)not appear? I've tried many ways but the images just not visible. Any help are much appriceated. Thanks.
-
Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6
Hi, I have successfully submitted 2 versions of the application. There are 2 different versions for iPad and iPhone separately. These were developed using Adobe Flash CS6 and AIR SDK - 4.0.0.1628. The category is Lifestyle and app is free. Now I want
-
Camera Profile Beta - will it port?
First, thank you very much to Adobe for creating these new camera profiles per: http://labs.adobe.com/wiki/index.php/DNG_Profiles#Camera_Profiles_and_DNG_Profile_Editor For the Fuji S5 and Nikon D80 this makes a major difference. So, here's the quest