Regarding date formatt
Hi
Can anyone give me sample code to fetch the date as:
YYYYMMDD.
Points are assured for correct answers.
Regards,
Sreeram
sorry i am not enough clear about your requirement if you are fetching the data from SAP tables then by default the setting is like this...
just you have to declare a variable like sy-datum.
if you want to fetch the data from another area then use fm conversion_exit_pdate_input.
after that also you cant achieve the target then let us know in which format you are getting the date and you have to change the format with character type variables and make some operations on that.
regards
shiba dutta
Similar Messages
-
Appropritate forum to put queries regarding data archiving
Hi All,
Which one is the appropriate forum to put queries regarding data archiving?
Thanks in advance.
VithalprasadYes you can use this forum, also there is one forum for Data Transfers.
Regards,
Altaf Shaikh -
hi gurus, i have some doubt regarding dates function.
if i enter any date of present month i wand the first date of next month.
for example if i enter any date in january from 01/01/2007 to 31/01/2007 i want
first date of february. ie 01/02/2007. plz help me.
regards
vamsi.Hi
use this coding
data : d1 type sy-datum,
d2 type sy-datum,
d3 type sy-datum,
d4(8),
m(2),
y(4).
d1 = sy-datum.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d1
IMPORTING
E_DATE = d2 .
write : d1.
skip 3.
m = d2+4(2).
y = d2+0(4).
concatenate y m '01' into d4 .
d3 = d4.
write : / d3.
write : / d2.
write / '***********2 month****************************'.
d3 = d2 + 1.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d3
IMPORTING
E_DATE = d2 .
write :/ d3,
/ d2.
write / '**************3 month ***************************'.
d3 = d2 + 1.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d3
IMPORTING
E_DATE = d2 .
write :/ d3,
/ d2. -
hi all,
i need some information regarding date types infotype 41.
i need to print date types in sequential manner like dar01 dar02 dar03 like upto 12 date types.
can you please suggest me how should i print them.
thanks,
madhavi.Hi,
Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
Infotype Enhancement overview screen
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
with regards,
Hema SUndara. -
Urgent regarding Data & Task Audits Back Up
Hi Experts
Here my question is regarding Data Audit and Task audits in V 11.1.2.1
-->If we take the back up of Data & Task audit tables data in to other backup_tables in same schema how this can be viewed through task audit and data audit through HFM?
-->Whether any third part tools available to audit the tasks (DATA & TASK ) information...?
-->Whether EPM maestro can be used here..?
Thanks in advance
Edited by: RajaKK on May 29, 2012 6:19 PMUse the Audit Extract utility bundled with HFM 11.1.2.1 to export this information periodically to a CSV file that you can view offline through any text editor, or even Excel. There is a command line feature for this as well, so you could incorporate this into a batch routine.
For anyone attending Kaleidoscope in San Antonio, TX next month, I will present the various utilities that ship with HFM including this one. Hope to see you there!
--Chris -
10.1.2: Problem with ConrolHint Date-Formatter
Hi,
when defining an control hint of format type Simple Date and format "yyyy-MM-dd G 'at' hh:mm:ss" in an EO the business components browser shows values like "2005-01-04 n. Chr. at 12:00:00". But the SQL column contains a correct time fragment like "9:35:21.0". Without control hint definition the value is displayed as "2005-01-04 9:35:21.0" !!
The attribute is defined as DATE/oracle.jbo.domain.Date.
Any workaround?
With JDev9052 I get the same results! Please, have a look at Date (Formatter) problem in JDev 9052
MarkusHello,
is is bug really not fixed?
When I take a look at the Entries in the Bug Fixed List
(Bugs Fixed in Oracle JDeveloper 10g 10.1.2), I would have though differently:
2825228 3730910 BC4J RT DEFAULTDATEFORMATTER DOES NOT SUPPORT NEW TIMESTAMP DOMAIN?
3730910 BC4J DOMAIN TIMESTAMP DOMAIN NOT EQUIVALENT TO JAVA.SQL.TIMESTAMP, FORMATING BROKEN?
3668688 3730910 BC4J DATA_TAGS TIME VALUES NOT SHOWN IN JSP - WHEN USING SQL DIALECT SQL92?
Or is this referring to an other problem?
Greetings
Harald. -
Hello,
we have the phenomena that when an application is commiting a transaction and then terminating,
often not all events regarding Data Cache are dispatched by the TCP kodo.RemoteCommitProvider.
It seems that the JVM on termination is not waiting until RemoteCommitProvider has dispatched all events regarding Data
Cache. In this way we sometimes loose some cache synchronization and some of our customers run into serious problems.
Is there a way to guarantee that all Data Cache events are dispatched before the aplciation terminates
(maybe implementing a shutdown hook?).
best regards
Guenther Demetz
Wuerth-Phoenix SRLHi,
as nobody answered to my question I try to explain it more simple:
Are the TCP-kodo.RemoteCommitProvider threads acting as user threads or as threads of type 'deamon' ?
I hope that soon someon can answer
best regards
Guenther Demetz
Wuerth-Phoenix SRL
G.Demetz wrote:
Hello,
we have the phenomena that when an application is commiting a transaction and then terminating,
often not all events regarding Data Cache are dispatched by the TCP kodo.RemoteCommitProvider.
It seems that the JVM on termination is not waiting until RemoteCommitProvider has dispatched all events regarding Data
Cache. In this way we sometimes loose some cache synchronization and some of our customers run into serious problems.
Is there a way to guarantee that all Data Cache events are dispatched before the aplciation terminates
(maybe implementing a shutdown hook?).
best regards
Guenther Demetz
Wuerth-Phoenix SRL -
I need some help regarding data element ZEXPDT. I used it in an infoquery that was transported to QAS and it does not exist in QAS. I thought it might be locked in a transport, but the below screen clip says it is not locked. It was created in 3/2014. Thanks.
Either trick the system, SE11, add a space at end of text desciption and save,
Or call transport workbench (SE01, SE10) create a transport request or use an existing one, then double-click on a task, switch to modify mode, add a line with R3TR DTEL name of the data element, save, then object list, lock in request/task menu.
Or SE80, contextual menu of data element. (other functions, write transport entry)
Regards,
Raymond -
Help with simple date formatter
hi i have a text box which has a date , day , time on it, i would like to use simple date formatter and change the format...
i would like to get the day part alone getin displayed below the text box,
any suggestions?Yes. Read the SimpleDateFormat API docs about specifying formatting patterns.
-
I am unable to access iTunes. Receive error regarding data execution prevention. I've changed the Performance Options to exclude DEP for iTunes and I've tried unloading/reloading. Still no success. Suggestions?
Try updating your QuickTime to the most recent version. Does that clear up the DEP errors in iTunes?
-
I tried to write my own Date formatter (something like oracle.jbo.format.DefaultDateFormatter).
It's name is or.jbo.format.DateFormatter. But when I started my JSP DataTags page, when my Date attribute should be rendered, I get ClassNotFoundException error:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.ClassNotFoundException, msg=or.jbo.format.DateFormatter void oracle.jbo.JboException.(java.lang.Throwable) java.lang.String oracle.jbo.server.AttributeDefImpl.getFormattedAttribute(oracle.jbo.AttributeList, oracle.jbo.LocaleContext) java.lang.String oracle.jdeveloper.html.HTMLFieldRendererImpl.getHTMLValue(oracle.jbo.Row, oracle.jbo.AttributeDef) java.lang.String oracle.jdeveloper.html.HTMLFieldRendererImpl.getHTMLValue(oracle.jbo.Row)
But I am definitely sure my class (oracle.jbo.format.DefaultDateFormatter) IS in the classpath....
So I am absolutely confused...
This behavior were inside Oracle OC4J container.
I tried run it inside Tomcat and there are not ClassNotFoundException.... So it is problem of OC4J??
Thank you very much for any comments
Jan PechanecThank you for your answer.
I tried to put my class to client project (there is .class file inside classes directory - I'm sure). But there is the same problem.
I tried following:
Put inside DataTableComponent.jsp following lines:
<%
Class c = Class.forName("or.jbo.format.DateFormatter");
%>
And ClassLoader found my class "or.jbo.format.DateFormatter" (I saw value of variable 'c' in the watch.).
But then (while rendering data table) there was the same excetion (JBO-29000: Unexpected exception caught: java.lang.ClassNotFoundException, msg=or.jbo.format.DateFormatter) - see above.
I checked the name of class hundred times, and it is right ...
I am still confused. Have you same idea, what's the problem?
Thank you
Jan Pechanec
PS. I'm using JDev 9.0.2
PS2. I haven't source code of oracle.jbo.server.AttributeDefImpl, co I can't debug it properly... -
Date formatt problems..
when i retreive a date value from oracle it is displaying in yyyy-mm-dd formatt in my date..
but i want it to dispaly in dd-mm-yyyy formatt.
how to convert it..in java ..
plz asap reply me
regardsHi,
There are 2 ways to do it... In oracle you have built in functions like
TO_CHAR (SYSDATE, 'DD-MM-YYYY')
You can use these. Else in Java you can use SimpleDateFormat Class to convert it
SimpleDateFormat formatter = new SimpleDateFormat ("MM-dd-MM-yyyy");
formatter.format(date);
Thanks and regards,
Pazhanikanthan Periasamy,
Senior Software Engineer,
IT Solutions India Pvt. Ltd.,
Madras - 600 006 -
I am seeing a date issue in my application. There is a CreatedDate column in my DB table. When the date is displayed in the view, the following pattern is used.
<af:outputText value="#{row.CreatedDate}" id="ot1">
<af:convertDateTime pattern="#{bindings.Account.hints.CreatedDate.format}"/>
</af:outputText>
In the Account EO, the formatter has not been defined. In such situation, if the page is run, the date is displayed wrongly. Does ADF employ a default date pattern in case a pattern has not been defined?
In my case, a date of 4th June, 2012 is displayed as 18.11.2012. Please help.
Regards,
KanchanHi Timo,
JDev version is 11.1.1.6.0. The back end is Siebel, so yes Oracle DB. I just noticed that the datatype in DB is UTC date time, but the EO declares it as follows
<Attribute
Name="CreatedDate"
ColumnName="CREATED_DATE"
SQLType="VARCHAR"
Type="oracle.jbo.domain.Date"
ColumnType="DATE"
TableName="ACCOUNTCONTACT"/>
The SQLType is declared as VARCHAR, could that be an issue?
There is no operation done on the date as part of portal code. The date is just displayed and the formatter is used as I had put in my initial post.
Regards,
Kanchan -
Hi All,
I am using RSA3 to check data in Logistics DataSources such as 2LIS_03_BF, 2LIS_03_UM.
However, our functional Consultants say that there is data in R/3.
How to check whether there is data in R/3 and if available how to extract that data so that I will be able to check whether I can extract data or not using Extract Structure???
Regards
YJHi vijay,
These data source are proving the inventory information . So you need to extract this information by LO- Extrantion method for that you can follow the following steps
1. Activate the structure date source by using the T.Code LBWE
2. Delete the set up table for application are 03 by using T.cde LBWG
3. After deleting the setup tables you need fill up these setup table by T.Code OLI03BW according you business requirement
4. After complete of filling the set up table you need to initialize on these data source by using the info package from BW Side
5. After initialization you need to activate the update method for inventory information.
Regards,
PRK -
Hi all,
Is there any FM available to convert char to floatHi Ravi,
Try these FM. Chk if it satifies ur requirement.
CEVA_CONVERT_FLOAT_TO_CHAR
FLTP_CHAR_CONVERSION
Try this code also.
REPORT Z_Conv.
DATA : f TYPE f.
DATA : s(15) TYPE c.
f = '41'.
CALL FUNCTION 'FLTP_CHAR_CONVERSION'
EXPORTING
DECIM = 2
EXPON = 0
input = f
IVALU = ' '
MASKN = ' '
IMPORTING
flstr = s
WRITE :/ f.
WRITE :/ s.
<b>***Reward Points if Useful</b>
Regards
Gokul
Maybe you are looking for
-
Using query strings works on every browser except IE7
I made this file to pass the variables through the url and then use aps or java to append the variables either to the flashvars in ex: <param name="flashvars" value="'+document.location.search+'" or to the filename in ex: <embed src="swf/cpk_prod_kid
-
E-mail notification doesn't work after software upgrade
Based on the recommendation of a sales rep; I did the software upgrade yesterday and have had nothing but problems. All the e-mail accounts didn't work. So I spent an hour getting my e-mails setup and guess what? Even though I have it setup to chec
-
As above. I think it's my fault as I don't know how to quit music, I think all I am doing is pausing?
-
I am a student and am doing a project on converting java syntax which is in english into my own language which is urdu. the problem is that i am not able to read a single word from java class file inorder to get the specified bytecode. please provide
-
Does anyone have the exercise files for the tutorials on this? cs4 version