Field type String (long length more than 1500)

Hi All,
we have requirement like one custom table with field string type(1500 length) should update through the report.
problem is, it is not updating that many characters through the report.
(till 255 chars only updating in the table)
i have to update full string in the custom table.
the code is below, please help me any one come accross the situation.
thanks in advance.
data: lv_test type string,
      lv_test1 type string,
      lv_num type i,
      it_test type table of ZFEILD_TEST,
      wa_test type zfeild_test.
do 10 times.
lv_test = 'thptjpojtgpeojygpeojhpoewjhpojwhjwpohjopsjhoptrjhopjwhopjwpojhpowjhopwjojwpojhpowjhpowjkahglfdglkaglkahklrhlfhslhkalklklhkalhalkhlahlkajljhlajhlajlajlkajlhjaljlajlhjaljhlajhlahpojwpohjwopjhojhwjhojopjwopjhwojhotjhwojwhojwpojhpwojhpowjophjwpojh'
lv_test1 = lv_test.
concatenate lv_test lv_test1 into lv_test1.
clear: lv_test.
enddo.
lv_num = strlen( lv_test1 ).
wa_test-STRIN = lv_test1.
wa_test-znumber = '001'.
append wa_test to it_test.
loop at it_test into wa_test.
write: / wa_TEST-strin.
modify zfeild_test from wa_test.
endloop.

Hi,
I assume you have chunks of the string and you need to concatenate it and put it to the table.
You can try this.
data : begin of w_string occurs 0,
         string type string,
         end of w_string.
data  : w_char1(255) type c value 'BLAUGBUSSUSSF',
          w_char2(255) type c value 'GSIUHFSHF',
w_string-string+0(255) = w_char1.
w_string-straing+255(255) = w_char2.
so on....
append w_string.
Regards,
Pramod

