Adding "th", "nd", "rd" or "st" to dates
Hi All,
Has anyone come across a date formatting function which can
add the appropriate "th", "nd", "rd" or "st" to a date?
I've done a fair bit of googling and haven't come across
anything which takes into account that not all numbers ending in 1
should have an "st" appended to them (e.g. 11) or for that matter
not all numbers ending in 2 should have a "nd" appended to them
(e.g. 12) and so on.
Kylie
Thank you for the direction to cflib.org, I'm not really an
experienced CF programmer, rather a designer looking after a CF
site, so I wouldn't try to write one.
You should really read people's messages properly before you
try to give them shtick though...I said not all numbers ending in
one should have an "st" appended to them and my example of this
exception was the number 11. Although I'm not proficient with CF, I
am proficient with the English language. Obviously 11 and 12 are
both suffixed with “th”, giving you 11th and 12th.
Regards,
Kylie
Similar Messages
-
We are adding field GAMNG ( Target Quantity ) in the Data Source 2LIS_04_P_ARBPL ( Work Center View from PP/PP-PI )
The field GAMNG is available in the communication structure maintainace.
The problem is- We are not able to drag & drap field GAMNG from the Communication structure LBWE. Getting the error - End phase 002 ***********************************************************
Message no. D0322 ..
We deleted Setup table , Meins field already exist in comm str.
1. How we able to drag the field from the communication structure as getting the above error. We searched SDN & try to follow that method but not working.
2. We can add the field in SE11 - Structure -Manually, then we have to write ABAP code.
Kindly suggest correct answer.
Edited by: sk kamaruzzaman on Dec 20, 2011 2:08 PMHi,
There could be a number of reasons why you are getting the error:
1. Fields are not assigned to datatypes.
- Check structure in SE11 and assign to datatypes.
2. There are inactive appends in the extract structure.
- Double-click one of the includes. You will get a new screen with the INCLUDE structure. Click the button append-structure. Check if the append is inactive.
3. The appended structure is in a different development class from the one of the structure it is being appended to.
Please review and apply the following notes carefully :
766603 Activation problems with extract structures
623411 LBWE: Gener. terminates with D0 322 (end phase 002)
757923 LBWE: Generation terminates with D0 322 (end phase
600708 D0 322: End phase 002
It is not possible to enhance the datasource 2lis_04_MATNR with the field GAMNG (so its possible that its the same for 2LIS_04_P_ARBPL) because GAMNG has the reference field AMEIN, which has a STATE F (forbidden) in table TMCEXCFS .
Check to see if this is the same on your system.
Rgds,
Colum -
I want to open the iTunes library on my new laptop with all the playlists and stuff I built on the old computer. I have all my music on an external drive. I have copied the .itl file from the old computer and opened it on the laptop, and it has all the playlists, but all of the songs that were added to iTunes up to a certain date have broken links. What am I doing wrong?
Moving library files around while leaving the data in the same place usually presents no problems. Moving the data around independently from the library usually breaks things. With Windows machines all you should need to do is make sure that the same drive letter is being used on the new system as with the old. If that is not possible you need to get your library into a portable layout before moving it between systems.
Typical layout of iTunes folders:
When the media folder is inside the main iTunes folder as shown above then the library is portable. Typically with a split library the iTunes Music or iTunes Media folder (everything inside the red outline) is moved to a different drive by choosing a new locaton for it and then consolidating.
To make the library portable again you need to copy the library files and album artwork folder into the parent folder of the media folder so that the nested relationship is recreated. (BTW If your media isn't already inside your designated media folder then you will also need to consolidate the files that are outside of it, before you copy the library files.) You can then use the hold-down-shift-when-starting-iTunes method to open the library file in that parent folder. Once the library has been opened, tested and closed you are most of the way there.
The iTunes window inherits its title from the folder holding the library files so, unless you created a folder called iTunes to hold the media folder, iTunes may now have an unexpected title when you run it. The parent folder can be renamed as iTunes, and the library opened again. Alternatively, if the parent folder is at the root of the drive, or has other data which you wish to leave in place, you can create a new top level folder called iTunes and move the library files, album artwork and media folders into it before opening and testing the library again.
If the library doesn't work after any step simply reverse it by undoing a move or rename or opening the previous set iTunes Library.itl file.
If all has gone well then the library is now portable. Once you've migrated the data to a new system you can copy the library files back to their usual internal location if you find that having them on the external drive affects performance...
tt2 -
My Recently Added is now sorted by Alphabetical not Date added
Hi there,
So i just plugged my iphone in to update my music and i went to click recently added to listen to some but for some reason it was sorted in alphabetical rather than date added, i really need the function of date added to i can get all the newest music i put on.
If anyone can help that would be greatI have just redone my recentl added playlist and ordered it by date. When i sync to my iPhone it displays in the same date order
Try recreating the recently added playlist
Here is my Smart Playlist. Looking at it again if you see i have the limit items selected by most recently added. Maybe that is what is different -
Revision: 9349
Author: [email protected]
Date: 2009-08-17 11:32:37 -0700 (Mon, 17 Aug 2009)
Log Message:
Added support for using getStyle() in Mxml data binding expressions.
In addition to the existing "function return watcher" data binding
functionality, we register to listen for style related change events
when we see a function marked with [Bindable(style="true")].
UIComponent's and TextGraphicElement's styleChanged() will now
dispatch events for "getStyle()" FunctionReturnWatchers to handle.
When null or "styleName" is passed into styleChanged(), we dispatch
an "allStylesChanged" event.
QE notes: mxunit test to follow
Doc notes:
Bugs: SDK-20394
Reviewer: Glenn, Pete F, Peter D
Tests run: checkintests, mxunit databinding
Is noteworthy for integration: only if you want to start using it.
Code-level description of changes:
modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java
Modified generateWatcher() to do the AST equivalent of the
WatcherSetupUtil.vm change.
modules/compiler/src/java/flex2/compiler/as3/binding/FunctionReturnWatcher.java
Removed unused isNew variable and added isStyleWatcher variable.
Modified shouldWriteSelf() to return true if isStyleWatcher is true.
modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm
Modified writeFunctionReturnWatcher macro to add a true arg to the
FunctionReturnWatcher constructor call when isStyleWatcher() is
true.
modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java
Modified evaluate(Context, MetaDataNode) to skip reporting an
error for no events when style is true.
modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java
Replaced insideCallExpression boolean with callExpressionStack
Stack. The "!insideCallExpression" checks were replaced with
callExpressionStack.isEmpty().
Modified addBindables() to handle [Bindable(style="true")].
Made argumentListStack and resetSet more strongly typed.
frameworks/projects/framework/src/mx/core/UIComponent.as
Modified styleChanged() to dispatch a "Changed" and "allStylesChanged" from the previous
parent and add listeners to the new parent when isStyle is true.
Modified eventHandler to notifyListeners() when isStyle is true.
frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as
Similar changes to UIComponent.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-20394
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicE lement.as
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEval uator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassE valuator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/FunctionReturnWatcher .java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm -
Error while adding a second template to the same data definition
Hi,
I am quite new to XML Publisher. I am developing a report using XML Publisher.
I have added one template to the Data Definition. When I tried to add another Template(with different name as previous, to the same concurrent program and application) to the same Data Definition I am getting the following error.
Error: You entered a duplicate template entry. Please change the Name, Code and/or Application and reapply.
Can anyone help me out solving this problem. I am reaching my deadline. Please suggest me what can be done.
Regards,
SitaHi
Try to change the Template code name also and then check it.
Thanks
Sudheer -
Adding new field to Customer master sales data area sales tab
Hello everyone,
I am new to module pool so seeking some help from experts here.
I have a requirement were in I have to add a new field to the customer master (VB02) sales area data sales tab.
I found that there is no screen exit.Is there any other way of doing it?
could you please provide me with a step by step procedure of doing it.
With Regards,
Karishma.Hi,
How did you look for screen exit? Have you also tried it in BADI? 'Coz normally, adding custom fields to a standard screen has to be implemented in exits.
I haven't worked with VB* screens yet so I can not give you a some possible exits. But you can do some debugging. I think there's an available code in the net that searches for exits/screen exit (ask Mr.Google). You can also ask him how to search BADI in debugging mode. I remember it's TCode SE24 then look for cl_exithandler class, get_instance method. Then look for exit_name variable.
Hope this helps. -
Adding a new field to the Address Data for a business partner
Hi Experts,
I am trying to add a new custom field to the address data (all structures and tables) that is linked to a business partner on SAP CRM via EEWB. Structure is the address structure wthin BUS_EI_EXTERN. Table is BUT020. I have been told that it is not possible as there is no Business Object that allows this. When doing an EEWB, the only business object is BUPA, which when selected, adds the new custom field to BUT000. I would like the field to be added to BUT020 (Address Table). This leads me to believe that there is no standard way of doing this, which ultimatley means that it would need to be done manually. Please help me with this predicament.
Regards
YusufThe search help exit allows you to modify functionality of search help. If you add a new field to the
parameter list that is not contained on the selection method you can manually populate it within the search
help exit.
This would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
Therefore you need to read table SHLP in-order to locate position of value within string.
Example:
To find position of personnel number (PERNR) within elemenory search
help M_PREMN you would use the following code:
Loop at record_tab.
read table shlp-fielddescr into wa_shlp
with key tabname = 'M_PREMN'
fieldname = 'PERNR'.
You could then use this information in the following way, for
example, to find a persons organisation unit:
select orgeh endda
up to 1 rows
from pa0001
into (ld_orgeh,ld_endda)
where pernr eq record_tab-string+wa_shlp-offset(8)
u201Cpernr length is 8
order by endda descending.
endselect.
select single orgtx
from t527x
into ld_orgtxt
where orgeh eq ld_orgeh and
sprsl eq sy-langu and
( endda ge sy-datum and
begda le sy-datum ).
If you have added a new field to the end of the parameters list
the next step is to populate it by adding this data to the end of
the record_tab string:
concatenate record_tab-string ld_orgtxt into record_tab-string.
modify record_tab.
endloop. -
Adding a *Not* Null Entry to a Data-Bound Drop Down List
How do I add a not null entry to a data-bound drop down list? I am supposed to have something like this:
<html:select property="Korisnik1" >
<html:option value="0000">
(Not null value)
</html:option>
<html:option value="-1">
(Null value)
</html:option>
<html:optionsCollection label="prompt" value="index" property="Korisnik1.displayData" />
</html:select >
In case the value 0000 is marked the value should be inserted in to the database. The code above displays the value but insert doesn't work.I think that in this case that article is not what's required Shay as the question related to a "No Null" entry. The answer would be to add it into the list that is used to populate the list in the first place - generally by adding a "union select from dual" to the query that generates the list values.
-
Adding Tab page in to Item Master Data
Dear,
In this momento I can do application external through SDK to SBO. but How can I do adding Tab Tag Page in to Item Master Data,
Can you explain me How I do?
Very thanks.
RegardsHi!
You need add one tabPage in Item Form rigth?
You can used the function:
public void AddTab(string formID, string tabName, string tabNum, string tabCaption)
try
Form oForm = oApp.Forms.GetForm(formID, 0);
Item oItPosition = oForm.Items.Item(tabNum);
Item oItTbTest = oForm.Items.Add(tabName, BoFormItemTypes.it_FOLDER);
oItTbTest.Top = oItPosition.Top;
oItTbTest.Height = oItPosition.Height;
oItTbTest.Width = oItPosition.Width;
oItTbTest.Left = (oItPosition.Left + oItPosition.Width) + 20;
oItTbTest.AffectsFormMode = true;
Folder oTbTest = (Folder)oItTbTest.Specific;
oTbTest.Caption = tabCaption;
oTbTest.ValOff = "0";
oTbTest.ValOn = "1";
oTbTest.GroupWith(tabNum);
catch (Exception e)
oApp.StatusBar.SetText(e.Message, BoMessageTime.bmt_Medium, BoStatusBarMessageType.smt_Error); -
Adding an "x" number of Days to Date Object
Hi guys,
What I would like to is lets say you have a date object, looking for method/way of adding or subtracting X amount of days from that object.
This is because I have a list of dates that I would like to follow up on eachother like :
1/7/06-5/7/06(Date EndDate)
(Date EndDate + 1) i.e 2/7/06 - 31/7/06
Thanks in advanceFor anyone that has the same problem this is how I got it working.
Thanks for the help in the post.
static Date addDaysToDate(Date startMonth, int days)
Calendar c = Calendar.getInstance();
c.setTime(startMonth);
c.add(Calendar.DATE, days);
startMonth = c.getTime();
return startMonth;
} -
Error adding Sales order via DI-SERVER Posting Date deviates from the defin
When adding a sales order via the DI-API we have started receiving the following error:
Error: Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date. [(----) 131-204]
I have verified that the posting dates within the document exist within the defined posting periods in SAP and that the posting period in question is unlocked.
I can add the document within the SAP B1 interface without any issues.
This process and code was also working up until the start of the new financial year. There have been no changes to the code or the financial periods in the new year.
There is a peculiarity with the financial periods for this company in that they have moved from calendar periods in the past to financial periods. Has anyone come accross any issues with posting dates and the DI SERVER API?
The dates in the XML document that we are trying to add are shown below.
<Documents>
<row>
<DocDate>20100310</DocDate>
<DocDueDate>20100310</DocDueDate>
<CardCode>C9999</CardCode>
The following are the financial period values from OFPR
Posting Date From/To: 06.03.10 02.04.10
Due Date From/To: 01.01.10 01.04.11
Document Date From/To: 01.01.10 02.04.10
Start of Fiscal Year: 01.01.10
Regards,
SeanHi Gordon,
Our customer has moved their financial year end from 1 April / 31 March using calendar months to a 4/4/5 financial period model with a year start date from Jan.
This was necessary after the company was purchased by a US firm that wanted to align the reporting calendars.
Under the 4/4/5 model their financial year start date does not start 1st January. Hence the 3/1/2010 being the first date of the January period.
No matter how the periods are setup the financial year start date in SAP Business One cannot be anything other than the 1st of the month.
All posting within SAP appears to be working fine, it is only via the DI SERVER requests that we seem to be having problems.
However, we suspect that the issue may be unrelated to the posting periods due to some other testing performed.
Regards,
Sean -
Adding security principles for metro app local data
I accidently replaced all security principles on my user folder. Now my metro apps are not opening as I replaced security principles of their local data folder located at %UserProfile%\AppData\Local\Packages. How can I reset these security principles.
Note:
Adding "ALL APPLICATION PACKAGES" to security principles is working. But I want to replace it with individual metro app id for security reasons.
What are needed:
1-> individual App's uid
2-> adding to folder using powershell or cmd as GUI may not work.
See image for clarity.
Thank YouHi,
Generally speaking, system restore would be an efficient method to resolve this problem, please have a try.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Adding new field to existing CO-PA data source
Hello BW gurus,
i was asked to add a new field vv531 in COPA data source, in order to do this when i was deleting the data source it is giving message "you are not allowed to change cross-client Customizing" .our bw development has 2 clients 20 & 40 . Generally wat ever changes are done in 20 are visible in 40. But now am not able to see the particular CO-PA data source in client 20.It is visible only in client 40. when i am trying to delete it from 40 it is giving the msg. Please suggest me over this bcause my dead line to complete this is nearing.
Thanks,
praveenhello manfred,
thanks for the reply. i know for the fact tht we shud delete n recreate but when i am trying to delete it it is saying "you are not allowed to change cross client customising" . when the development was going on they have done it in development server client 20,which is also visible in client 40 with out transportation . 20 is whr changes are made ,40 is the one which is connected to BW development server. Now as per the requirement i shud make changes in 20 ,but when i am trying to do this it says "data source is defined in a different client" .pls help me out resolve this problem.
thanks®ards
praveen -
Adding a 'sort by' option to table data in webhelp output
RH8 HTML
Hi all,
Just wondering (again) if its possible to add a sort feature to a table?
currently, I've got multiple topics that look like the following. They are a breakdown of all fields/buttons and their functions
field name
description
example
customer id
description of field
example data to be entered
name
description of field
example data to be entered
customer order no
description of field
example data to be entered
job title
description of field
example data to be entered
this is the order that the fields appear on the user form, I'm wondering if I could add a 'Sort By A-Z' and 'Sort by Appearance' options so the user can view the fields, descriptions, and examples either by the order it appears, or in alphabetical order - all the while the description and example fields moving with the sort.
Just gives a bit more functionality for users so they can find a field quickly if the list is a bit bigger by using an alpha sort
Thanks for any help.Hi,
Normally, the browser shows a pointer over a hyperlink. You might have the script set up slightly different than Peter.
A quick fix is as following:
Identify the element you want to see a pointer, probably something like TableHeading. In your css, add:
P.TableHeading
Be carefull with this, it may confuse people if they see a mouse cursor they don't expect. Your best bet is still to figure out if you have set the script up exactly as described on Peter's page.
Greet,
Willam
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer. -
Adding new Field in Business Partner General Data
Hi All,
I'm working on a mySAP CRM 4.0 implementation.
I would like to extend the business partner data with this new three field:
1) Capital Stock
2) Base Number
3) Sales pl.
The three field are Dun & BradStreet information.
I created a BSP that show all Business Partner General Data and now we want to show also those fields.
In order to extend the BP data we received two suggestion:
The first one is to use the BP marketing Attributes.
The second is to use the Easy Enhancement Workbench.
I know that advantages of the EEW is the automatic creation of the layout (BSP & DYNPRO).
Doo you have any suggestion??
It's a good solution to use the EEW??
Thanks a lot.
EugenioHi,
First of all thanks a lot for the fast reply.
I have to add some information:
The end-user will use the application only in PC-UI mode (through Enterprise Portal).
We are customizing the BSP application (Accounts).
I know that in past some colleagues used the EEW to extend or to add some field to application BP. I remember that the field (after Enhancement the new fields was visible in SAPGUI mode and in BSP mode).
Now my questions are the following:
1) Are you sure that I can use EEW only 10 times??
2) We are using the BAPI (CRMXIF_PARTNER_SAVE) in order to add Business Partner in the system; after the creation of the new fields with EEW the BAPI (CRMXIF_PARTNER_SAVE) will be able to insert the new fields?? Or we need to extend this BAPI with new fields?
The second question is very important for us because we have to import in the system about 30.000.000 of Business Partners.
Kind Regards.
Eugenio.
Maybe you are looking for
-
Error,while importing METADATA from production to development
Folks, I am getting the following error while importing the metadata. I have exported from production server and want to do some modification to the existing mappings. Can some body help me to resolve this? Here is the error. Import started at 10/07/
-
Connection Timed Out while using sqldeveloper Debugger
I am using sqsldeveloper version Version 1.5.1 I am not able to debug my procedure test_proc in sqldeveloper. I am using sqldeveloper over a VPN network. I also use the option Tools->Preferences->Debugger->Prompt for Debugger Host for Database Debugg
-
Lousy Performance of Mac Pro X1900 XT in Leopard
Being the paranoid person I am, I installed Leopard to an external FW 800 drive to test it. Immediately, the window drawing in Leopard did not seem as snappy to me as it did in Tiger. Then, I pulled up iTunes, to check what version of iTunes comes wi
-
Trouble connect itunes to airport express
Hi there, I am have configured my airport express via the Airport Utility to join my current wireless network and become a speaker Option for itunes. stats: OSX 10.6.4 itunes 9.2 airport express hardware version 6.3 solid green LED. I can see the opt
-
How to recovery by created recovery disk by presing f11 it do nothing nd stop to work
Leptop g6