[SOLVED] expect steals my loop data

I'm working on a script to automatically backup my switch configurations via scp (keys are not an option here) so I need to use 'expect'. It appears expect is stealing the stdin data from my loop though.
Here's sample code that demonstrates the issue, note that 'expect' has the debug flag:
#!/bin/bash
set -e
set -u
cat test.conf | while read name addr pw ; do
expect -dc "
set timeout 30
spawn scp admin@$addr:/cfg/startup-config ${name}_startup-config
expect \"password: \"
send \"$pw\r\"
interact
done
And test.conf looks like this:
line1 address1 password1
line2 address2 password2
line3 address3 password3
line4 address4 password4
line5 address5 password5
Now when I run the script, after expect connects to the host and sends the password, it then 'steals' the rest of the data from the `while read` loop on the "spawn id" line of the debug output (eg, line2, address2 and so on) so my loop never gets to it's second (or third, forth etc) iteration:
expect version 5.45
spawn scp admin@address1:/cfg/startup-config line1_startup-config
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {14182}
expect: does "" (spawn_id exp6) match glob pattern "password: "? no
admin@address1's password:
expect: does "admin@address1's password: " (spawn_id exp6) match glob pattern "password: "? yes
expect: set expect_out(0,string) "password: "
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "admin@address1's password: "
send: sending "password1\r" to { exp6 }
spawn id exp0 sent <line2 address2 password2\nline3 address3 password3\n#line4 address4 password4\nline5 address5 password5\n>
interact: received eof from spawn_id exp0
argv[0] = expect argv[1] = -dc argv[2] =
set timeout 30
spawn scp admin@address1:/cfg/startup-config line1_startup-config
expect "password: "
send "password1\r"
interact
set argc 0
set argv0 "expect"
set argv ""
Any idea how I can stop 'expect' stealing my stdin?
Last edited by fukawi2 (2013-09-20 03:38:07)

Ah-ha! Changing 'interact' to 'expect eof' in the expect commands makes this work as expected (no pun intended)