Similar Messages

  • How can i see the URL which has  length more than 255 chars in fucnction

    Hello Every body....
      I am facing one problem....I have a function module which returns URL in one table
      but in the function module display i am able to see only 255 characters,but the URL is more than 255 Characters..How can i see the URL which has the length more than 255 characters..
    In the Table the fields url length is 4000 chars.....
    but display it is showing only 255 chars.....
    Please Help me...??????????

    Hello,
    Have you tried breaking your structure into 255 chunks? I don't know what the structure you are moving from looks like, but you should be able break it back up into the SOLI structure. The end of a line in SOLI doesn't create a Carriage Return/Line Break. You have to insert these yourself like in the following:
    * Create document
          clear mail_line.
          move 'This is a test E-Mail'(d01) to mail_line.
          concatenate mail_line
                      cl_abap_char_utilities=>newline
                      into mail_line.
          append mail_line to l_mailtext.
    What kind of attachment are you wanting to create - a text tab delimited file for reading in a spreadsheet application such as excel? You might try reassembling your data table into a single string with newlines where you need them. Then use function module SCMS_STRING_TO_FTEXT to turn it back into SOLI. This is what I have done in the past. I'm afraid without knowing more about your source structure and attachment type, this is about all I can tell you.
    Vasanth

  • Send an attachment in email with length more than 255 char per line

    Hi All,
    I have to send an attachment in email with length more than 255 char per line. I dont want to break the line after 255 char and add it in another line.
    Please suggest me any function module which can perform this.
    Thank you all.

    I looked at all threads in the forum, there was about 5 or 6 identical questions, but surprise, nobody knows! It seems that SO_NEW_DOCUMENT_ATT_SEND_API1 function module does not allow more than 255 characters by line.
    It would surprise me a lot if there is no workaround !
    As it is very easy to add any binary attachment which is like a very long line, PDF for example (several kilobytes), via the function module above (lots of examples in the forum), I would advise you to try to use the same way, i.e. use the contents_bin parameter instead of the contents_txt parameter (convert the text into binary) and add the line feeds yourself (okay I know, it's not very smart).
    Last thing, this function module is deprecated, and we should use BCS classes, maybe they work better.

  • How to perform Text length more than 4000 bytes

    I want to read each row from txt file
    and used utl_file pacage to concat contents into a variable,
    the variable datatype is varchar2(4000), so text length can't more than 4000 bytes,
    but I wish get full text from txt file, How can I do?

    Thans! Detlev.
    I have a code :
    PROCEDURE read_file( path in varchar2, filename in varchar2, msg in out varchar2) AS
    data_line varchar2(4000);
    ifile utl_file.file_type;
    BEGIN
    ifile := utl_file.fopen(path,filename,'R');
    LOOP
    utl_file.get_line( ifile, data_line);
    msg := msg | | rtrim(data_line);
    END LOOP;
    utl_file.fclose(ifile);
    EXCEPTION
    WHEN no_data_found THEN
    utl_file.fclose(ifile);
    END;
    My question is
    1. The msg length can't more than 4000
    2. I use utl_raw.cast_to_raw function, that can't cast varchar2 to raw if varchar2 length more than 2048
    3. If I want to change the data type varchar2 to raw,
    the utl_raw.concat function can't use Loop ....end loop clause,
    So that only use utl_raw.concat(ra1, ra2,ra3,ra4,ra5, ... ra12)
    I want to concat all line to a raw datatype from text file , How can I do?

  • TS3899 How can i delete multiple e-mails from my iphone 4S. There are indicated more than 1500 e., but when i open the file there is indicated: no e-mail.

    How can i delete multiple e.mails from my iPhone 4 S. ? It shows the presence of more than 1500 e-mails. But when I try to open the account it shows that there a no e-mails. So i cannot delete them.

    I would disconnect the email on your phone...
    And reconnect again and if it still does that go on an actual computer, log on and delete the mails with ease...
    Hope this helps..it may just need to be refreshed...

  • Not able to scale more than 1500 users when using apache (OHS),why ?

    Hi,
    When scale more than 1500 users, my applications response time degrades.If i use IIS as my webserver I am able to scale more than 3000 users, is there any bottleneck in the oracle apache (OHS) ?
    OHS Config
    Timeout = 300
    KeepAlive = ON
    MaxKeepAliveRequests = 100
    KeepAliveTimeout = 15
    MaxRequestsPerChild = 0
    ThreadsPerChild = 5000
    SendBufferSize = 16384
    MaxClients = 5000
    Regards
    Vino joy

    Hi Jean,
    Our application contains customised retail webcenter portal on which retail application is hosted.This portal application is not able to scale up more than 10 users.I had created portal application without the customised framework and then for a similar usecase it is able to scale upto more than 50 users but once it hits 100 VU mark it starts giving errors.If it were an issue with client tokens or login,I would have been able to have more than 1 user at a time.It seems to be an issue with custom framework developed on top of webcenter portal.I have faced a similar issue while testing for this app with jmeter also.I was able to test for the webcenter portal app without any customisation for more than 100 concurrent users. But I was not able to test for more than 1 user for customised retail webcenter portal
    Thanks,
    Ritesh
    Edited by: user766882 on Aug 21, 2012 8:25 AM
    Edited by: user766882 on Aug 21, 2012 8:33 AM

  • Adding more than 1500 users over a livecycle policy

    hi,
         how can i add more than 1500 Active directory users all at once and grant them permissions over a livecycle policy, i want to do that as i have an issue with active directory group, so untill we figure out the issue with the groups i need to be able to add them manually
    i have tried adding simi columns between users names but didnt work, so is there any script or a method we can achive this?
    i have Adobe Livecycle ES4
    appreciate your earlist response.

    Hello ,
    The BADI LE_SHP_TAB_CUST_OVER  is Single use and hence we cant have multiple implementations fr the same ...
    If you want to have two tabls try to implement with in the single implementation by providing different OK_Codes for each tab .....hope it will work
    Regards,

  • Lync BToE - USB HeartBeat is not passed from Lync for long duration (more than 20 seconds)

    Lync BToE - USB HeartBeat is not passed from Lync for long duration (more than 20 seconds)

    Hi,
    Did the issue happen only for you or for multiple users?
    Make sure phone update to the latest firmware.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Uploading excel file into internal table with field length more than 255

    I am trying to upload the data from an excel file through function module 'TEXT_CONVERT_XLS_TO_SAP'.
    I have tested by changing the field type from string, and char2000.
    But it is accepting only 255 chars from the cell content.
    How to get the total content of the field if it is more than 255 char.

    hi,
      you can use any of the following procedures:
    For uploading data from excel to internal table refer standard report  RC1TCG3Z  in se38 :
                                               or
    You can use the FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' itself. Please check if you have done it this way . But,  this FM can be a little time consuming if the excel has large data, so you can use the FM u2018GUI_UPLOADu2019.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
            EXPORTING
              filename                = p_file1
              i_begin_col          = l_b1
              i_begin_row        = l_c1
             i_end_col               = l_b2
             i_end_row             = l_c2
           TABLES
              intern                  = lt_data
            EXCEPTIONS
             inconsistent_parameters = 1
            upload_ole              = 2
              OTHERS                  = 3.
          IF sy-subrc <> 0.
            MESSAGE e018 DISPLAY LIKE 'i'.
         ENDIF.
    *---Removing the first heading fields from the file.
          IF NOT lt_data[] IS INITIAL.
            LOOP AT lt_data INTO lwa_data WHERE row = '0001'.
              DELETE lt_data.
              CLEAR lwa_data.
            ENDLOOP.
    *---Inserting the data from file the internal table
            LOOP AT lt_data INTO lwa_data.
              CASE lwa_data-col.
                WHEN 1.
                  wa_file_wicopa-serial = lwa_data-value.
                WHEN 2.
                  wa_file_wicopa-blart = lwa_data-value.
                WHEN 3.
                  wa_file_wicopa-bldat = lwa_data-value.
                WHEN 4.
                  wa_file_wicopa-budat = lwa_data-value.
              ENDCASE.
              AT END OF row.
                APPEND wa_file_wicopa TO gt_file_wicopa.
                CLEAR wa_file_wicopa.
              ENDAT.
              CLEAR lwa_data.
            ENDLOOP.
          ENDIF.
        ENDIF.
                                                or
    DATA: it_test TYPE STANDARD TABLE OF alsmex_tabline WITH HEADER LINE.
    DATA :v_start_col TYPE i VALUE '1',
          v_start_row TYPE i VALUE '1',
          v_end_col TYPE i VALUE '256',
          v_end_row TYPE i VALUE '65536',
          v_text TYPE repti.
    * Funtion Module to upload values from excel to the Internal table
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = v_start_col
          i_begin_row             = v_start_row
          i_end_col               = v_end_col
          i_end_row               = v_end_row
        TABLES
          intern                  = it_test
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
                             Or
    You can use FM u201CTEXT_CONVERT_XLS_TO_SAPu201D.
    DATA : i_raw TYPE truxs_t_text_data.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_field_seperator          = 'X'
          i_tab_raw_data             = i_raw
          i_filename                 = p_path
        TABLES
          i_tab_converted_data       = itab
    EXCEPTIONS
       conversion_failed          = 1
       OTHERS                     = 2
    hope it will help u
    regards
    rahul

  • To display text more length more than 1000

    Hi,
    I have Ztable which has a LCHAR field of length 1000. through a program i am populating records in to this table. But i am unable to see the complete text in Se11 or se16 not even in debugger (not showing more than 132 char). Is there a way to see that text. I wrote a program to read that text & display it is not fetching the required data means the 1000 Lchar text. Can you pl tell me how can this be done.
    Below is the code used to read & display the text.
    DATA : BEGIN OF zerr OCCURS 0,
             buildid LIKE zmm-buildid,
             message LIKE zmm-message,
            END OF zerr.
    SELECT buildid message
           FROM zmm
           INTO TABLE zerr.
    LOOP AT zerr.
      WRITE :/5 zerr-buildid.
      WRITE :/5 zerr-message.
    ENDLOOP.

    Hi
    U can try to use NEW-PAGE statament, here you can indicate line having a length longer than 255 char:  the maximum line length is 1023:
    DATA : BEGIN OF zerr OCCURS 0,
                   buildid LIKE zmm-buildid,
                   message LIKE zmm-message,
                END OF zerr.
    START-OF-SELECTION.
    SELECT buildid message FROM zmm
    INTO TABLE zerr.
    NEW-PAGE LINE-SIZE 1000.
    LOOP AT zerr.
      WRITE :/5 zerr-buildid.
      WRITE :/5 zerr-message.
    ENDLOOP.
    Anyway this doesn't mean you'll be able to print this layout, because you need to create a right format by SPAD transaction.
    Max

  • Serial write takes unexpectedly long when more than 7 bytes are written

    Hi,
    My vi is attached. 
    As you see, it's very simple.
    - output buffer fifo is set to 128 bytes, which is generously higher than my needs.
    - my baudrate is 2.5 mpbs.
    - I write string of 9 bytes such as 012345678, and the execution time of the vi is around 40 us. 
      I thought it's because of the blocking structure of the synchronous write, and I decided to switch to asynchronous
      write, since I need to go above 20 kHz.
    - when I switch to asynchronous write, it even gets worse, and I get ~58 us. it seems like asynchronous doesn't work at all.
    so far, I explained my problem. I also did some simple experiments to debug the problem.
    - when my string is shorter than 8 bytes, everything is beautiful, asynchronous write takes nearly 15 us.
      when I enter an 8 bytes or longer string, it jumps up to 58 us again.
    what am I doing wrong? I'm stuck here.
    Gorkem Secer.
    Attachments:
    serialWrite_niForum_pic.png ‏19 KB

    The driver might for a lot of reasons not want to or even can't fill up the 8 byte hardware FIFO buffer entirely. This could be for instance since it has to work around some bugs in certain hardware. It might not be necessary for the specific hardware revision in your system but that driver has to work for many different hardware systems.
    The magnitude of timing control you try to achieve is simply beyond a software system if you require reliable and hard timings. It may be possible to achieve on a simpler but still powerful embedded system with custom made software drivers and RT OS but not on a more general purpose RT OS even if the hardware is pretty powerful. But such more custom made solutions would be more than a few magnitudes more expensive to develop.
    You can keep barking up this tree but it is unlikely that NI can do much about it without redesigning parts of the RT system, which is pretty much out of question as they simply license it from Ardence/IntervalZero and only adapt it where it is strictly necessary to work with their hardware. Most likely their license doesn't even allow them to customize it at will in any other way than is strictly necessary to get it to work on their own hardware.
    Your options are as far as I can see, to either rethink the timing requirements or adapt the software in such a way that the bigger delay won't be a problem or to go with a hardware solution based on an FPGA board or similar.
    As to the difference of asynchronous write and synchronous that is mostly about what VISA API is called underneath. The LabVIEW function remains blocking for as long as is necessary to pass the data to the OS driver. In synchonous mode the LABVIEW VI calls the synchronous VISA API once and that simply waits until VISA returns from the function. For the asynchronous case LabVIEW calls the asynchonous VISA function and then keeps looping inside its own cooperative multithreading layer until VISA indicates that the asynchonous function has been performed. This is mostly for historical reasons when LabVIEW didn't have OS supported multithreading and all the multithreading happened in the cooperative LabVIEW code scheduler. Nowadays asynchonous VISA mode has almost no benefits anymore but genearlly will cause significantly more CPU load.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • SQL Loader fails to process string columns with more than 255 characters

    Hi all,
    I am using LKM file to sqlldr(oracle) to load data from flat file to oracle. I am aware of the fact that if you don't specify length of the input character data, sqlldr uses default of 255 characters. But, in my source datastore I have specified the column length to be 1000, but sqlldr still fails to process records with more that 255 characters.
    Any idea how to change this behavior of sqlldr?
    Appreciate your response.
    Akshata

    You can change the step "Generate CTL File"
    and replace the section:
              } else {
              // The source column is a STRING => no options to add
                   format = "";
              };with
              } else {
              // The source column is a STRING => add char(length) for length greater than 255
                   taille = new Integer(colPrecision).intValue();
                   if (taille > 254)
                   format = "CHAR("+colPrecision+")";
                   else
                   format ="";
              };

  • Problem with field type STRING in table

    Hi Experts,
             I am new to ABAP. I have created a new transparent table which hold error info. One of the field has to store data of size about 1500 char.
    Since CHAR type is not acceptable for this field So I gave STRING type. Now when I try to create a TABLE parameter in a RFC enabled functional module using "LIKE YERROR" Then I get a error:
    "YERROR must be a flat structure. You cannot use internal tables, strings, references, or structure as component" 
    Why is this error? How to resolve it? Is it because I have used a field of type STRING in the table? If this is the problem then what other type can I use?
    What are other know problems with using STRING type?
    Please help!
    Thanks
    Gopal

    Hi,
    Try to declare it as type LCHR , it can hold up to 32000 chars.
    Regards
    vijay

  • PO Header Text --- Length more than 132.

    Dear Experts,
    I hv to read header text (me23n) of po where terms and conditions are defined. I hv used READ_TEXt FM which return the internal table L_LINES. Because I hv to display label also i.e.
    Header Note  (label)
    for example , the pr qty is 1000 , but we are doing sub contracting po for only 500 and for other 500 we want to do std po but system allows us to do only subcontracting po...for that we are doing manually prs for the remaing qty... Moving ahead, management wants us to Purchase     ( This is entered text).
    Payment Terms (label)
    1) 100% advance.
    2) 100% advance.
    3) 100% advance.
    so i hv used my own internal table of type TLINE.
    Problem is , the length of TLINE-TDLINE is 132, but the length of entered text is more than 132 (Header Note above).
    when i copy the tdline from L_LINES to w_line, it does copy only 132 characters.
    Can anyone guide me in this.
    And one more thing is , as above in terms and conditions, after first point enter is pressed. how to capture if enter is pressed.
    Regards,
    Jaspal Kumar

    Hi
    See the below logic
    DATA: lv_string(2000).
          LOOP AT it_tline1 INTO wa_tline1.
            CONCATENATE lv_string wa_tline1-tdline INTO lv_string SEPARATED BY space.
            CLEAR wa_tline.
          ENDLOOP.
    let me know if there are any issues.

  • SOLAR01/02 - Transaction Tab - Transaction length more than 20 characters.

    We have SCM transactions with more than 20 characters.
    There are any way to use in SOLAR01/02?
    Thanks
    Federico

    Hello,
    The Domain TCODE in se11 is defined with length 20, therefore there is no
    possibility to enter longer values.
    Regards,
    Jared Singh

Maybe you are looking for

  • Calling a Report from a Form

    I have uploaded my form to the app server and compiled to Linux. I have copied my RDF file to the reports_path/demo directory. I can run the report via a link from our portal using the URL as follows: /reports/rwservlet?report=IndRpt.rdf&desformat=pd

  • Error in Smartform trace file

    I am facing the following issue when printing the smart form. The below mentioned is log from smartform_trace font exchange table imported from db ! W SSFCOMPOSER 301   MSGV1: R2 ! W SSFCOMPOSER 190   MSGV1:                                           

  • Attach pdf doc to PO at the time of PO creation.

    Hi, Is there a way to attach a pdf or word doc  at the time of Purchase Order creation via ME21N.

  • Bluetooth Headphones Audio Delayed after Updating to Yosemite

    Ever since I upgraded to OS X Yosemite my Bluetooth headphones have started having pretty drastic delays on my iMac.  When I first start up the computer it seems normal, but after a half an hour or so, I have more than a 2 second delay. I googled it

  • GOLive to DWCS2

    I have recently upgraded our software to CS3 and it seem to have successfully migrated my GoLive file into DW (selected original site as root folder). Now my question is, if I upload to server, will it overwrite everything on the server or continue a