Dump error when clicked on text elements in SAP Script window

Hi All,
There is an inclusion in SAP Script. I have written the code in driver program. I need to pass the value to SAP Script in the requested position. But when I go to SE71 > Form Name > Change or Display > MAIN Window > Text Elements > I get a dump error.
Category               ABAP Programming Error
Runtime Errors         DATA_LENGTH_TOO_LARGE
Except.                CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program           SAPLSTXK
Application Component  BC-SRV-SCR
Date and Time          30.04.2014 20:00:08
Short text
     Invalid partial field access: Length is too large
What happened?
     Error in the ABAP Application Program
     The current ABAP program "SAPLSTXK" had to be terminated because it has
     come across a statement that unfortunately cannot be executed.
What can you do?
     Note down which actions and inputs caused the error.
     To process the problem further, contact you SAP system
     administrator.
     Using Transaction ST22 for ABAP Dump Analysis, you can look
     at and manage termination messages, and you can also
     keep them for a long time.
Error analysis
     An exception occurred that is explained in detail below.
     The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
      caught in
     procedure "TOKEN_COMMENT" "(FORM)", nor was it propagated by a RAISING clause.
     Since the caller of the procedure could not have anticipated that the
     exception would occur, the current program is terminated.
    The reason for the exception is:
    In the executed program "SAPLSTXK", the system attempted to access the field
    "ITF_TOKEN" of the type "C" and with the length 255 using the length 272.
    However, a partial field access with a length specification that is
    larger than the field length is not allowed.
How to correct the error
    Reduce the length used to access the field.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DATA_LENGTH_TOO_LARGE" "CX_SY_RANGE_OUT_OF_BOUNDS"
    "SAPLSTXK" or "LSTXKFRN"
    "TOKEN_COMMENT"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
       To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
       Display the system log by calling transaction SM21.
       Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
