Mapping problem for date field

Hi XI Friends..
In my file to idoc scenario..
i have field date value :2006-10-10T14:10:10
i have convert the above field into two fields idate :20061010
itime:141010
i used substring datetransfer functions..
but in static test of message mapping ..i am getting value for itime as 021010
if we give before 12:00:00 its converting properly..after 12.:00:00 its taking 12hr format only..
please guide me..
regards
ram

Hi Ram,
Is this still a problem?
I think the hint will also work in this case:
sourcefield --> replaceString(sourceField/constant[T]/constant[]) --> TransformDate(yyyy-mm-ddHH:MM:SS --> HH:MM:SS) --> targetFieldTime
sourcefield --> replaceString(sourceField/constant[T]/constant[]) --> TransformDate(yyyy-mm-ddHH:MM:SS --> YYYYMMDD) --> targetFieldDATE
Daniel

Similar Messages

  • Problem in output for date field

    Hi experts...
    i have one requirement like if string is initial i need to display blank for date field in  out put...
    but it is showing 00.00.0000..
    My code is...
    data: V_TEMP TYPE sy-datum,
          V_TEMP1 TYPE sy-datum,
          v_str type string,
          v_str1 type string.
      v_str1 = '2008091123457'.
      v_str = '0'.
      REPLACE ALL OCCURRENCES OF ',' IN v_str WITH SPACE.
      CONDENSE v_str NO-GAPS.
      v_TEMP1 = v_str1+0(8).
      if v_str <> 0.
    v_TEMP = v_str+0(8).
      else.
    v_temp = ''.
       endif.
         write:/ v_temp1 ,V_TEMP.
    output is: 11.09.2008   00.00.0000(BUt i want space here just blank...)
    can any body plz help me.....

    Hi,
    You can use something like that:
    WRITE: date NO-ZERO.
    Best regards.

  • Output channel mapping problem for surround encoder

    vista 64 bit
    sound blaster titanium x-fi sound card
    logitech 5.1 speaker set up
    hello, i am trying to mix a movie i made into 5.1. when i open the surround encoder, go to the audio hardware setup and try to set my output channel mapping i only get two speakers. i have a card that supports 5.1, 5.1 speakers, and get surround sound when i play a DVD. yet audition only recognizes my left and right speaker. any help on how i get my output channel mapping set correctly?
    thanks in advance!

    Thank you for the info, though I admit I'm still a bit confused.
    My card is a creative x-fi extreme gamer.  It has 3 line out jacks and one line in jack.  T  Oh, here it is in the manual...thats just not good enough.
    But what is the surround encoder dialog box doing, if not encoding surround mixes?  The manual says I can exportsurround sound from a multitrack session. 
    Date: Mon, 1 Jun 2009 21:58:08 -0600
    From: [email protected]
    To: [email protected]
    Subject: output channel mapping problem for surround encoder

  • Select-options for date field.

    Hi all,
    i need to give select options for Date field.How can i give that.
    Thanks & Regards
    Ravi.

    Hi Ravi,
    Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
    1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
    2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
    3. View: Properties Tab:Create Controller Usage and select
    SELECT_OPTIONS     WDR_SELECT_OPTIONS                   
    SELECT_OPTIONS     WDR_SELECT_OPTIONS     INTERFACECONTROLLER
    4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
    5. View Attributes Tab: Create Following two attributes:
    M_HANDLER type IF_WD_SELECT_OPTIONS
    M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
    6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
    7:CREATE_SELECTION_SCREEN: Write following Code:
    * Data Declaration
      data:
            lt_range_table TYPE REF TO DATA.
      data:
            lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
            lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
    * Execution
    *  Create Used Component
      lr_componentusage = wd_this->wd_cpuse_select_options( ).
      if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
        lr_componentusage->create_component( ).
      endif.
    *  Get pointer to interface controller of select options
      wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
    * initialize selction screen
      wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
    *  Create Range Table for: Date
      CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
        EXPORTING
          I_TYPENAME     = 'DATS'
        RECEIVING
          RT_RANGE_TABLE = lt_range_table.
    * Add Selection Field for: Date
      CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
        EXPORTING
          I_ID                         = '<name of date attribute in the context>'
    *      I_WITHIN_BLOCK               = MC_ID_MAIN_BLOCK
    *      I_DESCRIPTION                =
    *      I_IS_AUTO_DESCRIPTION        = ABAP_TRUE
          IT_RESULT                    = lt_range_table
    *      I_OBLIGATORY                 = ABAP_FALSE
    *      I_COMPLEX_RESTRICTIONS       =
    *      I_USE_COMPLEX_RESTRICTION    = ABAP_FALSE
    *      I_NO_COMPLEX_RESTRICTIONS    = ABAP_FALSE
    *      I_VALUE_HELP_TYPE            = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
    *      I_VALUE_HELP_ID              =
    *      I_VALUE_HELP_MODE            =
    *      I_VALUE_HELP_STRUCTURE       =
    *      I_VALUE_HELP_STRUCTURE_FIELD =
    *      I_HELP_REQUEST_HANDLER       =
    *      I_LOWER_CASE                 =
    *      I_MEMORY_ID                  =
    *      I_NO_EXTENSION               = ABAP_FALSE
    *      I_NO_INTERVALS               = ABAP_FALSE
    *      I_AS_CHECKBOX                = ABAP_FALSE
    *      I_AS_DROPDOWN                = ABAP_FALSE
    *      IT_VALUE_SET                 =
    *      I_READ_ONLY                  = ABAP_FALSE
    *      I_DONT_CARE_VALUE            =
    *      I_EXPLANATION                =
          I_TOOLTIP                    = 'Select Date'.
    8: To Fetch Data entered in the selection field, write following code on action of button click:
      data:
            lt_date type REF TO DATA.
    FIELD-SYMBOLS:
                     <fs_date> TYPE table.
      *  retrieve Date from Select Options
      CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
        EXPORTING
          I_ID           = '<attrib_name>'
        RECEIVING
          RT_RANGE_TABLE = lt_date.
    *  assign Date Field Symbol
      ASSIGN lt_date->* to <fs_date>.
    9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of  WDR_SELECT_OPTIONS component.
    Regards,
    Reema.

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Search help for DATE field

    HI all,
    I want to attach search help for a DATE field created in screen painter.
    For PERNR, PREM is attached. Similarly what is the statndard search help name for DATE field?
    Thanks,
    Shanthi.

    Hi ,
    Declare the date field as sy-datum ,
    parameters : date type sy-datum .
    This shud bring the standard search help for date .
    Thanks ..Get back for any issues.
    Anil

  • When we give wildcard for date field

    can we give wild card for date field in range table.
    my code is this
    RAnges r_erdat for mara-erdat
    r_erdat-sign = 'I'.
    r_erda-option =  'CP'.
    r_erdat-low = '2009'.*
    append r_erdat.
    select erdat from mara
      INTO CORRESPONDING FIELDS OF TABLE itab
      where erdat
      in
       r_erdat.
    Moderator Message: Basic date questions are not allowed.
    Edited by: kishan P on Oct 5, 2010 10:46 AM

    <<Don't answer questions that break the rules. Date questions are not permitted>>
    Hi,
           Instead you can take the entire range for that particular year.
    r_erdat-sign = 'I'.
    r_erda-option = 'BT'.
    r_erdat-low  = '20090101'.   <- begin date
    r_erdat-high = '20091231'.   <- end date
    append r_erdat.
    Regards,
    Srini.
    Edited by: Matt on Oct 5, 2010 12:46 PM

  • F4 help for date field

    Hello All,
    I am using DATS 8 as a domain for date field but f4 help is not coming
    Help me.
    What to do ?
    Thanks ....................

    HI,
    If u are in Diallog Program then use 'F4_DATE' FM.
    Example :
    CALL FUNCTION 'F4_DATE'
        EXPORTING
          date_for_first_month         = sy-datum
        IMPORTING
          select_date                  = wa_asgntkts-begda
        EXCEPTIONS
          calendar_buffer_not_loadable = 1
          date_after_range             = 2
          date_before_range            = 3
          date_invalid                 = 4
          factory_calendar_not_found   = 5
          holiday_calendar_not_found   = 6
          parameter_conflict           = 7
          OTHERS                       = 8.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Or
    If u are in Report Program then maintain ur data type as sy-datum.
    Please give neccessary points if u help this..
    Ranjith

  • Problem with Date fields in Search panel

    Hi all,
    I use TP2 and in my jspx page I have a search panel with two date fields and table where the results is displayed. But there is a problem with these date fields, because when I search dates the results is nothing even I retype the date from table. Also I have other pages where this problem exist with same structure.
    Could somebody help me with some advice?
    Thanks in advance!

    Hi Frank,
    Thanks for the answer.
    I use the standart method to make search panel with drag and drop the data control to the page. The other search panel fileds work fine, only the date fileds are problem. Maybe something in view object doesn't work properly.
    Here I post the code from my page.
    <table border="1" style="margin:5px;">
    <tr>
    <td>
    <af:showDetailHeader text="ТЪРСЕНЕ" disclosed="true"
    inlineStyle="width:780px;">
    <table cellspacing="2" cellpadding="3" border="0">
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.EGN.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.EGN.inputValue}"
    label="#{bindings.EGN.hints.label}"
    columns="#{bindings.EGN.hints.displayWidth}"
    maximumLength="#{bindings.EGN.hints.precision}"
    simple="true"/>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.LNC.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.LNC.inputValue}"
    label="#{bindings.LNC.hints.label}"
    columns="#{bindings.LNC.hints.displayWidth}"
    maximumLength="#{bindings.LNC.hints.precision}"
    simple="true"/>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.AccPersonID.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.AccPersonID.inputValue}"
    label="#{bindings.AccPersonID.hints.label}"
    columns="#{bindings.AccPersonID.hints.displayWidth}"
    maximumLength="#{bindings.AccPersonID.hints.precision}"
    simple="true"/>
    </td>
    </tr>
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.PersonName.hints.label}"/>
    </td>
    <td align="left" colspan="5">
    <af:inputText value="#{bindings.PersonName.inputValue}"
    label="#{bindings.PersonName.hints.label}"
    columns="#{bindings.PersonName.hints.displayWidth}"
    maximumLength="#{bindings.PersonName.hints.precision}"
    simple="true"/>
    </td>
    </tr>
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.DateFrom.hints.label}"/>
    </td>
    <td align="left">
    <af:inputDate value="#{bindings.DateFrom.inputValue}"
    label="#{bindings.DateFrom.hints.label}"
    simple="true">
    <af:convertDateTime pattern="#{bindings.DateFrom.format}"/>
    </af:inputDate>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.DateTo.hints.label}"/>
    </td>
    <td align="left">
    <af:inputDate value="#{bindings.DateTo.inputValue}"
    label="#{bindings.DateTo.hints.label}"
    simple="true">
    <af:convertDateTime pattern="#{bindings.DateTo.format}"/>
    </af:inputDate>
    </td>
    </tr>
    <tr>
    <td align="right">
    <af:commandButton actionListener="{bindings.Execute.execute}"
    text="#{bundle.FindBtn_LABEL}"
    disabled="#{!bindings.Execute.enabled}"
    icon="/images/find.png"/>
    </td>
    <td align="left">
    <af:commandButton text="#{bundle.FindClearBtn_LABEL}"
    icon="/images/find_clear.png"
    action="#{PeopleBean.onClearVCBtn}"/>
    </td>
    </tr>
    </table>
    </af:showDetailHeader>
    </td>
    </tr>
    </table>
    Also I have a result table for the search panel, but I don't believe the problem can be there because it works fine when I search in fields different by inputDate.
    Do you have any suggestions?

  • Mapping problem for IDOC Type DESADV

    Dear all
    I need to change Segment E1EDP07 in the message type DESADV.
    I should concatenate VBELN and VGPOS into BSTNK.
    I tried to do this with BD79 (Rules for Data Converting). This seems not to work as I can get only 1 sender Field.
    So I tried to use the userexit EXIT_SAPLBD11_001, but it seems that this is not used. I have set a break-point for debugging and treated the IDOC with RSNAT00 without any stop.
    Do you have any ideas how I can do this?
    Herbert

    >
    Herbert Schlup wrote:
    > I have 2 entries for my DWSADV01
    >
    > 1 with FM IDOC_INPUT_DESADV and the other with IDOC_INPUT_DESADV1
    With the first one, you cannot do much, as there is no user exit in it. But in the second one, there is a user exit when the idoc data is parsed the exit name is EXIT_SAPLV55K_004 and is called in the subroutine  DESADV_IDOC_PARSE in the function.
    But please note that the function IDOC_INPUT_DESADV1 is used with process code DELS for message type DESADV and Idoc type DELVRY01 and IDOC_INPUT_DESADV  is used with process code DESA and message type DESADV with IDoc type DESADV01.  So you might be using IDOC_INPUT_DESADV  function and unfortunately there are no user exits to handle your requirement.
    My advice would be to check with the source system or the middleware to define the mapping of these fields according to your requirement. But if that is not possible, then you need to first check which message type and IDoc type you are receiving and proceed accordingly
    KR,
    Advait

  • Problem in date field

    Hello All,
    I have a form which has several date fields.I want to autopopulate these dates to the current date unless and until the user changes it. For ex: We have a DateField 1: When the form opens it shows today's date. If the user does not change this date and if the form is again opened 2 days after,then it shows today's date instead of showing the date which is 2 days after.
    Thanks.
    Bibhu.

    Hi Bibhu,
    There are two problems trying to implement this:
    Preventing the script that calculates the current date, from firing when the form is reopened. This script is probably in the docReady event of the current date field.
    If the form is reopened and the user enters with the field that has the script to set the form data input date then this script will fire again, changing the date.
    I think your best option is to have two readOnly date fields, currentDate (visible initially) and dataInputDate (hidden). These fields would be directly aligned one on top of the other.
    Then in the field that you select as triggering the setting of the date that makes when the user input data you would hide the currentDate and show the dataInputDate. Example in the exit event
    if (this.rawValue !== null)
         currentDate.presence = "hidden";
         dataInputDate.presence = "visible";
         //... set the date for the dataInputDate
    else
         currentDate.presence = "visible";
         dataInputDate.presence = "hidden";
         dataInputDate.rawValue = null;
    Make sure the preserve script changes is ticked in the File > Form Properties > Defaults tab.
    As I say, if this field is re-entered and exited again at any stage then the script will re-fire and change the date.
    Hope that helps,
    Niall

  • Anomaly in Forms6.0 (Especially for Date Field)

    Dear all OTN Members,
    I Don't have any idea of this "anomaly" happened in my Dev2K. My problem is When I run my form with f60run.exe, everything run as normal as it is. But sometimes, when I get my cursor focused in one field, which have Date datatype, and I try to insert the date (sample : '02-04-2000'), It goes mad. I mean that everytime I try to type the year, it always become '02-04-0002' and the cursor will highlight the field. For additional information, I didn't put any trigger in that field. I think I need some suggestion here, I don't know if it is some kind of bugs or just my Dev2K need to be reinstalled. I have try to run my forms in another PCs, but the anomaly still show up sometimes. I really need help on this. Thanks for your suggestions.

    Hi Franko,
    I just want to confirm whether u are using any calendar to select your date value.I do face problem while selecting a date value from a calendar.The problem is a replica as in your case.Without that looks like forms6i is doin fine for date columns.I shall get back to u in case i find any solutions to ur problems.
    Venkatesh C

  • Document data to be mapped against ERP data fields

    Hi GTS-Experts,
    is anyone of you aware of an existing mapping table that links data elements in customs declaration messages to data elements in SAP GTS or ERP?
    Within the scope of a fit-gap analysis, I'm trying to identify possible gaps where data required for the NCTS declaring might not be available in SAP ERP. I'm currently reviewing lists of message elements for specific NCTS implementations (e.g. ATLAS in DE, PLDA in BE), but this is not straightforward at all.
    Thanks for your support and regards,
    Martin

    This is a good idea, and should be standard with the purchase of GTS.
    Advise if you are able to find a source, as it would be useful to all users of GTS.  I've considered mapping data fields in SAP and GTS against the WCO Customs Data Model, in order to have a common definition for the fields, and to facilitate mapping to EDI messages and for user help.

  • SQL Query for Date field updation

    I want a query from u.. Hope u help me with a
    solution soon..
    My Q: I want to update a date field in Oracle
    database. But the condition is that i shouldnt change
    the hours, minutes & seconds of the date field.
    generally , if we update the date field then it takes
    the default values for hours, min's & sec's to
    00:00:00.
    EX : if we have a value 21-SEP-2002 04:54:44 in a date
    field. I want to update it to 22-SEP-2002 04:54:44.
    But it updates to 22-sep-2002 00:00:00 if we use
    UPDATE command.

    Use a PreparedStatement:
    PreparedStatement ps = conn.prepareStatement("SELECT * FROM TEMP WHERE TDATE > ? AND TDATE < ?");
    // note: month numbers start at 0, so 1 is february
    GregorianCalendar c1 = new GregorianCalendar(2002, 1, 11, 11, 0);
    GregorianCalendar c2 = new GregorianCalendar(2002, 1, 18, 22, 0);
    Date d1 = c1.getTime();
    Date d2 = c2.getTime();
    java.sql.Timestamp sqlDate1 = new java.sql.Timestamp(d1.getTime());
    java.sql.Timestamp sqlDate2 = new java.sql.Timestamp(d2.getTime());
    ps.setTimestamp(1, sqlDate1);
    ps.setTimestamp(2, sqlDate2);
    ResultSet rs = ps.executeQuery();
    // get results from the result setJesper

  • Problem with Date-Field

    Hi,
    I have a problem with a date-field. Maybe I must describe the problem more detailled, but first I just want to ask you, if you know the following error-message: "21.10.2010 kommt nicht in der Menge der erlaubten Werte vor". I don't know the correct translation but it must be something like this: "21.10.2010 does not occur in the quantity of the permitted values". I don't find the position in the sourcecode of this message. And I know, that this message isn't thrown by a functionblock from SAP. So what is the describtion of this message?

    Yes I have a date field in my form. Ok I must describe it more detailled. I have an employee searchfield. After select an employee you see a form. After filling the form you click on "Send". It creates a ticket and sends the data to the Backend and jumps back to the employee search field. Untill this point everything works fine. There is no problem with the datefield. Now I want to create the form. I choose an employee and fill the form. But now it comes this message. But not after clicking the "send" button. The message comes after changing some data (e.g. change a radio button). So it looks like a validationproblem, but only at the second creationprocess. Maybe the first date is in some cache? I don't know...

