Strings longer than 127 characters

Hello,
is it now possible to add a String from a POJO with more than 127 characters?
Thanks
Christian

When you design a Crystal Reports report in Crystal Reports for Eclipse, where you drop in a POJO class for a datasource, you'll see that all String columns are given the default length of 127.
When you inject a Collection of POJO class instances into the report using the setDataSource(java.util.Collection, ...), you'll see that any String with length greater than 127 is truncated. 
How do you avoid this?
In the JRC for XI R2 - you could re-compile the pojoSample.jar file after modifying the default value, or you could specify a longer length using the POJOResultSetFactory.setMemberColumnDisplaySize(...) method.
The POJOResultSetFactory method for Crystal Report for Eclipse has been renamed and incorporated into rasapp.jar.  The source code for the POJO factory classes are no longer provided - thus, the XI Release 2 solutions do not work.
So what you will need to do for CR for Eclipse, is you must manually create the ResultSet by invoking the com.crystaldecisions.sdk.occa.report.application.internal.POJOResultSetHelper class directly - POJOResultSetHelper is for CR4E what POJOResultSetFactory was for XI Release 2.
Here's a code snippet:
    // SimplePojo.class is my POJO class, getName is a String property for the class,
    // and arrayList is the Collection of POJO class instances.
    POJOResultSetHelper pojoHelper = new POJOResultSetHelper(SimplePojo.class);
    pojoHelper.setMemberColumnDisplaySize("getName", 256);
    java.sql.ResultSet rs = pojoHelper.createResultSet(arrayList);
    reportClientDocument.getDatabaseController().setDataSource(rs, "SimplePojo", "SimplePojo");
a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite

