Script O/P Problem

Hi Guru,
The existing script o/p is like this
Mat.No ** ins lotno***** Order No.
111******* abr******* 235
***********************569
222******* kur******* 987
333******* jte******** 587
***********************896
Can we print Order no side by side for perticular Mat No.(as below)
Mat.No ** ins lotno**** Order No.
111******* abr******* 235,569
222******* kur******* 987
333******* jte******** 587,896
Note : * are gaps between two fields
Thanks,
Singha

hi,
You need to give the fields side by side ...
/: &field1& &field2& &field3& &field4&   " Field4 is yours one which you need write in the sam eline of the paragraph format
Regards
Sudheer

Similar Messages

  • "Run Scripts" giving a problem to create portal domain

    Hello All.
    I am new to weblogic portal development. Was trying to create my basic sample portal in weblogic_portal_10.3.4 with the help of documentation. I am getting in running scripts when I was creating the domain. I have followed the below steps, please help me if you find any issue with my steps.
    1. downloaded Weblogic_Portal_10.3.4 and installed in my windows 7 environment.
    2. launched eclipse for weblogic portal.
    3. opened portal prospective in eclipse.
    4. right click on server tab and selected "Oracle WebLogic Server 11gR1 (10.3.4)"
    5. opened "Domain Configuration Wizard"
    6. Selected "Create a new Weblogic domain" radio button.
    7. in the next screen for "Generate a domain configured automatically to support the following products"
    selected "Weblogic Portal 10.3.4" radio button
    8. in the next screen given the domain_name
    9. in the next screen provided the password/confirm-password for administrator user
    10. in the next screen selected JRocket SDK and development_mode for my domain.
    11. in the next screen just left all the default configuration for the datasources. ( non of the datasource is selected in their check boxes)
    12. in the next screen just clicked on "Next" button and "OK" on my popup
    13. in this screen "p13nDataSource" is selected on my left top window area, All 3 SQL Files are selected for loading database.
    Clicked on *"Run Scripts"*
    At this point i am getting an error saying : "CFGFWK-60839:  Database Load Failed!"
    java.lang.Exception: SQLException when executing file file:/C:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    Caused by: java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
         at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         ... 1 more
    Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:273)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1674)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:189)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:206)
         at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    CFGFWK-60839:  Database Load Failed!
    Please help me if you find any problem with the steps that I am following to create my weblogic_portal_domain.
    I was following the steps mentioned at : http://docs.oracle.com/cd/E15919_01/wlp.1032/e14252.pdf to create my domain to start portal development.

    Those are the WLP 10.3.2 instructions. But, the 10.3.4 instructions in the tutorial (http://docs.oracle.com/cd/E26806_01/wlp.1034/e14252/setup_dev_env.htm#i1014619) are wrong, too.
    In 10.3.4, with derby, Run Scripts doesn't work any longer; it should still work the other database (Oracle, SQL Server, etc.). Instead, for derby, just create the domain, accepting any warning dialogs about databases that come up. After that finishes, in the domain directory, run create_db.cmd (on windows) or create_db.sh (on *nix and Mac). It should create the derby database files in the domain, and include everything needed.
    I'll send a note to get the docs updated.
    Greg

  • The Script root.sh problem - ora.asm and ASM and Clusterware Stack failed

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I am installing Grid infrastructure. On step 9 of 10 - execute script /u01/app/grid/root.sh for 2 VMs rac1 and rac2.
    After run root.sh in rac1 successfully. I run root.sh in rac2 and get an error as below:
    [root@rac2 grid]# ./root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
    ORACLE_OWNER= ora11g
    ORACLE_HOME= /u01/app/grid
    Enter the full pathname of the local bin directory: [usr/local/bin]: /usr/local/bin
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...
    Creating /etc/oratab file...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    2012-03-05 16:32:52: Parsing the host name
    2012-03-05 16:32:52: Checking for super user privileges
    2012-03-05 16:32:52: User has super user privileges
    Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
    Creating trace directory
    LOCAL ADD MODE
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    Adding daemon to inittab
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting
    CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating
    An active cluster was found during exclusive startup, restarting to join the cluster
    CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
    CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
    CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
    CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
    CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
    CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
    CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
    CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
    CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
    CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
    CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
    Start action for octssd aborted
    CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
    CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac2'
    CRS-2672: Attempting to start 'ora.asm' on 'rac2'
    CRS-2676: Start of 'ora.drivers.acfs' on 'rac2' succeeded
    CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
    CRS-2664: Resource 'ora.ctssd' is already running on 'rac2'
    CRS-4000: Command Start failed, or completed with errors.
    Command return code of 1 (256) from command: /u01/app/grid/bin/crsctl start resource ora.asm -init
    Start of resource "ora.asm -init" failed
    Failed to start ASM
    Failed to start Oracle Clusterware stack
    [root@rac2 grid]#
    As we see the output above, at the end of the output
    1) Start of resource ora.asm -init failed
    2) Failed to start ASM
    3) Failed to start Oracle Clusterware stack
    The runInstaller is in the first VM rac1. My question is:
    Do any folk understand how to solve the script root.sh in rac2 problem ( 3 fails of ora.asm, ASM and Clusterware stack as above) ?
    Thanks.

    Please check there is no firewall exist:
    try this like:
    root.sh fails on second node
    MOS note:
    11gR2 Grid: root.sh Fails to Start the Clusterware on the Second Node Due to Firewall on Private Network [ID 981357.1]
    Grid Infrastructure 11.2.0.2 Installation or Upgrade may fail due to Multicasting Requirement [ID 1212703.1] (Most probabily this issue)

  • Dreamweaver CS3 Scripting Youtube embedding Problems

    I use embeds from youtube on my site. They are usually no
    problem. Today I
    upgraded from Dreamweaver 8 to CS3. When saving my files and
    uploading to the host, CS3
    created two scripts that it said were necessary for
    standards-based sites and
    applications:
    AC_Activex.js
    AC_Runactivecontent.js
    CS3 indicated that they must be uploaded in "Scripts" folder
    to host. Now all my
    embeds show up as a red x in IE7. Oddly enough they work in
    Monzilla. Sounds like a version problem doesn't it? Although of
    course my host (Bluehost) says it ain't their problem.

    Check out the following extension:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1327520
    From the looks of your code you were embedding Youtube links
    as if they were Flash. However, while they are Flash, Youtube has
    its own system for embedding. I believe Youtube does provide you
    with code to do this. However, this plugin should do it all for you
    from within Dreamweaver.

  • InDesign server CS 5.5 - app.scriptArgs.get doesn't work in jsx script or simpleclient problem

    Hello
    I'm working with Adobe InDesing Server CS 5.5 and having problem that *.jsx script is not able to read input parameters passwd from sampleclient.exe or SOAP (same story in both cases)
    I run following command:
         sampleclient.exe -host localhost:8080 "c:\CreateJPEG.jsx" param1="1"
    also
         sampleclient.exe -host localhost:8080 "c:\CreateJPEG.jsx" param1=1
    and even
         sampleclient.exe -host localhost:8080 "c:\CreateJPEG.jsx" "param1=1"
    app.scriptArgs.get("param1") is always FALSE (see script body below).
    Please help, I couldn't find an answer anywhere. All documents stats that this should work in a way I described, but it doesn't. Script is performed but param1 is not set.
    Here is the script:
    #target  InDesignServer
    app.scriptPreferences.version = 7.0;
    main();
    function main()
      var eRet;   
      if (app.scriptArgs.get("param1"))
        var sXMLFilePath = "C:\\CreateJPEG.xml";
        var eRet = app.createJpeg (sXMLFilePath);

    I am having the same issue. I am pssing thru SOAP call through
         sampleclient.java -host localhost:12345 "c:\myJSXScript.jsx" myXml="myXmlLocation"
    JSX:
    function main() {
        try {
            var myInDesignXml;
            app.consoleout("isDefined:=" +app.scriptArgs.isDefined("myXml"));
            if (app.scriptArgs.isDefined("myXml")) {
              myInDesignXml = app.scriptArgs.getValue("myXml")
            app.consoleout("myXml:=" + myXml);
        } catch (e) {
            app.consoleout('General Exception');
        return result;
    main();
    Output:
    isDefined:=false
    I should get the text that we have assigned to myXml param.
    Please Help on this.
    Regards,
    JK

  • Oracle 11gR2 RAC: Running the script root.sh problem

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have been installing Grid Infrastructure using runInstaller from step 1 to step 9 of 10 in both VM rac1 and rac2.
    Now, I am running the script root.sh in VM rac1 and rac2 as below:
    [root@rac1 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    'UpdateNodeList' was successful.
    [root@rac1 /]#
    [root@rac2 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    Start of resource "ora.asm_init" failed.
    Failed to start ASM.
    Failed to start Oracle Clusterware Stack.
    [root@rac2 /]#
    As we see the output above, rac1 and rac2 get the same problems. in addition, rac2 fails to start ASM and Clusterware stack. Thus, I have 2 questions:
    First, the common problem for rac1 and rac2 :
    1)Module "oracleoks, oracleadvm, oracleacfs" not found
    2)/dev/asm/.asm_ctl_spec not detected
    3)ADVM/ACFS installation failed
    Do the above 3 factors affect Grid and DataBase Installation later ? If yes, how to solve these problems ?
    Second, how to start ASM and Clusterware stack in rac2 ?
    Thanks.

    you have 2 options:
    1. OEL 5.6 comes with 2 kernels, the original Red Hat, and Oracle UEK, you can choose not to use UEK
    or the one i would recommend:
    2. Upgrade Grid Infrastructure,
    *11.2.0.3.1* (patch 13348650, released about a 1 month ago) supports ACFS on UEK (starting with 2.6.32.200 IIRC)

  • Using backup script from console (problem)

    When I try to use the backupdatabase.sh script from shell as root (memeber of dba group)
    I get flash recovery area net enabled error.
    If I run it with my current user (also member of dba) it is successfull.
    I've enabled log archiving.
    Where could be the problem?
    I even have user root as db user and dba

    Pretty simple, really: it's all about security. You know ... the stuff that is causing Microsoft regular (but not necessarily good) press these days.
    Until the early-1990s, Oracle worked well in Unix using the root userid. The shared memory mechanism allows all users running Oracle to see the memory contents of the userid running the processes - and the Oracle kernel runs as an setuid/setgid application.
    Running something as accessible as Oracle with the ability to read any memory is a recipie for security concerns. Around Oracle 7.1.32, they started making it tougher to run the kernel under root. IIRC, since Oracle 8.0, the Oracle kernel checks that it is not being started as root.

  • Bash script - sqllite insert problem

    So, I'm making a bash script that inserts a config file into a database, but I can't get it to work.
    This is my best attempt so far:
    name="bashrc"
    location="/home/user/.bashrc"
    content=`cat "$location"`
    sqlite3 testdb "insert into dbase values ('`echo $name`','`echo "$location"`','`echo "$content"`')"
    the table is
    create table dbase(name text, location text, data text)
    I had a hard time trying to figure out how I'd be able to get $variables to work (because of the quotes) and this echo style seems to work, but there seems to be no way to insert the config file into the database.
    plaintext files seem to work no problem, but when I'm trying to insert some config file, it spits out errors. (It seems like it's trying to execute the file somehow?)
    Last edited by initbox (2009-08-29 15:28:49)

    initbox wrote:I was thinking the single quotes were stopping bash from replacing $variables with the content, hence the echoes.
    your single quotes are inside a double quote, so to bash they're just another character in the string.
    I'm still getting an SQL syntax error, so bash is no longer getting in the way, but this thing is a true nightmare. What next? This turned out to be way harder than I expected, I'm just doing this as a "fun" learning experiment.
    Your error is probably because I was escaping the quotes for bash, and I should have been escaping them for sqlite. In sqlite, escaping a quote is done by doubling it, so ' is escaped to '' (that's two apostrephes side by side, not a double quote. Compare '' and ").
    This untested sed command might work:
    content = $(cat $location | sed "s/\'/\'\'/g")
    The \'s are escaping the quote from bash, what its really doing is replacing ' with ''.
    Dusty

  • EEM http script returning "content problem"

    Hi @ll,
    I finished to record an HTTP script via EEM, but i got an error message "status: [503] content problem"
    Can anyone explain what is this error message  means ?
    please see the attach screen shot.
    TIA,
    Haim.

    Derrick,
    Just noticed your query.
    The script seems to do what you have described. If both IP SLA probes are down, it would go an remove the static default route.
    You are right, there is no recovery script, and I guess it was intended to be done manually.
    For recovery, you would need to come up with a logic you like, because if you are getting a backup internet uplink through your MPLS network, then the IP SLA probes should recover, and there is no easy way to know the ISP uplink is working again...
    You could have a script that recovers automatically later in the night (just adding the static route again), and if the IP SLA probes fail again, it would fail back again, and generate the syslog.
    If you are adding the default route, and the script triggers, then it means something is wrong with the IP SLA probes... Are you sure the route is working?
    Take a look at the "show ip sla stat" outputs to see what is wrong...
    You could disable the script (just remove it from the config) and see if Internet actually works for you when you add the static route...
    Arie

  • Calling all script experts - Wierd problem with a previously perfect script

    Hi,
    As script which used to work fine is now causing me big problems.
    The line that is causing the problem is highlighted in the script editor as:
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    On running the script I get the following message:
    Finder got an error: Can't make every file of entire contents of alias "Atlas Mac-Mini:Users:design:Desktop: TESTpictures - for script:Landscape copy:" into type reference.
    As I said the script used to work fine, A couple of members of this forum have tried to rewrite the script for me (thanks to them) but I'm still gettig the same message. I'm wondering is there something wrong with my system (which otherwise works fine).
    I'd appreciate any help and advice on what may be going wrong.
    Thanks, Ray
    In case it helps, here's the full script (which adds the file's path to the filename):
    set master_Folder to (choose folder with prompt "Choose a folder for filename processing") -- Select folder.
    set path_Depth to ((choose from list {1, 2, 3, 4, 5} with prompt "How many paths in these filenames?") as number) -- Select folder depth.
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    repeat with i in file_List
    set {oAStId, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
    set fileItemsList to text items of (i as string) -- List of individual path items [disk, folder(s), file] of file of file_List.
    set fileItemsCount to count fileItemsList -- Number of individual path items.
    set fileItemsList to text items (fileItemsCount - path_Depth) through fileItemsCount of fileItemsList
    set fullFileName to last item of fileItemsList as string -- Obtain full file name.
    set AppleScript's text item delimiters to "."
    try -- Obtain file name and file extension.
    set file_Name to ((text item 1 of fullFileName as string) & "-") -- Obtain only file name, less any file extension..
    set file_Ext to ("." & (text item 2 of fullFileName as string)) -- Obtain file extension.
    on error -- Sets up a "If you can't do case 1 then try this" .
    set file_Ext to "" -- If no File Extension exists, set 'file_Ext' to "".
    end try
    set AppleScript's text item delimiters to "-"
    -- Change name of file.
    set name of i to (file_Name & ((text items (1) through ((count fileItemsList) - 1) of fileItemsList) as string) & file_Ext)
    set AppleScript's text item delimiters to oAStId
    end repeat
    Various   Mac OS X (10.4.6)  

    Hello RaymondTomin,
    I don't see any reason for Finder to throw such an error in the said line. Perhaps something is wrong in your system.
    Try the following test scripts. If they fail on any folder you choose, I'm afraid something is surely wrong in your system, not in your script code.
    (If they fail, create new user account and try them in it to narrow down the problem cause. Also try repairing disk and/or repairing permissions.
    And it might help as well to clear some caches by using, e.g. Onyx:
    http://www.titanium.free.fr/pgs/english.html
    Or even to re-apply OSX's Combo Updater:
    http://www.apple.com/support/downloads/
    Good luck
    H
    -- TEST 1
    set fda to choose folder
    tell application "Finder"
    items of item fda
    end tell
    -- END OF TEST 1
    -- TEST 2
    set fda to choose folder
    tell application "Finder"
    try
    items of item fda as alias list
    on error
    items of item fda as alias as list
    end try
    end tell
    -- END OF TEST 2
      Mac OS 9.1.x  

  • Script Icon Creates Problem with Layers

    This is probably a really stupid question, but I had created
    a navigational bar for my site in Fireworks MX 2004. After working
    through a few issues I decided that it would be best to add popup
    sub-menus to the navigational bar. I am working in Dreamweaver MX
    2004 and the navigational bar is contained in a layer. When I
    re-inserted the updated navigational bar into the layer a script
    icon appeared at the top of the layer causing the navigational bar
    to appear lower than it had previously. It now covers up the image
    below it and throwing off the design of the whole page. When I view
    my page in my browser everything appears as it should. I have tried
    removing the nav bar from the layer and just inserting it at the
    top of the page and I still have the same layout problem although
    the icon no longer appears. The nav bar just has a larger space
    above it. I have also searched for an option to hide the script
    icon and cannot find anything. This new development has made my
    design efforts significantly more difficult. Does anyone have a
    suggestion????
    Thanks,
    Margaret

    On Tue, 13 Jun 2006 00:35:45 +0000 (UTC), "margaretx3"
    <[email protected]> wrote:
    >When I re-inserted the updated navigational bar into the
    layer a script
    >icon appeared at the top of the layer causing the
    navigational bar to appear
    >lower than it had previously.
    Click View->Visual Aids and uncheck Invisible Elements
    Gary

  • Script itcsy structure problem

    HI Friends,
    Using ITCSy structure , when i try to add fields its not picking up the data .
    please can any body help in this ..
    if any body have any sample program please send it to me.
    Here my requirement is to add two new fields (bkpf-bktxt,bseg-sgtxt) in main window of script.
    im declaring my perform like this:
    perform <formname> in program <prog name>
    using &bsik-blnr&
    changing &v_y&.
    my report form look like this:
    *& Report ZFI_VENDOR
    REPORT ZFI_VENDOR.
    TABLES : bsik,bkpf.
    data:v_y type bkpf-bktxt,
    v_z type bseg-sgtxt,
    x(20) type c .
    Form Z_HEADER tables INPUT STRUCTURE ITCSY
    tables OUTPUT STRUCTURE ITCSY .
    break-point.
    CLEAR : v_y,
    x.
    loop at input WHERE NAME = 'BELNR'.
    x = INPUT-VALUE .
    select single bktxt from bkpf into v_y where belnr = x.
    select single sgtxt from bseg into v_z where belnr = x.
    endloop .
    output-name = 'bktxt'.
    output-value = v_y.
    append output.
    *output-name = 'sgtxt'.
    *output-value = v_z.
    *append output.
    please cany body can guide me in abvoe what is problem...
    its very urgent.
    Good solutions will get good reward points.
    Regards,
    Vamsi

    Hi Vamsi,
    Please try like this....
    Loop at input where NAME = 'BSIK-BELNR'. " since you have used 'bsik-belnr' in the using clause in the script.
    Endloop.
    Also in the changing clause since you have used 'v_y' you should use the same in NAME of output...
    OUTPUT-NAME = 'v_y'
    try like this you should be able to get.
    Reward if helpful
    Thanks & Regards,
    Anil

  • SCRIPT and program problem

    Hello experts,
    I was facing one  problem. Iam getting the text properly but in case of text in two lines ima getting only first line text.i tries all ways but i was getting only single line.here is my code:
    loop at it_ekpo.
    concatenate it_ekpo-ebeln it_ekpo-ebelp into p_name.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = 'F01'
    language = p_spras
    name = p_name
    object = 'EKPO'
    TABLES
    lines = t_lines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6.
    ENDIF.
    READ TABLE T_LINES INDEX 1.
    endloop.
    in me23n my text is like this :
    loop at it_ekpo.
    concatenate it_ekpo-ebeln it_ekpo-ebelp into p_name.
    'Unbrako make-TEXT DUMMAY DATA IN DEV CHANGED BY ABAP1 AND TESTED IN DEV
    FOR 1ST ITEM'.
    I was getting only frist line i.e.,
    ''Unbrako make-TEXT DUMMAY DATA IN DEV CHANGED BY ABAP1 AND TESTED IN DEV "
    Iam not getting second line 'FOR 1ST ITEM'.
    Also there may be a chance to have more than 2 or 3 lines.
    so please help me.

    hi pavan,
    still iam not getting.
    in main window i have declared all fields .
    now wher i have to declare this text field and write_form.
    but one thing is i was getting only one single line in t_lies table after executing read_text.
    Suppose if i have line items , i am  getting last item text and that too single line.
    my script  code :
    /E           ELE
    IN           &IT_EKPO-CNT&,,&IT_EKPO-MATNR(20)&,,&SPACE(3)&
    =           &IT_EKPO-TXZ01+0(30)&,,&IT_EKPO-QVAL&,,&IT_EKPO-NETPR&,,
    =           &IT_EKPO-DVAL&,,&SPACE(9)&&IT_EKPO-TOT&
    /:           IF &IT_EKPO-TXZ01+31(40)& NE ' '
    IN           ,,,,,,&IT_EKPO-TXZ01+31(40)&
    /:           ENDIF
    /E           TEXT
    IN           &T_LINES-TDLINE+0(30)&
    this is my script code in main program:
    loop at it_ekpo.
    concatenate it_ekpo-ebeln it_ekpo-ebelp into p_name.
        CALL FUNCTION 'READ_TEXT'
        EXPORTING
        id = 'F01'
        language = p_spras
        name = p_name
        object = 'EKPO'
        TABLES
        lines = t_lines
        EXCEPTIONS
        id = 1
        language = 2
        name = 3
        not_found = 4
        object = 5
        reference_check = 6.
    endloop.
    **************script*************
      CALL FUNCTION 'OPEN_FORM'
      EXPORTING
         dialog         = 'X'
         device         = 'PRINTER'
         form            = 'ZPO_PRINT3'
         language   = sy-langu
    OPTIONS      =
      EXCEPTIONS
         cancelled  = 1
         device          = 2
         form            = 3
         OTHERS        = 11.
      LOOP AT IT_EKPO.
        CALL FUNCTION 'START_FORM'
          EXPORTING
            form      = 'ZPO_PRINT3'
            language  = sy-langu
            startpage = 'FIRST'
          EXCEPTIONS
            form      = 1
            OTHERS    = 7.
        CALL FUNCTION 'WRITE_FORM'
        EXPORTING
         ELEMENT    = 'ELE1'
         function  = 'SET'
         type          = 'BODY'
        window    = 'ADDRESS1'
        EXCEPTIONS
           element   =  1
            OTHERS    =  10.
        CALL FUNCTION 'WRITE_FORM'
        EXPORTING
         ELEMENT    = 'ELE2'
         function  = 'SET'
         type          = 'BODY'
        window    = 'ADDRESS2'
        EXCEPTIONS
           element   =  1
            OTHERS    =  10.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'ELE'
            function = 'SET'
            type     = 'BODY'
            window   = 'MAIN'
          EXCEPTIONS
            element  = 1
            OTHERS   = 9.
    LOOP AT t_lines.
    call function 'WRITE_FORM'
    EXPORTING
    element = 'text'
    function = 'SET'
    type     = 'BODY'
    window   = 'MAIN'
          EXCEPTIONS
            element  = 1
            OTHERS   = 9.
    ENDLOOP.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'ELE3'
            function = 'SET'
            type     = 'BODY'
             window   = 'MAIN'
          EXCEPTIONS
            element  = 1
            OTHERS   = 9.
        CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           ELEMENT  = 'ELE4'
           function = 'SET'
           type     = 'BODY'
             window   = 'MAIN'
         EXCEPTIONS
           element  = 1
           OTHERS   = 9.
        CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           ELEMENT  = 'ELE5'
           function = 'SET'
           type     = 'BODY'
             window   = 'MAIN'
         EXCEPTIONS
           element  = 1
           OTHERS   = 9.
      ENDLOOP.
      CALL FUNCTION 'CLOSE_FORM'
        EXCEPTIONS
          unopened                 = 1
          bad_pageformat_for_print = 2
          send_error               = 3
          spool_error              = 4
          OTHERS                   = 5.

  • Script file name problem

    hi,
    when i try to run script in a file i got an error.
    i tried following command.
    @D:\Database Architecture\Scripts\test.sql
    It throw error as D:\Database.sql file not found.
    I'm facing this problem when i use Edit command and SQLPlus utility.
    how to solve this problem?
    I want to run files which are stored in directories whose names are containing embedded spaces.
    Thanks.

    You have to enclose the string in double quotes.
    Example:
    SQL> @c:joelperez/hi bye/joel.sql
    SP2-0310: unable to open file "c:joelperez/hi.sql"
    SQL>
    SQL> @"c:joelperez/hi bye/joel.sql"
    SYSDATE
    17/02/04
    SQL>
    Joel Pérez
    http://otn.oracle.com/experts

  • Script Check printing Problem

    Hi All,
    I checked many posts on this but i couldn't found the solution please any one help me to solve this problem
    Senario: I copied F110_PRENUM_CHCK standard script i did modification i am running this through F-58 for first page its working fine for second page it is printing standard IDES logo page in my script i already deleted next page and and last page still i am getting second page standard ides page.I not copied the standard print program i copied only standard script.
    (i want to print multiple pages the Cheque should display only in last page and remaining pages i want display in cheque place ********* like this or this cheque is not valid like that for this i did in window if &page& =0 then printing window else print ***** please let me know weather this works or not how to archive this .)
    Thanks ,
    Kumar.

    Hi All ,
    My Problem still there any inputs ,
    my Problem is i copied standard form F110_PRENUM_CHCK and deleted second page and last page added logo and removed standard logo , i am executing this from through F-58 and (IN SE38) RFFOUS_C EXCUTING THE REPORT .
    once i executed the form first page printing correct and second page printing standard page i checked in all windows there is no newpage or goto next page or next page in all windows and also in first page page option i changed next page as first page .
    Can any one please help me .
    Thanks,
    Kumar

  • Scripting bridge challenge (problem)

    I need help!
    hi,
    i have a cocoa app that has been upgraded to support applescript. I can work with it just fine from the script editor. I intend it to be able to send commands so i am adding scripting bridge support, and I have hit a wall.
    the documentation is very thin, and it doesn't cover my problem, it doesn't mention it, it doesn't even hint that there might be any weird behavior from the Scripting bridge classes.
    one of the very first things I am trying to do is send my app Script commands, from within the app itself. it would be trivial to just call the proper method, but this is an important step in migrating my app to a position of being completely controllable from applescript.
    well, thats where the problem is. I can get a reference to an SBApplication object, using any of the initializers (bundle ID, URL, or PID) but when I send them a script command, it always times out, and returns an applescript error of -609... which is "Connection is invalid.", That leads me to believe that you can't use the scripting bridge to control your app from within your app through applescript.
    does Anybody out there know enough to shed some light on this?

    orangekay wrote:
    The only reason for sending an AppleEvent to oneself is to support recording, and that is accomplished thusly:
    http://developer.apple.com/documentation/AppleScript/Conceptual/AppleEvents/crea tesend_aepg/chapter_7_section_3.html#//appleref/doc/uid/TP40001449-CH209-BABEIJCA
    I would assume you have little to no control over the manner in which events are sent when using the bridge's convenience methods, so this design simply isn't likely to work. Might want to file a bug against the documentation for failing to specify this limitation explicitly, but it's not something I would have ever expected to fly given the limitations of AESend.
    No idea about Scripting Bridge, but objc-appscript [1] gives you extensive control over event creation and dispatch. e.g. To target the host process, create an application object as follows:
    FooApplication *foo = [[FooApplication alloc] init];
    HTH
    has
    [1] Unlike SB, appscript's design goal is to provide an easy-to-use ObjC API for creating and sending Apple events without restricting functionality or compromising real-world application compatibility. The documentation covers the commonly used features; see the framework headers for more arcane tasks such as supplying your own create and send procs.
    Control AppleScriptable applications from Python, Ruby and ObjC:
    http://appscript.sourceforge.net

Maybe you are looking for