Error  ! sap script pc editor

Hello friends ,
I am changing a form but when i try to open in graphical pc editor . It is not able to do so and takes me to the normal editor .
My IF ...condition is really long . I have written the command as
/: IF a = b or c = d
/   or e = f ....
/  or g = h .
The second line after the command line is not getting excecuted as a command but getting printed on the form as is .
Please advise on this . What should be the next line after the command line if it is the continuation of the IF ....
Thanks

Hello Hari,
Press Shift+F8 the editor line will be exetended. there u can continue with the if condition.
To return back press the same key.
Hope this will solve ur problem.
Dön't forget to reward points,
Regards,
Vasanth

Similar Messages

  • SAP script change editor

    Hi All there,
    In SAP-Script when I am writing in commands in form editor it shows half part of the page and outside the editor it shows '>' which indicate there are line exist how to go o the end of lines.
    Regards
    Sagar

    Hi
    Place your cursor in the line, Press Shift+F8.
    Regards,
    GP

  • 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

  • Error "AND, OR or end of condition expected" in sap script IF statement

    Hi all,
    /:   IF  &WA_BSEG_IN-BUKRS& EQ '1000' OR &WA_BSEG_IN-BUKRS& EQ'2000'
    =    OR &WA_BSEG_IN-BUKRS& EQ '4000' OR  &WA_BSEG_IN-BUKRS& EQ '5000'
    /:   CASE  &WA_BSEG_IN-BLART&
    /:   WHEN 'DZ'
    /:   IF  &SAVE_EVENT& EQ u2018ZPR01u2019 OR &SAVE_EVENT& EQ u2018ZPR06u2019
    D1   <C4>Cheque Number/Bank Reference,,Payment Method,,Amount,,Cur,,</>
    /:   ENDIF
    /:   WHEN OTHERS
    D1   <C4>Payment Method,,Cheque Number/Bank Reference,,Amount,,Cur,,</>
    /:   ENDCASE
    /:   ENDIF
    I am getting below error in the the if statement (5th line) in sap script.
    Error is "AND, OR or end of condition expected".
    What is error in the 5th line?
    Thanks in advance

    Hi,
    In sap script, always give conditon in a sinlge line. Dont break the condition into many lines.
    /: IF &WA_BSEG_IN-BUKRS& EQ '1000' OR &WA_BSEG_IN-BUKRS& EQ'2000' OR &WA_BSEG_IN-BUKRS& EQ '4000'
    Thanks.

  • How to use msword as editor in sap script and smart form..

    how to use msword as text editor in sap scripts and smartforms..

    Hi
    Go through the link given below :
    Saptechnical. com
    tutorials
    smartforms
    you will find solution for how to use MS word as editior.
    Or
    Call transaction I18N
    go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
    If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
    Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.
    With Regard
    Nikunj shah

  • Text Element error in SAP script

    Hi All,
    I have modified a sap script and now getting print perfectly without any flaws.
    But system is raising an error log in spool (Tcode: SP01) as below..
    In form ZFFIAP_PMNT_RMTT / window MAIN , the element 610-C (Text-C) is missing.
    When i checked the MAIN window of sap script, there is a text element with name 610-C.
    How to resolve this error..????
    Please Help me...
    Regards
    Pavan

    Thanks for your inputs.
    I have checked the Driver Program. There  is no text element '610-C' used in WRITE_FORM statements in the driver code.
    There is no such element in the MAIN Window of sap script.
    Still i m facing same error.....
    "In form ZFFIAP_PMNT_RMTT / window MAIN , the element 610-C (Text-C) is missing"...
    What might be the reason..????
    I have checked other window too for such text element...
    If i create a text element "610-C" in the MAIN window of sap script, still same error is being created as log file in Spool (SP01). INterestingly this error is not creating any impact on script printing...!!!
    Can anyone help me.....????
    Regards
    Pavan

  • ? MSWORD as EDITOR in sap script and smart forms ?

    Hi friends,
    How to use MSWORD as EDITOR in sap script and smart forms.
    Edited by: Julius Bussche on Jul 17, 2008 12:45 PM

    hi,
    Call transaction I18N
    go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
    If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
    Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.

  • Problem in long text in SAP script editor

    Hi ,
    i am maintaining long text in SAP script editor , when i am trying to change the long text in SAP script that changes are not reflected in print preview ,for example when i am giving tabs in the script then in print preview of the PO these tabs are displayed as , , ( comma) , and underlines are not appearing in print preview.please help me on this.
    Thanks and regards.
    Rajeshwar.

    hi
    you have to install the correct printer which supports the displaying the drawings and objects/

  • Getting the error in the sap script

    Hi,
    I am running the Tcode f.26, which uses the standard sap script named F_DUZI_01. When running I am getting the error:
    Element 0031 window INFO is not defined for
    F_DUZI_01
    Please suggest what should i do or what could be the reason behind the problem.

    Hi,
    Check the Script whether that element is being used or not. Such  errors raise when you called the elements in the program without delcaring in the script.
    Please close the thread, if solved
    Regards,
    Aditya

  • Need info about a Error in SAP Script !

    Hi,
         I am getting the following error.
    "WRITE_FORM is invalid, START_FORM is missing".
    Actually I have already start the form using start_form function. I am using write_form inside a loop.
    What cud be be the possible probs.
    Thank you.
    Senthil

    Hi
      Check out the parameters that you r passing in the Write_form and Start_form with the paramters that you r passing in the sap script form.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TEXT1'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    check these values with the value you r passing in the sap script form.
    and similarly you check the start form also.
    I hope this will help you to solve your prob.
    Thanks
    Mrutyunjaya Tripathy

  • Error while displaying SAP script

    Hi,
      I was trying to display a SAP script by passing the values.
    When i click the preview button from the Dialog window It's displaying error called "CALL CONTAINED error (ADS(2)) "
    Can anyone explain why this problem is coming and what we want to do for making it work.

    Hi,
    Check for the data types of the variables you are passing values.
    There can be any data miss match.
    Regards,
    Rajesh Kumar

  • Sap Script - write form Error

    Hi,
    When i execute my SAP script, it stops at Write form function call.
    I get the exception as Sy-subrc = 7. i.e., BAD_PAGEFORMAT_FOR_PRINT.
    Does anyone know how to get rid of this error?
    All help is greatly appreciated.
    Cheers,
    K

    Hi,
    Please check the page format.
    R u using page format available in SPAD or any different page format.

  • SAP Script - Editor Window

    Hi,
    I am working on SAP SCRIPTS and the Editor Window has a maximum of 72 characters per line.
    I want to use BOX command 'BOX YPOS '1.75' CM HEIGHT '0.30' IN WIDTH '8.26' IN FRAME 10 TW INTENSITY 15' and I am unable to write this in 1 command line.
    How do I manage this?
    Thanks.

    Hi,
    Use edit->page left/right and then write your code,it will come in one line.
    Luck,
    Bhumika

  • Sap Scripts Error

    Hi All ,
              I have a problem changing my sap script in dev. say client 200 , i can display the form in 200 , when am trying to change the form in client 200 it showing 'ERROR IN OBJECT EDITING ' and displays an error message 'REQUEST/TASK kd1..... HAS INVAILD SOURCE CLIENT 100'. Any suggestion on how to change the form pls...
    Thanks,
    Vind.

    Hi
    May be the problem is with wrong request number. You can do one thing you can copy the script to other client by going to se71 transaction and using menu utilities-> copy from client. If you want the script only in this client do one thing make any changes in the script and try to save the script then it will ask for the package and request then you give the request id of this client.
    Hope this will help you.
    Regards
    Haritha

  • Sap Scripts Error Message

    Hi All ,
    I have a problem changing my sap script in dev. say client 200 , i can display the form in 200 , when am trying to change the form in client 200 it showing 'ERROR IN OBJECT EDITING ' and displays an error message 'REQUEST/TASK kd1..... HAS INVAILD SOURCE CLIENT 100'. Any suggestion on how to change the form pls...i tried to copy the 'FORM' from client 100 TO client 200 but the problem has not been solved is their any to do with the owner who created the script ??
    Thanks,
    Vind.

    Hi Srikanth,
                  I dont have access to client 100 is their any other way to transport the request ??
    Thxs,
    Vin.

