Time Conversion Routine- Help

I have a requirement where Iam haivng the Value as Input in CSV File for Time Feild as 12:00:00 A or 10:15:00 PM.
As per BW Standard Time feild object allows HH:MM:SS format .Hence, I need to know if there is any Solution to convert the Input Data into required BW Timefield Format as my Job is failing to upload through CSV File into BW.
Would appreciate your help in advance
Thanks
Ashley

Hey why are you asking the same question again ???
Time Conversion Routine- Help

Similar Messages

  • Oracle Interval and Date/Time Conversions. Help!

    Hi guys.
    I am trying to migrate from MySql to Oracle some queries, but I don't know how works some SQL functions in Oracle.
    One of my queries I have to add to a date variable an amount of microseconds, seconds or minutes, in mysql the function is like this:
    DATE_FORMAT(LOCALDATE + INTERVAL DeltaT * 1000 MICROSECOND , '%d/%m/%Y %H:%i')
    I woud like also convert seconds, minutes, or hours to a Time variable, my example in mysql is like this:
    TIME_FORMAT(SEC_TO_TIME(DeltaT div 1000),'%H:%i')
    By the way: DeltaT is in seconds and LOCALDATE is a date variable.
    I hope you can help me with this.
    Thanks.

    SQL> CREATE TABLE t (localdate DATE, deltat INTEGER);
    Table created.
    SQL> INSERT INTO t VALUES (DATE '2006-12-25', 1234);
    1 row created.
    SQL> INSERT INTO t VALUES (DATE '2006-12-25', 23456);
    1 row created.
    SQL> alter session set nls_date_format = 'DD-MON-RRRR HH24:MI:SS';
    Session altered.
    SQL> SELECT localdate
      2       , deltat
      3       , localdate + deltat/86400
      4  FROM   t;
    LOCALDATE                DELTAT LOCALDATE+DELTAT/864
    25-DEC-2006 00:00:00       1234 25-DEC-2006 00:20:34
    25-DEC-2006 00:00:00      23456 25-DEC-2006 06:30:56
    2 rows selected.

  • Diffence between time conversion and time broadcasting

    what is the diffence between time conversion and time broadcasting

    Time conversions: You can update source time characteristics to target time characteristics using automatic time conversion. This function is not available for DataStore objects, since time characteristics are treated as normal data fields. The system only presents you with the time characteristics for which an automatic time conversion routine exists.
    Time distribution: You can update time characteristics with time broadcasting. All the key figures that can be added are split into correspondingly smaller units of time. If the source contains a time characteristic (such as 0CALMONTH) that is not as precise as a time characteristic of the target (such as 0CALWEEK), you can combine these characteristics in the rule. The system performs time broadcasting in the transformation. Time broadcasting always applies to all key figures.

  • Conversion routine for time key figure

    Hi,
    i have a filed in datasource which has length 5 ( of numeric char ).it may be coz time can be represented as "hh:mm" which has of course of length 5.
    this particular field is mapped to a key figure of type time ( which is only 4 numc ).
    because of this mismatches transfer rules are not getting activated.
    what i need to do now? is it neccessary to write a conversion routine again?if yes, can any body write here the code required for it?
    thanks,
    Ravi

    Hi Ravi,
    Assuming time comes in 'HH:MM' , colon placed explicitly , Code should look like ...
    bwtime(2) = r3time+1(2) .
    bwtime2(2) = r3time3(2).
    Where BW_Time stands for info object.
              R3time stands for transfer structure field.
    Normally time field is of type  numc lenght 6 ( HHMMSS) and inthat case should not be any issue when used in BW system.
    Hope that helps.
    Regards
    Mr Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • Conversion Routine... plz help

    Dear Gurus,
    There is a text field in R3 called as SGTXT related to some finance table... some of the records in this field directly start with '#' character and then the details.. Well here is the problem.. I m loading to ODS 0FIAR_O04 and it ends up in error due to the above mentioned problem.. the infoobject which carry the data from SGTXT field is 0POSTXT...
    I decided to go for a conversion routive in transfer rule for this field.. but i dont know how to write routines.. can you plz help me with the steps as well as the code to remove '#' from SGTXT.... Thanks.
    For more help i m attaching the conversion routine with is automatically generated by system... only i hv to add code to remove '#' character... kindly go thru it and suggest me where to add and what to add...
    here it is
    PROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
    Declaration of transfer structure (selected fields only)
    TYPES: BEGIN OF TRANSFER_STRUCTURE ,
    InfoObject 0POSTXT: CHAR - 000050
    SGTXT(000050) TYPE C,
    END OF TRANSFER_STRUCTURE .
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line -
    TABLES: ...
    DATA: ...
    $$ end of global - insert your declaration only before this line -
    FORM COMPUTE_POSTXT
    Compute value of InfoObject 0POSTXT
    in communication structure /BIC/CS0FI_AR_4
    Technical properties:
    field name = POSTXT
    data element = /BI0/OIPOSTXT
    data type = CHAR
    length = 000060
    decimals = 000000
    ABAP type = C
    ABAP length = 000120
    reference field =
    Parameters:
    --> RECORD_NO Record number
    --> TRAN_STRUCTURE Transfer structure
    <-- RESULT Return value of InfoObject
    <-> G_T_ERRORLOG Error log
    <-- RETURNCODE Return code (to skip one record)
    <-- ABORT Abort code (to skip whole data package)
    FORM COMPUTE_POSTXT
    USING RECORD_NO LIKE SY-TABIX
    TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
    G_S_MINFO TYPE RSSM_S_MINFO
    CHANGING RESULT TYPE /BI0/OIPOSTXT
    G_T_ERRORLOG TYPE rssm_t_errorlog_int
    RETURNCODE LIKE SY-SUBRC
    ABORT LIKE SY-SUBRC. "set ABORT 0 to cancel datapackage
    $$ begin of routine - insert your code only below this line -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    RESULT = .
    returncode 0 means skip this record
    RETURNCODE = 0.
    abort 0 means skip whole data package !!!
    ABORT = 0.
    $$ end of routine - insert your code only before this line -
    ENDFORM.
    FORM INVERT_POSTXT
    Inversion of selection criteria for InfoObject 0POSTXT
    This subroutine needs to be implemented only for SAP RemoteCubes
    (for better performance) and for the Report/Report Interface
    (drill through).
    --> I_RT_CHAVL_CS Ranges table for current InfoObject
    --> I_THX_SELECTION_CS Selection criteria for all other InfoObjects
    <-- C_T_SELECTION Selection criteria for fields of
    transfer structure
    <-- E_EXACT Flag: Inversion was exact
    FORM INVERT_POSTXT
    USING I_RT_CHAVL_CS TYPE RSARC_RT_CHAVL
    I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
    CHANGING C_T_SELECTION TYPE SBIWA_T_SELECT
    E_EXACT TYPE RS_BOOL.
    $$ begin of inverse routine - insert your code only below this line-
    DATA:
    L_S_SELECTION LIKE LINE OF C_T_SELECTION.
    An empty selection means all values
    CLEAR C_T_SELECTION.
    L_S_SELECTION-FIELDNM = 'SGTXT'.
    Selection of all values may be not exact
    E_EXACT = RS_C_FALSE.
    $$ end of inverse routine - insert your code only before this line -
    ENDFORM.

    It has been solved.. thanks everyone for inputs.. points awarded to concerened.. thanks.

  • Time conversion from u0085.Any help on this error in the PSA?

    Hi,
    In IDES, I chose a random infosource to test init and delta loads; in the process I created an infopackage for the load. During the load, Monitor displayed showed failure (Red); The details of the message in PSA is:
    “Time conversion from 0Calday to 0FISCPER (discal year) failed with value 19911021 “
    Any guide on how to fix this problem?
    Thanks

    hi Amanda,
    0fiscper has compound infoobject 0fiscvarnt (you can check RSD1 tab 'compound').
    when uploading data, conversion will failed if 0fiscvarnt is blank/initial or the date format/value is incorret, your date from 0calday seems correct so 0fiscvarnt blank
    seems it's your case, try to check in your transfer rules and mapped 0fiscvarnt infoobject, you can fill it with constant value, choose option 'constant' and fill with K4, you can only fill with values that exist in table T009T.
    you can transfer these values from r/3 via rsa1->source system->transfer global settings, mark 'fiscal year' something and option 'update table' and execute.
    hope this helps.

  • Variable over time caracteristic with conversion routine Peri6

    Hello,
    we've created a interval variable over a time characteristic which uses peri6 as a conversion routine (the infoobject used is 0UCMOVEOUTM). We're trying to manually fill the upper interval of the variable with the 12.9999 value, but it throws an format error  (Please enter value in permitted format for variable / BRAIN 627). The value 12.9999 exists in the sid table of the charracteristic...Any other variable value works.
    Do you have any clues why it's not working?
    Thanks,
    Tudor

    A bit difficult to track, isn't it? ^_^
    I searched the web, and found this article by Burleson
    http://www.dba-oracle.com/t_ora_03120_two_task_conversion_routine_integer_overflow.htm
    Only a suggestion: maybe the problem is (still) the endianness, but I can not figure out in witch component.
    It can be in Spring or Hibernate or a number that is not "parsed" correctly.
    On another forum, the problem was resolved by upgrading the client software to deal with UTF-8 (not your case I think.)
    Bye,
    Antonio

  • What is use of  Conversion Routine in  Abap dictionary

    Hi,
    Can any body please tell me the proper use of <b>Conversion Routine in  Abap dictionary.</b>
    Please give me a practical example where it has been used.
    Thanks
    prabhudutta

    hi,
    here is help for conversion routine
    Conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
    If standard conversion is not suitable, it can be overridden by specifying a conversion routine in the underlying domain.
    A conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the conversion from internal format to display format.
    If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each time an entry is made in this screen field or when values are displayed with this screen field.
    regards,
    Raghavendra

  • Automatic time conversion is not possible

    Hi Friends,
    I have a problem in Transformation Level when i am mapping "automatic time conversion is not possible for source field FISCPER to 0FISCYEAR,FISCPER3".can any one help me in this issue.
    Thanks
    Narasimha

    Yes if it was date filed then it would have been possible.If you are trying to derive the fiscal year between datasource and cube then you can get it with the help of simple filed level routine.
    Map your fiscper field from source to fiscal year--Rule type Routine.
    RESULT = SOURCE_FIELDS-(Technical name of source field)+0(4).
    For Posting period
    Map your fiscper field from source to fiscper3 year--Rule type Routine.
    RESULT = SOURCE_FIELDS-(Technical name of source field)+4(3).
    This will give you the required output.
    Regards,
    AL

  • Conversion Routine problem

    Hi,
    In one of the info object there is a conversion routine. So, when the query is executed in BeX Query Analyzer the result is comming correct i.e. if in the database the value of info object is 0001234 then at display it is coming as 1234.
    However, in case if its value is "STEP" in database , at output "Not Assigned" is comming. Dont know what is happening. If anybody already encouter this problem please help.

    Hi,
    It is not in the hierarchy.
    I am using alpha routine so as to remove the leading zeros at the time of display.
    There are two info objects, both are same, the only difference between them is one info object is having alpha routine and another one is without it.
    The one info object without any routine is displaying values correctly but the another one with aplha routine is displaying 00123 as 123 but also displaying STEP as Not Assigned.
    Edited by: megamin79 on Feb 9, 2012 7:43 PM

  • Conversion Routines

    How to use Conversion Routines in Production Support?What is Conversion Routine?How it is Working in real time?

    hi..
    i'm not too sure abt it.. check out if the below helps ya.
    you can create customer routines. According to OSS Note 41474 it is safe to create a function module that has the conversion exit naming standard (Begins with CONVERSION_EXIT*). You will get a warning that you can ignore. The important part is to have the first letter of your rountine name begin with Z or Y. That way you won't have a conflict with SAP. An example would be:
    CONVERSION_EXIT_Z0001_INPUT .
    i browsed n found these details as none had answered ur question.

  • Infoobject Conversion Routine Alpha

    Hi All,
    At the time of creating infoobjects under General Tab we have option Conversion Routine : Alpha (by default), can anybody put light on that what is that exactly.
    Thanks and Regards
    Asim.

    Hi,
    See the following program, and the same logic you can apply in Transfer Rules/Transformations. Take ABAPer help.
    REPORT  ZALPHA_INPUT.
    DATA: ZI(18) TYPE C,
          ZO(12) TYPE C.
    DATA: ZS(12) TYPE C,
          ZR(18) TYPE C.
          ZI = '000000099999889925'.
          ZS = '099999889925'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = ZI
       IMPORTING
         OUTPUT        = ZO.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          INPUT         = ZS
       IMPORTING
         OUTPUT        =  ZR  .
    Write:/   ZI.
    Write:/   ZO.
    Write:/   ZS.
    Write:/   ZR.
    Thanks
    Reddy

  • Conversion routines on SAP 4.0B

    Hi All!
    I have a piece of software running on SAP 4.5 and I have to port it to SAP 4.0B (The horror !!!). I managed to solve all the problems but one. In version 4.5, author created many domains with conversion exits and some of these conversion exits are missing (especially - timestamp conversions) on 4.0B (e.g. TSTPS). This may sound like noob question but is there any way to add missing conversion exits to 4.0B or write new, custom ones? I haven't done it before and I don't even know how to start.
    I will appreciate all the help you can give me.
    Thanks in advance
    Tomasz

    Hello Tomasz,
    Poor guy! Working with 4.0B on April 1st is an appropriate day for sure. A year ago I was working on 4.0B -fortunately for a very short time. This was not so much a problem because I am working with SAP since the lowest version. Nevertheless it was a pain! First: I don't know a 100% solution and I am not able to login into this guy anyway.
    To solve your task you have to create your own conversion. TSTPS is linked to a simple ABAP program. Under 4.0B you have to create this program. As far as I remember those conversions are screen/ta related. Go to the field where the conversion has to accour, click F1 and then go to technical settings. There should appear a box which is responsible for the conversion routine. From there try to proceed.
    Sorry, I can not provide you with more (because I don't know).
    May be it helps when you login to SAP Help Portal (on the web).
    I wish you the best,
    Heinz

  • Conversion Routines - R3 and BW

    I need to create a custom InfoObject in BW to map to an R3 field in an InfoSource.  The R3 field has the ABPSP converions routine applied to it.  As a rule of thumb is it always best to apply the same conversion routine to the matching BW InfoObject?    Is there a time that I wouldn't want to match the conversion routine of the R3 field to the matching BW InfoObject?  Your help is appreciated.

    Hi David,
        Conversion routines in BW will aid in eliminating the technical differences of data format to be acceptable by the BW system.  You cannot directly map R/3 Conversion routine to BW Conversion routine as far as my knowledge goes.  Please map the infoobject in BW with the R/3 field directly and check if the converted data is directly coming into BW from the R/3 system as you said there is a conversion already existing in R/3.  If this doesnot solve your problem, then you can create your own conversion routines using SM37 t.code wherein you will create your conversion rule specifying CONVERSION_EXIT_XXXXX_INPUT and CONVERSION_EXIT_XXXXX_OUTPUT.  Where XXXXX is a 5 letter user-specified name of the Conversion.  INPUT code is written for converting sourcesystem data to be acceptable into BW tables.  OUTPUT is written to converting the BW data into acceptable reporting display.  You need to activate both the function modules created in order to use them during infoobject property settings.  While using them you can directly see the XXXXX (user-specific) conversion during infoobject conversion settings. 
            Hope this might be helpful to you.  Award points if useful.
    Thanks
    Kishore Kumar

  • Conversion routine PROJ in case master data doesn't exist

    Hi gurus!
    I have a problem with info-object 0PROJECT. It has a conversion routine PROJ, which converts the values nicely from external format to internal only if the master data for such project exists. If I use a interval variable in bex query the query user needs to give the upper value in internal value (for example Y3000 instead of Y-3000) in case he or she doesn't know if the value exists in database or not. That is understandable because of the logic of conversion routine PROJ (uses attribute project_ex).
    But what explains the fact that query variable input value Y3000 doesn't give data of Y-3000, but only one smaller (Y-2999). To get data of project Y-3000 one has to give upper variable value Y3001.
    Has anyone better understanding of this query/conversion behaviour?
    Sari

    Check the example here
    http://help.sap.com/saphelp_nw04s/helpdata/en/dd/f470375fbf307ee10000009b38f8cf/frameset.htm
    In master data updates, you can either load time-dependent and time-constant data individually, or together.
    Hope it Helps
    Chetan
    @CP..

Maybe you are looking for

  • Creating a correctly separated PDF from Illustrator in Acrobat Reader 7,8,9

    I work in an organisation with users having various versions of Acrobat Pro and Acrobat Reader. We need to create a PDF from Illustrator, I guess by using 'save as', that can be correctly displayed in Acrobat 7 onwards. A flattened PDF views correctl

  • WSDL Versions

    Hello, How can I put a version on a WSDL?  Next, how do I verify which version the sending system is using? For example: I create a PurchaseOrder_Out WSDL.  Then I add a new field to the WSDL that is optional.  If the sender does not use the optional

  • Sql loader using position and functions

    Hi all, i need help loading some data in my table using sql loader. consider the following CREATE TABLE er a1 NUMBER, a2 number, a3 VARCHAR2(100), a4 VARCHAR2(100), a5 VARCHAR2(100), a6  VARCHAR2(100), a7  VARCHAR2(100), a8  VARCHAR2(100) OPTIONS (BI

  • Newbie to Java Doc

    Hello All, I am pretty new to JavaDoc - i got a general hang of it and did some sample java doc generations for some java files to understand more better. Now I have been requested to create custom javadoc tags for an existing project. How do I go ab

  • How to we give alternate JCO connection in XCM.

    Hi Gurus, We are using CRM 7.0 Web Channel B2B and B2C applications with Lean Order Framework. In B2B XCM we have used  "ERP standard configuration for CRM catalog and marketing support "as base configuration and to connect to CRM and ECC we have two