Conversion of type "u" to type "v" not supported (cl_abap_tabledescr)

Help! I am struggling with implementing a solution using cl_abap_tabledescr.
At below  statement :
<f_interim_data> = <f_ref_data>.
I get the error:
Conversion of type "u" to type "v" not supported. 
Coding:
DATA:
    l_r_tabledescr      TYPE  REF TO cl_abap_tabledescr,
    l_r_itab            type  ref to data,
    l_r_data_ref        type  ref to data,
    l_r_data            type  ref to data.
  field-symbols:
    <gt_itab>          TYPE ANY TABLE,
    <gt_itab_BCCMP07>  TYPE STANDARD TABLE.
  field-symbols:
    <f_ref_data>            type  any,
    <f_new_data>            type  any,
    <f_interim_data>        type  any.
  go_tdescr ?= cl_abap_tabledescr=>describe_by_data( i_th_ref_data ).
  go_sdescr ?= go_tdescr->get_table_line_type( ).
  gd_tabnam     = 'I_TH_REF_DATA'.
  loop at go_sdescr->components INTO gs_component.
    "   Build fieldname
    CONCATENATE gd_tabnam gs_component-name INTO gd_tabfield
                                            SEPARATED BY '-'.
    CLEAR: gs_comp.
    gs_comp-name  = gs_component-name.
    gs_comp-type ?= cl_abap_datadescr=>describe_by_data( gd_tabfield ).
    APPEND gs_comp TO gt_components.
  endloop.
Begin create dynamic standard table copy of I_TH_REF_DATA
  "   Create instances of dynamic structure and dynamic internal table
  go_sdescr_new  = cl_abap_structdescr=>create( P_COMPONENTS = gt_components p_strict = abap_false ).
  go_tdescr      = cl_abap_tabledescr=>create( go_sdescr_new ).
  "   Create data refence followed by table creation
  CREATE DATA gdo_handle TYPE HANDLE go_tdescr.
  ASSIGN gdo_handle->* TO <gt_itab_BCCMP07>.
End create dynamic standard table copy of I_TH_REF_DATA
"Generate ref record
  create data l_r_data_ref like line of <gt_itab_BCCMP07>.
  assign l_r_data_ref->* to <f_interim_data>.
  loop at i_th_ref_data assigning <f_ref_data>.
     <f_interim_data> = <f_ref_data>.
      append <f_interim_data> to <gt_itab_BCCMP07>.

Hi ,
Check the code below which is similar to waht you are doing. It gets the existing fields from a structure and then adds some extra fields to it ( decimals 3 )and creates a dyn table. If you need it with decimals 2 then use WTGXXX data element
DATA:lf_startdate TYPE sy-datum,
       li_index(2) TYPE n,
       la_datum TYPE type_date.
  DATA:i_comp TYPE cl_abap_structdescr=>component_table,
       i_tot_comp TYPE cl_abap_structdescr=>component_table,
       lf_struct TYPE REF TO cl_abap_structdescr,
       lf_element TYPE REF TO cl_abap_elemdescr,
       la_comp LIKE LINE OF i_comp,
       lf_new_type TYPE REF TO cl_abap_structdescr,
       lf_new_tab TYPE REF TO cl_abap_tabledescr.
  CLEAR: lf_startdate,li_index,la_datum,i_comp[],i_tot_comp[].
*--Getting Compoents from existing type
  lf_struct ?= cl_abap_typedescr=>describe_by_name( 'TYPE_PUT' ).
  i_comp = lf_struct->get_components( ).
  APPEND LINES OF i_comp TO i_tot_comp.
*--Adding weekly bukets fields based on date in selection screen
  DO.
    li_index = sy-index.
    IF lf_startdate GT s_lfdat-high.
      EXIT.
    ENDIF.
    IF li_index EQ 1.
      PERFORM get_first_day_of_week USING s_lfdat-low
                                    CHANGING lf_startdate.
      la_datum-dat = lf_startdate .
*--Element Description
      lf_element ?= cl_abap_elemdescr=>describe_by_name( 'MESXXX' ).
      CONCATENATE 'MES0' li_index  INTO la_comp-name.
      la_datum-field = la_comp-name.
