Date type automatically determined when status="Closed"
Hello Experts,
We are using CRM 2007 Interaction Center Web Client and I would like to know how I can achieve the following:
We need that an specific Date Type should be filled with the date and time of the moment in which the user set the status of the Service Order to "Closed" and Save the S.Order
I hope you can help me on that.
Many thanks in advance,
Pablo
Points awarded to a good answer!
HI
Please create the event handler function(for status change)..i.e for example zcustom_status_fm
The function should perform the following steps and be configured in the CRMV_EVENT transaction in the option OBJECT FUNCTION/CALL BACK for the object STATUS.
in the above step first column entry is custom FM name and second entry is status
Then it should be configured in the view CRMV_EVENT_CUST with the following key as Custom FM ..pls see columns and enter appropriate data there..
after that when ever you change the status for service process it will trigger custom FM..there
read the current dates by using CRM_DATES_READ_SINGLE_OW
and set the current/required dates to data types by using FM 'CRM_APPT_MAINTAIN_SINGLE_OW' ...
i Hope it will solve your problem definitely..because same req we done in our project
Edited by: Ram Pushpala on Sep 15, 2009 1:31 PM
Similar Messages
-
Hi,
I have an infopath web brower enabled form. In the form i have a date field.
I am passing the data from the database to that field using the C# code.
But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
I get the date value from database as "3/25/2011 12:00:00 AM"
I used the below code:
[CODE]
if (objInfopathFormcData.myRecievedDate != null)
myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
[/CODE]
I am getting the error as "Schema validation found non-data type errors".
How to set the value for a date field in Infopath.
Thank youHI,
I fixed it:
Below code is used to fix:
[CODE]
XPathNavigator xfield = null;
DateTime dtmyRecievedDate;
dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
if (objFormcData.FcCompletionDate != null)
xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
DeleteNil(xfield);
xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
// method to delete xsi:nil
private void DeleteNil(XPathNavigator nav1)
if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
nav1.DeleteSelf();
[/CODE]
Thank you -
Disabling automatic sleep when lid closed
is it possible to disable the sleep mode when the lid of my MacBook Pro is closed? I would like to listen to music even when the laptop is closed, but I don't know how or even if it is an option with Mac.
ThanksI just answered this question for someone else this morning:
https://discussions.apple.com/message/16339092#16339092
Your MBP isn't an iPod. If you want an iPod, get one. -
Why need message type when u create data type...
why need message type when u create data type...
Hi,
A message type comprises a data type that describes the structure of a message. At the following points in SAP Exchange Infrastructure you can refer to the message to be exchanged at runtime by using the message type:
· More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
· When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
For technical reasons, a data type is not sufficient to describe the instance of a message. In XML schema, data types are defined as abstract types that are not yet fixed to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message.
A message type does not define the direction of the message exchange, in other words, whether it is a request or a response. In exceptional cases you can use the same message type for both the request and the response message.
A message type has the following characteristics:
· It comprises exactly one data type, which determines the content of the message to be transferred.
· It is identified by a name and an XML namespace. The name (together with the namespace) of a message type is located in the uppermost tag of the message to be exchanged. This is an element tag.
You have defined a message type GreetingRes that references a simple data type of type xsd:string. The XML namespace of the message type is http://sap.com/xi/myExample. The corresponding payload might look like this:
<?xml version="1.0" encoding="utf-8" ?>
<ns1:GreetingRes xmlns:ns1="http://sap.com/xi/myExample"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Hello Mrs. Miller
</ns1:GreetingRes>
You can specify how a message type is used in more detail in the description
hope this will help you.
regards
Aashish Sinha
PS : reward points if helpful -
Getting error when view - Requested data type does not match with existing
I have the siebel web service
In the BI publisher as mentioned in the 'Siebel_BI_Publisher_Integration_Concepts.pdf', I have imported the siebel web service
BI can recognize the 'Web service' and methods.
I have created the paramters. The data type is 'String'
When I try to view the report using the BI publisher, I am getting teh following error in th UI
"Requested data type does not match with existing data type"
This is the first time I am using BI publisher to call the Siebel web service. I don't know what this error means
I don't know whether any log file generated wit the details of this erro message
Any help is much appriciated
Thanks,
KavithaHi all,
have you find a fix for this issue? Im facing the same situation, using Complex type, and String data type both in the service and Bi publisher. We are consuming CC&B services, and we have noticed this error appears when BIPublisher is running on WebLogic (10.3) but it does not appear when BIPublisher is running on OC4J , of course running the same report on both application servers.
Any idea?
Thanks a lot, regards
Nestor -
How to reference complex data type when consuming web services in WAS 620?
In WAS 620, I tried to consume a web service in ABAP. I was successful when the web service returned one or more simple data type. But when the web service is changed to return a complex data type (eg. a structure with 3 elements), the call to the web service did not return anything.
Do any of you know how to reference the individual element in the structure of an output parameter in a web service? I use the add_parameter method of the CSoapDocument class to identify the output parameters.
Here is part of the WSDL file:
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <types>
- <xsd:schema targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX">
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="INTEXT">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
- <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX.Response">
- <xsd:complexType>
- <xsd:all>
<xsd:element name="OUTTEXT" type="s0:ZSRM_TEST_STRUCT" />
</xsd:all>
</xsd:complexType>
</xsd:element>
- <xsd:complexType name="ZSRM_TEST_STRUCT">
- <xsd:sequence>
- <xsd:element name="ELEMENT1" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
- <xsd:element name="ELEMENT2" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
- <xsd:element name="ELEMENT3" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>Hi,
[email protected] is my id and one more thing u by looking at the wsdl file u can know what al the parameters we have to give to the webservice so try it out also.
Regards,
Sirisha. -
Using DBMS_DATAPUMP with LONG data type
I've got a procedure below that calls the DBMS_DATAPUMP procedure using a REMOTE_LINK to move a schema from one database to another. However, a couple of the tables within that schema have columns with the LONG data type. And when I run it I get an error saying that you cannot move data with the LONG data type using a REMOTE LINK. So no data in those particular tables gets moved over.
Has anyone else had this issue? If so, do you have a work around? I tried adding a CLOB column to my table and setting the new CLOB to equal the LONG, but I couldn't get that to work either...even when I tried using a TO_LOB. If I could get that to, then I could just drop the LONG, move the schema, then recreate the LONG column on the opposite side.
Here's my procedure....
DECLARE
/* EXPORT/IMPORT VARIABLES */
v_dp_job_handle NUMBER ; -- Data Pump job handle
v_count NUMBER ; -- Loop index
v_percent_done NUMBER ; -- Percentage of job complete
v_job_state VARCHAR2(30) ; -- To keep track of job state
v_message KU$_LOGENTRY ; -- For WIP and error messages
v_job_status KU$_JOBSTATUS ; -- The job status from get_status
v_status KU$_STATUS ; -- The status object returned by get_status
v_logfile NUMBER ;
v_date VARCHAR2(13) ;
v_source_server_name VARCHAR2(50) ;
v_destination_server_name VARCHAR2(50) ;
BEGIN
v_project := 'TEST' ;
v_date := TO_CHAR(SYSDATE, 'MMDDYYYY_HHMI') ;
v_source_server_name := 'TEST_DB' ;
v_dp_job_handle := DBMS_DATAPUMP.OPEN(
OPERATION => 'IMPORT',
JOB_MODE => 'SCHEMA',
REMOTE_LINK => v_source_server_name,
JOB_NAME => v_project||'_EXP_'||v_date,
VERSION => 'LATEST') ;
v_logfile := DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE ;
DBMS_DATAPUMP.ADD_FILE(
HANDLE => v_dp_job_handle,
FILENAME => v_project||'_EXP_'||v_date||'.LOG',
DIRECTORY => 'DATAPUMP',
FILETYPE => v_logfile) ;
DBMS_DATAPUMP.METADATA_FILTER(
HANDLE => v_dp_job_handle,
NAME => 'SCHEMA_EXPR',
VALUE => '= '''||v_project||''' ') ;
DBMS_DATAPUMP.START_JOB(v_dp_job_handle) ;
v_percent_done := 0 ;
v_job_state := 'UNDEFINED' ;
WHILE (v_job_state != 'COMPLETED') AND (v_job_state != 'STOPPED')
LOOP
DBMS_DATAPUMP.GET_STATUS(
v_dp_job_handle,
DBMS_DATAPUMP.KU$_STATUS_JOB_ERROR + DBMS_DATAPUMP.KU$_STATUS_JOB_STATUS + DBMS_DATAPUMP.KU$_STATUS_WIP,
-1,
v_job_state,
v_status) ;
v_job_status := v_status.JOB_STATUS ;
IF v_job_status.PERCENT_DONE != v_percent_done THEN
DBMS_OUTPUT.PUT_LINE('*** Job percent done = '||TO_CHAR(v_job_status.PERCENT_DONE)) ;
v_percent_done := v_job_status.PERCENT_DONE ;
END IF ;
IF BITAND(v_status.MASK, DBMS_DATAPUMP.KU$_STATUS_WIP) != 0 THEN
v_message := v_status.WIP ;
ELSIF BITAND(v_status.mask, DBMS_DATAPUMP.KU$_STATUS_JOB_ERROR) != 0 THEN
v_message := v_status.ERROR ;
ELSE
v_message := NULL ;
END IF ;
IF v_message IS NOT NULL THEN
v_count := v_message.FIRST ;
WHILE v_count IS NOT NULL
LOOP
DBMS_OUTPUT.PUT_LINE(v_message(v_count).LOGTEXT) ;
v_count := v_message.NEXT(v_count) ;
END LOOP ;
END IF ;
END LOOP ;
DBMS_OUTPUT.PUT_LINE('Job has completed') ;
DBMS_OUTPUT.PUT_LINE('Final job state = '||v_job_state) ;
DBMS_DATAPUMP.DETACH(v_dp_job_handle) ;
END ;But the application we have that uses the database cannot be changed to read from a CLOBWhy can't you change the application?
Well, anyway you should point out to your superiors that Oracle documented years ago to not use LONGS anymore...
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm#sthref3806
It clearly states:
LONG Datatype
Note:
Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases.
How do I go from CLOB to LONG?I'm sorry, cannot help you on that one, I don't think you can do that at all (Oracle wants us to stop using LONGS, so, it's a one-way conversion...):
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1037232794454#15512131314505
So: NO built_in, you'll need to write a program if the clob is ALWAYS LESS THAN 32k in size, you can use plsql..but is that the case in your case? Only you know that.
I believe that question is still unanswered on this forum, but you might try searchin for answers on this forum, and
the 'Database-General' forum: General Database Discussions
Perhaps you can google a Q&D workaround...
( And consider convincing your collegues to just convert your LONGS to LOBS)
Edited by: hoek on Apr 8, 2009 5:43 PM -
Variable Data Type Error.
I have a fast question. I am setting up a variable with a
data type of Number, when I declare the variable it has a default
value.
I am trying to pass data to the variable from a input text
box but I am getting an error when I run the Movie. I have tried
both a input text box and a Dynamic Text box, but they both produce
the same error.
If I remove the data typing from the variable declaration the
Movie runs and it updates the variable data but from all that I
have read this is not a good practice.
I have attached the code, could someone Please help me out. I
do not remember having these types of problems with ActionScript 2.
Thanks for the help.
Code:
var rectangle:Shape;
var thick :Number = 2; // line thickness
var color:Number= 0x000000; // Holds the color value
myButton_btn.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
color = colorField_txt.text; (Line 11)
thick = lineThick_txt.text; (Line 12)
rectangle = new Shape();
rectangle.graphics.lineStyle(thick, color, .5);
rectangle.graphics.drawRect(10, 10, 100, 150);
addChild(rectangle);
myButton_btn.buttonMode = true;
ERROR MESSAGE:
1067: Implicit coercion of a value of type String to an
unrelated type Number. (Refers to line 11)
1067: Implicit coercion of a value of type String to an
unrelated type Number. (Refers to line 12)
Thanks again for any help.
Mikethe text property of a textfield is of type String, so to
place that String into a variable of type Number, you need to first
convert it to a Number
eg.
thick = Number(lineThick_txt.text);
ActionScript 2 performed this conversion
automatically. -
Data type of the base attribute or the base value does not match...
...the assigned expression.
Hello all,
I always get the Error
+<ERROR+
TEXT="'DWH.CUB_REGISTRATIONS_AW.REGISTRATIONS': XOQ-02517: Der Datentyp des Basisattributs oder der Basisgröße stimmt nicht mit dem zugeordneten Ausdruck überein.
XOQ-01400: Ungültige Metadatenobjekte"/>
The English message must be something like this:
The data type of the base attribute or the base value does not match the assigned expression.
when I run my mapping. The attribute REGISTRATIONS is NUMERIC (12,2) in the Cube and I map a NUMERIC(12,2) constant in it.
I use a simple OWB-Mapping for loading, but I don't understand why it doesn't function. Other mappings where the attributes are out of a
table I put in a cube are running well.
I tried different things, but nothing fixed my problem. Any idea ?
Thanks a lot for help
MichaelTechnically this is a 'warning' from the server, not an 'error'. This means that the change you made should have been submitted, but you get an warning message on the client. AWM would suppress this warning, but evidently OWB does not. Can you switch to use AWM?
Here is the definition of the warning along with 'cause' and 'action' sections. (Unfortunately these sections are not translated into German for some reason.)
>
02517, 0, "The data type \"%(1)s\" of the base attribute or base measure is different from the mapped expression \"%(2)s\"."
// *Cause: Either the base attribute or base measure with the mapped expression was set to an inconsistent data type, or it was mapped to an expression of a different data type from its fixed data type.
// *Action: When changing a mapped expression for a base attribute or base measure, ensure that the expression has the same data type; otherwise, set the data type of the base attribute or base measure to NULL first. When a base attribute or a base measure has an existing mapped expression, do not set it to a different data type.
>
It is probably safe to ignore this warning, but if you can post the relevant XML for the cube, then will probably be able to spot the problem. I assume that REGISTRATIONS is a measure in the cube CUB_REGISTRATIONS_AW, so this is what you can look for in the XML:
(1) The definition of the base measure along with the datatype. It should be something like this
<Measure>
<BaseMeasure
SQLDataType="NUMBER(12,2)"
ETMeasureColumnName="REGISTRATIONS"
Name="REGISTRATIONS">(2) The mapping info for the measure, which should looks something like this:
<MeasureMap
Name="REGISTRATIONS"
Expression="...">
<Measure Name="REGISTRATIONS"/>
</MeasureMap>I don't know if you can get the XML directly from OWB. If not, then DBMS_CUBE.EXPORT_XML should work (assuming you are in 11.2). You could also attach AWM and save the cube to an XML template. -
Issue in trusted flat file recon for usr field having double data type
Hi
I have a field in usr schema which is of double data type. Now when i am doing gtc trusted flat file recon the user is getting created and all fields are getting populated but field having double data type doesn't get populated.
I have tried in other way also. After creating the user, I am trying to update that field (which is of double data type) via gtc trusted flat file update but in that case no recon event is getting generated.
Enviroment : OIM 11.1.1.5.0
I am stuck. Please help.Somebody PLEASE some idea!!!
Any thought on the same would be really appreciated.
Thanks in advance. -
Bea and nvarchar2 data type in oracle
Does weblogic server supports nvarchar2 data type in Oracle?..
I use CMP with java data type String mapped to nvarchar2 data type to oracle.when
i try to create a bean it throws "java.sql.SQLException: ORA-12704: character set
mismatch". Is there any configuration in the server to set the character set?..
can anyone help me on this?...Does weblogic server supports nvarchar2 data type in Oracle?..
I use CMP with java data type String mapped to nvarchar2 data type to oracle.when
i try to create a bean it throws "java.sql.SQLException: ORA-12704: character set
mismatch". Is there any configuration in the server to set the character set?..
can anyone help me on this?... -
Database adapter not importing table having data type as WF_EVENT_T
Hi All,
I have a requirement to import a table in the Database adapter. That table is having a column of data type “WF_EVENT_T”.
When I tried to import the table in database adapter I got the error as "The following tables are not supported in the Database Adapter and were not imported".
Then I modified the table by adding one more column with some other data type and tried to import that table.
It got imported successfully but I was not able to see the column with data type WF_EVENT_T in the table.
Any pointers to this would be of great help.
Thanks.Hi Harish
Thanks for your response.
I can create the table with the data type 'String'. However, the problem is when I try to update the table from a program in SE38 or a Function Module in SE37.
When I try to activate the PROGRAM or FUCNTION, I GET A MESSAGE THAT I MENTIONED EARLIER.
Here is the simple program that I have created that I am not able to activate
==========================================
REPORT ZTEST_STRING1.
tables: ztest.
ztest-zid = 2.
ztest-zstring1 = 'ABC'.
insert ztest.
===========================================
ztest has two fields
zid which is NUMC type
and zstring1 which is STRING type.
When I try to activate I get an error message as follows:
'ztest' must be a flat structure. You cannot use internal tables,
strings, references, or structures as components.
Edited by: Ram Prasad on Mar 20, 2008 6:08 PM -
Problem while creating with QUAN and CURR data type fields
I am trying to create a Z table. A couple of fields are of data type QUAN and CURR, which need to have reference table and reference field.
Field DataType Length Decimal
TOT_QTY QUAN 15 3
PRICE CURR 16 2
For reference table and fields, I found a Table HRPAD23 which has a field called N_QUANTITY (15,3) that matches my TOT_QTY field's data type and it also has a field called UN_PRICE that matches my PRICE field's data type. But when I use them as reference, and try to activate the table, I get an error "combination reference table/field does not exist". How do I fix this? Can anybody help me? Thanks in advance.
Chris
Edited by: martin99 on Aug 18, 2011 9:16 PMMartin,
I doubt that you need to add 2 extra fields in your table as suggested in the last post by John.
Your error is very CLEAR that you seem to be use wrong combination of reference table and field.
For QTY field,
use ref table - HRPAD23. ref field- UNIT
OR
ref table - VBAP ref field - VRKME
For PRICE field,
use ref table - PAD25 ref field - KWAER
OR
ref table - T77REFDOC ref field - CURRENCY
It should work.
BR,
Diwakar -
In condition records section Search help problem at one data type
hi there,
we are upgrading 4.6c version to ecc 6.0 past january. but in
vk11/vk12/vk13 condition master records sections, we have a problem for
one data type search help. when we want to join sales deal code to sales
detarmination condition, at one tables rows type price list (data type =
pltyp_d) does not allow f4 (search help).
thanks your interesting.
Sinan Altıner
Betek Boya ve Kimya Sanayi A.Ş.
SAP CONSULTANT / ABAP DeveloperHi surya,
I per your suggestion i did like this ,
data : date1 like sy-datum.
types : w_date1 type sy-datum.
date1 = w_date1(ztable-date1). "ztable-date1 - is screen field.
but it is giving error "The field "W_DATE1" is unknown, but there is a field with the similar name "DATE1" . . . ."
actually that value is coming after triggering PBO event but i want that value in at time of calling F4 help at that screen filed
suppose on screen the fields like
date : 30.08.2008.
matnr : ( .............F4 ) '".....on this field when i m pressing F4 that time only that above date materials should come as per my first query see my first thread.
thanks,
Sanket. -
Prob creating a new structured data type
I am trying to create a new structured data type to see it in data type diagram. When i try to right click on structured data type in DATA TYPES, i cant see any option like new structured data type etc. But this is working for distinct as well collection data types but not for structured.
By default, we are getting SDO_geometry structured data type for every model. We can change its name but cant create a new structured data type from there also.
What should i do to create a structured data type in data modeler.The right click on Structured Types does not open a menu on my Data Modeler either.
To create a Structured Type, click View on the main menu for the Data Modeler. Then click View Details -> Datatype.
In the Browser (called Navigator in other Oracle products), right click Datatype Model -> Show. This will show the DataTypes diagrammer.
Click on the New Structured Type button on the menu bar, then click anywhere on the DataTypes diagrammer, the Structured Type Properties window opens.
Enter all the details in the Structured Type Properties window to create your data type. Click Ok when finished. Your object type will be represented by a "blue" box on the diagram.
Jim Keese
Edited by: user9367840 on Feb 10, 2012 8:30 AM
Maybe you are looking for
-
AP Divs (layers) move when I open my website on different window size.
First of all, this is my first time trying to make a website. I'm doing an assignment for my class and i found it difficult for me to fix. I have spend 4-5 hours researching online but nothing work for me. Well,the problem is the AP Divs (layers) mov
-
Changing the default save as folder
We are using Adobe Standard X. Is there anyway to change where files are saved by default? I would like to be able to setup users so that when they save PDF it opens to a specific save as location.
-
Error in MIRO transaction BAPI
Hi, While using BAPI_INCOMINGINVOICE_CREATE to post an invoice with a purchase order (MIRO), we are getting the error message "Balance not zero: 165.60 debits: 0.00 credits: 165.60". Please help us to detect where the error is. We are entering values
-
Can't transfer many of my photos- in "JPEG/RAW" format from my iPad Air to my iMac (OS 10.9.5; iPhoto 9.5.1). As I have done many times before when I travel, I upload photos directly from my camera to my iPad Air, and then later transfer them from my
-
Data conversion of open checks
Hello, We are preparing our data conversions for a new implementation of SAP in the US. A question came up as to whether we should enter check masters for checks we have printed and mailed to our vendors but haven't been cashed at the time of go-live