BufferedReader into a loop

Hello, I need to do this below but I have an heapSpace problem because I read 3000 files. Is there a way to declare
reader as static and initialize reader with " new BufferedReader( new FileReader( new File(filesDir + "//" + file) ));" without the costructor????
I need to avoid many "new"
class Text {
//static BufferedReader reader =new BufferedReader(); // it's not right
  for ( each files ) [
      try {
         // reader.someMethod ( new FileReader( new File(filesDir + "//" + file) ) ); // it's not right
         BufferedReader reader = new BufferedReader( new FileReader( new File(filesDir + "//" + file) ));
}thanks

mickey0 wrote:
Hello, I need to do this below but I have an heapSpace problem because I read 3000 files. Is there a way to declare
reader as static and initialize reader with " new BufferedReader( new FileReader( new File(filesDir + "//" + file) ));" without the costructor????
I need to avoid many "new"The problem is not the "new", probably. It's what you do with your data. 3000 BufferedReaders will not make you run out of heap space.
The content of 3000 files (or what you make of these files) is an entirely different thing, however.
Do you store the content of the 3000 files?
class Text {
//static BufferedReader reader =new BufferedReader(); // it's not right
for ( each files ) [
try {
// reader.someMethod ( new FileReader( new File(filesDir + "//" + file) ) ); // it's not right
BufferedReader reader = new BufferedReader( new FileReader( new File(filesDir + "//" + file) ));
}That's not pseudo-code and it's not Java, what is it supposed to do?

Similar Messages

  • How do you turn third-party midi loops into Apple Loops?

    Does anyone know how to turn third-party midi loops into Apple Loops? I've got hundreds of short midi files that I purchased, and I would like to be able to use them in the loop browser of Logic Studio. I tried some of the obvious ways of doing this, like using Apple Loop Utility, but it doesn't seem to recognize .mid files. Seems like .mid files would be right up its alley, so maybe I'm doing something wrong...

    Yes, have the same problem but with wav loops. i have 75000 wav loops from third part and do not find how to "logicized" it. For the moment i can use them into a project but they are not adapting when i change the bpm of the projetc for exemple.
    If you know the solution i would be rescued

  • Can automator turn thousands of samples into Apple Loops? (VSL rep/runs)

    Hello everyone,
    First off, I'm familiar with how to build my own apple loops and find them to be VERY useful, especially in the application I'm about to describe. However, I find it quite tedious to build them manually, especially when dealing with thousands of samples. Thus I'm looking for the best/easist way to create apple loops, hopefully using Tigers "automator."
    Heres my situation: I use/love VSL sample libs, which contain many articulations/phrases, but some of these are "tempo specific" such as the numerous instrument runs, repetition files, glissandos, crescendos, etc, and when doing a film score I cannot let tempo specific files dictate the tempo of the piece (the film does that). Thus I've started taking some of the VSL samples (especially the repetition and runs) and turning them into apple loops, which conform to the tempo of the piece. Within reason, the results are WONDERFUL allow me to continue to use these very realistic phrases at almost any tempo!
    However, I've grown tired of manually converting these files to apple loops, and thus have only converted a handful of these phrases into apple loops. Whats worse is when I'm forced to stop the creative process to turn a phrase into an apple loop only to find that after all that time creating the loop, it doesnt work!
    Is it possible to use Tigers automator to automatically convert .wav files into apple loops? This would be a great time saver, and would possibly allow for turning the thousands of samples into apple loops. Anyone currently doing this type of thing? Is it worth it in the end?
    Thanks in advance for any help/tips you can provide.

    Hi Jonathan,
    You can use Logic to create AIFFs of these files very quickly.
    Then, open them in ALU.
    Select all files.
    Change 1 field.
    Save.
    You now have Apple Loops -- they will have a few few things automatically inserted such as guessed tempi -- they will almost always be set to 4/4 to the tempo closest to 120(?)... but they will load and many will load usably for your needs.
    Now, I don't know exactly what you are facing with this concept but it sounds like a very big job and this will still leave much time hand tuning. If this is true, I recommend you have a look at Accelerando:
    http://www.eigentoneresearch.com/Accelerando.html
    Accelerando contains several tools which will substantially decrease the tedium - and yes, it does use Automator. It works directly with Logic Pro, Apple Loops Utility - and more. Ultimately, you may be able to create workflows which handle this task with 1 gesture per Apple Loop - although a large library of workflows would be required to accomplish this to most users expectations so 2 or more gestures is more likely. of course, you can try to set up a more intelligent scheme if, say, the files can be filtered by an attribute such as their name.
    J
    Per Apple's TOU, I am required to state my affiliation with Eigentone Research.
    I Developed Accelerando

  • Unable to open files associated with Adobe Reader - program goes into a loop

    i am unable to open any file associated with adobe reader or adobe pro.  when i double-click the file, adobe reader opens up but it goes into a loop. 
    adobe reader opens, then a progress window opens, as if the file will open but adobe closes and opens again and the same cycle repeats itself until i manually close the program.
    any advice?
    update:
    i can open regular .PDF files when i double-click the icon and i can also open .PDF files when i open adobe reader first and then choose open file.  it's just the .FDF files that are the problem (so far).
    the file in question happens to be an .FDF extension, which is an internet generated form. i attached a screen shot of the screen that pops up, goes away, and pops up again that creates the loop.
    the white out section is the server name where the file was saved to.  but i also get the same symptoms when i am in internet explorer, hit the generate form button.

    hey ankit,
    sorry i didn't see a notification that you replied to this discussion.
    "1. Generate a new PDF and a FDF file. Try opening the same and see if it behaves the same way."
    yes, it does behave the same way, it's just a continuous loop until i have to kill the process.
    "2. Check if you have access to the PDF that is being used by the particular FDF."
    by this do you mean the correct permissions?  if that is what you mean, then yes, the permissions are set correctly.
    "3. If possible, please send me the FDF and the associated PDF that is behaving in this way on your system."
    i really wish i could but the information in the form is sensitive and cannot be sent. 
    as an update though, i reimaged the customer's workstation, installed Adobe Reader 10.1.1 and it worked perfectly (finally).  HOWEVER, after about two weeks the same symptoms returned! 

  • OIM11gR2:Event handler goes into infinite loop

    Hi Experts,
    I have created an event handler where i am doing some functionality on execute function, that updates some UDF's when a user modifies value from the user modify form.
    I am calling the event hanlder on modify action of User entity
    Now the problem i am facing is that the eventhandler goes into infinte loop and modifies the values again and again without any break.
    Please help out, i am not able to kill the process unitill i restart the server :-(

    You can use something like below to get old values :
    HashMap<String, Serializable> interEvtDataMap = orchestration.getInterEventData();
              User newUserState = (oracle.iam.identity.usermgmt.vo.User) interEvtDataMap.get("NEW_USER_STATE");
              User oldUserState = (oracle.iam.identity.usermgmt.vo.User) interEvtDataMap.get("CURRENT_USER");
              newFirstName = (String)newUserState.getAttribute("First Name");
              oldFirstName = (String)oldUserState.getAttribute("First Name");     
    Thanks
    Suren

  • Most Http Requests going into endless loop

    Hello,
    We are currently using JSF 1.1 with Oracle ADF Faces and running on a JBoss 4.0.3 application server running Java 1.5. We have been developing a large application for months with the usual various small problems. This week we've had a large number of continuous users on the system and have experienced a phenomenon where our Http Request threads will one-by-one fall into endless loops consuming alot of resources. This has happened with up to 30 threads before we were forced to restart the server.
    All the threads are stuck in the same piece of JSF code. And looking at the thread dump stack traces, some are in the ApplyRequestValues Phase while others are in the RenderResponse Phase.
    Here are two dumps from two threads, each one stuck in a different phase but you can see they are hung at the same spot in the code, apparently in an endless loop because the CPU times for these threads just keep increasing. Like they are continuously reading from the map, endlessly.
    Thread: http-0.0.0.0-8080-1 : priority:5, demon:true, threadId:79, threadState:RUNNABLE, threadLockName:null
        java.util.HashMap.get(HashMap.java:329)
        com.sun.faces.el.impl.JsfParser.parse(JsfParser.java:15)
        com.sun.faces.el.ValueBindingImpl.getNode(ValueBindingImpl.java:66)
        com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:145)
        oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:211)
        oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:109)
        oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.decode(EditableValueRenderer.java:48)
        oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.decode(InputLabelAndMessageRenderer.java:34)
        oracle.adf.view.faces.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:937)
        oracle.adf.view.faces.component.UIXComponentBase.decode(UIXComponentBase.java:577)
        oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:676)
        oracle.adf.view.faces.component.UIXEditableValue.processDecodes(UIXEditableValue.java:269)
        oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
        oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
        oracle.adf.view.faces.component.UIXForm.processDecodes(UIXForm.java:53)
        javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
        javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
        com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        com.paetec.paonline.web.PAStatisticsFilter.doFilter(PAStatisticsFilter.java:68)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        com.paetec.paonline.web.PATransactionFilter.doFilter(PATransactionFilter.java:353)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        com.paetec.paonline.web.PALoggingFilter.doFilter(PALoggingFilter.java:102)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
        oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
        oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
        oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
        org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
        org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:150)
        org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        java.lang.Thread.run(Thread.java:595)
    Thread: http-0.0.0.0-8080-2 : priority:5, demon:true, threadId:85, threadState:RUNNABLE, threadLockName:null
        java.util.HashMap.get(HashMap.java:329)
        com.sun.faces.el.impl.JsfParser.parse(JsfParser.java:15)
        com.sun.faces.el.ValueBindingFactory.createValueBinding(ValueBindingFactory.java:44)
        com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:263)
        oracle.adf.view.faces.webapp.UIXComponentTag.createValueBinding(UIXComponentTag.java:357)
        oracle.adf.view.faces.webapp.UIXComponentTag.setProperty(UIXComponentTag.java:139)
        oracle.adfinternal.view.faces.taglib.UIXSelectItemTag.setProperties(UIXSelectItemTag.java:41)
        oracle.adfinternal.view.faces.taglib.core.input.CoreSelectItemTag.setProperties(CoreSelectItemTag.java:68)
        oracle.adf.view.faces.webapp.UIXComponentTag.setProperties(UIXComponentTag.java:126)
        javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1008)
        javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1027)
        javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:740)
        javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
        oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
        org.apache.jsp.main.financial_jsp._jspx_meth_af_selectItem_1(org.apache.jsp.main.financial_jsp:2221)
        org.apache.jsp.main.financial_jsp._jspx_meth_af_forEach_7(org.apache.jsp.main.financial_jsp:2197)
        org.apache.jsp.main.financial_jsp._jspx_meth_af_selectOneChoice_1(org.apache.jsp.main.financial_jsp:2171)
        org.apache.jsp.main.financial_jsp._jspService(org.apache.jsp.main.financial_jsp:859)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
        org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
        oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
        com.paetec.paonline.web.app.PAOViewHandler.renderView(PAOViewHandler.java:114)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        com.paetec.paonline.web.PAStatisticsFilter.doFilter(PAStatisticsFilter.java:68)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        com.paetec.paonline.web.PATransactionFilter.doFilter(PATransactionFilter.java:353)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        com.paetec.paonline.web.PALoggingFilter.doFilter(PALoggingFilter.java:102)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
        oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
        oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
        oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
        org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
        org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:150)
        org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        java.lang.Thread.run(Thread.java:595)

    I wanted to mention, when it occurs while rendering the page (as can be seen from the stack traces) that its occurring when rendering a tag. Here is one of the tags in my JSP page, specifically one where I think it could be hanging. Does anyone see anything fishy? This tag is an Oracle ADF tag and the "param" variable is a local loop variable. I jus recently added the " || !financialBean.profitAssistant.paDataEditable" part but I don't know if thats the cause of the problem. This does not occur everytime, it just seems like when there is a good amount of load on the system.
    <af:inputText simple="true"
         id=         "tlInputTextParam"
         value=      "#{param.textValue}"
         rendered=   "#{param.rendered}"
         disabled=   "#{param.disabled  || !financialBean.profitAssistant.paDataEditable}"
         styleClass= "#{param.styleClass}"
         inlineStyle="#{param.style}"
         columns=    "#{param.componentSize}"
         onchange=   "#{param.onChangeJS}"
         onclick=    "#{param.onClickJS}"
         onkeydown=  "#{param.onKeyDownJS}"
         onfocus=    "#{param.onFocusJS}"
         onblur=     "#{param.onBlurJS}"
         onmouseover="try{this.title='#{param.description}';#{param.onMouseOverValueJS}}catch(e){}"
         />

  • Installing tcltk2 package goes into infinite loop

    Hi
    I am trying to load the tcltk2 package downloaded from CRAN into my laptop that already has ORE 1.4.1 installed. However it is running into infinite loop with the following error output:
    Has anyone encountered this error before? Thanks!

    Which version(s) of R and tcl do you have installed on this system?
    For example, in R:
    R> version
    platform       x86_64-unknown-linux-gnu                   
    arch           x86_64                                     
    os             linux-gnu                                  
    system         x86_64, linux-gnu                          
    status                                                    
    major          3                                          
    minor          1.1                                        
    year                                                      
    month                                                     
    day                                                       
    svn rev        -99                                        
    language       R                                          
    version.string Oracle Distribution of R version 3.1.1  (--)
    nickname       Sock it to Me     
    ...and from the Linux shell:
    [slamonic@slc05elz ~]$ rpm -qa tcl
    tcl-8.4.13-6.el5
    Did you have a previous version of R on the system where you are seeing the infinite loop of errors?
    Sherry

  • How do I convert a .gif into a looping Quicktime .mov? I have Quicktime Pro

    I want to know how do I convert a .gif into a looping .mov? is this even possible?
    Thank you in advance for your reply to my Post,
    Sebastian

    Yes and no.
    It was easy to assign a "transparency" color in previous versions of QuickTime Pro. Just open the "Color Wheel", pick your color and QuickTime Pro would use it to mask your .gif file.
    In version 7 you only get to use a "mask" (useless on a motion graphic like an animated gif) or pick either a "level" of opacity (also shows the background).
    Open the Movie Properties window (Pro only) and highlight the video track.
    Click the "Visual Settings" tab and you'll notice "Transparency" options (lower left under the Mask).
    Older versions of QT Pro also allowed "blends" of this transparent color.
    I used to use a gaudy Pepto Bismol pink as my transparent color. Now I must be sure to include an alpha channel (black or white) in my imported images. This means your .gif must also either black or white as the transparent color.

  • Not entering into the loop

    Hi Friends,
    I have written a BDC program to upload salesorder data. But it is not entering into
    <b>LOOP AT ITAB and ENDLOOP.</b>
    Can anyone correct the following code.
    REPORT  SAMPLE NO STANDARD PAGE HEADING.
      TABLES ***********************************************
    TABLES : VBAK, "Sales doc header data
             VBAP, "Sales doc item data
             VBKD. "Sales doc business data
    INTERNAL TABLE DECLERATION ************************
    data : begin of itab occurs 0,
               VBELN LIKE VBAK-VBELN,   "Sales docu no
               AUART LIKE VBAK-AUART,   "sales doc type
               VKORG LIKE VBAK-VKORG,   "sales organization
               VTWEG LIKE VBAK-VTWEG,   "dist channel
               SPART LIKE VBAK-SPART,   "division
               VKGRP LIKE VBAK-VKGRP,   "sales group
               VKBUR LIKE VBAK-VKBUR,   "sales office
               KUNNR LIKE VBAK-KUNNR,   "customer no
               AUDAT LIKE VBAK-AUDAT,   "document date
               WAERK LIKE VBAK-WAERK,   "SD doc currency
               POSNR LIKE VBAP-POSNR,   "Sales doc item no
               PSTYV LIKE VBAP-PSTYV,   "Sales doc item category
               WERKS LIKE VBAP-WERKS,   "Plant
               MATNR LIKE VBAP-MATNR,   "Material No
               BSTKD LIKE VBKD-BSTKD,   "Customer po number
               BSTDK LIKE VBKD-BSTDK,   "Customer PO date
               PRSDT LIKE VBKD-PRSDT,   "Date for pricing and exchange rate
               ZTERM LIKE VBKD-ZTERM,   "Terms of payment key
               INCO1 LIKE VBKD-INCO1,   "incoterms (part1)
               INCO2 LIKE VBKD-INCO2,   "incoterms (part2)
           end of itab.
    data : i_bdcdata like bdcdata occurs 0 with header line.
    data : v_date(8).
    parameters : p_file like rlgrap-filename default 'C:\TEXT.TXT'.
    START OF SELECTION **********************************
    START-OF-SELECTION.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = p_file
       FILETYPE                      = 'DAT'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = itab.
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at itab.
      concatenate itab-bstdk4(2) itab-bstdk6(2) itab-bstdk(4) into v_date.
      refresh i_bdcdata.
      move v_date to itab-bstdk.
      perform mybdcdata.
    CALL TRANSACTION 'VA01' using i_bdcdata MODE 'A' .
    endloop.
    *&      Form  mybdcdata
          text
    form mybdcdata.
      perform mydata using : 'X' 'SAPMV45A' '0101',
                             '' 'VBAK-AUART' itab-auart,
                             '' 'VBAK-VKORG' itab-vkorg,
                             '' 'VBAK-VTWEG' itab-vtweg,
                             '' 'VBAK-SPART' itab-spart,
                             '' 'VBAK-VKBUR' itab-vkbur,
                             '' 'VBAK-VKGRP' itab-vkgrp,
                             '' 'BDC_OKCODE' '/00',
                             'X' 'SAPMV45A' '4001',
                             '' 'VBKD-BSTKD' itab-bstkd,
                             '' 'VBKD-BSTDK' itab-bstdk,
                             '' 'KUAGV-KUNNR' itab-kunnr,
                             '' 'BDC_OKCODE' 'T\02',
                             'X' 'SAPMV45A' '4001',
                             '' 'VBAP-POSNR' itab-posnr,
                             '' 'VBAP-PSTYV' itab-pstyv,
                             '' 'VBAP-MATNR' itab-matnr,
                             '' 'BDC_OKCODE' 'T\04',
                             'X' 'SAPMV45A' '4002',
                             '' 'VBKD-ZTERM' itab-zterm,
                             '' 'VBKD-INCO1' itab-inco1,
                             '' 'VBKD-INCO2' itab-inco2,
                             '' 'BDC_OKCODE' 'T\02',
                             'X' 'SAPMV45A' '4002',
                             '' 'VBAK-AUDAT' itab-audat,
                             '' 'VBAK-WAERK' itab-waerk,
                             '' 'VBKD-PRSDT' itab-prsdt.
                            '' 'BDC_OKCODE' 'T\07'.
    endform.                    "mybdcdata
    *&      Form  mydata
          text
         -->A1         text
         -->A2         text
         -->A3         text
    form mydata using a1 a2 a3.
      if a1 = 'X'.
        clear i_bdcdata.
        i_bdcdata-dynbegin = a1.
        i_bdcdata-program  = a2.
        i_bdcdata-dynpro   = a3.
        append i_bdcdata.
      else.
        clear i_bdcdata.
        i_bdcdata-fnam = a2.
        i_bdcdata-fval = a3.
        append i_bdcdata.
      endif.
    endform.                    "mydata
    waiting for ur reply...
    Thanks
    Raj

    Hi Rajkumar,
    Try this code i have changed in between.
    just cheking itab wether itab  contains records or not.
    if itab has no records check ur flat file.
    REPORT SAMPLE NO STANDARD PAGE HEADING.
    TABLES ***********************************************
    TABLES : VBAK, "Sales doc header data
    VBAP, "Sales doc item data
    VBKD. "Sales doc business data
    INTERNAL TABLE DECLERATION ************************
    data : begin of itab occurs 0,
    VBELN LIKE VBAK-VBELN, "Sales docu no
    AUART LIKE VBAK-AUART, "sales doc type
    VKORG LIKE VBAK-VKORG, "sales organization
    VTWEG LIKE VBAK-VTWEG, "dist channel
    SPART LIKE VBAK-SPART, "division
    VKGRP LIKE VBAK-VKGRP, "sales group
    VKBUR LIKE VBAK-VKBUR, "sales office
    KUNNR LIKE VBAK-KUNNR, "customer no
    AUDAT LIKE VBAK-AUDAT, "document date
    WAERK LIKE VBAK-WAERK, "SD doc currency
    POSNR LIKE VBAP-POSNR, "Sales doc item no
    PSTYV LIKE VBAP-PSTYV, "Sales doc item category
    WERKS LIKE VBAP-WERKS, "Plant
    MATNR LIKE VBAP-MATNR, "Material No
    BSTKD LIKE VBKD-BSTKD, "Customer po number
    BSTDK LIKE VBKD-BSTDK, "Customer PO date
    PRSDT LIKE VBKD-PRSDT, "Date for pricing and exchange rate
    ZTERM LIKE VBKD-ZTERM, "Terms of payment key
    INCO1 LIKE VBKD-INCO1, "incoterms (part1)
    INCO2 LIKE VBKD-INCO2, "incoterms (part2)
    end of itab.
    data : i_bdcdata like bdcdata occurs 0 with header line.
    data : v_date(8).
    parameters : p_file like rlgrap-filename default 'C:\TEXT.TXT'.
    START OF SELECTION **********************************
    START-OF-SELECTION.
    <b>perform upload_data.
    if not itab[ ] is initial .
    perform  bdc_populate.</b>
    <b>else.
    write :/  ' no records in itab '.
    endif.</b>
    <b>form upload_data.</b>
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    CODEPAGE = ' '
    FILENAME = p_file
    FILETYPE = 'DAT'
    ITEM = ' '
    FILEMASK_MASK = ' '
    FILEMASK_TEXT = ' '
    FILETYPE_NO_CHANGE = ' '
    FILEMASK_ALL = ' '
    FILETYPE_NO_SHOW = ' '
    LINE_EXIT = ' '
    USER_FORM = ' '
    USER_PROG = ' '
    SILENT = 'S'
    IMPORTING
    FILESIZE =
    CANCEL =
    ACT_FILENAME =
    ACT_FILETYPE =
    TABLES
    DATA_TAB = itab.
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>endform.</b>
    form bdc_populate.
    loop at itab.
    concatenate itab-bstdk4(2) itab-bstdk6(2) itab-bstdk(4) into v_date.
    refresh i_bdcdata.
    move v_date to itab-bstdk.
    perform mybdcdata.
    CALL TRANSACTION 'VA01' using i_bdcdata MODE 'A' .
    endloop.
    <b>endform.</b>
    *& Form mybdcdata
    text
    form mybdcdata.
    perform mydata using : 'X' 'SAPMV45A' '0101',
    '' 'VBAK-AUART' itab-auart,
    '' 'VBAK-VKORG' itab-vkorg,
    '' 'VBAK-VTWEG' itab-vtweg,
    '' 'VBAK-SPART' itab-spart,
    '' 'VBAK-VKBUR' itab-vkbur,
    '' 'VBAK-VKGRP' itab-vkgrp,
    '' 'BDC_OKCODE' '/00',
    'X' 'SAPMV45A' '4001',
    '' 'VBKD-BSTKD' itab-bstkd,
    '' 'VBKD-BSTDK' itab-bstdk,
    '' 'KUAGV-KUNNR' itab-kunnr,
    '' 'BDC_OKCODE' 'T\02',
    'X' 'SAPMV45A' '4001',
    '' 'VBAP-POSNR' itab-posnr,
    '' 'VBAP-PSTYV' itab-pstyv,
    '' 'VBAP-MATNR' itab-matnr,
    '' 'BDC_OKCODE' 'T\04',
    'X' 'SAPMV45A' '4002',
    '' 'VBKD-ZTERM' itab-zterm,
    '' 'VBKD-INCO1' itab-inco1,
    '' 'VBKD-INCO2' itab-inco2,
    '' 'BDC_OKCODE' 'T\02',
    'X' 'SAPMV45A' '4002',
    '' 'VBAK-AUDAT' itab-audat,
    '' 'VBAK-WAERK' itab-waerk,
    '' 'VBKD-PRSDT' itab-prsdt.
    '' 'BDC_OKCODE' 'T\07'.
    endform. "mybdcdata
    *& Form mydata
    text
    -->A1 text
    -->A2 text
    -->A3 text
    form mydata using a1 a2 a3.
    if a1 = 'X'.
    clear i_bdcdata.
    i_bdcdata-dynbegin = a1.
    i_bdcdata-program = a2.
    i_bdcdata-dynpro = a3.
    append i_bdcdata.
    else.
    clear i_bdcdata.
    i_bdcdata-fnam = a2.
    i_bdcdata-fval = a3.
    append i_bdcdata.
    endif.
    endform. "mydata
    Regards.
    Francis.

  • How To Convert  Aif Samples Into Apple Loops

    i have a aif library of samples i want to convert into apple loops. to function the same as apple loops and catagorize them. whats the best way to do this?
    thanks

    It doesn't know, just guesses based on length assuming common time, from what I have witnessed. So, if your loop is in 3 ( for example ) or the original tempo is far from 120-ish ( as in, much closer to 60 or 240 ) you will probably have to set those tags manually. Otherwise, determining tempo from length is a pretty simple calculation.
    J

  • Cisco_Webex_Add-on goes into a loop on install

    I am running mac book pro with OS X 10.9.5 (13F34). Webex prompts me to install Cisco_Webex_Add-on. After "successful" installation, it again asks me to install the same and keeps going into a loop. Unable to run webex session. Any help?

    Webex will open but the minute I try a one click meeting or to join or start a meeting it fails and tells me to install Install Cisco WebEx Add-On.App
    I have the same problem Install Cisco WebEx Add-On.App looks like it install then disappears and never loads keeps asking to redo the same install.

  • My G4 gets into a loop after installing Loepard

    After installing Leopard it worked ok. Turned off system. After start up it goes into a loop with the configuration assistant. I can log in, configuration assistant starts, i fill in everything what is required, come back to login and the same thing happens all over. What to do??

    http://www.apple.com/support/leopard/
    describes various problems/symptoms/solutions. Might help.
    Romelle

  • Insert into entering into infinite loop

    Hi All,
    I am using below query to insert into one of my table because of the tty_eff_dt date conversion its entring into infinte loop,
    INSERT INTO tablename
    (col1, col2 tty_eff_dt, col3,
    col4)
    SELECT val1, val2,TO_CHAR (TO_DATE(tty_eff_dt,'MM-DD-YYYY'),'YYYYMMDDHH12MISS') as tty_eff_dt ,
    val3,val4
    FROM tablename
    WHERE col1 = cursorval
    AND TO_CHAR (TO_DATE(tty_eff_dt,'MM-DD-YYYY'),'YYYYMMDDHH12MISS') = summ_statis_rec.tty_eff_dt
    AND col2 = cursorval
    AND col3= cursorval
    and when I remove the date conversion it works fine.
    I am using Toad.
    Please help me out.
    Best regards,
    Pavan

    Hi pavan,
    Please provide your table structure and sample insert scripts.
    There should be Comma between col2 and tty_eff_dt columns in your insert script.
    "INSERT INTO tablename
    (col1, col2, tty_eff_dt, col3, col3)..."
    Regarding
    AND TO_CHAR (TO_DATE(tty_eff_dt,'MM-DD-YYYY'),'YYYYMMDDHH12MISS') = summ_statis_rec.tty_eff_dtYou are converting CHAR to DATE and then again to CHAR, no need as the Time part is not present in tty_eff_dt.
    Directly writing
    AND tty_eff_dt = summ_statis_rec.tty_eff_dtshould work.
    Regards
    Imran

  • On log on my home page appears, goes into a loop, icons flash on and off and wont load

    HP Logo and the log on page load OK but when I log on to my home page it goes into a loop.  The screen and icons keep flashing as if the screen keeps reloading.  I cant do anything to stop it.

    This post describes exactly the problem I'm having.  I can access "HELP" (obviously) and by using "ctrl-alt-delete" I can assess Task Manager and see systems and services. On Services, many are marked "stopped." CPU power is variable, from 33% to 98%.  I don't understand any of this.

  • Itunes 7 crashing, 5th gen ipod put into restart loop

    Okay, I've uninstalled and reinstalled and still every time I update my ipod it itune 7 crashes and my ipod has not been put into a loop restart mode where only the apple icon comes on and then the thing turns off only to turn on and do the same again! I have 30GB 5th generation ipod and I am not having any luck, is there just a glitch in the itune that everyone is experiancing or is it just me?
    Help.

    Don't worry, I fixed this myself. I had to wipe my ipod and the start putting the music back on mannually. For anyone witht he same problem, don't lose heart. It can be fixed. Just put it in disk mode and keep wiping everything off it and then slowly experiment putting one song on at a time. Hopefully itunes 7 won't be a brat and freeze on you, but it'll work. I deleted everything from the ipod (went into my computer and opened all the files accessible to me, and deleted eveything in there. Renamed the ipod, and yeah...there we go. I hope it works for you too if you have a simular problem.

Maybe you are looking for

  • Satellite P30 - Blue screen after reinstall OS

    I just reinstall OS (Windows XP) on my older laptop Toshiba Satellite P30, but after first reboot (required to continue XP configuration) the DOS blue screen appear (System Has Recovered From Serious Error). The laptop cannot load Windows XP at all.

  • Creating EbXML from a stream

    I want to be able to create an EbXMLMessageImpl object from a stream, and I am running into errors. The following code makes teh EbXMLMessageImpl into a stream, and then I want to put the stream back into an EbXMLMessageImpl. (I am testing what I wil

  • Top of Verdana font missing in Safari 6

    Ever since upgrading to ML and Safari 6, everytime Verdana is featured on a webpage the top mm or so is missing. The same pages look fine in Firefox and show Verdana correctly. I've checked my fonts and I'm on using the default system Verdana font. T

  • Separate into print colours other than cmyk

    Hello. Here's somthing I'd like to try in various printing procedures that don't necessarily provide their own rip (silkscreen, risograph), so my question in general and in theory: Is there a way to seperate a colour image (rgb, lab, or even cmyk) in

  • Java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax err

    I tried putting the square brackets and still get the same error. endasil suggested that the last value being inserted is not looking at the java code. I had earlier put +array. Now I replaced that with +a where a is a string representation of array