Trying to convert a date in text format to date or numeric
I've been given an excel file of members of a group, which includes listing of members' birthdays. These are in the format "26-Jul" in text characters. In order to sort by date for a birthday listing, I'm stuck trying to set up a calculation that would transform this to mmdd format that could be sorted on the month then the day. (no year is provided).
Any tips or steps to create this would be very helpful.
thanks,
-Tod
Hi Tod,
What works on my machine is this:
The "dates" in column A are text.
The formula in column B, filled down through rest of the column:
=RIGHT("0"&MONTH(A),2)&RIGHT("0"&DAY(A),2)
Then you can sort on column B.
SG
Similar Messages
-
Convert mm/dd/yyyy text format to date format
I imported a csv file and the date column is in text format. How do I convert it from m/d/yyyy text format to yyyy-mm-dd DATE format in Numbers v 3.1?
Thanks for any help you can give!UPDATE: I found that your formula didnt produce the correct result
It changed mm/dd/yyyy to yyyy/dd/mm — rather than the desired yyyy/mm/dd
By hacking at it, I found that changing the D column formulas around fixed this.
Your original function:
D2=RIGHT(A2,4)&"-"&MID(A2, B2+1, C2−B2−1)&"-"&LEFT(A2,B2−1)
Changed:
D2 =RIGHT(A2,4)&"-"&LEFT(A2,B2−1)&"-"&+MID(A2, B2+1, C2−B2−1) -
Updating date in text format to date field
I have 2 Strings which represent the date and time respectively. I need to load these into a date field. Every way I have tried has failed. Can anyone tell me how to get these Strings into the date field?
Thanks,
SteveAssuming these strings are in definite format concatenate them and use function to_date
For example if your date is 01-JAN-2000 and time 22:33-34
then use to_date('01-JAN-2000' | | '22:33-34', 'DD-MON-YYYYHH24:MI:SS')
More about date patterns - RTFM ;) -
How to convert XML message in text format by using HTTPS-Receiver adapter
Is it possible to convert XML message in text format when we use HTTPS as the receiver adapter?
If yes, how?
Thanks!
MrudulaHi Mrudula,
As far as i know there are no content conversion methodology for HTTPS as the recevier adapter.
Also you can read through these links to confirm the same:
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/sap_xi/sapximst30.htm
SAP NetWeaver - XML Communication Interface (CA-XML) [original link is broken]
Regards,
abhy
note: reward the helpful. -
How can i save a data in text format
how can i save a data in text format in labwindows cvi
Message Edited by Tikoy on 04-14-2010 11:30 PM
Solved!
Go to Solution.Hi,
If your data is in an array, the easiest way is to use the ArrayToFile function.
It automatically creates a file and puts your data in it according to the format you provide.
If you have individual samples that you need to write once in a while, you can either collect them into an array and then use ArrayToFile or open a file with fopen and write them as they are acquired with fwrite.
Hope this helps,
S. Eren BALCI
www.aselsan.com.tr -
Can't see HTML and Custom text format under data format tab in obiee.
Hi,
I want to add a java script to my report but I can't see HTML/Custom text format option under Data Format Tab--->"Treat Text as" menu.
My report is a union report.
For data column and numeric columns i can see custom option available but for text columns it is not visisble.
Any idea why it is not showing and what should be done here.
Any pointers are welcome.
Please help,it is really urgent.
Thank in advance!
Edited by: 810008 on May 18, 2011 10:03 PMHi,
Select text column (varchar column) -> Treat Text as -> custom text format ->Remove @ (default) -> add [html]<script>sometext(‘@’)</script> followed by your javascript
for eg:
[html]<script>buildGoogleChart(‘@’)</script> <head> <script type="text/javascript"> function show_alert() { alert("Hello! I am an alert box!"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html>
hope helps u.........
cheers,
Aravind -
Convert spool in the text format and send mail
Hi All
Can anyone tell me
how to convert the spool into the text format and send that in email as an attachment..
Points will be rewarded
URGENTHi,
Read spool using FM RSPO_RETURN_ABAP_SPOOLJOB
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = v_rqident "Spool Number
FIRST_LINE = 1
LAST_LINE =
TABLES
buffer = i_spool "Internal table output
You will get spool in internal table and then its your game, play the way you want.
Regards,
Mandeep -
Download sales order data in Text format -User exit
Hi Experts
I am very new to user exits, my requirement is if i go to sales order change mode and then press save, some of the details about the sales order needs to be downloaded in text format. Please give me the steps and procedures.
How to do this, please help me on this.
Regards
RajaramHi,
Go to include MV45AFZZ,u will find USEREXIT_DOCUMENT_SAVE.In this exit
u can get all the data from strcutures availabel thre..declare an internal table and fill the internal table with the data u want..andthen try for FM "GUI_DOWNLOAD" and pass the internal table data.I hope it might work..
Regards,
Nagaraj -
I have the Adobe Premiere 3.0 program...i know, i know...pretty ancient. But hey, it works for the time being...lo. My problem is, i keep creating videos from this program, and am unable to convert it into the format supported by Youtube...HEEELLLPPP!!! The format i am saving it in is, [.prel]. the formats acceptable are; MPE4 format [Divx, Xvid, or SQV3 instead of h. 264] at 640x480 resolution with MP3audio [64k momo]
After reading those stereo instructions, my question is....hoe do I convert an already designed video to fit these specs?
Thanks in advance for your assistance, and I love you all.Thanks Hunt, hun.
Been trying to figure this out for some time now. I am not that knowledgeable in the formats for videos being uploaded to different sites, but i am pretty good at creating videos. I am saving them in the format [.prel], and have no iea as to how to convert the format from - .prel, to {any other format}. I am looking on the program, and see no spot for conversion. i also have a program called prism video converter, which was unable to convert the format as wel, due to the fact that they dont support beginning formats of -.prel, as well. So i am within a rock a very very hard place right now. Is there a different program which i could install, which would allow me to convert the premiere videos i have created into another format? i recently downloaded the trial version of premiere pro. I hope this program allows me to take the saved project, and convert it into a usable format. Thanks again for all your assistance hun. Really appreesh it. -
Jpcap and capturing data in text format
Hey everybody!
I want to use jpcap to capturing all data sending from local computer, which contains words like 'sex', 'porn' etc.
1. Is it possible to achieve this using jpcap?
2. If the answer is yes, then please, give me small hint. I cant see any method in jpcap API to get String data from captured packets...
Best Regards,
Peter.If your need is to capture outgoing ( or maybe incoming data ) then consider using WireShark.
Available on Windows and Linux ( maybe Solaris... )
If you want to create something like network data capture/analyzer using jpcap then why can't you find this :
[http://netresearch.ics.uci.edu/kfujii/jpcap/doc/|http://netresearch.ics.uci.edu/kfujii/jpcap/doc/] -
Saving acquired data in text format instead of TDMS using the NI DAQ ANSI C code
Hello,
I would like to know how to change the code to make it save the file in .txt format instead of TDMS format.
It would be great if you could help me out with this !!!
I am attaching the DAQ mx ANSI C code for your reference
Thanks,
Haritha Srinivasan
Attachments:
TDMS-Cont Acq-Int Clk.zip 1360 KBHello Haritha, Hope you are doing great!
I think this covers up what you are looking for.
This has been covered in other forum before, please feel free to check it.
Regards,
LuisA -
Is it possible to mail the data in excel format in data tabs?
Hi all,
I need a few clarification .
We all know report data can be mailed in excel format.
But my excel is having 4 tabs of data.
Is that can also be mailed if so can you please guide...
Regards
sashi,
you can do it..
try the following given code..
*& Form process_email
* subroutine created for processing and sending the attachments to mail id.
FORM process_email.
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
*Body
docdata-obj_name = 'Mail_Excel_File'.
docdata-obj_descr = 'Excel file attachment'.
objtxt = 'Attached is the sample Excel file'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
*Attachment
n = 1. "for sending 1st attachment
DESCRIBE TABLE objbin1 LINES tab_lines.
objpack-doc_size = tab_lines * 255.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = n.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
docdata-obj_name = 'Excel_File_Attachment1'.
objpack-obj_descr = 'Excel File Attachment1'.
APPEND objpack.
n = n + tab_lines. "for sending 2nd attachment
DESCRIBE TABLE objbin2 LINES tab_lines.
objpack-doc_size = tab_lines * 255.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = n.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
docdata-obj_name = 'Excel_File_Attachment2'.
objpack-obj_descr = 'Excel File Attachment2'.
APPEND objpack.
n = n + tab_lines. "for sending 3rd attachment
DESCRIBE TABLE objin3 LINES tab_lines.
objpack-doc_size = tab_lines * 255.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = n.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
docdata-obj_name = 'Excel_File_Attachment3'.
objpack-obj_descr = 'Excel File Attachment3'.
APPEND objpack.
*Create the list of recipients
reclist-receiver = p_email1.
reclist-rec_type = 'U'.
reclist-express = 'X'.
APPEND reclist.
*Send the e-mail by using this function module
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
contents_bin = objbin_final
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
COMMIT WORK.
ENDFORM. "process_email
hope this helps
Regards
RItesh J -
Convert SAPScript text linse to normal stream text format
Hi Gurus.
We have a custom popup FM that displays text lines from a file provided by SAPScript text format.. (after u2018call function u2018READ_TEXTu2019).
However, for example, the Tab indent markers in this text u2013 represented by two commas u2018,,u2019 are printing instead of spaces representing the indent in our popup.
We are searching a FM that takes the SAPScript text format and converts it to plain text format (before our Z_popup is called) where the Tab markers are replaced by spaces (in our case this is four spaces for each Tab mark).
We have already tried FMu2019s: CONVERT_text; CONVERT_ITF_TO_STREAM_TEXT; CONVERT_ITF_TO_STREAM_TEXT. But none of them seem to fulfill the requirements stated above.
Can anyone please advice?Hi Arnie,
Instead of searching for FM you can manually code which is flexible.
"after gettting text from READ_TEXT in lt_tline.
Data: lt_string type table of string,
lv_string type string.
CONSTANTS: c_par TYPE char2 VALUE ',,'. " Sign for tabs
LOOP AT lt_tline INTO wa_tline.
CONCATENATE lv_string wa_tline-tdline INTO lv_string SEPARATED BY ' '.
REPLACE ALL OCCURRENCES OF c_par IN lv_string WITH ' '.
Append lv_string to lt_string. "if needed in string table
ENDLOOP.
Regards,
Kiruba -
Converting File Content.Unexpected XML format
Hello,
I need to convert file content in File Receiver Adapter.
In my opinion, i have unexpected XML format of a payload message. (At least, the format does not contain a structure element):
That is,
I have the XML message:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_BW ID="123" BirthDay="20/03/1969" Title="consultant" Name="John" LastName="Smith" xmlns:ns0="http://sap.com/xi/BASIS"/>
I need to convert it into plane text format with fieldseparator.
How to convert this xml message into plane text format if it does not contain any structure elements (that is, <struc1> <field1>value</field1> </struc1>) according to help guide?
How should i configure RecordSet in File Adapter?
I am confused.
Thank youIgor,
Are u getting the format from the source?
<ns0:MT_BW ID="123" BirthDay="20/03/1969" Title="consultant" Name="John" LastName="Smith" xmlns:ns0="http://sap.com/xi/BASIS"/>
If yes, then create one more data type with structure
<Record>
<ID/>
<BirthDay/>
<Title/>
<Name/>
<LastName/>
</Record>
And do direct mapping. So now you can easily configure the content conversion for the target format isn't it?
Its my thought, I don't know whether its feasible for you or not..
raj. -
Need a POP-UP which can display internal table data in ALV format
HI All,
I need to display INTERNAL TABLE values through a POP-UP. Only condition is that the window with the internal table data should be in ALV format and not in TEXT only format.
To clarify, I used FM 'POPUP_WITH_TABLE_DISPLAY_OK' and 'POPUP_WITH_TABLE_DISPLAY', but both display the data in TEXT format and there is no provision to put the FIELD names there. Everthing needs to be put into internal table and it displays it in text format.
So I want a FM where I can display internal tabel data in ALV format( same format that would appear if you creata search help for a filed and output window would have all the ALV features like SORT buttons etc.
Hope there is some FM to achieve this ALV format data thing.
Thanks in advance for all your help.
Regards
FX3check this
REPORT y_demo_alv_3.
TYPE-POOLS: slis.
DATA: BEGIN OF i_outtab OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: w_chk TYPE c. "For multiple selection
DATA: END OF i_outtab.
* I_OUTTAB TYPE SFLIGHT OCCURS 0,
DATA: i_private TYPE slis_data_caller_exit,
i_selfield TYPE slis_selfield,
W_exit(1) TYPE c.
PARAMETERS: p_title TYPE sy-title.
START-OF-SELECTION.
SELECT * FROM sflight INTO TABLE i_outtab.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = p_title
i_selection = 'X'
i_zebra = 'X'
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
i_checkbox_fieldname = 'W_CHK'
* I_LINEMARK_FIELDNAME =
* I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = 'I_OUTTAB'
i_structure_name = 'SFLIGHT'
* IT_FIELDCAT =
* IT_EXCLUDING =
* I_CALLBACK_PROGRAM =
* I_CALLBACK_USER_COMMAND =
* IS_PRIVATE = I_PRIVATE
IMPORTING
es_selfield = i_selfield
e_exit = w_exit
TABLES
t_outtab = i_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE i000(0k) WITH sy-subrc.
ENDIF.
*****the internal table is modified with a cross sign for marking the
***rows selected
LOOP AT i_outtab WHERE w_chk = 'X'.
WRITE: / i_outtab-carrid, i_outtab-price.
ENDLOOP.
Maybe you are looking for
-
i used to have 900+ songs stored on my HP laptop, which i can no longer use and bought new toshiba laptop. when i tried to synce 900 songs from iPOD to the toshiba it only gave me 330 songs and not the entire library stored on the iPOD. have tried sy
-
Crashes on New York Times home page
I installed 3.6.15 on a Vista laptop this morning and it crashes on the NYT home page as well as support.mozilla.com
-
K7N420 Bios ver 2.27 has a problem
I just discovered a problem with bios version 2.27. After flashing to it my Sidewinder joystick would show as not connected. I tried everything to bring it back. See, it worked fine until I treied to fix a problem with the nic not working with a n
-
Below is my program which takes a file as an input and output the same file but with a word in each line. e.g this is an example //start import java.io.*; import java.util.*; import java.util.StringTokenizer; class FileReaderDemo { public static void
-
Zoom in frame by frame is this possible?
trying to zoom in on a massive scale frame by frame really - is there any way of doing this? I'm trying to animate and object frame by frame - or two frames at a time