Similar Messages

  • There are a sample for loop data out using xpath-querie?

    hello,
    i have a web service that contains multiple rows. i transfered these data in a variable tInput. Now i want to transfer these data in a output variable.
    Is There a sample or tutorial, that shows how to loop data out of a variable (array) in a
    second variable using xpath-querie?
    regards,
    rala

    Hi,
    thanks for the Link, but it doesn't work at all.
    I have a variable tOutput with follow content:
    tOutput>
    <part name="parameters" >
    <SchedulForwardResponse>
    <SchedulForwardResult>
    <ArrayType>
    <plnnr>50001203</plnnr>
    <vornr>1</vornr>
    <starttime>20.08.2006 09:00:00</starttime>
    </ArrayType>
    <ArrayType>
    <plnnr>50001203</plnnr>
    <vornr>2</vornr>
    <starttime>20.08.2006 09:10:00</starttime>
    </ArrayType>
    <ArrayType>
    <plnnr>50001203</plnnr>
    <vornr>3</vornr>
    <starttime>20.08.2006 09:35:00</starttime>
    </ArrayType>
    </SchedulForwardResult>
    </SchedulForwardResponse>
    </part>
    </tOutput>
    I want to copy these content in the output Variable of my BPEL Prozess. But just the first <ArrayType> is copy to output:
    <ArrayTpe>
    <plnnr>50001203</plnnr>
    <vornr>1</vornr>
    <starttime>20.08.2006 09:00:00</starttime>
    </ArrayType>
    The other two <ArrayType> fail.
    I create 3 variables:
    <variable name="bufferOutput" messageType="ns0:SchedulForwardSoapOut"/> (MessageType of the invokeing WS)
              <variable name="count" type="xsd:integer"/>
              <variable name="n" type="xsd:integer"/>
    Count and n are counter for the while loop. Count is initial 1. For n i have follow expression:
    <assign name="prepareLoop">
    <copy>
    <from expression="ora:countNodes('bufferOutput','parameters','/ns0:SchedulForwardResponse/ns0:SchedulForwardResult/ns0:ArraySchedulType[1]')"></from>
    <to variable="n"/>
    </copy>
    </assign>
    In the BPEL Console i saw, that the value of n is1 and not 3 as i thought. When i set ora.countNodes to SchedulForwardResult n is null in the console.
    Does anybody try befor to copy such a content of a variable into another variable or has a idea how i can implement these?
    regards,
    rala

  • I built a DAQ vi in the labview6.1 and i compiled it to a dll.And then I wanted to call it and expected it pass acquired data to visual c++

    I built a DAQ vi in the labview6.1 to acquire four channels'data(use pci_6110E) .And i compiled it to a dll.I wanted to use visual c++ to call it and expected it pass acquired data to visual c++.

    Hello
    If you are using Visual C++, then I would recommend using the NI-DAQ function calls instead of having labview layer in there. YOu can pretty much accomplish any task using the NI-DAQ function calls that you can by using the LabVIEW DAQ vi's. Plus this way you wont have to worry about passing the correct data type from LabVIEW into C++. You can find the examples for using these function calls under ../NI-DAQ/Examples/.
    I hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • A premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data

     I am getting this error when try to transfer data from an hosted database.
    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "While reading current row from host, a premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data. The host program may have terminated. Ensure that you are using a supported client application programming interface (API).".
    How can I work around this?
    This is a simple data flow from a SQL 2005 table using SQL 2008 SSIS. going to a SQL 2008 table
    ThanksSQL Server MVP http:\\sqlblogcasts.com\blogs\simons

    You can still keep the NVARCHAR computed column in the table, but you cannot use MAX for the length, just use a fixed size and it will work like a charm (i.e. convert the whole result of the computation to NVARCHAR(4000)).
    Laurent.

  • How to solve : Conversion failed when converting date and/or time from character string

    hi there
    my query :
    cmd = new SqlCommand("SELECT RTRIM(invoiceNo) as [Order No.],RTRIM(InvoiceDate) as [Order Date],RTRIM(SubTotal) as [SubTotal],RTRIM(VATPer) as [Vat+ST %],RTRIM(VATAmount) as [VAT+ST Amount],RTRIM(DiscountPer) as [Discount %],RTRIM(DiscountAmount) as [Discount Amount],RTRIM(GrandTotal) as [Grand Total],RTRIM(TotalPayment) as [Total Payment],RTRIM(PaymentDue) as [Payment Due] from Invoice_Info where InvoiceDate between @d1 and @d2 order by InvoiceDate desc", con);
    cmd.Parameters.Add("@d1", SqlDbType.DateTime, 30, "InvoiceDate").Value = dtpInvoiceDateFrom.Value.Date;
    cmd.Parameters.Add("@d2", SqlDbType.DateTime, 30, "InvoiceDate").Value = dtpInvoiceDateTo.Value.Date;
    i use date timepicker / vs2010 / sql server 2008 r2 
    tnx

    i change the type of my column(InvoiceDate column) to isDate but it doesnt work and error again ....
    What exactly does this mean? What was the data type before the change? What is it now? Can you show us the CREATE TABLE statement for the table?
    i want send my source code /database for you and you chek it plz
    Generally, you should not expect people to solve problem over mail. You can upload code and database to Dropbox, Skydrive or similar service if you people to look at it.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Memory leak in Real-Time caused by VISA Read and Timed Loop data nodes? Doesn't make sense.

    Working with LV 8.2.1 real-time to develop a host of applications that monitor or emulate computers on RS-422 busses.   The following screen shots were taken from an application that monitors a 200Hz transmission.  After a few hours, the PXI station would crash with an awesome array of angry messages...most implying something about a loss of memory.  After much hair pulling and passing of the buck, my associate was able to discover while watching the available memory on the controller that memory loss was occurring with every loop containing a VISA read and error propogation using the data nodes (see Memory Leak.jpg).  He found that if he switched the error propogation to regular old-fashioned shift registers, then the available memory was rock-solid.  (a la No Memory Leak.jpg)
    Any ideas what could be causing this?  Do you see any problems with the way we code these sorts of loops?  We are always attempting to optimize the way we use memory on our time-critical applications and VISA reads and DAQmx Reads give us the most heartache as we are never able to preallocate memory for these VIs.  Any tips?
    Dan Marlow
    GDLS
    Solved!
    Go to Solution.
    Attachments:
    Memory Leak.JPG ‏136 KB
    No Memory Leak.JPG ‏137 KB

    Hi thisisnotadream,
    This problem has been reported, and you seem to be exactly reproducing the conditions required to see this problem. This was reported to R&D (# 134314) for further investigation. There are multiple possible workarounds, one of which is the one that you have already found of wiring the error directly into the loop. Other situations that result in no memory leak are:
    1.  If the bytes at port property node is not there and a read just happens in every iteration and resulting timeouts are ignored.
    2.  If the case structure is gone and just blindly check the bytes at port and read every iteration.
    3.  If the Timed Loop is turned into a While loop.
    Thanks for the feedback!
    Regards,Stephen S.
    National Instruments
    Applications Engineering

  • Few questions - game loop, data types, speed

    Hello, I have a few questions after studying some topics in this forum regarding game creation:
    1) What's the fastest way to wait in the game loop? I've seen two approaches:
    thread.sleep(10)andsynchronized(this) { wait(10); }2) What data types shall I use? In C++ I use to prefer int over short in all cases, because 32bit hardware works faster with integers. Is this same on cell phones?
    3) Speed of applications is slow. I just wonder wheter it's my fault. I was testing application, which only cleared the buffer and outputted FPS and I got around 20 frames. It was Nokia 6300 with 240x320 display. After testing on other phones I've found out that the bigger the resolution, the slower the game is going. Is this normal?
    Thanks for replies...

    1) You're not going to notice any really speed difference between the two code snippets. Read up on 'Threads', and you'll see why one may be used in place of the other depending on the situation. In general there may be a slight performance loss, however unnoticable, when using the synchronized version, but when you are multithreading it is likely necessary.
    sleep(int) is impossible to interrupt, so it's generally a no-no in most situations. However we are talking about devices where every bit of performance helps, so as long as it works for ya, it's not a big deal.
    2) The performance difference is fairly negligable, if any. The biggest thing to consider is memory requirements, and shorts take 1/2 the data.
    Also, many phones don't support floating point data types, so you'll likely need to use ints/longs to calculate your values if you want to have any accuracy beyond whole numbers. Doing something like shifting bits or using 1000x values in your calculations can get around most of the problems when you can't use floats.
    3) The biggest performance killers are IO, memory allocation, screen drawing; pretty much in that order. So I imagine that you are re-creating a new String object every time you output your FPS value on screen right? Doing that every frame would destroy any hopes of getting high-performance.
    Just be careful, and never allocate objects when you can avoid it. anything where you concat String objects using + will cause your performance to die a horrible painful slow death. Remove anything that says 'new' from your main loop, and all String operations, and it'll likely speed things up a lot for ya.
    Does your main loop have something like this?
    g.drawString("FPS: " + currentFps, 0,0,Graphics.TOP | Graphics.LEFT);
    This is very bad because of the String operation. It'll create a new String every frame.
    If you have any more specicif questions, or you'd just like to pick the brain of a mobile game dev, stop by my messageboard:
    http://attackgames.proboards84.com
    Message was edited by:
    hooble

  • Can anyone solve this Phase Locked Loop puzzle?

    I created a Phase Locked Loop circuit using
    Multisim10.0.   It uses the Multisim clock oscillator, and the circuit
    appears to work great.
    However,
    I just discovered that if I use the same parts that I used to create
    the Phase Locked Loop circuit in an oscillator circuit added to the
    same schematic, the Phase Locked Loop circuit doesn't work any more,
    while the new oscillator circuit pumps out a frequency that is way
    off.  4+MHz is no where near 1kHz, the design frequency.
    What
    happened?   The evidence says my newly-added oscillator brings in
    something that kills a previously working circuit that uses the same
    old parts.   Every part used was taken from the previously working
    circuit, aside from the variable resistor values.  How did the Multisim
    rules change from 10.0 to 10.1?  What am I missing here?
    Did the Phase Locked Loop circuit really work to begin with?  Which circuit is the broken one?
    As
    I see things, in order to solve this puzzle, I need to come up with a
    factor that involves both circuits.  Some factor is going to kill both
    simultaneously.
    Note what I'm saying here.  (At least when I ran
    them this was the case.)  Delete just the oscillator circuit, and run
    the circuit that remains.  It works.  Undo the deletion.  The
    oscillator reappears where it was, and the previously working circuit
    stops working.  There's something in that oscillator circuit that
    kills.  It's like switching on and off a light bulb.
    Message Edited by Euler's Identity on 08-02-2008 12:10 AM
    Attachments:
    phase_locked_loop1.ms10 ‏649 KB
    phase_locked_loop_puzzle1.ms10 ‏174 KB

    Ah hey why not?
    After all, I still can't predict what the next filenames I uplaod are going to look like, not yet at least.
    However, at this point, it is safe to say it won't be what I uploaded.
    [drum roll]
    Attachments:
    phase_locked_loop1.ms10 ‏649 KB
    phase_locked_loop_puzzle1.ms10 ‏174 KB

  • Solved: PC Suite changes messages date to date of ...

    Yesterday I wanted to copy all of my messages from my Nokia 6267 phone to my computer. I have a folder for inbox and outbox, and all of my previuosly copied messages are saved as "[first 32 characters of the message].vmg". I opened Nokia PC Suite 7.1 and clicked on "messages", which opened the designated software of contacts, messages and calendar managing. The problem was, when I tried to copy (ctrl+c) and paste (ctrl+v) the files to another folder in my PC, all of the messages lost their date and time, and got the current date and time. Also, their filenames changed to "[original date and time of send].vmg". I could not find away to prevent this from happening, and when I tried to use explorer to explore the phone, the only folder that appeared in "nokia phone browser" was my gallery. I couldn't find help on the internet. I was sure I did this process before, as I had the old messages. I decided to try an older version of pc suite. Luckilly I kept the installer of the 6.8 version, so I removed 7.1, installed 6.8 and the problem was solved! Apparently the phone browser of version 6 allows you to view the deep contents of your phone, while 7 do not, and instead uses other built-in programs to do so.
    Attachments:
    nokia browser 6.8.png ‏74 KB

    I guess I am not 100% sure. I just opened PC Suite and checked manage connections and then settings and saw nothing labled manual or automatic. What I do to connect to the internet in PC Suite is connect my phone with the cabe, open PC Suite and then click on the globe to make the connection. Does that help you of should I check something else? Thanks, Greg

  • Looping data out of Access

    This is my ASp code.
    <%@Language=VBScript%>
    <%Option Explicit%>
    <%
    ''the data coming from Flash
    Dim dvdID
    dvdID = Trim(Request("sentID"))
    '''''''Make the connection
    Dim myConnection
    Set myConnection=Server.CreateObject("ADODB.Connection")
    myConnection.ConnectionString="DRIVER= {Microsoft Access
    Driver (*.mdb)};" & "DBQ="&
    Server.MapPath("../database/jn.mdb")
    myConnection.Open
    '''''''Create the SQL statement we need and set it to a
    variable
    Dim getDVDInfo
    getDVDInfo = "SELECT * FROM hylde1 WHERE status=" & dvdID
    '''''''Make the record set object
    Dim myRS
    Set myRS=Server.CreateObject("ADODB.Recordset")
    myRS.Open getDVDInfo, myConnection
    Dim allHylder, ids, info, mainMessage
    Do While Not (myRS.EOF)
    allHylder = allHylder& myRS("hylde1")
    ids = ids & myRS("id")
    info = info & myRS("info")
    myRS.MoveNext
    Loop
    '''''''Create the message we are sending to Flash
    mainMessage = "hylde1=" & allHylder & "&ids="
    & ids & "&info=" & info
    '''''''Clean up...MUST HAVE!!!
    myRS.Close
    Set myRS=Nothing
    myConnection.Close
    Set myConnection=Nothing
    '''''''Send that data to Flash
    Response.Write(mainMessage)
    %>
    This is my flash(does not work)
    //The listener object for when a user selects a DVD
    var dvd_obj:Object = new Object();
    dvd_obj.change = function(){
    var dvdID = raekke_list.value;
    var dvdInfo_lv:LoadVars = new LoadVars();
    dvdInfo_lv.onLoad = function(success){
    if(success){
    if(!this.error){
    LOOP INFO OUT; HOW??????????
    }else{
    trace(this.error);
    }else{
    trace("An error occurred with the connection");
    dvdInfo_lv.sentId = dvdID;
    //send and receive the data
    dvdInfo_lv.sendAndLoad("
    http://www.123ogabc.dk/getHyldeInfo.asp",dvdInfo_lv,
    "GET");
    //add the event listener to the List component
    raekke_list.addEventListener("change", dvd_obj);
    Its all build up so when you press a number in a listBox
    (number 1-19) some info is supposed to loop out from the id
    pressed, i.e 1. So far ive used a lot of time on it without luck.
    Hope one of you can help

    Hi,
    Open Hub Service 3rd Party Integration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f12a03d-0401-0010-d9a7-a55552cbe9da
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11e1b990-0201-0010-bf9a-bf9d0ca791b0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3042c5fc-21a8-2910-c79e-ad530260ae2e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01d3a090-0201-0010-9783-bc
    SAP BW Guide: Open Hub Service
    http://searchsap.techtarget.com/general/0,295582,sid21_gci1224995,00.html
    Hope this helps.
    Thanks,
    JituK

  • How to solve "error occurred in the data manipulation engine"? 64bit Windows 7

    Hi all
    I'm having quite a testing time here trying to use the new SAP PA 2.0. After installation the software launches, the Automated Analytics seems to work fine but not the Expert Analytics.
    Steps as follows:
    Launch PA
    Choose and launch Expert Analytics
    Choose Try with Samples
    Open the Dairy Wholesaler file
    Error: An error occurred in the data manipulation engine. Check the manipulation parameters. (HDB 01001)
    I also get this same error when I try to create my own New Dataset.
    I’m on 64bit Windows 7 Pro
    Is there anyone who knows how to solve this problem. I've searched the SCN and online and have tried the following:
    1. Uninstall and re-install. Doesn't help
    2. Uninstall and delete old lumira related folders on the C drive e.g. the SAPPA and SAPVI folders on the C drive, then re-install.
    Much appreciated if anyone could shed some light on this. I've previously had Lumira working with no issues. I've since uninstalled Lumira, Predictive Analytics, and Infinite Insights (as PA 2.0 is all of this combined)
    Regards
    Ria

    In case anyone has the same problem, I found the the following helpful (taken from Error after upgrading to 1.18 ). The solution is for Lumira however its the same steps for PA2
    1.  You might want to try a ‘clean’ uninstall / reinstall . After uninstalling, try deleting these folders:
    C:\Users\Public\sapvi
    C:\Users\<user>\AppData\Local\SAP\Lumira
    C:\Users\<user>\AppData\Local\Temp\sapvi
    In this step I searched for every SAP related file in AppData in the Public, User, and my own username folder under \Users\
    2.  Next, to launch the application, explicitly click "Run as Administrator" on the install file

  • [SOLVED] Pacman GPGME error: No data

    I recently bought a new computer and, of course, wanted to get away from windows 8 asap. I've installed arch several times before, and this time, from the outset, I've been plagued with GPGME errors. First was during the installation when I tried to install the base system with pacstrap. I solved that using the method here: https://bbs.archlinux.org/viewtopic.php?id=142798 (essentially delete /var/lib/pacman/sync and then run pacman -Syyu). From there on out, the install proceeded happily. After booting into my system, I attempted to begin downloading and installing things such as openssh, gparted, virt-manager...etc. Now I get the same error that I had before.
    pacman -Syyu
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    ::Synchronizing package databases. . .
    Core
    Core.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    extra
    extra.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    community
    community.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    multilib
    multilib.sig
    error: GPGME error: No data
    error: failed to update core (invalid or corrupted database (PGP signature))
    error: failed to synchronuze any databases
    error: failed to init transaction (invalid or corrupted database (PGP signature))
    As soon as this happened, I attempted to re initialize pacman and the keys with
    pacman-key --init && pacman-key --populate archlinux
    This ran properly, but I was still unable to sync or update pacman. I then tried deleting /var/lib/pacman/sync and updating with the same result. 
    Next, I tried commenting out the mirrors, as that was mentioned in several posts while perusing the wiki. This still did not work. The next ting I tried was setting the SigLevel in the pacman.conf to Never, which brought about a whole host of different errors when trying to update (Unrecognized archive format error).
    After reinitializing the keys again, deleting the /var/lib/pacman/sync folder and attempting another (unsuccessful) pacman -Syyu, and running pacman-key --refresh-keys, I set the SigLevel back to it's default, and decided it might be time to post asking for help. Does anyone have any other ideas that I could try? I've been working on this unsuccessfully for a few hours now, and I'd like to see it up and running.
    Thank you all in advance!
    Searching the archwiki, I tried these threads for additional help:
    https://bbs.archlinux.org/viewtopic.php … 2#p1111872 -- had a problem in pacman conf I do not
    https://bbs.archlinux.org/viewtopic.php?id=169225 --commenting out mirrors did not work
    https://bbs.archlinux.org/viewtopic.php?id=135310 --- did not help with archive errors
    ..... and many many more that were totally unrelated despite similar titles to mine
    Last edited by ephreal (2014-03-29 23:28:46)

    I shutdown my computer, moved to a different network area, and it is now running happily. I have no idea why... perhaps firewall controls? Whatever the reason was, this is no longer happening. Marking as solved.

  • Check deviations on set of Looped data?

    I'm new with Teststand and trying to edit some customer supplied software.  I have a VI set to loop 15 times and check that each reading is within a set of values.  What I also need to do is check all 15 readings so that the deviation from the highest reading to the lowest reading is within a different set of values.  Is there an easy way to do this within the looping options?
    Example:
    Read X 15 times and check that (X>0 and X<1).  
    Check that all 15 readings are within 0.01 of eachother. 
    Thanks!
    Solved!
    Go to Solution.

    Russ,
    The best thing to do would be to store each reading in an array, and then use a step after the looping step to do that test (you could do it entirely in TestStand using the None adapter with a Numeric Limit Step, or you could create a new LabVIEW code module to do that analysis and return a boolean value to a Pass/Fail step).
    What version of TestStand are you using?  As long as you have access to the flow control steps (TestStand 3.1 and later), it's recommended to use those (the for loop step, while loop, etc) to make it easier to read the code.  Even so, you would still need to save the measurements to an array to do post-processing as described above.
    Eric B.
    National Instruments

  • Unable to loop data for fetching purpose

    Hi,
    I have table TABLEA which ahs 2 columns:
    COL1 COL2
    1 ABC
    2 DEF
    I want the above data to loop 4 times i.e i want the output as :
    COL1 COL2
    1 ABC
    2 DEF
    1 ABC
    2 DEF
    1 ABC
    2 DEF
    1 ABC
    2 DEF
    Any help will be needful for me

    You can use CONNECT BY and a CROSS JOIN to achieve the desired results:
    SQL> WITH    test_data AS
      2  (
      3          SELECT  1 AS COL1, 'ABC' AS COL2 FROM DUAL UNION ALL
      4          SELECT  2 AS COL1, 'DEF' AS COL2 FROM DUAL
      5  )
      6  SELECT  COL1
      7  ,       COL2
      8  FROM    TEST_DATA
      9  CROSS JOIN (SELECT ROWNUM RN FROM DUAL CONNECT BY LEVEL <= 4)
    10  /
                    COL1 COL
                       1 ABC
                       2 DEF
                       1 ABC
                       2 DEF
                       1 ABC
                       2 DEF
                       1 ABC
                       2 DEF
    8 rows selected.

  • Problem in looping data in variable window

    Hi All,
    I am using loop at and i am displaying data in VAR window. But every time it loops it over writing the data in VAR window and finally its printing only the last record in the loop. Can we loop all the data in the VAR window just like what we do in general for MAIN window.

    Just try to use Text element and give the values to be printed under text element, in print program in  pass the WRITE_FORM with text element in loop and Endloop.
    I think we can not use Variable window to print records from an internal table, suppose if the data in first page is full in variable window, and if u use same variable window in second page, it starts printing from 1st record in second page also.
    Regards
    Bala Krishna

Maybe you are looking for

  • How to get more than 1 iphone connected on itunes to home computer

    i need to get my wife's iphone on itunes for our home computer and not sure how to proceed so we can both have access

  • Can't open the Zipped file

    Hi I am making a zip file using GZIPOutputStream. But I am not able to open the zip file that is created using win zip.The size of the zipped file is 81 KB and the input file is 3,245 KB.I have closed all the streams still I am not able to figure out

  • Delete Customer order confirmation

    Hi, I have a problem with the availability of a material. When I go to Trx CO09 it shows 6 units of the material “Confirmed” for a Customer Order. But I can’t find this order, instead of showing the sales document as usually do (e.x. 3300008886/00001

  • How can I get this lousy browser to work?

    Where to start... First off there's never anyone on live chat. Second, none of my yahoo groups work with this browser and neither does my hotmail account. This browser was downloaded into my computer by a microsoft tech after I paid to have my comput

  • Error in BDC Screen-HR

    Hi All, I am trying to upload data for an action(HR) and the infotypes are infogrouped(infotypes 0, 1, 14 & 3). But when I am in infotype 0 it gives me an error "No Batch input Screen screen no". Please let me know if there is any changes. Thanks and