Maybe you are looking for

  • Graphical Mapping Vs XSLT mapping Vs Java Mapping Vs ABAP Mapping

    Hi Experts,           I have a question regarding different message mapping options available in XI namely Graphical Mapping XSLT mapping Java Mapping ABAP Mapping Q1: Which amoung the above mappings is the best and why? Q2: On what cases Graphical,

  • Can't get printer working

    I have CUPS running on a BSD server - I have had no problem connecting various BSD workstations and my own Macbook (OS X 10.4) to the published print queues, but my wife's Macbook (OS X 10.5) will not work. Under the default printers I should be able

  • TRIP send email which contains junk characters

    In TRIP transaction after entering TRIP and Saving it I select OVERVIEW then select Mail/Fax button and send Trip details as e-mail to any address. The email body shows Junk characters. What is the Problem. We are on ECC 6 Pack 4 Regards, Sandy Raine

  • Item render

    Hi All, I have a datagrid and which should have the combobox in a column and the data for the combobox should be passed from httpservice i tried with dataprovider to that combobox in datagrid but its not accepting that it is giving some error find me

  • Mac mini not working with logitech h130 headset's microphone

    Hi, I have a mac mini (late 2014) model that appears to not work with my headset's microphone, my headset is a logitech h130 that works perfectly with all other devices that I have (which are not apple), please fix! ASAP