*--Field Type
      la_comp-type =
        cl_abap_elemdescr=>get_p( p_length = lf_element->length
                                  p_decimals = lf_element->decimals ).
      APPEND la_comp TO i_tot_comp.
      CLEAR: la_comp.
      APPEND la_datum TO i_datum.
      CLEAR: la_datum.
      CONTINUE.
    ENDIF.
    lf_startdate = lf_startdate + 6.
    la_datum-dat = lf_startdate .
    lf_element ?= cl_abap_elemdescr=>describe_by_name( 'MESXXX' ).
    CONCATENATE 'MES0' li_index  INTO la_comp-name.
    la_datum-field = la_comp-name.
    la_comp-type =
      cl_abap_elemdescr=>get_p( p_length = lf_element->length
                                p_decimals = lf_element->decimals ).
*--Fill the component table
    APPEND la_comp TO i_tot_comp.
    CLEAR: la_comp.
    APPEND la_datum TO i_datum.
    CLEAR: la_datum.
  ENDDO.
*--Create type
  TRY.
      lf_new_type = cl_abap_structdescr=>create( i_tot_comp ).
    CATCH cx_sy_struct_creation .                       "#EC NO_HANDLER
  ENDTRY.
*--Create Table type
  TRY.
      lf_new_tab =
      cl_abap_tabledescr=>create( p_line_type = lf_new_type
      p_table_kind = cl_abap_tabledescr=>tablekind_std p_unique = ' ' ).
    CATCH cx_sy_table_creation .                        "#EC NO_HANDLER
  ENDTRY.
*--data to handle the new table type
  CREATE DATA wf_data TYPE HANDLE lf_new_tab.
*--data to handle the work area
  CREATE DATA wf_str TYPE HANDLE lf_new_type.
*--Assign to fs
  ASSIGN wf_data->* TO <fs_tab>.
  ASSIGN wf_str->* TO <fs_line>.

