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

Similar Messages

  • Problem with sap script main window

    Hi,
    I am modifying the existed sap script. I added a box and some line items to the sap script main window.
    Now i want to increase the size of the mainwindow.
    Please guide me how to increase the lines of main window . I am unable to edit the standard attributes of the main window ,because all are in disable mode.
    Please guide me how to increase the size of the main window.
    Thanks in advance
    Regards
    Sudhakar

    Hi,
    You might be trying to edit the script in non original language. You can change the layout only in the original language.
    Check the attributes of the script to see the original language.
    Thanks,
    Vinod.

  • 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/

  • Sap script main window related question

    hi
    i have a requirement to add a new column to sap script main window picking information from some table
    this new column is C2 and it takes reference from C1
    i ahve below queries
    1) is is better to add a new column to main window and increase and decrease alsl columns width of all columns
    or create a new window below the main window in which this new field will apear
    ie C1 and C2 to appear in this new window
    c1 is already coming in main window it needs to reaper with the new C2 in new window
    my concern is that since main window is only one and it it being called again and again to polultate the data
    how this new window will work will it be able to display the corect data
    whcih is better approach
    2) ASLO the requriement is that the new field should appear only when Reprint is done for the transfer order
    can anyone tell how to catch the reprint option or code from teh program what is defined for reprint option in program and how to catch it and put condtion?
    regards
    Arora

    If you would like to have vertical lines as well inside the frame....
    /:   BOX FRAME 10 TW                                                
    /:   BOX XPOS '1.2'  CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    /:   BOX XPOS '11.00' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW    
    /:   BOX XPOS '15.5' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    /:   BOX XPOS '18.4' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    Regards,
    Rich Heilman

  • Calling SAP Script Editor from Report

    Hi,
    Can any one solve this Problem.
    How to call SAPscript  Editor i.e. MS word editor (where we are giving Text elements or Text variables or Text.
    I want to call the above text editor from my report.
    Can any one give answer for this.
    Thanks & Regards,
    Kumar.

    Moarach,
    you need to open a editor for entering the text. You can do that using the function module HR_CALL_TEXTEDITOR. After you have entered the text and clicked on SAVE you get the data returned in an internal table EDITOR_TEXT.
    You can then save the text to a text ID using SAVE_TEXT and COMMIT_TEXT function modules.
    either:
    You will have to use the FM: READ_TEXT, EDIT_TEXT, SAVE_TEXT to achieve this functionality.
    This will basically open the text editor as a pop up box ( size will be as sap script editor) for entering some comments against a Purchase Order.
    For this FMs, you 'll require Text id, text name, text object and language as parameters to be passed.
    thead-tdname = 'Purchase Order No'. " Name
    thead-tdid = 'ZQH1'. " Text ID - E.g. To be created in your system
    thead-tdobject = 'VBBK'. " Texts: application object
    thead-tdspras = sy-langu. " Language Key
    Hope this helps.
    Amit.

  • Resize script editor window

    Hello,
    Is it possible to resize Hyperion script editor window? Or is it possible to use another script editor.
    In my documents, the scripts are 300 lines long and the script editor displays only 11 lines!
    Thanks

    Interactive reporting? in the script editor... bottom right corner of object browser ...

  • Vertical line issue in SAP Script main window

    Hi All,
    I want to draw a vertical line in my main window in SAP Script output.
    But problem is in main window i am printing some texts at the beggining then i am printing line items.
    So this is not fixed line (box). It may increase/decrease based on text available before line items.
    How can i manage this prining vertival line as i don't know height, top of this line!
    Thanks in advance.
    Thanks,
    Deep.

    Hai Deep,
    Use Elements as suggested by Kodarapu.
    Now goto Paragraph Formats create a format for Item lines.
    ex.
    Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
    now in "Tab Position" enter the spacing that you need for your item dispaly
    ex.
    Number     Tab position       Alignment
    1               6.00   CH          LEFT
    2               25.00  CH         LEFT
    3               54.00  CH         LEFT
    The above example is for 3 items
    Now in your Script Windows-> Main
    do the following.
    /E           ITEM_LINE_A
    IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
    Hope it SOlves your Issue.
    Cheers,
    Suvendu

  • SAP Script  - resize window / paragraph

    Hello Gurus,
    I have two problems related to sap script. ( ver 4.6c)
    I have copied the original order confirmation form from 000 client in diff.languages like FR/DE/EN ( these forms are used by diff. offices in diff. location ) now we have to create a form for our china office location so I copied an existing form ( FR language) to language ZH.
    a. I cannot resize or move the window of the form ZH, to do this I have to convert the original laguage to ZH ( original language of the form is FR) , to change the original language I have to edit the FR language form and use the utilities->convert org.lang option , my question is if I do this process what will happen to our FR language settings users? or is there anyother way to do this ( move or resize window ) without disturbing other forms.
    b. I am using two paragraph settings for printing the item line in the order form, ex. ZZ and IS , if I use IS the item line appears but for ZZ there is no item lines printed on the form. ( blank ) What could be the problem for using ZZ Par.format.
    Any help is appreciated.
    Thanks and best regards,
    A drop in an Ocean

    Try to identify the original language of the SAPscript.
    EX: GOTO SE71, give your form name and language ZH. select radio button Header and click change.
    under adminstrative data, identify the original language. EX: if original language is DE
    GO back to SE71, now give your form name and key in language as DE. Modify all windows here.. i.e. re-size etc., it will automatically gets changed in your ZH language. Also you can create new paragraph formats or change existing paragraph formats here using original language. you can see all changes in form ZH.
    If you want to re-size in "ZH" itself .. try to change original language to ZH.
    I guess, this info will help you to close the thread.
    Regards,
    SaiRam

  • Calling SAP-script editor

    Hi all,
    I have to call one script editor with my own Text-id and text-object just like to enter header text and item text in VA01 transaction. This should be happen after pressing my own function code. Is there any possibility to do this.
    Thanks in advance,
    pavan

    Hi,
    You can't call your own Text editor from the std transaction VA01 just like that.
    In that VA01 already lot of Texts at header and Item are predefined with the related OBJECT,ID,OBJECTNAME.
    If you want you can create your own Std texts in SO10 Tcode and can call them in the Script using INCLUDE statment.
    reward if useful
    regards,
    ANJI

  • Long text problem in sap script

    Hi Experts,
    I have craeted sap script for payment print progrem.. in my sap script one window is text window... client want more then 300 char for that window. for that i use read_text function module... its working fine... but problem is it retrive only one line from long text editor. only 70 char i got.
    below is my coding......
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = '0001'
        LANGUAGE                      = sy-langu
        NAME                          = NAME
        OBJECT                        = 'DOC_ITEM'
      TABLES
        LINES                         = LINES          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LINES.
      n = 0.
      l = 132.
      text+n(l) = lines-tdline.
      n = n + 132.
      l = l + 132.
    ENDLOOP.
    in sap script i have direct pass lines-tdline
    *&lines-tdline&
    Please suggest me which point i missing?
    Thanks
    Jigar

    Hi All,
    The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
    Text ID = ZSD
    Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.
    Requirement :
    The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.
    The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).
    The font should be the same size as the Printable Notes, but bolded rather than italicized.
    The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .
    So the logic i have used is this below code:
    I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
    This is logic in the layout:
    /:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
    /:USING &VBDKA-VBELN&
    /:CHANGING &ORDCONF_TEXT&
    /:ENDFORM
    /:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
    I called this subroutine in the print program:
    Logic in the print program:
    FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
                                                 OUTPUT_TAB STRUCTURE ITCSY.
    DATA : TMP_VBELN LIKE vbdka-VBELN,
                TMP_VKORG LIKE VBAK-VKORG,
                TMP_VTWEG LIKE VBAK-VTWEG,
               TMP_SPART LIKE VBAK-SPART,
               TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT',
               TMP_TXNAM2(100) TYPE C.
    DATA: v_text LIKE tline-tdline.
    DATA : P_V_TEXT LIKE tline-tdline.
    CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
    READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
    IF SY-SUBRC = 0.
    tmp_vbeln = input_tab-value.
    ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING INPUT = TMP_VBELN
    I
    MPORTING OUTPUT = TMP_VBELN .
    CLEAR VBAK.
    SELECT SINGLE VKORG VTWEG SPART INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
                                            FROM VBAK WHERE VBELN EQ TMP_VBELN.
    IF NOT TMP_VKORG IS INITIAL
    AND NOT TMP_VTWEG IS INITIAL
    AND NOT TMP_SPART IS INITIAL.
    CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
    endif.
    CONDENSE TMP_TXNAM2 NO-GAPS.
    PERFORM read_order_text USING TMP_TXNAM2 CHANGING v_text.
    READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
    IF SY-SUBRC = 0.
    output_tab-value = P_V_TEXT.
    MODIFY output_tab index sy-tabix.
    endif.
    endform.
    FORM READ_ORDER_TEXT USING P_TMP_TXNAM2 CHANGING P_V_TEXT LIKE tline-tdline.
    DATA: ztdid LIKE thead-tdid,
              zlang LIKE thead-tdspras,
              zobj LIKE thead-tdobject,
              zname LIKE thead-tdname.
    DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE
              thead LIKE thead.
    CLEAR P_V_TEXT.
    ztdid = 'ZSD'.
    zlang = 'E'.
    zobj = 'TEXT'.
    zname = P_TMP_TXNAM2.
    CLEAR tlines.
    REFRESH tlines.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    object = zobj
    name = zname
    id = ztdid
    language = zlang
    IMPORTING
    header = thead
    TABLES
    lines = tlines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    LOOP AT tlines WHERE NOT tdline IS INITIAL.
    MOVE tlines-tdline TO P_V_TEXT.
    ENDLOOP.
    ENDFORM.
    But still its not getting printed .Plz tell me where i am going wrong.
    Thanks,
    Suman

  • Script works in Script Editor, when saved as app, no longer works

    I've been playing around with AppleScript trying to learn a little. I wrote an app to fullscreen the current application. First I wrote one to full screen a specific app:
    tell application "Safari"
    set the bounds of the first window to {0, 0, 1440, 894}
    activate
    end tell
    This worked without any problems and I set a keyboard shortcut to activate it.
    Then I decided to make it work for the current app:
    tell current application
    set the bounds of the first window to {0, 0, 1440, 894}
    end tell
    When I ran it in Script Editor, it worked fine and set the bounds of the Script Editor window to what I asked. When I save it as an application the same way I did the first app, it doesn't work. I get the error message "Can't set the bounds of window 1 to {0, 0, 1440, 894}." I tried it on the same Script Editor window it worked on when I simply clicked run, but I keep getting the error message.

    try something like this saved as an app
    tell application "AppleScript Editor"
    activate
    make new document
    set the bounds of the first window to {0, 0, 1440, 894}
    make new paragraph at beginning of document 1 with data "hello world"
    end tell
    tell application "TextEdit"
    activate
    make new document
    set the bounds of the first window to {0, 0, 1440, 894}
    make new paragraph at beginning of document 1 with data "hello world"
    end tell
    Budgie

  • PROTECT-ENDPROTECT problem in SAP Script

    In SAP Script MAIN Window I have 10 different elements to print differet stuff related with each delivery line item.
    Like Material Number
    Material Description
    Long text [Has formatted text and I am reading that text and printed in some format some lines under material number and some under materail desc.]
    and other information required by client.
    Loop at Delivery item table.
    CALL FUNCTION 'CONTROL_FORM'
           EXPORTING
                command = 'PROTECT'.
    Print differnt elements.
    Loop at lond text internal table.
    print in proper format as I mentioned.
    endloop.
      CALL FUNCTION 'CONTROL_FORM'
           EXPORTING
                command = 'ENDPROTECT'.
    ENDLOOP.
    My problem is PROTECT ENDPROTECT is not working properly.
    It is printing only 1 item with other info on first page as there are enough space left to print minimum three items with details.
    on next page it is priting only 3-4 items as there are enough sapce to ptint at lease 10 items with details.
    The only good thing is it is not spliting the Item details and other text.[Main window on next page has bigger size]
    Any idea why PROTECT - ENDPOTECT not behaving properly.
    Thanks
    Aman
    Message was edited by: Amandeep  Singh

    Hello,
    Try to do like, Put PROTECT and ENDPROTECT in the SAPScript itself.
    Like
    Element 1
    Protect
    ..matnr....
    element 2
    ...desc....
    element 3 (long text)
    ...text
    ....text
    element 4
    endprotect
    call the element 4 in the loop statment, whenever required.
    Hope it will work.
    Regards,
    Naimesh.

  • SAP Script - Logical expression in multi lines

    Hi Friends,
    How can I write logical expression in more than one lines in SAP script editor?
    Case:
    I have to write:
    IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND &J_1BPRNFHD-SHPUNT& = ' '
    I am writing in first line
    /:  IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND
    and &J_1BPRNFHD-SHPUNT& = ' ' is not coming in the same line. How to write it in more than one line?
    What I mean is that:
    Can I write like:
    /:  IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND
    /:     &J_1BPRNFHD-SHPUNT& = ' '
    In fact, above is not working. Please help.
    Regards,
    Surya
    but the rest of the things, that is, &J_1BPRNFHD-SHPUNT& = ' '

    I'm not an SAP script expert but this is just a suggestion.
    Write 2 seperate conditions.
    You can replace this:
    IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND &J_1BPRNFHD-SHPUNT& = ' '.
    ENDIF.
    by this:
    IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X'.
    IF &J_1BPRNFHD-SHPUNT& = ' '.
    ENDIF.
    ENDIF.

  • Item level display in SAP script

    Hi All,
    I am trying to show the line items of sales invoie in the invoice layout using SAP script. But it displays just one line item. It overwrites the same line on every call. How can I instruct it to print it on the next line. I've even tried printing the line using '/' (line feed) but to no effect.
    Please help,
    Regards,
    Madhur

    Hi Vinod,
    I am doing the same thing as you suggested. Here's the code I am using. This is for the disclaimer text that is being picked up and consists of multiple lines.
    SAP Script for window DISCLAIM->
    /E   DISCLAIMER  
    C1   Disclaimer  
    P1   &W_DISLINES&
    Program Code ->
    Print Disclaimer
      LOOP AT I_T_LINES.
        W_DISLINES = I_T_LINES.
        PERFORM WRITEFORM USING 'DISCLAIMER' 'DISCLAIM'.
      ENDLOOP.
    FORM WRITEFORM USING VALUE(P_ELEM)
                         VALUE(P_WIND).
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                     = P_ELEM
         FUNCTION                    = 'SET'
         TYPE                        = 'BODY'
         WINDOW                      = P_WIND
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
    ELEMENT                        = 1
    FUNCTION                       = 2
    TYPE                           = 3
    UNOPENED                       = 4
    UNSTARTED                      = 5
    WINDOW                         = 6
    BAD_PAGEFORMAT_FOR_PRINT       = 7
    SPOOL_ERROR                    = 8
    CODEPAGE                       = 9
    OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "WRITEFORM

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

Maybe you are looking for