Converting the user response date value to date data type
Hi,
I have a parameter which takes date as input (from date and to date).
I need to get the difference between these two dates.
So i can use the function todate(userresponsedate,"dd/mm/yyyy")
but here i cannot hardcode the date format as dd/mm/yyyy.
Because my reports needs to support to multiple locales and so if i change the browser locale to japanese the input date will appear some thing like yyyy/dd/mm.
So my function todate(userresponsedate,"dd/mm/yyyy") is failing over here.Its is giving #error
Is there any option where it takes the browser locale date format.
ex: todate(userresponsedate,browserlocaledateformat)
So that it works irrespective of the browser locale
Thanks in advance
HI
Try to use this formula
formatdate(todate(userresponse("enter from date");"");"dd/MM/yyyy")
In the report level you will see only dd/MM/yyyy as string
Hope this helps u
sunil
Similar Messages
-
How to extract the date value of IBOR date="12/12/2009"
I have the following query, but do not get the date value out:
WITH ibors AS (
SELECT xmltype('<?xml version="1.0" encoding="utf-8"?>
<IBOR date="12/12/2009">
<LIBOR currency="USD">
<OneYear>1.38875</OneYear>
</LIBOR>
</IBOR>
') ibor_xml
FROM dual
SELECT i.ibor_date, i.ibor_oneyear
FROM ibors,
XMLTABLE(
'//IBOR'
PASSING ibors.ibor_xml
COLUMNS ibor_date VARCHAR2(20) PATH '/IBOR/date',
ibor_oneyear VARCHAR2(20) PATH '/IBOR/LIBOR/OneYear'
) i;
How to extract the date value of <IBOR date="12/12/2009">?Hi,
The date is an attribute of element IBOR. So you must use "@date" in the xpath expression :
WITH ibors AS (
SELECT xmltype('<?xml version="1.0" encoding="utf-8"?>
<IBOR date="12/12/2009">
<LIBOR currency="USD">
<OneYear>1.38875</OneYear>
</LIBOR>
</IBOR>
') ibor_xml
FROM dual
SELECT i.ibor_date, i.ibor_oneyear
FROM ibors,
XMLTABLE(
'//IBOR'
PASSING ibors.ibor_xml
COLUMNS
ibor_date VARCHAR2(20) PATH '/IBOR/@date',
ibor_oneyear VARCHAR2(20) PATH '/IBOR/LIBOR/OneYear'
) i; -
Based on the user response need to calculate measures in universe
Hello Folks,
I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
1.Based on the user response I need to create a report for previous months .
2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
Example Date Set :
DIM 1 SEP13...............................................................OCT 14 PYTD YTD
Florida state M1.Single value need to give previous 13 months data M3 M4
federal M2..Single value need to give previous 13 months data M5 M6.
Arizona state M1.Single value need to give previous 13 months data M3 M4
federal M2..Single value need to give previous 13 months data M5 M6.
M1...M6 are the measures need to come from universe based on the user prompt.
M1,M2 Need to give previous 13 months based on user response.
M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
M4,M6 YTD - Jan 1 2014- OCT 1 2014].
Thanks for your help in advance.Hello Folks,
I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
1.Based on the user response I need to create a report for previous months .
2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
Example Date Set :
DIM 1 SEP13...............................................................OCT 14 PYTD YTD
Florida state M1.Single value need to give previous 13 months data M3 M4
federal M2..Single value need to give previous 13 months data M5 M6.
Arizona state M1.Single value need to give previous 13 months data M3 M4
federal M2..Single value need to give previous 13 months data M5 M6.
M1...M6 are the measures need to come from universe based on the user prompt.
M1,M2 Need to give previous 13 months based on user response.
M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
M4,M6 YTD - Jan 1 2014- OCT 1 2014].
Thanks for your help in advance. -
How to let the user select from more then 1 data templet file to fillin a field
help i have a form the has 5 free form text fields that i need to select from a list of texts to fill it in and then allow the user to add to the data.
thanksthanks here are 2 strings
COPD continue O2 by NC/Albuterol MDI/ Atrovent MDI/ Duonebs/ Albuterol MDI/ Prednisone taper/ IV Solumedrol/ Spiva/ Advair diskus/ oximetry prn/ PT/ OT/ Coreg
CAD/ANGINA cont. O2 by NC?baby ASA/ ASA/ Lopressor/Atenolol/ Lisinopril/ Low fat diet/ PT/OT/ sublingual nitroglycerin prn/ Lasix/ Lipitor/ Zocor/ Mevacor
i would like the user to be able to select from inside of the field when it is blank (fisrt time entering data)
thanks again -
Web Logic Optimize the User-defined typed values
I'm using Together Soft 6.0.1 and Web Logic 7.0 as apps. server. I'm writing
the web service using the user defined type as input parameter and return status.
I'm experience the following probem
1. On the web service, the return status is an array user-defined data type.
Some of the data has the same values.
2. When I looked at the SOAP/XML message as the returned status, the fields/tags
that have the same data got mapped to a href=#ID_x and on the bottom of the SOAP/XML
message the ID_x is mapped to the correct data value.
3. However, when the SOAP/XML message is mapped to the client's object, the data
did not get mapped correctly to the object's attribute. The attributes, that
got mapped to href=#ID_x, are set to empty value.
I wrote the serialize/deserialize code for the User-Defined type, and that works
ok. However, when I return an array of User-Defined type, and only have the serialize/deserialize
code for the User-Defined type but no code for the array, it throws an exception
(Array out of bound).
It looks like Weblogic creates a reference table appended to the message with
duplicate values indexed. Is it some kind of performance option you can turn
off?
Or is there some interface to retrieve the references?
Or is there a work around or a fix to this problem?
Or do I have to write the serialize/deserialize codes for the user-defined type
and array of user-defined type?
Thanks for your help,
MichelleScott,
Thanks for your response.
So you're saying the href "optimization" is a feature of soap encoding. Is it
the Web Logic implementation of soap encoding optimize the values?
If we write xxxCodec.java for the array of user-defined type, will it work?
If it does, could you send me sample code? The example in the document is for
a single class. The array seems to be more complicated.
Thanks for your help,
Michelle
[email protected] (Scott Ziegler) wrote:
I would suggest using a document-literal style webservice. The
literal part avoids soap encoding which is responsible for the href
"optimization".
--Scott
In article <[email protected]>,
Michelle Hoang <[email protected]> wrote:
I'm using Together Soft 6.0.1 and Web Logic 7.0 as apps. server.
I'm writing the web service using the user defined type as input
parameter and return status. I'm experience the following probem
1. On the web service, the return status is an array user-defined
data type. Some of the data has the same values.
2. When I looked at the SOAP/XML message as the returned status, the
fields/tags that have the same data got mapped to a href=#ID_x and on
the bottom of the SOAP/XML message the ID_x is mapped to the correct
data value.
3. However, when the SOAP/XML message is mapped to the client's
object, the data did not get mapped correctly to the object's
attribute. The attributes, that got mapped to href=#ID_x, are set to
empty value.
I wrote the serialize/deserialize code for the User-Defined type, and
that works ok. However, when I return an array of User-Defined type,
and only have the serialize/deserialize code for the User-Defined
type but no code for the array, it throws an exception (Array out of
bound).
It looks like Weblogic creates a reference table appended to the
message with duplicate values indexed. Is it some kind of
performance option you can turn off? Or is there some interface to
retrieve the references? Or is there a work around or a fix to this
problem? Or do I have to write the serialize/deserialize codes for
the user-defined type and array of user-defined type?
Thanks for your help,
Michelle -
How to show an error if the user enters a value which is not in the dropdown of a form
Hi All,
I have attached the screenshot below and if we look at the field for claimnumber we have a dropdown which can help the users pick the available claimnumbers, but if someone accidentally types in a claimnumber that is not in the system( which doesnt show
up in the dropdown) the form is accepting that claimnumbers too, but i want to have a error or warning window popup saying that this claimnumber is not valid or something.
Can someone please help me with this?
Thanks.Open the form in design view.
Select the Combo Box.
Set its Limit to List property to Yes.
If the user types a value that does not occur in the list, Access will display a standard error message:
If you want to display a custom message, you can write code in the On Not in List
event of the combo box:
Private Sub ClaimNumber_NotInList(NewData As String, Response As Integer)
' Undo the incorrect item
Me.ClaimNumber.Undo
' Display a custom error message
MsgBox "Please select a claim number from the list!", vbExclamation
' Tell Access not to display the built-in message
Response = acDataErrContinue
End Sub
where ClaimNumber is the name of the combo box.
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
Check Data Values, Generates Navigation Data steps taking more time
Hi,
In the Masterdata load to 0MAT_PLANT
The step - "Updating attributes for InfoObject 0MAT_PLANT" used to take a Maximum if 23 minutes for a data package size of 100,000 records till three days ago with the constituent steps "Check Data Values","Process Time-Independent Attributes" and "Generates Navigation Data" taking 5,4 and 12 minutes respectively.
For the last three days the step "Updating attributes for InfoObject 0MAT_PLANT" is taking 58-60 minutes for the same for data package size of 100,000 records with the constituent steps "Check Data Values","Process Time-Independent Attributes" and "Generates Navigation Data" taking 12,14 and 22 minutes respectively.
Can anyone please explain what is needed to speeden the dataload back to its previous timing e.g. if tables indexes need to built for 'P' or 'SID' table of Mat_plant.
An explanation of why the delay could be happening in the above steps will be really great.
regards,
KulmohanHi Kulmohan Singh,
I think there may be a difference between the first update and second update is the 100,000 records is
already in your 0MAT_PLANT.
If you update the 0MAT_PLANT in twice, The Modify statement should loop the Q table of
0MAT_PLANT that was already have the 100,000 records in it,so the upload speed was slowly.
Hope it helpful you.
Regards,
James. -
Popup screen with two check box and a text area for the user to enter value
hi,
i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
is there any function module which has that functionalityHello,
You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
<b>case ok_code.
when 'BUTTON'.
call screen 200 starting at 10 10.</b>
You can design the PBO of this pop-up screen as per your needs.
Regards,
Beejal
**Reward if this helps. -
To search for Who(USER) who maintained value for a Condition Type(Pr00)
Hi Team,
Do we have a table where in i can search for the Userwho maintained Pricing record for base value of a material..
I have the Material and i want to check who created this Condition Base Value Record ..And ask him to maintain it correctly again..
Thanks n hope an early response.
SumanDear Suman,
Please go to VK13 transaction enter your condition type then go to menu Environment ->Changes --> Click on Changes Report now system will take you to the Change documents for conditions screen here you give the selection data the execute system will give the output regarding changes details with the User details.
I hope it will help you,
Regards,
Murali. -
Hello Guru's,
we are creating sales order in SAP from a quote created in .NET, through Web Service created in SAP, and consumed in .NET.
When ever a order is created in SAP for a given quote, SAP returns the sales order number to .NET.
Orders are getting created as expected, but once in a while we are getting the following error from webservice :
Web service processing error; more details in the web service error log on provider side (UTC timestamp 20140609173429; Transaction ID 4DFCEFE33301F1EBB5CE00155D0B4530)
But the problem is order is getting created in SAP for the perticular quote for which we are getting the above error and this order number is not getting returned to .NET.
Upon analysis in TCODE SRT_UTIL for the above transaction ID, has the following details , which are hardly help full to resolve the error.
----TYPE CX_SY_OPEN_SQL_DB
----ERROR_TEXT The database returned a value containing an error
----CX_SY_NO_HANDLER
-----CLASSNAME CX_SY_OPEN_SQL_DB
This Exception raised by Web Service application
Could you please help in resolving this issue or alteast provide an approach for the same.
Thank you,
Suresh.Thank you Bhaskar,
How can we clarify whether the error is from SAP or Web part.
I have checked ST22, but there is not entry for the perticular exception transaction ID
My exception time stamp is
-------------------START-------------6/9/2014 1:34:33 PM
Error :Web service processing error; more details in the web service error log on provider side (UTC timestamp 20140609173429; Transaction ID 4DFCEFE33301F1EBB5CE00155D0B4530)
-------------------END-------------6/9/2014 1:34:33 PM
In al11, i found the following for the perticular exception time stamp
**** Trace file opened at 20140609 133431 Eastern Daylight Time, by disp+work
**** Versions SAP-REL 720,0,500 RFC-VER U 3 1442251 MT-SL
XRFC> Begin of user trace
XRFC> ---------------------------------------------------------------------
XRFC> <
XRFC> TRACE SOAP RUNTIME - header <
XRFC> <
XRFC> ------------------------------------------------------------------ <
XRFC> REQ_SIZE : 2685 <
XRFC> RESP_SIZE : 0 <
XRFC> PARENT_ID : ROOT_CALL_ID <
XRFC> TRC_KEY : 40FCEFE3BD6EF184B5CE00155D0B4530 <
XRFC> REQ_BASED : <
XRFC> SESSION_ID : 0003925540FCEFE3BD6EF17DB5CE00155D0B4530 <
XRFC> TS_CALL : 20140609173408.2880000 <
XRFC> SY_UNAME : <
XRFC> HOSTNAME : <
XRFC> SY_SID : PRD <
XRFC> SY_MANDT : 300 <
XRFC> SYS_NR : 19 <
XRFC> APPLSERVER : <
XRFC> ISPRESCHED : X <
XRFC> DURATION : 21810 <
XRFC> NETHDRTIME : 21810 <
XRFC> CALL_STATE : 2 <
XRFC> ERRORTYPE : APPLFAIL <
XRFC> ERRORAREA : APPL <
XRFC> CTXDP_TYPE : SOAP_RUNTIME <
XRFC> SYNC_ASYNC : S <
XRFC> LOCATION : P <
XRFC> DIRECTION : I <
XRFC> REQ_ID : 91C57815916E421CA9F3D652FFACE9C7 <
XRFC> RESP_ID : 00155D0B45301EE3BBFF89A0267EB5CE <
XRFC> MSG_STATE : 114 <
XRFC> IF_NAME_I : ZSD_CS_CREATE_SALESORDER_SERVI <
XRFC> IF_NS_E : urn:sap-com:document:sap:soap:functions:mc-style <
XRFC> IF_NAME_E : ZSD_CS_CREATE_SALESORDER_SERVI <
XRFC> ISSHORTCUT : <
XRFC> TRC_PATT : WSTEST <
XRFC> TRC_SSID : PRD_19 <
XRFC> TRC_USER : <
XRFC> TRC_TS : 20140609173409 <
XRFC> TRC_COUNT : 99 <
XRFC> TRC_EXT : <
XRFC> COMPLETE : OK <
XRFC> CALLEDPROG : ZSD_CS_CREATE_SALESORDER_SERVI <
XRFC> SOAP_APPLI : urn:sap-com:soap:runtime:application:rfc:710 <
XRFC> CONF_ID : 00155D0B45301EE3AEFDAD78756555CE <
XRFC> BIND_ID : 00155D0B45301EE3AEFDAD787565B5CE <
XRFC> OP_NAME : ZsdCsCreateSalesorder <
XRFC> COMM_PATRN : Method:ZsdCsCreateSalesorder <
XRFC> OP_NS : urn:sap-com:document:sap:soap:functions:mc-style <
XRFC> REMADDRESS : 172.16.11.43 <
XRFC> DT_OBJ : ZSD_CS_CREATE_SALESORDER_SERVI <
XRFC> MEMCONSUMP : 296291 <
XRFC> WSHOST : <
XRFC> WSPORT : <
XRFC> WSPROT : <
XRFC> WSCLIENT : <
XRFC> WSPATH : <
XRFC> PXYHOST : <
XRFC> PXYPORT : <
XRFC> USEDRFCDES : <
XRFC> BONAME : <
XRFC> PROCCOMP : <
XRFC> DEPLOYUNIT : <
XRFC> ------------------------------------------------------------------ <
XRFC> <
XRFC> TRACE SOAP RUNTIME - trace records <
XRFC> <
XRFC> ------------------------------------------------------------------ <
XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER <
XRFC> ->EXECUTE_PROCESSING Exception handling for IF "ZSD_CS_CREATE <
XRFC> _SALESORDER_SERVI" OP name "ZsdCsCreateSalesorder" MSG ID <
XRFC> "91C57815916E421CA9F3D652FFACE9C7" user "STULZWEBSERV" <
XRFC> <
XRFC> <
XRFC> E SOAP_RUNTIME 20140609173429.7240000 : CL_SOAP_RUNTIME_SERVER <
XRFC> ->EXECUTE_PROCESSING CX_SOAP_ROOT : An exception has occurred. | <
XRFC> program: CL_SOAP_RUNTIME_ROOT==========CP include: CL_SOAP <
XRFC> _RUNTIME_ROOT==========CM004 line: 120 <
XRFC> <
XRFC> <
XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER <
XRFC> ->EXECUTE_PROCESSING CX_SY_NO_HANDLER : An exception with the type <
XRFC> CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor <
XRFC> declared in a RAISING clause | program: SAPLSTXD include: LSTXDFDB <
XRFC> line: 200 <
XRFC> <
XRFC> <
XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER <
XRFC> ->EXECUTE_PROCESSING CX_SY_OPEN_SQL_DB : The database returned a <
XRFC> value containing an error | program: SAPLSTXD include: LSTXDFDB <
XRFC> line: 227 <
XRFC> <
XRFC> ---------------------------------------------------------------------
XRFC> End of user trace -
Where can I find the user key precedence hierarchy for each record type?
Example: I want to update contact records through the CRMOD web service API.
So I'm looking at the "Oracle Web Services On Demand Guide, Version 6.0 (released August 2010)", page 316, and it lists 3 user keys for Contact.wsdl v2.0 in the following order:
1. FirstName and LastName
2. Id
3. ExternalSystemId
From what I can see, this order does not seem to reflect the precedence hierarchy of these 3 user keys.
I've send in a test update where I supplied a FN, LN, and EUID, ... and the contact that matched the EUID got updated.
(I'm glad it did, because EUID really needs to take precedence over FN+LN, otherwise you could never change a contact's last name without knowing the contact's Row Id.)
Does anyone know where I can find the precedence hierarchy for each record type's user keys (other than doing the obvious and time consuming "try+error")?Hi,
we experienced similar problems with the account object and asked the oracle support about this. This was their answer:
"[...] thank you for contacting CRM On Demand Customer Care. Regarding your question, please note the below: when perfoming a query, the user key fields are looked for in this order: - Row id - External System Id - AccountName and Location. Basically, the search will be performed by AccountName and Location only when the other fields are missing. This is an expected behavior because, the Row Id is the strongest filter as it is always unique. The external system Id comes second, as it is supposed to be unique in another system."
So, I guess the order is always
1) Row Id
2) External System Id
3) specific field combinations...
kind regards
Kai
Edited by: Kai Hartmann on 28.04.2011 07:10 -
Assigning date value to a date variable
Hi,
How can I hard code a date (09/22/2006) in a date variable? Help me out.
Thank you.
Regards,
DhanaHi,
it depends if your input is already parsed and how you want to set the time (hours, etc.).
Two sample ways :
String s = "09/22/2006";
SimpleDateFormat sd = new SimpleDateFormat("MM/dd/yyyy");
Date date1 = sd.parse(s);
Calendar c = Calendar.getInstance();
c.set(2006, 8, 22); //month is zero based
Date date2 = c.getTime();
Btw for basic java programming I would suggest searching for some java tutorials on the net and reading on your own instead of posting in forums. At least for me that is better way to learn.
HTH
Peter -
User response function() for Date Prompt
Hi Experts,
I have the requirement to show the date enterted in the prompt in the column of the webi report.
I used the User response function e.g. =(UserResponse("Report Date").
Now I am getting the value as 5/14/2014 12:00:00 AM. I dont want to see the time stamp with the date and aslo i want to change the format of the
date to - yymmdd like 140514.
Please provide your inputs.
Thanks,
Abhimanyu Sharma.Hi Arjit,
I closed the thread.
Can you please help in the below issue :
I have two columns in the BEX report:
1. "Local Count" which is restricted with Multiple Single Value variable "ZIN_CITY" on navigational Attribue 0ROUTE__0ROUTEID.
2. "Out Count " which is restricted with Multiple Single Value variable "ZOUT_CITY" on navigational Attribue 0ROUTE__0ROUTEID.
I put value 100 in prompt ZIN_CITY and 200 in ZOUT_CITY when i run this query in BOBJ WEbi.
But i am getting the error - Not able to retrieve data. i checked in the backend and data is present and also Bex query is working fine.
IF i change the property of variable to Single value then it is working fine in WEBi.
Also i tried another method - irresprctive of setting the prompt in BEx on Nav attr 0ROUTE__0ROUTEID, i created the prompt in BOBJ WEBi, but LOVs (list of values)are not coming in the prompt.
Please suggest on this? -
How to display in sap-script the data which is input in selection screen by the user.
Hii,
I want to display the data in sap-script that has been input by the user in selection screen.
Suppose the the user has done input for posting date from 25.1.2001 to 25.1.2005,what i want is to display this date in sap script.
How can i do it.
please help asap.
Regards.Hi,
If select-option name is s_erdat.
then from value will be s_erdat-low and to value will be s_erdat-high.
Arivazhagan S -
Need to automate report having user response in a date prompt variable
Hi,
I've a webi 4.0 report which is having date prompt as a input from the user. This report has multiple data providers and is using variable as
=FormatDate (ToDate(UserResponse("Report Date");"dd Mmm YYYY");"Mmmm YYYY") in the report. Report Date is the user prompt enabling user to input the date and is usually the last day of Month.
I want to automate the report so that user dont have to input the date in Report Date prompt. How do I implement this?
If I simply remove Report Date being used as a filter, report will run without asking user but this Report Date is being used as a variable and will #ERROR.
Please advise.
Thanks
PriteshPritesh,
Well you can create a Prompt at universe level with if and else as user input or Month end date( eom function ) or you can create variable today at universe level and schedule the every month end.
Thanks,
Venkat
Maybe you are looking for
-
Remote console via an eLOM on a Sun 4150 doesn't work in Mac OS X Leopard?
Hi, We have a pair of new Sun 4150's (with the Xeon Woodcrest CPU), and I'm playing around with the remote management features provided by the eLOM. On Mac OS X 10.5 Leopard, I am able to launch the Java Remote KVM (Sun eLOM console) Java utility, bu
-
Responses for Imported Form are not showing in Forms Central but in Tracker?
I imported pdf fillable form. Added Submit button to lower right. Changed Form State to Open in Distribute tab. Then Saved Submission Enabled PDF. I then Downloaded the PDF to my computer. I went to the PDF saved on my computer and Distributed th
-
HI, Suppose for Documnt type RV billing document number range is say 00 But in FBN1 FOR SA -00 2 ranges are defined for 2007/2008 but no 00 is same based on what criteria system picks 2007/2008 no rabge maintained OO 2007 80000 OO 2008 90000
-
Is there any way to hide region names?
I recently switched from garageband to Logic, and my only complaint is that there isn't a way to hide region names, which would give the same words-free editing experience as garageband. If anyone knows of a way to do it, please post, thanks!
-
I am looking into what is involved in dynamically generating PDFs in Java. The project that I am looking into involves taking data submitted via a form and generating a PDF from it. Can anyone direct me to a good site, tutorial, or give some advice o