Similar Messages

  • ORA-01460 at REPLACE for strings longer than 4000 characters

    the following code works fine for vVar_Value less than 4001 characters but raises an ORA-01460 for strings equal to or larger than 4001 characters in my environments.
    declare
    vVar_Value VARCHAR2(32000) := '';
    begin
    for i in 1..4000 loop
    vVar_Value := vVar_Value||'X';
    end loop;
    dbms_output.Put_Line('length(vVar_Value): '||length(vVar_Value));
    SELECT REPLACE( vVar_Value, 'NO_MIDDLE_NAME', '') INTO vVar_Value FROM DUAL;
    exception
    when others then
    raise;
    end;
    any advice would be most apprectiated.
    thanks in advance.

    Why the heck are you using select from dual?
    Just use vVar_Value := REPLACE( vVar_Value, 'NO_MIDDLE_NAME', ''); and everything will be OK
    in SQL limit for varchar2 is 4K, only in PL/SQL you can use 32K
    Gints Plivna
    http://www.gplivna.eu

  • How to pass a string longer than 30 to an Export Parameter in a PI sheet ?

    Hi All,
    I'm trying to set  up a process instruction in a PI sheet that calls a URL web page.
    I found the function module CALL_BROWSER and tested it in SE37 and it works fine.
    I created a process instruction to call this function module and pass parameters to it.
    Everything works if the URL is short.  For example:
    0010   PPPI_BUTTON_TEXT          Show URL
    0020   PPPI_FUNCTION_NAME          CALL_BROWSER
    0030   PPPI_FUNCTION_DURING_DISPLAY     allowed
    0040   PPPI_EXPORT_PARAMETER          URL
    0075   PPPI_STRING_CONSTANT          http://www.google.com
    This is where I ran into a roadblock. 
    The characteristic PPPI_STRING_CONSTANT is only 30 characters long.
    I can't figure out how to pass an export parameter longer than 30 characters.
    I have also tried loading up multiple PPPI_VARIABLE(s) with the idea of some how combining them into a single long string that I can pass, but no luck figuring out how.
    Any help would be greatly appreciated
    Kind Regards
    Michael

    Thanks Dario, this is good information, but it does not directly solve my problem.
    I think I have figured out an approach, but was hopeing someone else had a standard solution.
    If I don't here something soon, I will try the following:
    Create a new function moduel as a shell or wrapper that calls the standard FM RUN_Browser.
    My shell will have 5 input parameters URLP1 thru URLP5.
    I can then pass a long URL to my shell in 5 parts.
    Inside my shell, the 5 parts will be joined up into 1 long string and passed on to the URL parameter in RUN_Browser.
    If anyone has a better idea, please let me know.
    Kind Regards
    Mike Rupp

  • Trying To Insert XML String Greater Than 4000 Characters in PHP Fails

    Dear Sir,
    Subject:-Trying To Insert XML String Greater Than 4000 Characters in PHP Fails ORA-01704.
    In an attempt to design web app in PHP and inserting data into "CLOB" field of "articles" table associated with it, returning ORA-01704: string literal too long error.
    Platform: OEL5
    Database 11g(11.0.7.0)
    php : 5.2
    I refer to oracle document ID: [ID 336888.1] it is asking to contact support.
    Please help us in this regards.
    Many Thanks,
    mkyazdani

    Hi,
    I appreciate you, yes it is similar i have referred that manual and also inform to our php developer about the changes we need to make in our php script.
    Regards,
    mkyazdani

  • How can I to send an email with a longer than 50 characters subject?

    I'm trying to send an email through an abap program ( report ), but when the email arrives to the SOST transaction the subject is cut to 50 characters. How can I send an email with a longer than 50 characters subject?

    check this below code and do changes in ur report
    FORM SEND_MAIL_SUPPORT  TABLES   P_EM_BODY
                            USING    P_TITLE.
    *_ Start of the code to send an email notification
      DATA : ATTACH_REC TYPE I.
      DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE,
            OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE,
            OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
            OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
            DOC_CHNG LIKE SODOCCHGI1,
            TAB_LINES LIKE SY-TABIX.
    Creation of the document to be sent
      DOC_CHNG-OBJ_NAME = 'Mat Attach'(010).
      DOC_CHNG-OBJ_DESCR = P_TITLE.
      APPEND LINES OF P_EM_BODY TO OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    *Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
      DESCRIBE TABLE IT_ERROR LINES ATTACH_REC.
      IF ATTACH_REC GE '1'.
    *Start of email attachement of internal table conversition
       APPEND LINES OF IT_ERROR TO OBJBIN.
    WRITE: '----
    ' TO OBJBIN.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    CONCATENATE 'CCode.' 'A/CDocNum.' '  FYear.' 'DType.' 'PDate.' '  RefField.' INTO
                 V_TEXT SEPARATED BY ' '.
    APPEND V_TEXT TO OBJBIN.
    CLEAR V_TEXT.
    WRITE: '----
    ' TO OBJBIN.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    LOOP AT IT_ERROR.
    CONCATENATE IT_ERROR-BUKRS IT_ERROR-BELNR IT_ERROR-GJAHR IT_ERROR-BLART
                 IT_ERROR-BUDAT IT_ERROR-STATUS INTO V_TEXT SEPARATED BY '   '.
    APPEND V_TEXT TO OBJBIN.
    CLEAR V_TEXT.
    ENDLOOP.
    WRITE: '----
    ' TO OBJBIN.
    APPEND OBJBIN.
    CLEAR OBJBIN.
        DESCRIBE TABLE OBJBIN LINES OBJPACK-BODY_NUM.
        OBJPACK-TRANSF_BIN = 'X'.
        OBJPACK-HEAD_START = 1.
        OBJPACK-HEAD_NUM = 1.
        OBJPACK-BODY_START = 1.
        OBJPACK-DOC_SIZE = OBJPACK-BODY_NUM * 255.
        OBJPACK-DOC_TYPE = 'RAW'.
        OBJPACK-OBJ_DESCR = 'List of Error Documents'(012).  " Description
        APPEND OBJPACK. CLEAR OBJPACK.
      ENDIF.
      RECLIST-RECEIVER = S_EMAIL-LOW.
      RECLIST-REC_TYPE = 'U'.
      RECLIST-COPY = 'X'.
      APPEND RECLIST.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = DOC_CHNG
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = OBJPACK
          OBJECT_HEADER              = OBJHEAD
          CONTENTS_BIN               = OBJBIN
          CONTENTS_TXT               = OBJTXT
          RECEIVERS                  = RECLIST
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          OPERATION_NO_AUTHORIZATION = 4
          OTHERS                     = 99.
    *CHECK SY-SUBRC = 0.
    ENDFORM.                    " SEND_MAIL_SUPPORT

  • "entry in field bank account number is longer than 10 characters"

    Hello Sap Experts,
    The user is getting an error on saving the bank infotype. (0009). The user is trying to create a IT0009 for an international assignee.The error is "entry in field bank account number is longer than 10 characters.
    The default characters allowed maximum specified in the technical field is 18 characters. The abaper also checked and confirmed that it is specified as 18 characters.
    This is only for a single employee.
    Please provide your suggestions.
    Thanks
    Jyothsna

    Jyothsna,
    You need to extend Bank Account number length....even though 18 will be the max length..by default assignment of length will be different from country to country. So you need to extend the length of Bank a/c number in trasaction OY17.....select the country and change the bank a/c number length to 18 and Checking rule to 5 max value length.
    Mohan

  • Tag attributes can't be longer than 8 characters?

              Hi,
              I am in the process of migrating a web application from another server to Weblogic
              7.0 and have run into the problem that none of my tags with attributes longer
              than 8 characters seems to work. The error message I get is :
              /Login.jsp(8): Error in using tag library uri='webtool.tld' prefix='tool': The
              Tag class '<classname>' has no setter method corresponding to TLD declared attribute
              '<attribute name>', (JSP 1.1 spec, 5.4.1)
              probably occurred due to an error in /Login.jsp line 8:
              <%@ taglib uri="webtool.tld" prefix="tool" %>
              I can make this go away by shortening the attribute name, but I have a lot of
              attributes with long names...is the limit configurable somwhere?
              Thanks in advance,
              Karen
              

    Are you trying to use a distribution list?
    If so, what if you get the actual email SMTP address (in outlook, look in the "E-mail Addresses" tab) and try that instead?
    Sincerely,
    Ted Ueda

  • Getting this error when saving: Names longer than 31 characters are not supported on the destination volume

    I've just tried to save a document in Pages and got this error
    Names longer than 31 characters are not supported on the destination volume
    Never had a problem like this before. I haven't changed disks or formatted disks. Running latest Yosemite 10.10
    The only reference I can find to this error on the internet says that it's for applications prior to OS X which I think we can discount.
    The only other reference I can find in the support community relates to one person with problems saving attachments in Mail and dates from early 2014.
    Can anybody give me a suggestion on what I might need to do?
    Thanks

    What format are you saving to?
    Where are you saving the files to and what is that volume formatted as?
    Have you tested with files from other applications, such as TextEdit?
    Peter

  • LSK longer than 30 characters ?

    Hi !
    Is it possible to set the length of Legacy System Key to be longer than 30 characters ?
    Thank you for your help!
    Best regards,
    Peter

    Hi,
    if you speak about legacy keys for Contract account or Contract then you can create customer includes CI_EVER(tbl EVER )
    and CI_FKKVK (tbl FKKVK).
    For Contract exist enhancement "SMOD_EMDK0001 - IS-U: Contract - Subscreen Integration and Field Check".
    For Contract account exist user-exit PBO EXIT_SAPLES37_030 and PAI EXIT_SAPLES37_031.
    For customer screen you define PBO, PAI method and via spro hide standard field.
    May be exist customizing possibility to change length LSK, but i not found and always using abap-code((
    Igor

  • Reading Text longer than 132 Characters including Special characters

    Hello Seniors,
    Could you please give me some information about the following Function Modules also?
    'SOTR_STRING_CREATE_CONCEPT'
    'LXE_OBJ_TEXT_PAIR_READ_SOTR'
    'SOTR_STRING_READ_TEXT_WITH_KEY'
    I was able to create a concept by using the Function module 'SOTR_STRING_CREATE_CONCEPT'. Now, I need to create a text and then read the text where ever I want (the text can be longer than 132 characters and also may contain special characters) from abap functions as per my requirement.
    my requirement is not based only on SAP Scripts.
    Thank you,
    cnc.

    check in  url    www.SE37.com
    regards,
    Prabhu

  • Intermittent error saving attachments from mail: "Names longer than 31 characters are not supported on the destination volume."

    I am reciving intermittent errors saving attachments from mail: "Names longer than 31 characters are not supported on the destination volume."

    I am seeing this too.
    I Posted in similar thread 6704033
    Error when saving calendar exports-names longer than 31 characters not supported on the destination volume.
    Very spooky. Not always reproducible, but it happened to me while using Office365-Outlook web-based email (saving a PDF).
    RE: the suggestion, checking security box "allow apps downloaded from all sites" I would really rather not do that.
    On my system it is set to allow "Mac App store and identified developers."
    Oh sorry, I'm on Yosemite, I see this is Mav forum...

  • How to find the urls that are longer than 260 characters

    Hi
    I'm getting an error using Restore-SPSite thats most likely caused by URL's longer than 260 characters. How can I find out which URL's are too long? It's a huge site collection so it's not an option to search manually.
    Regards
    Jakob

    check this blog, allows you to take an inventory of all files in your web application and flag those files where the path (or URL) is longer than 260 characters.
    Locating files and pages with URLs that are too long for SharePoint
    Also check this: http://social.technet.microsoft.com/Forums/en-US/881d62e6-08c3-43b6-a9f1-96161ffa0201/how-to-write-a-powershell-script-to-find-the-url-path-length-of-all-the-files-and-folders-in?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • The text literal '''. is longer than 255 characters...

    friends,
        am getting an error "The text literal ''.    ' is longer than 255 characters. check whether it ends correctly in the very first line of the Report statement. what could be the problem? thanks all.

    Hi sathish,
    Please check whehter you have done like this
    A = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxx'
    in the same line, if you have done as above please
    do like this
    A =
    'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'.
    Thanks,
    Krishnakumar
    Message was edited by: Krishnakumar

  • Parameter longer than 4000 characters

    The java layer calls a EXEC_DDL stored proc that does a EXECUTE IMMEDIATE on the VARCHAR2 parameter string passed in. SInce the java layer is passing more than 4000 characters DDL statement we get an error about cannot bind long ..... What datatype should I use as a parameter instead of VARCHAR2 inside the EXEC_DDL stored proc. Steven Feuerstein advises against using LONG in his PL/SQL book. All the LOB types are for objects either INSIDE or OUTSIDE of the database but I just want the java code to be able to pass a DDL string greater than 4000 chars. I want to use the simplest approach.
    Thanks in anticipation

    a SUBSTR or a DBMS_LOB.SUBSTR works. This is the final working version of the EXEC_DDL proc. We used the DBMS_LOB package in case we needed to overload with other types of LOB parameters.
    procedure exec_ddl (
    pi_ddl_string IN CLOB
    ,po_status OUT PLS_INTEGER
    AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    -- AUTHID CURRENT_USER will be added after exception handling is packaged
    v_clob_buff VARCHAR2(500);
    BEGIN -- outer block
    EXECUTE IMMEDIATE pi_ddl_string;
    po_status := PKG_SNAPIT.pk_success;
    EXCEPTION
    WHEN OTHERS THEN
    v_clob_buff := DBMS_LOB.SUBSTR(pi_ddl_string,500,1);
    insert into exception_log values(sysdate,'COMPILE ERROR IN : ' || v_clob_buff,'pkg_dynamic_sql'
    ,'exec_ddl');
    COMMIT;
    pkg_snapit.Log_Errors ( 'Error_Stack...' || Chr(10) || DBMS_UTILITY.FORMAT_ERROR_STACK() );
    pkg_snapit.Log_Errors ( 'Error_Backtrace...' || Chr(10) || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE() );
    po_status := SQLCODE;
    RAISE;
    END exec_ddl;
    Edited by: user4900730 on Mar 11, 2010 2:00 PM

  • HMAC (SHA1) key longer than 81 characters not possible?

    Not sure whether I'm in the correct forum...
    To sign a message for a specific application with HMAC-SHA1 hash I need a 83 character key.
    My problem: the function module 'SET_HMAC_KEY' throws the exception "param_length_error". After I've testet with several key length, I found out, that the maximum valid length is 81. Is there any reason for this?
    With 3rd party libraries (ie. Python and Javascript) longer keys are working.
    Code:
    CALL FUNCTION 'SET_HMAC_KEY'
      EXPORTING
        generate_random_key         = ' '
        alg                         = 'SHA1'
        keycstr                     = 'cB1phTHISISATESTVuZMDmWCz1CEMy82iBC3HgFLpE&7857T...YFqV93gRJQ'
        client_independent          = ' '
      EXCEPTIONS
        unknown_alg                 = 1
        param_length_error          = 2
        internal_error              = 3
        param_missing               = 4
        malloc_error                = 5
        abap_caller_error           = 6
        base64_error                = 7
        calc_hmac_error             = 8
        rsec_record_access_denied   = 9
        rsec_secstore_access_denied = 10
        rsec_error                  = 11
        rng_error                   = 12
        record_number_error         = 13
        OTHERS                      = 14.
    Best regards, Uwe
    Edited by: Julius Bussche on Aug 5, 2010 10:19 PM
    I truncated the key further because in a coding tag it toasts the formatting when too long.

    Hi,
    yes, we can :-). Let say that SAP implementation supports a key with size more than 81 bytes. Then according to specification if the key is longer than block size of hash function (64 bytes for SHA-1) then it would use hash function to reduce original key to new key with size equals to output size of hash function (20 bytes for SHA-1). Therefore doing this step manually before calling SET_HMAC_KEY is equal to calling SET_HMAC_KEY which supports keys longer than 81 bytes.
    The easiest way how to check this is to compare some HMAC-SHA1 implementation with the result produced by my proposed logic.
    DATA: text TYPE string,
            key_str TYPE string,
            hash TYPE hash160x,
            key TYPE xstring,
            hmac TYPE hash512_base_64.
      text = 'Hello'.
      key_str = '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'.
      CALL FUNCTION 'CALCULATE_HASH_FOR_CHAR'
        EXPORTING
          data  = key_str
        IMPORTING
          hashx = hash.
      key = hash.
      CALL FUNCTION 'SET_HMAC_KEY'
        EXPORTING
          generate_random_key = space
          alg                 = 'SHA1'
          keyxstr             = key
          client_independent  = space.
      CALL FUNCTION 'CALCULATE_HMAC_FOR_CHAR'
        EXPORTING
          alg        = 'SHA1'
          data       = text
        IMPORTING
          hmacbase64 = hmac.
      WRITE: / hmac.
    Javascript version
    var hmac = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase");
    var hmacBytes = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase", { asBytes: true });
    var hmacString = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase", { asString: true });
    Both implementations return "qsXNz/wecK4PMob6VG9RyRX6DQI=".
    Cheers
    Sorry for formatting but it looks like something is broken.
    Edited by: Martin Voros on Aug 6, 2010 10:34 PM

Maybe you are looking for

  • Action to: Print current document to PDF Printer "As Image" with Specified DPI

    I FREQUENTLY do the following task on documents.  I would LOVE to have an action that did it for me.  Can someone help me create one or point me to someone who can? Version: Adobe Acrobat X Pro.  Windows 7 64-bit With current PDF file open: 2) Print

  • Account assignment search help in SC.

    We currently implement stand-alone scenario and looking for solution how to maintain account assignment data in EBP. As far as I know account assignment data managed in back-end system and not replicated into EBP. We would like to manage account assi

  • Songs deleted fron Itunes

    I downloaded songs via my Ipod Touch. Today, I plugged in my ipod to my brother's computer. Some update ran and all of my music is deleted from my Ipod. The Itunes store does not have it listed underd "purchased" I was able to pull it up under by acc

  • One Message Two Possibles receivers (iDoc or BAPI) in an System

    Hi All, My Scenario is: JDBC - > BAPI or IDOC the legacy system sends customers to SAP XI... and those customers could be old or new... so... in my interface... I ask with a RFC LookUp.. if the customer exists or have to create a new one. for create

  • I cannot change any safari preferences in mavericks

    i attempt to change my safari preferences such as toolbar, homepage, default search engine, and other preferences, but it keeps returning to the previos settings. i cannot even reset all of the top sites in safari