Maybe you are looking for

  • Pictures not showing up in e-mail

    I am not able to see pictures in e-mail. Instead I get a small lego box with a question mark in it. Doesn't matter whether it is a picture that was e-mailed from my iPhone4 or whether the e-mail came from another source.

  • Posting date is not opened---URGENT

    Dear MM Gurus, When we are doing MIGO_GS( subsequent adjustment) we are facing problem as follows:     <b>Posting Period 01 2007 is not open</b> Document Posting date: 30.03.2007 MM Period: Current Period 01 2007 ( user wrongly opened so we allowing

  • [svn:fx-trunk] 9171: Adding the change notes that come from the TLF folks

    Revision: 9171 Author:   [email protected] Date:     2009-08-07 08:57:35 -0700 (Fri, 07 Aug 2009) Log Message: Adding the change notes that come from the TLF folks bug: nope qa: nope checkintests: no need Added Paths:     flex/sdk/trunk/frameworks/pr

  • Customize BPM Worklist remove attachment functionality

    Hi I am still new to the BPEL but we would like to remove the attachment functionality from the BPM Worklist. We gave our users attachment functionality of our main jspx page using Frank.Nimphius solution. Hence users do not need to have the attachme

  • What event tells me when any data changes in a mx:datagrid?

    I have a mx:datagrid that I need to have an event tell me when anything at all changes in the datagrid. The datagrid can be empty and as such may not have a dataprovider (=null) some of the time. I have looked at a variety of events but none seem to