2937 * todo empty comment ???
2938       if g_tm_open    eq true or     " Section
2939          g_tm_b_close eq true.
2940         l_token = '\chcbpat0'.
2941         l_len = strlen( l_token ).
2942         token_control = true.
2943         assign l_token to <itf1>.
2944         perform put_itf1_new using l_len.
2945         perform token_line_begin changing l_next_token.
2946       else.                          " without section
2947         concatenate '\chcbpat0\line' g_cf_string l_cbpat_token into l_token.
2948         l_len = strlen( l_token ).
2949         token_control = true.
2950         assign l_token to <itf1>.
2951         perform put_itf1_new using l_len.
2952       endif.
2953     elseif l_next_token-code eq ')L'.         " \par
2954       l_token = '\par'.
2955       l_len = strlen( l_token ).
2956       token_control = true.
2957       assign l_token to <itf1>.
2958       perform put_itf1_new using l_len.
2959     elseif l_next_token-code eq '(C' or       " \par + format
2960            l_next_token-code eq ')C' or
2961            l_next_token-code eq '(&' or
2962            l_next_token-code eq 'TA' or
2963            l_next_token-code eq 'SC' or
2964            l_next_token-code eq 'ST'.
2965       concatenate '\chcbpat0\par' g_pf_string g_cf_string l_cbpat_token into l_token.
2966       l_len = strlen( l_token ).
>>>>>       itf_token(l_len) = l_token.
2968       token_control = true.
2969       assign l_token to <itf1>.
2970       perform put_itf1_new using l_len.
2971     endif.
2972
2973 * Step 7: (L to disarm
2974   if g_compose eq true and
2975      l_next_token-code eq '(L'.
2976     perform read_next_itf_token(rstxscan) using p_token.
2977   endif.
2978
2979 ENDFORM.                    " token_comment
2980 *&---------------------------------------------------------------------*
2981 *&      Form  create_lang_info
2982 *&---------------------------------------------------------------------*
2983 *       add default language to rtf
2984 *----------------------------------------------------------------------*
2985 *      -->P_HEADER  text
2986 *      <--P_RESULT  text
How do I open the text elements? I need to pass the variable inside SAP Script.
Please Help. The requirement is pending from very long. Not able to rectify this issue.
Regards,
Rekha

Hi,
There is a SAP Note about this problem
566794 - Runtime error: STRING_OFFSET_TOO_LARGE during conversion
Correction Instructions
Correction Instructions
Software Component
Valid from
Valid to
Number
SAP_BASIS
46B
46D
473267
SAP_BASIS
610
620
473185
Support Packages & Patches
Support Packages
Software Component
Release
Support Package
SAP_BASIS
46B
SAPKB46B48
46C
SAPKB46C39
46D
SAPKB46D28
610
SAPKB61027
620
SAPKB62014
Regards
Miguel

Similar Messages

  • How to end text element in sap script

    how to end an text element in sap script
    this is the format.
    /E text element name
    &tablename-fieldname&
    text-text-text-text
    now if i do not end that text element it is not displayiny my below text , so what to do in this case

    Go through the links mentioned below.
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    http://www.sapmaterial.com/smartform_example.html
    Re: Hands on SAP Smart Forms
    smartforms
    Reward points if useful.

  • Text element in sap script

    Hi All
    Y do we need Text element in SAP SCRIPT ?

    yes you can.
    are you using your own print program or a standard?
    Each window will be called by the code so if you have no elements in there all the data is output in the order they appear in the form.

  • Why do I get Microsoft Visual C++ Runtime error when I open Premiere Elements 11  on my windows 8 ?

    Why, when I open Premiere Elements 11 on my windows 8,  do I get"Microsoft Visual C++ Runtime error. This application has requested runtime to terminate it in an unusual way.Please contact the application support team for more information."
    Any solutions, thanks, Jim B.'

    jimmymega
    We will follow up when you have time.
    I am not sure if there is a misunderstanding in the communications. Please see
    but how do I identify the "http://forums.adobe.com/message/5129399 ? Is there somewhere where there is the number 51229399?
    When you click on that link, it should open to a thread with a discussion on troubleshooting the Microsoft Visual C++ Runtime Error situation. Did the link not open. It seems to be working. Please try clicking the link again and let us know the outcome.
    Thanks.
    ATR

  • How do I Hide the text printed from a standard Text Element in SAP Script?

    Hi,
    I have created one SAP Script which gets printed from IW33 using a standard print program.
    In config the standrad SAP script is replaced by the zsap script.
    Since the Zscript is printed from a Standard print program, I had to keep all the text elements used by the original(standard) SAP script.
    I only kept the text elemets and commented out the printing part.
    But still some values are printing. How do I hide these text element values?
    I want to delete whatever its printing from these text element. Icant delete the standard text elemetns , otherwise the standard print program will give error.

    Hi,
    I am not printing any text under these text element in my zscript.
    I had to include these standard text elemets as they are called from the standard print program using which my zscript is getting printed.
    for example:
    /E OPERATION
    Under operation i didnot print anything. Still some values which are passed in text element Operation by the print program is being printed in the form. i want to hide/delete these values.
    how do I do that?

  • Text Element in SAP-Script and Box

    Hi Gurus
    Q1.what is the meaning of text element's in sap-script.e.g.
    /E INSPECTION_STATION_INFO
    /E SAMPLE_INFO
    /E PHYS_SAMPLES_HEADLINE..
    I have to use these elements in my script.i am not able to understand what does it mean?
    Q2.how we can draw a Tabular format in Script?
    Q3.How we can draw Box?
    Thanks in advance

    Hi,
    Text Elements
    You can define text elements (window texts) for each window. On the Form: Request screen, choose Edit ® Text elements.
    The print program accesses text elements by name, formats them and prints them in the respective window. That is, the program can decide which text elements should be printed in a particular window. It calls these text elements by name to print them. You must therefore change text element names in the print program if you make any changes to text element names in a form.
    In the layout of a text element, you can use only the paragraph and character formats defined in the form.
    Example of a text element in an order confirmation:
    /E ITEM_LINE
    IL &VBDPA-POSNR&,,&VBDPA-MATNR&,,&VBDPA-ARKTX&
    / &'Customerarticlenumber 'VBDPA-IDNKD' '&&'Position
    / 'VBDPA-POSEX&
    This example shows a section of a main window of a form, with an item line of an order confirmation. The /E in the tag column is used to identify the text as a text element, ITEM_LINE is the name of the text element.
    Default Text Element
    At the start of a window, you can define a text element without the /E command in the paragraph format column. This text is always printed at the start of the window. It is not necessary to insert this text explicitly via a print program.
    For more go to this link: Character formats and attributes
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
    Boxes:
    Use the following code
    /: BOX XPOS 1 MM YPOS 2 MM WIDTH 20 MM HEIGHT 40 MM FRAME 10 TW.
    Box is the command used for printing box in script.
    XPOS - x- axis position
    ypos - y axis position
    http://help.sap.com/saphelp_470/helpdata/en/d1/802ec5454211d189710000e8322d00/content.htm
    Regards,
    Omkaram.

  • On my Mac, after the installation i get this error when i start - Premiere Elements 13.0 has encountered an error. [/Adobe/pre/main/MediaCore/ASL/Foundation/Make/Mac/../../Src/DirectoryRegistry.cpp-283] any ideas how to fix this

    On my Mac, after the installation i get this error when i start - "Premiere Elements 13.0 has encountered an error. [/Adobe/pre/main/MediaCore/ASL/Foundation/Make/Mac/../../Src/DirectoryRegistry.cpp-283]"
    any ideas how to fix this, i don't know or haven't faound out how to contact Adobe supporet....

    Here's the contact link for Adobe support. It's just three clicks from the site's home page.
    Contact Customer Care

  • Error when generating the text environment

    Hi Friends,
    When iam logging on to SAPGUI iam able to lauch the gui but no text elements are being displayed the screen is completely blank and when i try to execute any transaction or perform any action.. the following error is getting displayed.
    Err:sapgui:620
    Error when generating the text Environment.
    Please provide me the necessary help.
    Regards
    Khaiser

    Hi,
    Just a suggestion (not sure it will work) - upgrade your SAPGui to the latest one e.g. 7.10 or patch it.
    Do you see text elements if accessing the sytem using DE language ?
    Regards,
    Mike

  • Short dump error when using count(*)

    Hi Experts
    I am getting a short dump error when selecting the records >= current date - 30 see the coding and comment please correct the coding I want to know the ztable records it is important for command interface.
    I have 1402345 records available after deleting the records but as the memory is not enough it is giving short dump error
    select count(*) from ZINT_TABLE
    select count(*) from ZINT_MSGS
       select * from zint_data
                 nto table izint_d2 . "PACKAGE SIZE 20000
       where STATUS = 'OK' AND CREATED_ON >= w_date1.          " VALUE
    endselect.**
    report z_eslp_command_records.
    data: cnt type i.
    data: cnt2 type i.
    data: cnt3 type i.
    data: cnt4 type i.
    DATA:
         w_date1 like sy-datum .
    DATA:
         w_date2 like sy-datum.
    data: izint_msgs type table of zint_msgs.
    data: izint_data type table of zint_data.
    data: izint_m2 type table of zint_msgs.
    data: izint_d2 type table of zint_data.
    INITIALIZATION.
    w_date1 = sy-datum -  30.
    w_date2 = sy-datum -  30.
    select * from zint_data
                 into table izint_data PACKAGE SIZE 3000
                 where STATUS = 'OK' AND CREATED_ON <= w_date1.   " ZERO
    endselect.
    select * from zint_msgs
                 into table izint_msgs  PACKAGE SIZE 3000
                  where  CREATED_ON <= w_date2.              " ZERO
    endselect.
      select * from zint_data
                 into table izint_d2 PACKAGE SIZE 20000
       where STATUS = 'OK' AND CREATED_ON >= w_date1.          " VALUE
    endselect.
    select * from zint_msgs
                 into table izint_m2 PACKAGE SIZE 20000
      where CREATED_ON >= w_date2.                            " VALUE
      endselect.
    select * from zint_data
                into table izint_data2
    where STATUS = 'OK' AND CREATED_ON >= CONVERT(CHAR(8), GETDATE() - 30, 112)).
    ENDSELECT.
      select * from zint_msgs
                into table izint_msgs2
    where CREATED_ON >= CONVERT(CHAR(8), GETDATE() - 30, 112)).
    ENDSELECT.
    sort izint_data by created_on ascending.
    sort izint_msgs by created_on ascending.
    sort izint_d2 by created_on ascending.
    sort izint_m2 by created_on ascending.
    describe table izint_data lines cnt.
    describe table izint_msgs lines cnt2.
    describe table izint_d2 lines cnt3.
    describe table izint_m2 lines cnt4.
    write:/ ' Note: THE RECORDS COUNTED SHOULD SHOW ZERO ELSE THE SCRIPT FAILED TO RUN' color 3.
    skip.
    write:/ '1. Records counted in ZINT_DATA   <=current date - 30                   :' color 2,                        cnt color 4.
    write:/ '2. Records available in ZINT_DATA >=current date - 30                   'color 4,                   cnt3 color 4 .
    skip.
    write:/ '2. Records counted in ZINT_MSGS   <=current date - 30                   :' color 2                 ,                      cnt2 color 4.
    write:/ '4. Records available in ZINT_MSGS >=current date - 30                   'color 4  ,            cnt4 color 4 .
    TOP-OF-PAGE.
    WRITE:/55(60) ' WAGNERS INVESTMENT LIMITED  '.
    WRITE:/50(40) ' Command Interface Data' CENTERED .
      WRITE:/50(40) '----
    ' CENTERED .
      FORMAT INTENSIFIED ON.
      SKIP.
      "FORMAT COLOR COL_HEADING.
      ULINE.
      FORMAT COLOR 1.
    END-OF-PAGE.

    Answer

  • Short dump error when extracting delta records from R/3

    I am working on BW 3.5 and I am facing some short dump error when extracting delta records from the r/3 to BW.
    Below is the error message
    Kindly do the needful ASAP.
    Job started
    Step 001 started (program SBIE0001, variant &0000000024277, user ID BWREMOTE)
    Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    DATASOURCE = 0ISCM_PAYMENT_01
             Current Values for Selected Profile Parameters               *
    abap/heap_area_nondia......... 2000000000                              *
    abap/heap_area_total.......... 2000000000                              *
    abap/heaplimit................ 40000000                                *
    zcsa/installed_languages...... DE                                      *
    zcsa/system_language.......... E                                       *
    ztta/max_memreq_MB............ 2047                                    *
    ztta/roll_area................ 6500000                                 *
    ztta/roll_extension........... 2000000000                              *
    2,454 LUWs confirmed and 2,454 LUWs to be deleted with function module RSC2_QOUT_CONFIRM_DAT
    ABAP/4 processor: MESSAGE_TYPE_X
    Job cancelled

    Hi,
    I look at the transaction ST22 to see which type of error has given you. Take a look at the notes to correct the error.
    Another option is to look at OSS notes, because the error is giving you a standard extractor.
    Greetings,

  • Error when tranfering the text data

    Hi all
    I am getting an error when transfering the text data thru flat files .
    It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5.
    pls suggest me.
    thanks in advance
    karna

    here are teh steps:
    1) craete source system in BW as say Flat_file
    2) go to inforsource --?  create inforsource --> right clik on infosource and say assign datasource
    3) select flat_file here and say YES
    4) then for flat file, trnafer structure mapping has to be done manually. so in trs struc screen ,go to datasource tab and enter your corresponding infoobject.
    5) then  go to tranfer rule tab and propose the rule.
    If it helps, please assign points. In case of doubt, please get back
    Regards
    Pankaj

  • Error when extracting the text data

    Hi all
    I am getting an error when transfering the text data thru flat files .
    It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5.
    pls suggest me.
    thanks in advance
    karna

    hi,
         you have to decline 0LANGU, STTXT(short text), MDTXT(medium text),
    LGTXT(long text), and respective key field(primary key) of attribute for
    text data source.  give the above five info object's in transfer structure for
    text data source and activate it.
    if helpful provide points
    regards
    harikrishna.N

  • Memory allocation error when burning in premiere elements 2

    I have premiere elements 2. I happily burnt a version of my dvd then suddenly it stopped burning and I had the above message during the burning section of the process. My computer has adequate memory to run this programme and nothing new has been added. I then downloaded Premiere elements 7 as a trial and burnt this Dvd yesterday. However today it won't burn through 7 either so i am reluctant to upgrade unnecessarily. Can anyone shed light on why I receive this error message.
    Other things seem to burn but I am beginning to receive messages that Adobe is low generally on memory allocation.
    Regards
    Erika

    memory allocation error when burning in premiere elements 2
    Erika Lindsay - 09:30am Jan 4, 2009 Pacific
    I have premiere elements 2. I happily burnt a version of my dvd then suddenly it stopped burning and I had the above message during the burning section of the process. My computer has adequate memory to run this programme and nothing new has been added. I then downloaded Premiere elements 7 as a trial and burnt this Dvd yesterday. However today it won't burn through 7 either so i am reluctant to upgrade unnecessarily. Can anyone shed light on why I receive this error message.
    Other things seem to burn but I am beginning to receive messages that Adobe is low generally on memory allocation.
    Regards
    Erika

  • Get a "Download Error" when clicking on the "App" tab of Creative Cloud.

    Get a "Download Error" when clicking on the "App" tab of Creative Cloud.

    Yeah I finally had to call Adobe and some there did a screen share with me and they took care of it. I am running OSX 10.9.3 my issue was that the latex OSX update didn't communicate with the app. Like I said Adobe did a screen share with me and fixed it for me I think he just uninstalled and reinstalled and I want to say thats what took care of it.

  • Page Not Found Error when clicking on Crystal Report Viewer print icon

    Hi,
        I am working with ASP.NET 2.0 and crystla reportXI release2.
        I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
        Could you please tell me how to get rid of this error?
    Regards,
    Smitha

    This sounds like a postback issue. Does your application handle postback by putting the report in session?
    There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
    A short pseudocode would be something like this:
    Dim rptDocument As ReportDocument
    If Not Me.IsPostBack or Session("Report") = Nothing Then
    rptDocument = New ReportDocument
    rptDocument.Load(sGlobalPath & "\myreport.rpt";)
    Ludek

Maybe you are looking for