Lauching the SCRIPT editor

Hi All,
Can you suggest me if there is any function module which is going to open SCRIPT editor. On passing the THEAD the contents for that object should be displayed in the editor. The user should be able to edit it and SAVE it.
Thanks & Regards,
Rahul.

Hi,
You can use EDIT_TEXT fm. Do a where-used list on the fm to understand how it can be called.
Also take a look at the following sample code,
  DATA: ls_thead LIKE thead,
        lt_lines LIKE TABLE OF tline.
      ls_thead-tdname = 'ZTESTTEXT'.
      ls_thead-tdobject = 'TEXT'.
      ls_thead-tdid = 'ST'.
      ls_thead-tdspras = sy-langu.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
        CLIENT                        = SY-MANDT
          id                            = ls_thead-tdid
          language                      = sy-langu
          name                          = ls_thead-tdname
          object                        = ls_thead-tdobject
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
       IMPORTING
         header                         = ls_thead
        TABLES
          lines                         = lt_lines
       EXCEPTIONS
         id                            = 1
         language                      = 2
         name                          = 3
         not_found                     = 4
         object                        = 5
         reference_check               = 6
         wrong_access_to_archive       = 7
         OTHERS                        = 8.
      IF sy-subrc NE 0.
****Create New Text
****Initialize Text - Get TTXOB settings like line size
        CALL FUNCTION 'INIT_TEXT'
             EXPORTING
                  id       = ls_thead-tdid
                  language = sy-langu
                  name     = ls_thead-tdname
                  object   = ls_thead-tdobject
             IMPORTING
                  header   = ls_thead
             TABLES
                  lines    = lt_lines
             EXCEPTIONS
                  id       = 1
                  language = 2
                  name     = 3
                  object   = 4
                  OTHERS   = 5.
      ENDIF.
      CALL FUNCTION 'EDIT_TEXT'
        EXPORTING
          display             = space
        EDITOR_TITLE        = ' '
          header              = ls_thead
        PAGE                = ' '
          window              = ' '
          save                = 'X'
        LINE_EDITOR         = ' '
        CONTROL             = ' '
        PROGRAM             = ' '
        LOCAL_CAT           = ' '
       IMPORTING
        FUNCTION            =
         newheader           = ls_thead
        RESULT              =
        TABLES
          lines               = lt_lines
       EXCEPTIONS
         id                  = 1
         language            = 2
         linesize            = 3
         name                = 4
         object              = 5
         textformat          = 6
         communication       = 7
         OTHERS              = 8.
      IF sy-subrc <> 0.
       MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       EXIT.
      ENDIF.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni

Similar Messages

  • Where is the Script editor panel in Photoshop CS6?

    I don't find the Script Editor panel in Photoshop CS6.

    Are you talking about the program for writing scripts for photoshop, which is Extendscript Toolkit (ESTK)?  It should be located where you normally find programs with your operating system.  You can do a search for extendscript to find the program.

  • Why can't I type in the script editor

    I want to add code to a button. I have the button selected. I choose Events with Scripts from the "Show" drop down menu. However, I am unable to click into the script editor box and type the code. The box is grey'd out.
    Please help.

    I figured it out!

  • Where is the Script Editor?

    I have looked everywhere for the script editor and i can not find it anywhere. I am sure it is in an obvious spot and i just am missing it. Is there a step I am missing or is it named something else? Please someone help me out.

    Hi,
    I think that you may need a different Adobe forum. This forum relates to LiveCycle Designer, which is a form development program. It's not strictly part of the CS4 suite of programs (albeit that it does come bundled with Acrobat Professional).
    If you do have LiveCycle Designer open, then you can access the Script Editor from the Windows menu.
    Good luck,
    Niall

  • Copying objects in the script editor

    Hello,
    I need to add a new user to my call center script.  This user will have the same objects as another user on the script the only difference will be the name of the skill group on those three objects.   Can I just copy those objects from the other user and rename them or do I have to add new objects for that user and if so how do I do that?
    Thank You.

    I'm sorry, but Anthony Holloway is not available.  Please leave your message at the tone.  Beep.
    PS: That's Enterprise, and differs quite a bit from Express.  You should state that in your thread topic, so that it grabs the attention of the right people.  Plus, giving accurate and full descriptions is just plain helpful.

  • Translate the harcoded text written inside Script Editor in Adobe forms

    Hi Experts,
    In Adobe form, I have hardcoded a text inside the Script Editor.
    Now i need to maintain translation for it in another language.  Is it possible?
    I have checked option Goto -> Translation. But that text is not available there.
    Kindly give me some suggestions!

    I know what you are trying to do and that is NOT the way to handle it. haha This is EXACTLY why I never put texts to display within my script (Javascript). The better way to do it is this.....have a hidden text element on your form. Then show/hide it using your script. Since it is PART of the actual form, you can then translate it like you do anything else on the form. Works great!
    If you absolutely HAVE to do the text as a pop-up or something "off form", then there are ways to do it very similarly but takes a little more thought/work (ie. have your script read the text element's text and use that in your pop-up...again, since the text element is ON the form, you will get the correct translation.)
    Hope this helps!

  • [newbie qn] script runs under Script Editor but not as application

    I have a simple script that runs successfully under the Script Editor. The script is:
    tell application "Safari"
    activate
    tell (make new document) to set URL to "http://www.google.com"
    end tell
    However, when I tried to run it as an application, I encountered the error 'Can't set document "Untitled" of application "Safari" to "http://www.google.com".'
    How should I rewrite the script so that it would run as an application? Thanks!

    Hi PointZero01
    Your script compiles and works fine saved as an application and tested under 10.5.6.
    slightly different but does exactly the same
    tell application "Safari"
    activate
    make new document
    set URL of document 1 to "http://www.google.com"
    end tell
    Budgie

  • 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

  • UCCX 9.0 - Issue Retrieving Dialer fields in script editor

    Hi Experts,
    In IVR campaign I am trying to retrieve BAAccount number field in the script editor but no success. I tried the below options in the UCCX script editor but it didn't work. Once contact is uploaded, dialer fields are sent to IVR application by default or is there any settings we need to do in UCCX admin? Thanks in advance for your help!
    1) Tried through ECC variables in Get Enterprise Call Info element
    2) Getting as session data through Get session element
    Thanks
    Rajasekar

    Adding Anirudh Ramachandran  and Abhiram Kramadhati

  • Problem opening a sheet music file on Script Editor

    I have sone sheet music files but when I try to open them I get an error message saying that the dictionary of the extension or application is not scriptable and then I get another message saying that the Script Editor cannot open files in the Script Editor Document format. I have no idea what that means. I think they're MUS files, if that helps at all. Thanks.

    Hi tracy,
    This forum is for discussion qnd questions regarding Apple's productivity application AppleWorks.
    Your question will have a better chance of a knowledgeable response in one of the other forums on this site, or on a forum elsewhere for the application that was used to create these files.
    The filename extension .mus is usually a Finale Music Score, created by one of the Finale Music family of applications. You can find out more about Finale using the link in this post.
    Regards,
    Barry

  • Error when using function CDbl in Script Editor

    Hello,
    While using the CDbl function in the Script Editor I am getting the following error:
    Error - 13 - Type mismatch: 'CDbl' at Line 24
    The reason I am trying to use CDbl is that I get another error while importing the data from a .CSV file
    Import Error = TC - [Amount=NN|http://forums.oracle.com/forums/] 01-000-1030,Cash in Bank - Payroll,837.83,0.00,"1,569.50",0.00
    Any suggestions would be appreciated.
    -Tony

    Tony,
    Please keep in mind that pressing 'Save' and then 'Run' without using the script in a workflow is sometimes not a valid test. As the scripting generally created inside of FDM needs to be part of a workflow and certain variables/functions are passed when that workflow is executed as a whole.
    Hopefully this helps...

  • Interactive Script Editor

    Hi all,
    I am using the SAP standard interactive script for Leads - SampleB2B
    When I click on the "Yes" button on the "Time for Questions" page, it has to take me to the Lead questionaire. This is configured in the Script editor too.
    But the Lead questionaire does not appear. It gives the following error
    "Survey Was not Found or Is not Within the Validity Period"
    I, then regenerated the Lead_Questionaire from CRM_SURVEY_SUITE. But the error still persists.
    Any inputs on this regard would be of great help.
    Thanks
    Gayathri

    Hello John,
    Thank you for your inputs. Apart from this I also found another missing connect.
    Although the latest version of the survey was active, I had to regenerate a newer version of the survey from CRM_SURVEY_SUITE and attach this one to the script.
    It works fine now.
    Best Regards,
    Gayathri N.

  • How can I use firefox to access Oracle's 10g Express Edition Database script editor?

    I have installed Oracle's 10g Express Edition (xe) Database in my computer, which is running Ubuntu 10.04 64-bit. I can access the database through the command line and by using the web interface on Firefox. However, the script editor doesn't work with Firefox. The scripts are not shown and I'm unable to edit them.

    I have installed Oracle's 10g Express Edition (xe) Database in my computer, which is running Ubuntu 10.04 64-bit. I can access the database through the command line and by using the web interface on Firefox. However, the script editor doesn't work with Firefox. The scripts are not shown and I'm unable to edit them.

  • Script Editor Not Working

    I have a problem with the script editor that is login (Windows login, not Oracle login) dependent. For some Windows users, the script editor doesn't work properly. For those users, the editor page will appear but the edit pane cannot be written. In addition the line number for the first line is not present. The buttons for upload and other functions do not function. If any scripts are already present, the icons appear, but clicking on them does not bring them up in the edit pane.
    For other Windows users, everything works normally.
    For all Windows users, the initial login to the database appears to work fine.
    It is clear that the problem is related to some property of the Windows login for the various users, but I don't know where to start looking. Does anyone have a suggestion?
    Thanks in advance.

    I am having this same problem in Linux. I am using Ubuntu 8.04 and I am following the tutorial at:http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm
    I seem to be able to load a sample data file, but trying to access the file in the script editor, I cant see the file. I even tried to manually make a load_sample.sql file, but the script editor doesnt let me. Any help to get this working would be appreciated.
    thanks,
    blu.....

  • Promoted links in center of page using CSS code in a script editor

    I do not have access to the sharepoint designer (company policy) but I'm trying to get my promoted links in the center of my SharePoint-page. This all in a way that they stay centered when I change form laptopview (1366x768) to desktopview (1920x1080).
    I've googled the problem but no solution is (yet) presented.
    Can you help me to the script editor code I need?

    Hi,
    Have you tried using javascript inside a Content Editor Web Part (CEWP)  ?
    Here is an example : https://social.msdn.microsoft.com/Forums/office/en-US/b7cf5f24-f970-44d9-a50d-382d77d0def9/how-do-i-center-a-list-view-webpart-style-boxed?forum=sharepointcustomizationlegacy
    Regards
    Samuel Levesque | Sharepointerie.com |
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • Error while configuring consumer provider

    Hello expert, M new SRM consultant working in my first implementation project, i m getting an eroor while configuring consumer provider THROUGH SOAMANAGER> CONFIGURATION like dis: SRT Framework exception: Error in WSDL access: Exception occurred in c

  • Firefox 15.0.1 stops responding (100% cpu) when a link opens in a new window.

    Whenever I click a link that is designed to open in a new window Firefox goes straight to 100% cpu usage and I have to go through the Windows "end now" sequence to close the program. I've tried opening one of the links in a new window but I think it

  • Error in Access JMS with SoniqMQ

    Hi, I am trying to integrate XI with SoniqMQ using JMS Adapter( as receiver) with SoniqMQ as Transport protocol. I have deployed the necessary jar files using SDM. File > XI> SoniqMQ ( using JMS Adapter) The parameters that i ahve specified here are

  • Expanding Tray

    Hi all, My WD application dynamically creates tray ui elements and fill them with children at runtime (this is all done in the wdDoModifyView() method). When the view comes up the tray should appear collapsed not expanded. But if I set the expanded p

  • Inspection lot is not generated for new inspection type

    hi all we have create z5 as a new inspection type by coping inspection type 05 (standard) ,but when we use with move-type 655 in VL01N we are facing error :Change the inspection stock of material 200022 in QM only but when we are using 05 no error. s