Similar Messages

  • Copying from sales document type QTH to HU is not supported

    guys i was trying to create a contract based on a quotation created by me  here QTH is my quotation type and HU is my contract type the error i encountered was thiss.
    Copying from sales document type QTH to HU is not supported .

    Hi
    In VTAA maintain the copy control settings from Quotation to Contract
    I think you can copy the AV document type which is quotation for contract.
    regards

  • Copying from sales document type L2 to RK is not supported

    Dear Experts,
    Can any guide me please regarding my issue,
    My process is linked with service order,after creation of service order,I am going to DP90 Tcode with this it will generate debit memo request,and I will do the billing from vf01.
    Now I want to make some  invoice correction,
    so I have copied the standard RK invoice correction document to ZRK
    and i have assign this for my sales area in sales document header,
    now I have raised the order from va01,and I have given the invoice document number,
    its showing this error u201CCOPYING FROM SALES DOCUMENT TYPE L2 TO ZRK IS NOT SUPPORTEDu201D
    for this I think I have to maintain the copy controls,
    can any one help me out how to maintain the copy controls for invoice correction.

    Dear JP,
    As you said I have maintained the item category,I have only two item categories,one is L2N,L2W.
    I have copied the standard document  from VTAF,and I have maintained the copy controls like this,
    Copied from RK to F2 as ZRK to ZL2 header data
    Data T   052  billing doc header
    Data T  103   billing bus header data
    Data T  003   billing header partner
    Copying requirements as   021  billing header
    Tick on copy item number
    Then item category maintained as
    Item category as L2N
    Data T  153  Item from billing document
    Data T  104  billing bus item data
    Data T  004   billing item partner
    Copying requirements  as  000
    Pricing type         u201CEu201D
    2nd pricing type  u201CDu201D
    And the same for L2W,but I have not maintained for u201CG2Nu201Ditem category,but I has copied automatically?
    Then I have raised the sales order from va01,its ask the billing document number,I have  given the billing doc number and press on copy,its has open the sales order,
    Here I have two issues,
    1st its generating the two same line items,with G2N item category
    EG:if I have given 2 materials line items then its generating the 4 line items with the same material.
    2nd I am not able edit any line litem,it all are coming in non editable mode,how to make editable field,and make the changes for price and quantity.
    After saving the document again I have to do the billing from vf01?
    please suggest me,so this will be added advantage to the user.

  • Data types in Sql Server 2012 not supported by replication

    Hi All,
    I am planning to configure replication on SQL  server 2012.I need to know what data types are not supported in replication and if there are any other boundations. kindly suggest.
    Regards
    Rahul

    What type of replication are you looking to implement?
    Have you had a look at this thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/bbec1a86-14cd-4d90-8b62-c875de4cf9a0/data-type-not-supported-in-sql-server-2008-merge-replication?forum=sqlreplication

  • APE 11 This type of file (jpg) is not supported or the required codec is not installed

    Greetings folks...
    I just started working with APE 11.  I am trying to put a jpg image in a title.  I get the above error. It is just a jpg and not some fancy format.  I read the past posts and they do not address this issue for jpgs..
    Thanks for your help.
    Cheers!  Phil

    >still getting used to using APE 11
    As well as Steve's book, some other online resources
    Online User Guide http://help.adobe.com/en_US/premiereelements/using/index.html
    -Page to download current PDF http://helpx.adobe.com/premiere-elements.html
    Importing Video http://forums.adobe.com/thread/1065281
    -and project settings http://forums.adobe.com/thread/1112086
    Saving & Sharing http://forums.adobe.com/thread/1137128
    -Sharing to DVD or BluRay http://forums.adobe.com/thread/1137645
    -Sharing for Movies http://forums.adobe.com/thread/1051093
    -Sharing for Computer http://forums.adobe.com/thread/1058237
    Steve's Basic Training Tutorials... steps are the same for several versions
    -http://forums.adobe.com/thread/537685
    FAQ http://forums.adobe.com/community/premiere_elements/premiere_elements_faq
    TIPS http://forums.adobe.com/community/premiere_elements/premiere_elements_tips
    Another help site http://muvipix.com/ or http://muvipix.com/phpBB3/

  • Object type component method name is not supported by object type BOR

    Hi All,
    Just want to get your help on the above error message in my workflow step.
    The method is successfully created in the BO, no errors, status is released/implemented.  This error only occurs when the workflow is triggered by a RFC call using SWE_EVENT_CREATE FM.  But when using t.code SWUS or SWUE the workflow will run as expected, no error.  And when the erroneous workitem is restarted using SWPR, it will run or continue successfully.
    Another thing, this is newly created task and method inserted in the workflow. If i delete this task, the workflow will run successfully when triggered by the same RFC.
    Hope you guys have already experienced this kind of error.
    Thanks in advance.
    Matt

    Hi Matt,
    I am trying to analyse the problem.
    When you trigger the workflow using function module it gives error. But when you trigger using SWUE or restart workflow then you do not get error.
    In both the cases ( SWUE or restart workflow  ) event is getting called using system. But when you trigger it prgramatically it throws error. I hope you are triggering it correctly.
    But as you are saying, when you delete the task and method it works fine. So that means it should not be triggering issue.
    Just do consistency check for the business object. Check if there is any issue in method.

  • PayPal is not supported (US)

    on my iPhone 6 running 8.1, under Account Settings, Payment Type it says "PayPal is not supported on this device.  To manage or change your payment method, go to the iTunes Store on your computer."  I did that and made sure PayPal was selected, signed in to make sure everything was fine, it is.
    Go back to my iPhone to set up Family Sharing and it says that I must have a valid payment method and sends me back into this loop.  PayPal is fine, I actually bought a .99 cent app to make sure that it was working and it does.
    Any ideas?

    I had this same problem also.  The problem has to do with your credit card number associated with you iCloud account.  To solve this problem, you need to update your credit card/payment information by doing the following on your iPad / iPhone / iTouch:
         Settings > iCloud > click on your account > Payment Information
    Update this section with your correct credit card information and Save.

  • Mark/reset not supported

    Hello,
    i've setup an application building pdfs and xml files from print files. This application works with some input files, not with all.
    The exception that comes up is:
    <code>
    java.io.IOException: mark/reset not supported
         at java.io.InputStream.reset(Unknown Source)
         at com.compcomp.hhsued.bl.export.PdfTemplateImpl.parseEscapeString(PdfTemplateImpl.java:160)
         at com.compcomp.hhsued.bl.export.PdfTemplateImpl.parseIt(PdfTemplateImpl.java:65)
         at com.compcomp.hhsued.bl.export.templates.PdfTemplateSUDU.render(PdfTemplateSUDU.java:130)
         at com.compcomp.hhsued.bl.input.ConverterProcessor.writePdfFile(ConverterProcessor.java:323)
         at com.compcomp.hhsued.bl.input.ConverterProcessor.init(ConverterProcessor.java:147)
         at com.compcomp.hhsued.bl.input.ConverterProcessor.<init>(ConverterProcessor.java:69)
         at com.compcomp.hhsued.bl.main.BlConverter.main(BlConverter.java:67)
    </code>
    What means this: mark/reset not supported?
    And why doesn't it happen always?
    Thank you,
    Nico

    Input streams represent a input source. The type of the source can vary, for example it could be a socket or it could be a file.
    In a random acces file you can 'mark' a position in the file. One can then return to that position by 'reset'.
    One of the source types you are using does not support that.

  • Conversion from string "20041023 " to type 'Date' is not valid.

    Hi ,
       I have a table with one of the column(EmpHiredate) datatype is char(10). It has value like "20141023". I need to display this value as date format(dd/mm/yyyy) in report. 
    Following methods i tried in textbox expression but no luck.
    =Format(Fields!EmpHireDate.Value,"dd/MM/yyyy")
    =Cdate(Fields!EmpHireDate.Value)
    Error:
    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "20041023  " to type 'Date' is not valid.
    Is it possible to convert string to date using SSRS textbox expression ? Can anyone help me with the solution.
    Thanks,
    Kittu

    Hi Jmcmullen,
         Found one more issue on the same. I have one value like "00000000" for the column(EmpHiredate)
    , when i use above expression values(ex:"20141023")
    are displaying in dd/MM/yyyy format in report except value like "00000000" and giving following error:
    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "0000/00/00" to type 'Date' is not valid.
    Even i tried to pass its original value("00000000") as below but no luck.
    =IIF(Fields!EmpHireDate.Value = "00000000","00000000",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
    Also tried this:
    =IIF(Fields!EmpHireDate.Value = "00000000","2000/10/21",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
    Please Suggest. 
    Thanks ,
    Kittu

  • Conversion of a data object of type "C" to type "l" is not supported

    Experts:
    i have below code in my FM; defined as remote-enabled module.
    when i execute i get the error analysis as:
      You attempted to move one data object to another.
    This is not possible here because the conversion of a data object
      of type "C" to type "l" is not supported.
    This at the line    move <FS2> TO <wwa_mdm_name_value_pair>-VALUE .
    what are the steps to debug this?  Thanks!
      DATA: tt_mdm_name_value_pair_table TYPE mdm_name_value_pair_table.
      FIELD-SYMBOLS : <wwa_mdm_name_value_pair> LIKE LINE OF tt_mdm_name_value_pair_table.
      FIELD-SYMBOLS <FS1> TYPE ANY.
      FIELD-SYMBOLS <FS2> TYPE any.
      data:st_mdm_name_value_pair type mdm_name_value_pair.
      assign  st_mdm_name_value_pair to <wwa_mdm_name_value_pair>.
    assign st_mdm_name_value_pair-code to <FS1>.
    assign st_mdm_name_value_pair-value to <FS2>.
      clear wa_ZSTRESULT.
      loop at T_UPDATE into wa_ZSTRESULT.
        assign wa_ZSTRESULT-field to <FS1>.
        <wwa_mdm_name_value_pair>-CODE = <FS1>.
        assign wa_ZSTRESULT-VALUE to <FS2>.
        move <FS2> TO <wwa_mdm_name_value_pair>-VALUE .
        append <wwa_mdm_name_value_pair> to tt_mdm_name_value_pair_table.
      endloop.

    resolved using GET REFERENCE.. code looks as below:  Thanks!
      DATA: tt_mdm_name_value_pair_table TYPE mdm_name_value_pair_table.
      FIELD-SYMBOLS : <wwa_mdm_name_value_pair> TYPE LINE OF mdm_name_value_pair_table.
      FIELD-SYMBOLS <FS1> TYPE ANY.
      FIELD-SYMBOLS <FS2> TYPE DATA.
      TYPES t_dref TYPE REF TO DATA.
      DATA dref TYPE REF TO DATA.
      DATA: TT_UPDATE TYPE ZTYRESULT.
      FIELD-SYMBOLS : <WA_UPDATE> LIKE LINE OF TT_UPDATE.
      data:   st_mdm_name_value_pair type mdm_name_value_pair.
      assign  st_mdm_name_value_pair to <wwa_mdm_name_value_pair>.
    assign st_mdm_name_value_pair-code to <FS1>.
    assign st_mdm_name_value_pair-value to <FS2>.
      clear wa_ZSTRESULT.
      TT_UPDATE = T_UPDATE.
      loop at TT_UPDATE assigning <WA_UPDATE>.
        assign <WA_UPDATE>-FIELD to <FS1>.
        <wwa_mdm_name_value_pair>-CODE = <FS1>.
        assign <WA_UPDATE>-VALUE  to  <FS2>.
        GET REFERENCE OF <WA_UPDATE>-VALUE INTO dref.
    *    MOVE dref TO <wwa_mdm_name_value_pair>-VALUE.
        <wwa_mdm_name_value_pair>-VALUE = dref.
        append <wwa_mdm_name_value_pair> to tt_mdm_name_value_pair_table.
      endloop.

  • Implicit Conversion from data type sql_variant to datetime is not allowed.

     Getting a odd error. This code was working perfectly before a SQLServer upgrade.
    The linked database is working, I'm able to pull up data from it in separate queries just fine.
    I'm getting the following error.
    Implicit conversion from data type sql_variant to datetime is not allowed. Use the CONVERT function to run this query.
    Invalid column name 'TotalDay'. (.Net SqlClient Data Provider)
    can anyone spot the issue? I've tried sever variations of the same code, but still get the same thing.
    If I put this section in a query by it self it works just fine.
    ( DATEDIFF(ss,
    CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
    TimeDate
    FROM [nav].AcsLog.dbo.EvnLog AS X3
    WHERE UDF2 = E.No_
    AND CONVERT(VARCHAR(10), X3.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
    ORDER BY TimeDate ASC
    ),101),
    CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
    TimeDate
    FROM [nav].AcsLog.dbo.EvnLog AS X4
    WHERE UDF2 = E.No_
    AND CONVERT(VARCHAR(10), X4.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
    ORDER BY TimeDate DESC
    ),101)) ) AS TotalDayBadge ,

    >ANDCONVERT(VARCHAR(10),X3.TimeDate,101)=CONVERT(VARCHAR(10),@sdate,101)
    It is not a good idea to use string dates for predicates in WHERE clauses.
    Use DATETIME or DATE in predicates.
    If you are not interested in the time part of DATETIME, use DATE datatype.
    Example:
    SELECT CONVERT(DATE, getdate());
    -- 2014-08-25
    Datetime conversions:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Between dates:
    http://www.sqlusa.com/bestpractices2008/between-dates/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Conversion from type 'CalculatedFieldWrapperImpl' to type 'Integer' is not valid._

    Hi,
    I'm using SSRS 2008 to create a relatively simple report with a stored procedure as the dataset. The SP runs fine (no errors) but when I try to run the report I get "Conversion from type 'CalculatedFieldWrapperImpl' to type 'Integer' is not valid. "
    error message. The data type is declared as int in SQL. I'm using several other int fields in the report without a problem.  Anyone familiar with this error?  Thanks.
    Robert Boccone

    Hmm, my research also suggests multi-value parameters may be the cause, but you say there aren't any in the report. These sings can sometimes be generated automatically though, even if you haven't knowingly created one. You could try checking the .rdl
    file directly (if you're using BIDS, just go to View > Code, otherwise load the report into wordpad or similar) and searching for the term 'Parameter' to see if there is anything there. Otherwise, I'm afraid I'm getting a bit lost for ideas
    too.I work to UK time. If this post, or another, answers your question, please click the 'Mark as answer' button so others with the same problem can find a solution more easily.

  • IMP-00016: required character set conversion (type 1 to 871) not supported

    I am running Oracle DB: 8.1.7.4
    Hit a problem when I export from Source DB: US7ASCII
    and then, import into Target DB: UTF8.
    Is there any workaround if this is the only export dump available?
    Many thanks in advance.

    Thanks for the prompt reply.
    Both source and target are in the same version: 8.1.7.4.
    The error gotten:
    Import: Release 8.1.7.4.0 - Production on Fri Aug 22 15:37:37 2008
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Release 8.1.7.4.0 - Production
    JServer Release 8.1.7.4.0 - Production
    IMP-00016: required character set conversion (type 1 to 871) not supported
    IMP-00000: Import terminated unsuccessfully
    Many thanks in advance.

  • IMP-00016  required character set conversion (type 178 to 871) not supported

    Hi, I am importing Portal release 2 handson to our test database whose character set is UTF8,durning importing, the following error message comes out 'IMP-00016: required character set conversion (type 178 to 871) not supported',what should i do? thank u in advance . My mail address is:[email protected] .

    Thanks for the prompt reply.
    Both source and target are in the same version: 8.1.7.4.
    The error gotten:
    Import: Release 8.1.7.4.0 - Production on Fri Aug 22 15:37:37 2008
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Release 8.1.7.4.0 - Production
    JServer Release 8.1.7.4.0 - Production
    IMP-00016: required character set conversion (type 1 to 871) not supported
    IMP-00000: Import terminated unsuccessfully
    Many thanks in advance.

  • The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

    I am trying to insert records into a temporary table with date values concatenated with other string values  into one large string value.I am getting the following error:
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    -My code below
    Declare
           @hdrLOCAL char(255),                                                       
        @CR char(255),                                                             
        @BLDCHKDT DATETIME,                                                         
        @BLDCHTIME DATETIME,                                                         
        @hdrline int
        SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
        SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
        SELECT @hdrline =1
        SELECT
                @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
                -- convert(varchar,getdate(),15)
                @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
                FROM STATS.dbo.DD10500 T762
                LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
                        T762.INDXLONG = T756.INDXLONG
                        AND T756.INCLPYMT = 1
                WHERE (T756.INCLPYMT = 1)
                    AND (T762.DDAMTDLR <> 0)
      Create TABLE [dbo].[##DD10200B](
        [INDXLONG] [int] NOT NULL,
        [DDLINE] [varchar](8000) NOT NULL,
        [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
            VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    The Best thing in Life is Life

    Since the Variable
    BLDCHKDT and BLDCHTIME are of type date time why are you trying to assign it a value
    of type varchar
    and the format 105 gives you dd-mm-yyyy but SQL server takes the default format as mm-dd-yyyy so the error occurs for all dates that
    are greater than 12
    try the below code
    Declare
    @hdrLOCAL char(255),
    @CR char(255),
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    @hdrline int
    SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
    SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
    SELECT @hdrline =1
    SELECT
    @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
    -- convert(varchar,getdate(),15)
    @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
    FROM STATS.dbo.DD10500 T762
    LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
    T762.INDXLONG = T756.INDXLONG
    AND T756.INCLPYMT = 1
    WHERE (T756.INCLPYMT = 1)
    AND (T762.DDAMTDLR <> 0)
    Create TABLE [dbo].[##DD10200B](
    [INDXLONG] [int] NOT NULL,
    [DDLINE] [varchar](8000) NOT NULL,
    [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
    VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    the only change done is 
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    Surender Singh Bhadauria
    My Blog

Maybe you are looking for

  • Front Row cant find music

    I have an external hardrive with my itunes library on it Itunes works perfectly with it, however I cannot get frontrow to use the drive I have tried creating an alias of the entire itunes folder draggin that across but nothing. I have tried creating

  • Libgc & gtk devel packages

    Hello I am Basile Starynkevitch http://starynkevitch.net/Basile/ (living in France near Paris, born in 1959, professionally working on GCC, in particular its MELT branch). My intern Jeremie Salvucci suggested me to try Arch Linux. I am using Linux si

  • Po Prices Default from Last Po

    Guru How to configration required to  the Last po rate by deafult when you crating the the new po for same material & vendor. Thanks Sudhir

  • Problem with NLS Settings

    Hello.. I have the following problem. My oracle XE edition (linux) is installed on o fedora core 6 system I want to change the NLS settings. I try to change the records on props$ table set the NLS_CHARACTERSET value = EL1253 I find out that: All my a

  • My PC shuts down during render after CC update

    Hello all, I just rendered a video last week with no issues. I updated After Effects CC a few days ago and now my PC shuts off about half way through a render. It is only a ten second clip with very little effects in it. I have tried different video