Length of if statement in script editor is more than two lines

dear friends
       when i am modifying the purchase order with new purchase organisations in script editor , i found that the line continued to both left and right pages, if i want to extend the line there is no 3 rd page. how can i extend the if statement.
regards,
k.srinivas.

Hi,
After complete of line , Please Enter Shift+F8.
Regards
jana

Similar Messages

  • One Account Statement for customer present in more than one company code.

    Hi all,
    We have requirement of printing one account statement for customer present in more than one company code.
    Program RFKORD10 generates more than one statements for customer present in more than one company code.
    Please suggest if any customiztion or program changes need to be done for above issue.
    Thanks.

    If customer is present in more than one company code then you can config in different co codes.
    Now could you brief your requirement, i think you want to print only once and system should print in both company codes at one time. Is it like that?
    Regards
    Ashu

  • I'm trying to back up my phone and itunes states I can't authorize more than 5 computers with this apple ID, I no longer own any of the other computers I supposedly authorized my account on. What now? I can't back up my iphone.

    I'm trying to back up my phone and itunes states I can't authorize more than 5 computers with this apple ID, I no longer own any of the other computers I supposedly authorized my account on. What now? I can't back up my iphone.

    Use the Deauthorize All command documented in this article, or if it isn't an option, the 'contact iTunes Store support' link at the bottom of it.
    (115000)

  • How to write select statement into SCRIPT editor

    hello,
    i build a sap script for purchase order printing for exporting.
    now after all po order print fine then our client want some more should be print into layout regarding po header.
    At the soul my q is can i write select query into script editor itself.
    thanks and regards
    amit.

    You cannot write your select statement inside your SAPscript, to overcome this SAP has provided us an option of calling sub-routines.. go through the below example
    Go through this example
    Ex. SAPSCRIPT
    /: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
    /:USING &<field name>&
    /:CHANGING &<field name1&    "It will be returned back from sub-routine
    /:ENDPERFORM
    Then create subroutine pool program(of your own name) and you have to write the code.
    FORM ><subroutine name> tables int_cond structure itcsy
    outt_cond structure itcsy.
    data : value(20), value1(20). "do your own declarations
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    *****Write your select statement
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1. 
    ENDFORM.
    Just rough idea given above.
    Regards,
    SaiRam

  • Script logic record more than 300,000 record

    Hi Expert,
    When I run my logic I have error in my formula log:
    (More than 300,000 records. Details are not being logged)
    Ignoring Status
    Posting ok
    I check my script it pull out total 422076 records.
    Is it meaning I cannot More than 300,000 records??
    Is there any where I can set MAX records I can generate for my single script to run??
    Thanks..

    You should use
    *XDIM_MAXMEMBERS dimension = numberOfMembers to be processed at a time
    For example
    *XDIM_MAXMEMBERS Entity = 50
    Figure out wich dimension has the most members, and use it, this sections you script logic.
    I hope that helps
    Leandro Brasil

  • Permissions Error if Script is run more than once with out closing Diadem

    I am in a REAL pickle here and need some HELP......
    I get a permissions error message when I try and run my scripts more than once with out closing Diadem 2011.
    Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Multiple Data Logs_CaltermIII_Local.VBS")
    Error is around this portion of script:
    '******* GetFilePaths() *** *** NEW Function ***
    Function GetFilePaths(DefaultDir, ExtFilter, MultipleDir, Msg)
    Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, FileList
    ' Promt the User to select the ASCII files to load with a File Dialog
    FileListPath = AutoActPath & "FileDlgList.asc"
    Set fso = CreateObject("Scripting.FileSystemObject")
    StartIdx = 0
    ReDim FileList(0)
    Do ' Until (DlgState = "IDCancel")
    Call FileNameGet("ANY", "FileRead", DefaultDir, ExtFilter, FileListPath, 1, Msg)
    IF (DlgState = "IDCancel") THEN Exit Do
    ' Read in the saved list of file(s) selected in the File Dialog into FileList()
    **** This next line is where the ERROR happens *******
    Set f = fso.OpenTextFile(FileListPath, 1, True) ' f.ReadAll returns file contents
    CurrFiles = Split(vbCRLF & f.ReadAll, vbCRLF) ' turn file lines into an array
    f.Close ' close the file
    iMax = UBound(CurrFiles)
    IF iMax > 0 AND Trim(CurrFiles(iMax)) = "" THEN
    iMax = iMax - 1
    ReDim Preserve CurrFiles(iMax)
    END IF
    Call BubbleSort(CurrFiles) ' sort the array of file names alphabetically
    ' Append current file dialog selection(s) to any previous file dialog selection(s)
    IF iMax < 1 THEN iMax = 0
    ReDim Preserve FileList(k + iMax)
    FOR i = 1 TO iMax
    k = k + 1
    FileList(k) = CurrFiles(i)
    NEXT ' i
    IF MultipleDir <> TRUE THEN Exit Do ' forces only 1 dialog, good if all desired files are in the same folder
    Loop ' Until (DlgState = "IDCancel")
    GetFilePaths = FileList
    End Function ' GetFilePaths()
    266 6:18:34 PM Error:
    Error in <NoName(1).VBS> (Line: 8, Column: 1):
    Error in <Importing Multiple Data Logs_CaltermIII_Local.VBS> (Line: 140, Column: 5):
    Permission denied
    I can send the script and file I am loading if that would help.
    Solved!
    Go to Solution.

    Jcheese,
    I understood that if you call this script within DIAdem you don't get any error, however, when you run that script from another source (with DIAdem opened) for the second time you get the error, right? 
    If this is the case, I think it might be that the file haven't close correctly in the script. Could you upload the script file?
    Carmen C.

  • Script to Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    You can use an external table :
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    USERNAME
    USER1
    USER2
    USER3
    SYS@db102 SQL> !cat users_to_drop.txt
    USER1
    USER2
    USER3
    SYS@db102 SQL> create table test.users_to_drop
      2  (
      3     userx   char(30)
      4  )
      5    organization external
      6  ( type oracle_loader
      7    default directory work
      8    access parameters
      9     ( records delimited by newline
    10     )
    11     location ('users_to_drop.txt')
    12  )
    SYS@db102 SQL> /
    Table created.
    SYS@db102 SQL> begin
      2     for U in (select userx from test.users_to_drop) loop
      3             dbms_output.put_line('Dropping '||U.userx);
      4             execute immediate 'drop user '||U.userx||' cascade';
      5     end loop;
      6  end;
    SYS@db102 SQL> /
    Dropping USER1
    Dropping USER2
    Dropping USER3
    PL/SQL procedure successfully completed.
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    no rows selected
    SYS@db102 SQL>

  • Select between more than two to next state

    Hello everyone!
    I'm using a state machine (look at pic), but I want to select the next state depending of a comparison with a integer (1,2,3,4,5). Well, I don't know how to select the diferents next states, because with de <<select button>> (comparison express), I only can select 2 posibilities. I think there is other one button to do this but I don't know what. Are there others posibilities to do this?
    Thanks!!
    Joselito!
    Solved!
    Go to Solution.
    Attachments:
    Dibujo.JPG ‏100 KB

    Wire the output of the N button core SubVI to the selector of a case structure. Place the next state enum inside of the case.
    Attachments:
    SS1.JPG ‏33 KB
    ss2.JPG ‏7 KB

  • How to create a state view / alert view hosting more than one class?

    We have an applications which has two type of servers: one is connector server while another one is processing server. So I created two classes for each of them: ConnectSrvClass and ProcessSrvClass. Each of the class has a property "Type" to mark
    what kind of server it is.
    Now I want to create ONE SINGLE state view to display the state of both classes. Samething I want to create ONE SINGLE alert view to display alert coming from either type of the servers. Is it possible? If so, how?
    Thanks!

    Create an instance group, and then scope the view based on that group. This will work well for an alert view, but not as well for state view. If you want state view with multiple classes using same seed, then you can select the server role as base for
    those classes and display state of each in a single view. This is
    explained here.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Cannot dauthorize all computers in iTunes nor can i authorize as it states I have more than 5

    I recently purchased a new laptop as my old one died. I tried to authorize it to apply updates however it states I have already authorized more than 5 computers.
    I read in the help files that you can deactivate all through the store option, however it does not show up for me. In another post i read that it only shows up if you have more than two activated devices.
    So I'm stuck. I don't have the option to deauthorize all nor can i authorize becuase it thinks i have more than 5.
    Additionally, i have never used the deauthorize feature. since having owning an iTunes account and i do not have access to the other computers as they are all long gone. I've also logged out and back into the account to make sure that wasnt an issue.
    Any help would be greatly appreciated.

    Click on iTunes Store (top center of iTunes screen), then Account (under MUSIC LINKS on right of screen).  Enter your Apple ID and password.  On the next screen the last entry under Apple ID Summary should look like this:
    If you don't have access to some or all of your authorized computers you can click the Deauthorize All button, then reauthorize those that you're currently using.  I don't recall there being a scenario where Deauthorize All would not appear based on the number of authorized systems.

  • Data access error while running  the script in fdm workbench script editor

    Hello Experts,
    I have been getting the error when i run the script in script editor of fdqm workbench client.this is the error
                              -2147467259 Data access error and it is navigating the error at line 30 about this script "Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)"
    Please revert me asap where i should load the data from peoplesoft to one of my planning database through fdm.
    Thanks in advance...

    Hi,
    Thanks for your suggestion's here i am going to run the datapump script so while i am running in workbench it is throwing data access error.So as you guy's suggested i created one import format and added this script to that import format which is added to one of my location even it is throwing the same error.I am getting the error at this sentence   "strWorkTableName" I want to know what is this where it reflect's?So my question is Is there any difference while running data pump or integration script.Please let me know a detailed navigation steps to run this script's with out data access error to run these kind of scripts.
    Note:Again my target is to load the data to planning database through fdqm which i am doing through sql statement's.
    Suggest your valuable suggestion's
    Thanks in advance...
    I am getting the error at this sentence   "strWorkTableName" I want to know what is this where it reflect's?

  • Create a counter for the rows in a table using script editor?

    Hi ,
    I want to add afield in a particular table  with first field is its serial number . How to use scripting editor to fill the serial number ?
    How to create a counter ?
    Edited by: Rajan.Dexter9 on Jan 30, 2012 9:40 PM

    Hello Rajan,
    Create a field in the table and name it as 'SERIAL'.  Create a variable called 'count' with default value as 0.  Now in script editor, for javascript language and calculate event, write the following script.
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    for (var i=0; i <= fields.length-1; i++)
         if (fields.item(i).name == "SERIAL")
              count.value = count.value + 1;
                     this.rawValue = count.value;     

  • Changing Script Editor Documents format

    I hope I am in the right Forum---I recently purchased a Mac mini/Intel. I did not have AppleWorks migrated over from my iBook so when I first tried reading AppleWork files on the mini from my Zip drive they wouldn't read so I was experimenting with alternate applications such as Script Editor. Something happened!! All my Works files now are shown in Script Editor document format yet unable to open any of them. I have since migrated AppleWorks from my iBook but the only way to open any of these files now is to first open up AppleWorks application then open the newly formatted (formally AppleWorks) file. How do I get all my archived Works files reformatted back from Script Editor??
    Mac mini Intel/iBook G3   Mac OS X (10.4.5)   iBook has OS X (10.3.5)

    Hi, CABJR.
    What I suspect happened is that you used the method outlined in "Mac OS X 10.4 Help: Changing the application that opens a document", selected Script Editor as the application, and used Change All.
    See my "Resetting Launch Services" FAQ. In the section for Tiger begin with step 6, since in this case it's not optional.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Initiating batch scripts from Maxl Script Editor in Admin Console??

    Guys,
    Is it possible to initiate batch scripts from Maxl script editor in Admin Console.
    I dont want to automate the scripts as my data loading process can happen at any time.
    Thanks in advance
    A

    Hi A,
    I'm not sure what you're asking? Do you want to run a batch of Maxl scripts, or a batch file, or a single Maxl Script? Why do you choose to use the Admin console to do this? Could you run what you're trying to run in batch from the command line?
    Executing MaxL and MDX Scripts
    To execute a MaxL script or an MDX script:
    Open or create the script.
    From the server drop-down list on the toolbar, select the Analytic Server to execute the script against.
    The drop-down list contains only Analytic Servers that are displayed in your Enterprise View. For more information about connections, see Connecting to Analytic Servers in MaxL and MDX Script Editors.
    Specify how errors should be handled during execution. See Setting MaxL and MDX Execution Options.
    Specify how you want results to be displayed in the Results tab. See Viewing MaxL and MDX Results.
    If the script contains variables, specify how undefined variables are resolved during execution. See Resolving Undefined Variables.
    To execute the entire script, right-click and select Execute from the pop-up menu.
    To execute only part of the script, highlight the statement or statements that you want to execute, right-click, and select Execute from the pop-up menu.
    The script executes against the specified Analytic Server, and the results are displayed in the Results panel.Regards,
    Robb Salzmann

  • Address Book opens when a script is opened, while script editor was closed

    Hi,
    Something puzzles me :
    I have a very simple script with only these two lines :
    tell application "Address Book"
    end tell
    This script is saved as a simple script.
    When I open the script with script editor,
    * if script editor was already open, the script opens normally and I can edit it
    * if script editor was not already open, then Address Book opens itself (and the script opens itself with script editor)
    What explains the opening of Address Book ?
    What can I do to avoid this auto-opening of Address Book ?
    Thanks for your help,
    Nicolas

    You were right, the script will not compile. (there are some instruction between the "tell" and the "end tell" lines)
    There are a couple of solutions to that one.
    The first is that the script will compile if you're only using standard commands like 'activate', 'quit', etc. inside the tell block - these commands are universal, supported by all applications, and therefore you don't need the application dictionary.
    If you are using application-specific commands, though, then you can provide the Script Editor a hint as to which dictionary to use via the using terms from command.
    This tells the compiler which application dictionary to use when compiling the script, but it shouldn't affect opening the script. If you're only targeting one application and don't mind this workaround, it could be your solution:
    -- here's our target application
    set appName to "Address Book"
     -- let's target it
    tell application appName
      -- now provide the compiler a hint as to which application dictionary to use
      using terms from application "Address Book"
        -- commands go here
      end using terms from
    end tell
    When it comes to compile the script, AppleScript will use the application in the using terms from statement instead of the (unknown) application in the tell statement.

Maybe you are looking for