How to map field with xsd:dateTime dataType?

Dear friends,
I need to produce the following output for a field defined as xsd:dateTime.
2009-02-18T09:53:02.491+01:00
I tried with a XSLT mapping with a XPATH function "current-dateTime()". However, the XSLT engine of XI doesn't seem to support this XPATH function.
How can I produce the output according to the XSD datTime datatype?
Regards,
Roberto

Hi
You can use XSLT runtime constants.
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
Check this link for XSLT date time
Error in Current Date in XSLT Mapping
Regards
Vishnu

Similar Messages

  • How to map field with nillable = 'true'

    Hi,
    how can i map with the graphical tool of integration repository a field with nillable = 'true'?
    When i have a value to map there is no problem, only when we have the source message without the element we map the problem occurs. is there an attribut to be set or something else?
    thx

    Hi Ralph,
        From what I understand, there is a target field which is mandatory.
    If the source field that is mapped to this field exixts, then there is no problem.
    But when the source field doesn;t exists, then there is a problem. Right?
    YOu can use the node function mapWithDefault for your requirement.
    source -> mapWithDefault -> target
    Regards,
    Ravi Kanth Talagana

  • How to deal with xsd:dateTime from webservice in ADF? (Frank can you help?)

    I have a webservice that returns a date in the yyyy-MM-dd'T'HH:mm:ss.SSSZ format (as far as i know the default Calendar type format) specified by an xsd:dateTime. When i generate a webservice datacontrol on the service i get an entry like <Attribute Name="testDate" IsUpdateable="0" Type="java.util.Date" /> in the datacontrol xml file generated for the service (should that not be a java.util.Calendar type?). When i try to output the value on a jsf page it results in the following error:
    oracle.jbo.domain.DataCreationException: JBO-25009: Can not create object of type java.util.Date with value 1994-02-01T00:00:00.000+01:00
    As far as i understand adf tries to create a java.util.Date object from the webservice output 'string' which fails. The webservice is a plsql webservice generated with jdeveloper. If i change the type in the datacontrol xml file from java.util.Date to java.lang.String it prints out the entire date string but i would like to keep it a date type to be able to format the output to the dd-MM-yyyy pattern.
    Any help or suggestions.....?
    Kind Regards,
    Andre Jochems
    Repost
    Repost

    Andre,
    sorry, for not replying earlier - missed this post obviously. I don't know whether or not the behavior you see is correct or a bug - need to investigate this first (or find somebody to invest).
    However, as a work around for now you can:
    Option 1: bind the UI component to a managed bean that then accesses the binding layer to access the Web Service Data Control. This way you can work with Strings and just create a java.util.Date object for the component using the SimpleDate formatter
    Option 2: Use a Web Service proxy and a JavaBean DataControl to access the proxy. This allows pre-processing of the Web Service response, e.g. handling the Date
    Note that this is just for possible work around until I find the time to look at this. However, if this is a blocking issue for a production application then I suggest to contact customer support for immediate help
    Frank

  • How to query a datetime field with a datetime offset value

    Hi Experts
    I have a problem where I want to query a date time field with a value with a date time offset, and convert the value to the stored timezone.
    The functionality I am after is that the user enters the value 30/08/2011 22:14:46 -4:00 and the report converts it into the timezone of the stored field and performs the query using the date time filter and the local equivilent of the date time entered.
    Has anyone had experience in date time offsets and OBIEE?
    suggestions appreciated.
    Cheers

    Hi,
    Use below one
    cast the timestampadd (sql_tsi_year, -1, timestampadd (sql_tsi_day, -1, current_timestamp)) to a date and see if it
    drops the current time stamp and makes it 00:00:00
    Thanks
    Deva

  • How to mapping Bapi_EeCatimesheet with Web Dynpro iview

    I have problem with CATS:
    1. mapping field from Web Dynpro iview with Bapi_EeCatimesheet_Worklist
    Column: Activity = Bapi_EeCatimesheet_Worklist_input_Out.???
    Column: xxx = ???
    Variable as TimeSheet of SAP Easy View
    2. How to insert Employee timesheet into SAP System by Bapi

    Hi,
    At first time the ApplicationParameter was not displayed among the mappable properties. After that I changed the ApplicationParameter property of the WD iView (so it became different from the default one) and created a new room template. What happened ? At the new template I could map to room_id to the ApplicationParameter. Interesting, not?
    One other thing: What do you think about the following ?
    1. First creating a "Concat Strings" extension to create a string like "room_id=<room_id>"
    2. Creating an other extension and mapping the newly created string to the ApplicationParameter property
    3. Getting the parameter from WD with the help of getRequestParameter(java.lang.String key)
    I have not tried it yet, but I plan to do it.
    Regards,
    Ferenc

  • Using "Update All Mapped Fields" with multi-value attributes

    Is it possible to update a value in a multi-value attribute through the import manager?  It appears that if a source value is different then it just gets added as another value to the record.
    For example, a product has an attribute of speed which is measured in revolutions/minute. Some products can be rated at two speeds (i.e. 1800/3600).
    I created a numeric attribute for speed and enable only nominal rating and selected multi-valued.
    In import manager, I set "/" as multi delimiter for source field.  This created two entries in destination attribute, 1800 and 3600. 
    However, if on subsequent imports the speed values changes for this record (i.e. 1200 and 1800) then I will now have 1200, 1800, and 3600 as values for this record.
    Would the proper solution be to create two individual numeric attributes that are single valued (i.e. Speed1 and Speed2)?

    Hi Aaron,
    in your example it would make sense to use two different attributes called "Speed1" and "Speed2". Using the multi value option, MDM allows you to store a list of values into a single field. This list is more or less unlimited, you can add as many values as you like. A change of an existing value is not possible. The reason is that Import Manager does not know, which value you've changed! So it simply adds the "new" record (which is the 1200 in your example) to your value list. This is the intended behaviour of the "update all mapped fields option". If you really want to replace the values, you can check if the "Replace" option is useable for you. But note, that the replace will replace the complete existing record with the incoming new one. This means if the product you want to import with the replace option is smaller than the existing one (maybe it does not contain values for all segments), you'll loose data in MDM.
    BR Michael

  • JPA - How to map relation with NON-KEY field.

    Hello.
    Problem with mapping is NullPointerException when calling EntityManager em.createNativeQuery:
    Table1 (Bm_Treeassoc):
    MY_ID (Primary Key)
    BOOKMARKID (-> MY_ID in Table2)
    Text
    Table2 (Bm_Bookmark):
    MY_ID ( Primary Key)
    Text
    //CLASS BmTreeassoc
    @OneToMany(targetEntity=BmBookmark.class, mappedBy="treeMaster", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
         private BmTreeassoc treeMaster = null ;
    //CLASS BmBookmark
    @ManyToOne(targetEntity=BmTreeassoc.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL, optional = true)
         @JoinColumn(name="MY_ID", referencedColumnName="BOOKMARKID", unique=true)     
         private ArrayList<BmBookmark> bookmarks = new ArrayList<BmBookmark>() ;
    This Leads to the exception.
    Mapping form MY_ID to MY_ID instead BOOKMARKID will not throw the exception,
    so I assume I have a problem with the KEY Field?
    Any ideas?
    Kind regards
    Frank

    OK,
    after reflecting (after maniacally trying for days).
    Here is the answer by myself:
    I do not use the mapping stuff at all no more.
    I solved my join by using a view:
    CREATE VIEW SAPDEMO.VTree
         AS SELECT t.TreeID, b.MY_ID, b.CLIENTID, b.Nickname, u.URL
         FROM SAPDEMO.BM_TreeAssoc as t
              JOIN SAPDEMO.BM_BOOKMARK as B ON t.BookmarkID = b.MY_ID
              JOIN SAPDEMO.BM_URL as U ON b.URL = u.MY_ID
    Create the entity and then do a:
    select * from VTREE where clientid=1 and treeid=446
    Works great, simple, fast.

  • Mapping problem with xs:dateTime

    Hi there,
    I am trying to set up a demo project for training purposes illustrating the implementation of composite services using third party and ECC services. For the third party portion of it, I am using the Fedex web services.
    After importing the remote services, I defined my custom complex datatypes for the application services and mapped the lean app service interface to the broad remote service interface. The missing mandatory data fields of the remote service I stored as fixed values within the mapping itself. so far so good.
    The problem appeared with a time stamp field (xs:dateTime). When storing a value like "2009-08-19T22:00:00+0100", the resulting code in the constants file (<ServiceName>_<OperationName>_In_Constant.java) looks like this:
    javax.xml.datatype.XMLGregorianCalendar ShipTimestamp = RequestedShipment.getShipTimestamp();
    if ( ShipTimestamp == null ){
           ShipTimestamp = "2009-08-19T22:00:00+0100";
           RequestedShipment.setShipTimestamp(ShipTimestamp);
    Obviously, this got to fail as there is a type mismatch (String vs. XMLGregorianCalendar).
    After this, I tried to use the proper java expression as the default value in the mapping
    ........javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar("2009-08-19T22:00:00+0100")
    As expected, the expression is copied into the code 1:1, but after that, the compiler complains that there is an unhandled exception (DatatypeConfigurationException).
    One solution would obviously be to put the timestamp into the signature of my application service operation, but I would consider this an unnecessary workaround.
    any ideas ?
    Nick

    I actually did find the solution although a very messy one. If I use the following snippet as the default value
    ........com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.parse("2009-08-19T22:00:00+0100")
    the generated code compiles without error. Nevertheless, not very nice. hope there is an alternative way of doing that.
    Nick

  • How to Map Field of R/3 (Lenth more then 60) to an Infoobject

    Hi All,
    I want to bring long text in my cube which is already having purchase data.
    As we have enhanshed the fields in  my data source 2lis_02_itm and Scl. Now how can i map my infoobject in BW with the fields so that the data will be stored in the cube correclty.
    Regards
    Premanshu Gupta

    Hi,
    Check the Blog,It will solve ur problem,they have given the step by step procedure.
    /people/sap.user72/blog/2006/06/03/long-texts-in-sap-bw-modeling-150-follow-up

  • Quantity  Conversion : How to map 0MAT_UNIT_ATTR with UOM0MATE ODS

    Hi dear BWers,
    Can any of you help, about mapping 0MAT_UNIT_ATTR fields to UOM0MATE ODS fields in conversion ?
    (UOM0MATE  is my generated ODS for conversion factor)
    I've mapped them as below, but not sure with which Datasource field to map 0BASE_UOM:
    Material (0MATERIAL) ==> Datasource : MATNR Material
    Quantity - Counter (0UOMZ1D) ==> Datasource :UMREZ Counter
    Quantity -Denominator (0UOMN1D) ==> Datasource :UMREN Denominator
    Base Unit of Measure (0BASE_UOM) ==> Datasource :<b> ???</b>
    Unit of Measure (0UNIT)  ==> Datasource :MEINH Alternative Unit
    Regards,
    Rozz

    Solved on my own as below:
    0Base_Unit exists in master data table of InfoObject 0MATERIAL.
    While creating tranformation rule for ODS, 0Base_Unit should be mapped to master data attribute of 0MATERIAL.
    So, every item's base unit is loaded not from 0MAT_UNIT_ATTR or similar datasource, but from 0MATERIAL master data.
    (Of course I0MATERIAL master data should have been loaded beforehand)

  • How to fill field with test data in alv grid display

    hi all,
    i m adding field TEXT to the structure for displaying grid.
    i m modifying program like this
    DATA: ALV_OUTPUT  LIKE HRPDV_EXPIRED_Q OCCURS 0 WITH HEADER LINE.
    TYPES : BEGIN OF FS_OUTPUT .
          TEXT(20) TYPE C.
            INCLUDE STRUCTURE HRPDV_EXPIRED_Q.
    TYPES       TEXT(20) TYPE C.
    TYPES    END OF FS_OUTPUT.
    DATA: fs_output like table of alv_output.
    CLEAR WA_FIELDCAT.
      WA_FIELDCAT-FIELDNAME = 'TEXT'.
      WA_FIELDCAT-seltext_l = 'Abteilungs Struktur'.
      wa_fieldcat-tabname   = 'ALV_OUTPUT'.
      WA_FIELDCAT-COL_POS  = '13'.
      APPEND WA_FIELDCAT TO P_GT_FIELDCAT.
    this is what i have write for diapalying field. but my question is how to fill test data with field TEXT.I m writing like this but not executed in the aboove grid dispaly statement.
    loop at alv_output.
    *alv_output-text(20)  = 'abcdefgh'.
    *modify alv_output.
    *endloop.
    plz tell me how to fill test data

    hI..,
    Your table declaration has to be like this..
    TYPES : BEGIN OF FS_OUTPUT .
    INCLUDE STRUCTURE HRPDV_EXPIRED_Q.
    TYPES TEXT(20) TYPE C.
    TYPES END OF FS_OUTPUT.
    DATA: ALV_OUTPUT LIKE standard table of fs_output initial size 0.
    loop at alv_output <b>into fs_output</b>.
    <b>fs</b>_output-text(20) = 'abcdefgh'.
    <b>modify alv_output index sy-tabix from fs_output transporting text.</b>
    endloop.
    Now give this table alv_output to the GRID_DISPLAY function module..
    you will get the required output !!
    Plz do remember to close the thread when ur problem is solved !!
    reward all helpful answers !!
    regards,
    sai ramesh

  • How to get field in form having Datatype "BLOB"

    hello,
    I have an "Picture" field in my table which is of datatype "BLOB"
    can someone please help me how can i get that field in my 'FORM'.
    Thanks
    Sanjay

    You need the following procedure - execute grant to public:
    CREATE OR REPLACE PROCEDURE image_display (p_image_id IN NUMBER)
    AS
       l_mime        VARCHAR2 (255);
       l_length      NUMBER;
       l_file_name   VARCHAR2 (2000);
       lob_loc       BLOB;
    BEGIN
       SELECT mime_type, blob_content, NAME, DBMS_LOB.getlength (blob_content)
         INTO l_mime, lob_loc, l_file_name, l_length
         FROM image_table
        WHERE ID = p_image_id;
       -- Set up HTTP header
       -- Use an NVL around the mime type and  if it is a null, set it to
       -- application/octect - which may launch a download window from windows
       OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
       -- Set the size so the browser knows how much to download htp.p('Content-length: ' || l_length);
       -- The filename will be used by the browser if the users does a "Save as" htp.p('Content-Disposition: filename="' || l_file_name || '"');
       -- Close the headers
       OWA_UTIL.http_header_close;
       -- Download the BLOB
       wpg_docload.download_file (lob_loc);
    END image_display;Then you need to create a display item
    Source Used: Allways replacing any existing value...
    Source Type: SQL Query
    and in the SQL Query enter the following:
    SELECT    '&lt;img src="#OWNER#.image_display?p_image_id='
           || NVL (ID, 0)
           || '" />'
      FROM image_table
    WHERE ID = your_idDenes Kubicek

  • How to map fields Condition group1- condition group5 [KDKG1- KDKG5] to CRM

    We have a requirement to enhance the BP master data in CRM in such a way that  Condition group1- condition group5 of ECC customer master data can be mapped to the BP master data in CRM. This is required because the fields are used in pricing and pricing records needs to be sent to CRM.  These fields are not in CRM and SAP suggests an enhancement.
    Can anyone suggest how to do the middleware enhancements sothat the field values can be captured in CRM?
    Maximum will be rewarded.

    Sorry, didn't read it properly. In this case you have to do enhancement. Do the following:
    ERP side:
    - in sm30 for table TBE24 define new entry for user exit
    - in table TPS34 define user exit for process CRM0_200 and some Z function and product from step 1
    - define Z function as copy of standard fm SAMPLE_PROCESS_CRM0_200
    - define coding for Z function. you will have to append your data to T_BAPISTRUCT which contains data that are sent to CRM
    CRM side:
    - in sm30 for table TBE24 define new entry for user exit
    - in table TPS34 define user exit for process SMOUTIL3 and some Z function and product from step 1
    - define Z function as copy of standard fm SAMPLE_PROCESS_SMOUTIL3
    - define coding for Z function. you will have to read data from TI_BAPIMTCS which contains data that are sent from ERP

  • How to map fields

    hi experts,
    i have 3 constant fields,
    i want to map 3 constant fields to fund ,g/l account , functional area.
    can u give me the code please

    did you try to write the code yourself? and are you having any issues with that?

  • How to make fields with Forms Builder "read only"

    Hello,
    I'd like to make the fields "date" and "user" in the news form read only so that the user cannot edit them. Is this possible and how. ?
    Andreas

    Yes its possible. You use a label instead of a field. But you need to refer to datascheme in your label.
    Example: you drag drop your field on the work page.
    You look in its attributes and copy the part datascheme reference.
    You remove the field and drop a label instead on the workfield. You refer to this datascheme instead of the fixed caption.
    Best Regards,
    Frederik

Maybe you are looking for