DBConnect field type DATETIME for delta-logic

Hi guys
I`m extracting a dbconnect table (mssql-db) with field TS (timestamp).
This field I`m treansferring to a CAHR 23 Infoobjekt (Z1CFS0148).
After activating the data in ODS (T1CFS32W)  I want to use this information to build a delta,
using infopackage-selections in for the next loads.
I`m using the following code:
  DATA: L_W_RANGE LIKE LINE OF L_T_RANGE,
        LV_STAMP TYPE /BIC/OIZ1CFS8006,
        L_IDX LIKE SY-TABIX.
read tables
  READ TABLE L_T_RANGE INTO L_W_RANGE
    WITH KEY FIELDNAME = 'Z1CFS8006'.
  L_IDX = SY-TABIX.
  SELECT MAX( /BIC/Z1CFS8006 ) FROM /BIC/AT1CFS32W00 INTO LV_STAMP
  WHERE /BIC/Z1CFS0148 = 'DEL'.
  IF LV_STAMP IS NOT INITIAL. " first or following run
    L_W_RANGE-LOW       = LV_STAMP.
  ELSE.
    L_W_RANGE-LOW      = '1900-01-01 01:01:01.001'.
  ENDIF.
fill result
  L_W_RANGE-IOBJNM    = ''.
  L_W_RANGE-FIELDNAME = 'TS'.
  L_W_RANGE-SIGN      = 'I'.
  L_W_RANGE-OPTION    = 'BT'.
  L_W_RANGE-HIGH      = '2111-11-11 11:11:11.111'.
Übergabe an Ergebnistabelle
  MODIFY L_T_RANGE FROM L_W_RANGE INDEX 1.
  P_SUBRC = 0.
In the first run, everything is working fine.
The first real "delta" is running into an error:
database-failure 242 on OPC; value out of validity
this are the selcted from/to values:
FROM: 2011-01-19 20:16:08.217
TO:       2111-11-11 11:11:11.111
any ideas??
Thanks a lot, regards
Tom

Hi Sven
Thanks for your reply.
Yes, you are right the communication and its formats are always depending on the adjusted language!
2. of course;  that is what I wanted, to get the latest data again, because Iàm on dev-system
How ever, thx a lot, u just made my day!
regartds
Tom

Similar Messages

  • Reason for Error "Unknown field type (28) encountered."

    Hello,
    I'm from Germany, so sorry for my English first.
    I got the error "Unknown field type (28) encountered." when I run
    a simple "SELECT * FROM system.functions" on my ADD-Database.
    The solution for this problem is found in the KBA 2145730.
    If I use the ADS DLLs v. 11.10.0.22 I got the error, but if I use the
    ADS DLLs v. 9.10.0.35 everything is fine.
    For solving other problems I think it would be better to use the newest
    version, but in this case I can't. At this time it is not a problem, because
    I can't find any real reason so that I must update for now, but nevertheless
    I'd like to know, why this error occurs. What is type 28? Or (what real
    would be great) can I make changes to my software, so that I can
    avoid this problem? I hope you can help me with this "riddle" and wish
    all of you a great day.
    Greetings from Germany,
    Gerit Freericks

    For backwards compatibility the server will send different field types (i.e. char vs varchar, ansi vs unicode, etc).
    The server determines this based on the ACE (Advantage Client Version).  By swapping in new DLLs you are telling the server that you are running a newer client and it can send the newer field types etc for the system tables.
    In addition to swapping the DLLs re-build the application with the new TDataSet (re-compile) and this should resolve your issue.
    For the field types look at ACE.pas  (or ACE.h) in the TDataSet (on the latest).  It looks like 28 is an NMEMO (Unicode Memo field)

  • An RFC destination could not be specified for the logical system

    Hello Experts,
    I am trying post goods receipt in EWM system in a simple inbound delivery process. It is not getting posted back in ECC. I have my RFC connection setup properly(I assume since I was able to transfer inbound delivery to EWM in first place).It seems some setting related to Outbound queue in EWM is missing.Can anyone tell me in detail what settings are required?Is it something to do with WE20 transaction?I am not sure what settings should be done there.The error log is as below-
    An RFC destination could not be specified for the logical system
    SB3CLNT011
    Message No. B1550
    Diagnosis
    An RFC destination should be specified for the logical system SB3CLNT011.
    This could not be done in this case. SB3CLNT011 is not your local logical system
    and this system is not included in the relevant Customizing tables.
    Procedure
    Check:
    RFC
    destination
    Port
    definitions
    oubound partner profile of
    message type SYNCH for this logical system
    Regards,
    Khushboo

    Hi Oritra and Suraj,
    I have checked remote connection in SM59 for both the logical system.It works fine.I understand this is more of a technical issue,but I don't have A local basis team to help me so reaching out to experts here.Can you guide me what technical settings could be checked for EWM-->ECC connection?When I execute BD82 for SB3CLNT011 it shows me green status with message "No messages have been defined for the selection conditions in the model".
    Although when I do this for EWM logical system SB3CLNT012 it shows me this with all green status-
    System SB3CLNT011 as a partner type already exists
    System SB3CLNT012 as a partner type already exists
    Port A000000018 with RFC destination SB3CLNT011 already exists
    Outbound parameters for message type SHP_IBDLV_CHANGE SHP_IBDLV_CHANGE01 already
    Outbound parameters for message type SHP_IBDLV_SAVE_REPLICA SHP_IBDLV_SAVE_REPLI
    Outbound parameters for message type SYNCH SYNCHRON already exist
    Am I missing something in WE20?
    Regards,
    Khushboo

  • New Field Type's in Address book

    Is there a limitation in field creation for Address book that precludes new field types. For example I would like to have a boolean field called "New Contact" true/False. When I export the vCard file I can process to pull the new contacts that must be processed, either with a script or a sort. Can be used to select only the new entries from exporting a smaller file too (5000 person's records).
    Would I be correct in assuming (from my trials) that importing a vCard file will only add the new contacts and overwrite any changes in the existing ones. Or will I get duplicates from differing records with same name.
    Hope it makes sense. To explain I am trying to find a method for syncing contact data between mulitple users, most on Macs but one (the boss!) on PC. Address book has no autosynce between remote users only iTouch/IPhone I gather.
    Cheers and Hi to this forum I new here.

    You can't add fields. Address Book keeps somewhere an "updated" date for each contact, but you can't see it in an exported vCard nor with Applescript.
    Importing a vCard where the name matches an existing one pops a prompt, which is not what you want in any sort of automated multi-used system.
    Have you considered setting up an LDAP server on one of the machines and having the other Address Books pull their data from it? I don't know any operational details, but think your situation is what it is intended for.
    AK

  • Field type for Screen Field

    Dear all,
    Actually i want to store Numeric Value with '+' or '-' sign in module pool's Screen Field.
    how can i store that type of data.
    currently i m declared as a decimal type variable.
    but when value is coming with negative sign in internal table. dum error is occured like this...............
    There was a conversion error in the output of fields to the screen.                                                                               
    The formats of the ABAP output field and the screen field may not match.                                                                               
    Some field types require more space on the screen than in the ABAP                            
        program. For example, a date output field on the screen requires two                          
        more characters than the corresponding field in the ABAP program. When                        
        the date is displayed on the screen, an error occurs resulting in this                        
        error message.                                                                               
    Screen name.............. "ZPPI_SCRAP_RECORD"                                   
                      Screen number............ 9000                                                  
                      Screen field............. "T_ITAB-DIFF"                                         
                      Error text............... "FX015: Sign lost."                                   
        Other data:                                                                               
    Plz help me

    Hi Anshuman Singh,
    Is there any possiblity to adopt the following logic for your requirement?
    Just declare a character field with length of maximum number of digit you want to input plus one.
    Now input with '+' or '-' sign.
    Before processing this value, check for only numbers except sign.
    Now except that sign, assign or write the remaining value to the temprary varibale for processing.
    Regards,
    R.Nagarajan.

  • Update sql server database field of type datetime using jsp

    I'm working in a jsp applicaion which use SQL server 2000 as database. I need to update database field with current time, so I used a bean for that in which I used following method:
    public java.sql.Time getSqlTime(){
    Calendar cal=Calendar.getInstance();
    cal.setTime(new Date());
    java.sql.Time sqlTime=new java.sql.Time(cal.getTime().getTime());
    return sqlTime;
    when I print the time on a page using this method works properly, but I update a database field of type datetime, it takes correct time but updates with '01/01/1900 12:26:46 PM' like that. I need only time , how can I correct this?
    Thank you

    public java.sql.Time getSqlTime(){
    Calendar cal=Calendar.getInstance();
    cal.setTime(new Date());
    java.sql.Time sqlTime=new
    java.sql.Time(cal.getTime().getTime());
    return sqlTime;
    }to get the Time for current time, you can just simply do
    java.sql.Time sqlTime = new java.sql.Time(System.currentTimeMillis());I dun know about SQL server 2000... but thinked that you should declare you
    field as time rather as datetime.

  • What type of generic delta to use and what field?

    Dear BW Gurus,
    I am creating a generic datasource based on a view BSAK and BSIK (Accounts Payable tables). I am not able to determine what type of generic delta (numeric pointer, calender day or timestamp) should i use and what field in the table should it that be based on? All or any help is greatly appreciated.
    Thanks
    Raj

    CALDAY on field BLDAT (in both tables) seem an obvious candidate.
    Added - You will need help from functional people (or you can try it in ABAP forum) to determine which date field is updated with the system date when these tables are updated with SAP txns (some hint can be had by looking at the data)- the fields of interest would be -
    BUDAT
    BLDAT
    CPUDT
    It is almost certain that CALDAY is the only option you have for delta type, and one of these three fields will have to be chosen.
    Message was edited by: Ajay Das

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Does ECC 6.0 Provide a Search-as-you-type Enhancement for Sold-To Party Field?

    In our quest to continually simplify the creation of sales orders, I would like to know if SAP has provided any way to simplify the search and entry of the customer sold-to or ship-to party.  What I am looking for is a way to enter the customer's name (or other customer search criteria such as city) in a single field and have it search-as-you-type.  This is also known as instant search, auto-complete and auto-suggestion.
    We would like to eliminate the clicks it takes to use the standard F4 search help.
    One of our internal developers has created a web-based (.NET) application that brings in SAP data for writing sales orders for a specific segment of our business.  This tool allows you to find the ship-to party by typing in the customer's state, city, zip, address or name in the Ship-To field.  The instant search feature narrow's the list down as you type.  What he has done is written SQL to concatenate the customer name, customer number and address information, and then provided a search-as-you-type feature on top of this.
    Fictious Example of concatenated data (State, City, Customer Name, Address, Zip, SAP Customer Number):
    WA Seattle, Home Depot, 11616 Aurora Ave N, 98133, 18394978
    Typing any of the above information in the field will search for matches and bring back results as you type.
    I would like to know if ECC 6.0 has any similar feature that can be used in VA01 to accomplish the same thing.
    Thank you.
    Rob Scofield

    I don't have access to the code our developer used but again, I am referring to a .NET browser-based application.  We extract a subset of SAP data using Attunity (say, every hour) and the SAP data is stored in a separate SQL Server database.  This database is used by a few browser-based applications we have developed.  For example, we have an application that allows external customers or internal employees the ability to look-up the status of an order.  The first thing you enter is the customer.  In some cases, this may be the Ship-To.  In other cases, the Sold-To.  The user can simply enter some part of the customer and records are searched for a match, as you type.  In our case, the lookup is occurring in SQL Server, not directly in SAP.  The developer took a simple approach of using some SQL query magic (it may be in a SQL Server Stored Procedure), to concatenate the relevant customer information that most people use to lookup a customer - Customer Name, Address, Customer Number.  So as you type, this entire concatenated string is searched and the list of potential "hits" is narrowed as you type.
    The paradigm is similar to Google's Search as you type (SayT), which you can read about here:
    http://www.theverge.com/2012/7/11/3152186/google-search-as-you-type-instant-results-merchants
    http://code.google.com/p/search-as-you-type/
    Or auto-complete: https://support.google.com/websearch/answer/106230
    This is nothing new in the web commerce world.
    I was told by an SAP rep that there might be an enhancement in SAP ECC (SAPGUI Desktop) that could do something similar.  However, I never heard back from him and was wondering if anyone else had heard of something.
    This is another example of how it seems SAP has fallen behind in their UI and search capabilities; and they need to catch-up.  For those of us that have used SAP for many years, F4 seems straight forward and we sometimes don't understand why so many users don't also find it simple.  The answer is, other vendors have made it more simple and with the consumerization of apps, SAP needs to get there.
    Rob

  • How to create repeating rows field type in visual studio for sharepoint

    HI
         I would like to check if there is any work around for the repeating rows field
    type other than buying 3rd party tool or using info path, Because i have SharePoint foundation server.
    Thanks

    Hello,
    You can use repeater control in custom webpart where you can add multiple details similar to repeating table:
    http://www.c-sharpcorner.com/Blogs/10913/add-dynamic-row-using-repeater.aspx
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to activate  NCM code Field on STO PO(doc type:UB) for Brazil

    Dear Gurus,
    I,m working on STO PO-Doc type UB for Brazil.On PO item level on the Tab Page Brazil one field should be there with name NCM CODE.That field is disppeared for this doc type UB.For all the other doc types that field is visible.
    I have checked the settings related to UB and the field NCM codeScreen field:MEPO1326-J_1BNBM
    is mandatory.
    Can u kindly inform me how to make the field visible?
    Regards
    Kumar

    .

  • This operation is not available for read only field 'Type MVF'

    Hi All,
    We are using OrderToCash PIP and we are on Siebel 8.1X.
    While Synching the customer from Ebiz to Siebel facing the following issues:
    Method 'WriteRecord' of business component 'Account' (integration component 'Account') for record with search specification '[Row Id] = "2d3434313239353"' returned the following error:"This operation is not available for read only field 'Type MVF'.(SBL-DAT-00402)"(SBL-EAI-04451)
    Please suggest us what steps to be done in Siebel.
    Thanks
    Maanasa

    First check the process why this is calling Account BC WriteRecord(). The field "Type MVF" might be read only and this sync process is trying to update this field which is read only. This is the reason for the error. Check the OM log / EAI Obj Manager Comp log (set log level to 5) and check.
    Joseph Arul Dass

  • Change Field selection group for Movt type 701

    Hi experts,
    I want to change Field Selection group for movt type 701.  Right now " Business Area " & " Cost Centre " fields are suppressed.  I want to change it to required entry.
    Please guide me over this
    Regards,
    Rajneesh Gulati

    the note explaines it:
    In Customizing an account assignment can be made for every inventory
    adjustment account. To do this the inventory adjustment account must
    first be defined as a cost element (Transaction KA01 / KA06):
    Accounting -> Controlling -> Cost centers -> Master data -> Cost element
    -> Create primary / secondary. Then an account assignment can be made
    for the cost element (Transaction OKB9):
    Tools -> Customizing -> Setup menu -> Accounting -> Controlling -> Cost
    centers -> Actual postings -> Automatic account assignment.
    If this account assignment is implemented every posting to the
    particular inventory adjustment account will automatically receive the
    appropriate account assignment.

  • Unable to locate the xml-definition for FieldName with FieldId '1f8a351c-965d-4927-9c22-8772b7089f55' when trying to activate feature with references a custom field type

    I´ve a solution which contains a custom field type (found somewhere on the net, the custom field type maps a choice field to managed metadata). There is a second solution which contains site column and site content type definitions using the custom field
    type definition from field type solution.
    On my developement environment, there is no problem with this two solutions. When field type solution is deployed, i can deploy the content type solution and activate the feature and everything is fine.
    However if i give the two solutions to our adminstrator to deploy them into our staging environment, content type feature activation fails. Deploying the field type solution makes no problems. The field type is then available and i can manually creates
    columns with this new field type. However activating the content type solution fails with the error shown in the title of this message. The FieldID from the message is not part of my content type project. Searching the net doens´t show any results for that
    id. So i think it´s not some of the standard field id´s from sharepoint.
    Can anyone help?

     Stack Trace
    Unable to locate the xml-definition for FieldName with FieldId '1f8a351c-965d-4927-9c22-8772b7089f55', exception: Microsoft.SharePoint.SPException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes)
    at Microsoft.SharePoint.Library.SPRequest.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes) -
    -- End of inner exception stack trace ---
    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
    at Microsoft.SharePoint.Library.SPRequest.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes)
    at Microsoft.SharePoint.SPFieldCollection.FetchFieldsFromWeb()

  • Input maximum for field type numeric

    my coldfusion page will not let me input 1000000 into my
    database (field type in DB is numeric), any thoughts on this
    please?
    error is
    "Error Executing Database Query.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Arithmetic
    overflow error converting numeric to data type numeric.
    many thanks in advance for any help

    I'm not sure what you mean by "length" as the two parameters
    for the NUMERIC type are precision and scale:
    PRECISION: Specifies the maximum total number of decimal
    digits that can be stored, both to the left and to the right of the
    decimal point.
    SCALE: Specifies the maximum number of decimal digits that
    can be stored to the right of the decimal point. The default scale
    is 0; therefore, 0 <= s <= p.
    Are you referring to "length" as the number of bytes? A
    number with a precision of 10 would take 9 bytes, otherwise if you
    had a scale of 9, such as in a column of type NUMERIC(10, 9), it
    would be a number of 10 digits, 9 of which would be to the RIGHT of
    the decimal point.
    A value of 1000000 should fit into a NUMERIC(10) (default
    scale=0) column without raising an exception. What does your insert
    statement look like? Are you applying any kind of function to the
    value such as using CAST() or CONVERT()?
    Phil

Maybe you are looking for

  • Logical System(ORGLOGSY) populating from which table in R/3 system

    Hi Friends, I would like to understand about the Logical System(ORGLOGSY) from which table or from where this logical system being populating. Because we could see this fields Logical System(ORGLOGSY) exist in PO item, HDR, SGR data sources. Can anyb

  • Make to order automatic generation of schedule lines

    I am now designing Make to order (MTO) strategy for repetative manufacturing. Requirement generates through sales order (Requirement type - KE) While doing backflushing (Tr. Code- MFBF) I am selecting Make to order tab and putting sales order no,will

  • Inserting records through a table format

    Is there an easy way to insert and update records using a tabular format, just like you would do in Access directly, without using a separate form?

  • My Video and Audio are not syncing up after importing

    I am trying to edit a few Ipad Clips in premier pro.  My video and audio are not syncing.  They are .mov lower resolution from the ipad.  The original audio is fine - but after I put in a sequence the audio is off a few seconds (ahead).  I did not ad

  • Inline views - Filtering of dates

    select AZ.timestamp, MM.ms_dom_b, MM.ms_dom_c, M.agbc, M.bcombc, BM.ag_dom_b, BM.ag_dom_c, BM.ord_ses_b, BM. ord_ses_c, AZ.zxtm_hits from ag_platform_stats A, (select trunc(timestamp) timestamp,max(cpu_usage) cpu_usage from ag_ms_server_stats where t