Passing values with each program run

Hi ,
I have a program which runs 6 days a week and updates a table.Now my requirement is to assign a value to a field for each day when the program runs every day in the week.
<b>For first day - D
second day - D-1
sixth day - D-5.</b>
when the program runs after D-5 it should again start from D.
How can i achieve this please advise.
Regards
Pavan

Hi kumar,
1.
03-Jun-06     D
04-Jun-06     D-1
05-Jun-06     D-2
06-Jun-06     D-3
07-Jun-06     D-4
08-Jun-06     D-5
09-Jun-06     
10-Jun-06     D
11-Jun-06     D-1
12-Jun-06     D-2
13-Jun-06     D-3
2. this program will give output,
   based upon date input.
3.  just copy paste
report abc.
data : monday type sy-datum.
data : abc(3) type c.
data : diff type i.
DATA : DAYNR TYPE C.
parameters : mydate type sy-datum default sy-datum.
START-OF-SELECTION.
CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
EXPORTING
   DATE          = mydate
IMPORTING
  WEEK          =
   MONDAY        = monday
  SUNDAY        =
DIFF  = MYDATE - MONDAY.
DAYNR = DIFF.
ABC = 'D'.
IF DIFF >= 1.
CONCATENATE ABC '-' DAYNR INTO ABC.
ENDIF.
WRITE ABC.
regards,
amit m.

Similar Messages

  • Kill inactive sessions with no programs run it

    hi all,
    my database is 10gR2 with developer 6i
    the database have huge number of sessions with no programs running it like oracle form, some of those sessions stack in v$session table due to power failure.
    restart server solve the problem, but it is not efficient.
    is there any method to fined witch of database sessions is actually connect to the database and have application running it ?

    This script will give you the complete detail of Session , PID and Program which is running in dagtabase level.
    You can include the "STATUS" coloumn from v$session to get user status.
    Script is like this:
    set echo off;
    set termout on;
    set linesize 80;
    set pagesize 60;
    set newpage 0;
    select
    rpad(c.name||':',11)||rpad(' current logons='||
    (to_number(b.sessions_current)),20)||'cumulative logons='||
    rpad(substr(a.value,1,10),10)||'highwater mark='||
    b.sessions_highwater Information
    from
    v$sysstat a,
    v$license b,
    v$database c
    where
    a.name = 'logons cumulative'
    ttitle "dbname Database|UNIX/Oracle Sessions";
    set heading off;
    select 'Sessions on database '||substr(name,1,8) from v$database;
    set heading on;
    select
    substr(a.spid,1,9) pid,
    substr(b.sid,1,5) sid,
    substr(b.serial#,1,5) ser#,
    substr(b.machine,1,6) box,
    substr(b.username,1,10) username,
    -- b.server,
    substr(b.osuser,1,8) os_user,
    substr(b.program,1,30) program
    from v$session b, v$process a
    where
    b.paddr = a.addr
    and type='USER'
    order by spid;
    ttitle off;
    spool off;
    Save this script with your desire name and run in Database.
    Mukesh

  • When I run activity monitor with no programs running my dock shows fluctuating usage...between 4% up to 20%.  Random figures that come and go with corresponding CPU usage.  A little help?

    My activity monitor show random and fluctuating CPU usage at the Dock site with absolutelyno programs running.  %'s fluctuate between 3 - 20 and they pretty much come and go.  What might be causing this?

    There's a lot of background processes running that aren't documented as Apps as such. And some of them are the Time Machine backups, Spotlight searches, all kinds of small little bits of maintenance caches, there's a lot going on. So it's not completely out of the question that this is 'normal' for a Mac. If it were 50% or more I would be concerned but if it spikes up to 20% for a second or two you are probably not in any trouble of any kind.

  • How toStore the Date Variable and pass it when the program runs next time??

    HI All,
    My JDBC program basically needs two command line args. Rabge_Start_Dt and Range_End_Dt. for ex:
    2001-05-31 and 2001-06-01 . And my porgram should run every day. Next day the date range will be 2001-06-01 to some date. It means I have to store some how the range_end_dt and pass it as range_start_dt when my program runs the next day.
    Problem:
    How can I store the Data variable and pass it as an argument to my porgram when It runs next time. Every time my pogram runs It should pick the range start_dt (==range_end_dt of the previuos run) and end_dt I have to go and query some other data base and pass that value to it.
    Thanks in advance!!!!

    save the value in a file, then read it back in each day. Similar to when a process needs a PID.
    -blhqctz

  • Value of New iBook G4 Value with extra programs???

    I wanted to know if anyone could tell me how much I could get for my iBook G4 its about 4 months old, the extra programs it has are:
    -Microsoft Office 2004
    -Adobe Creative Suite 2-Illustrator CS2, In Design CS2, Go Live CS2, Photoshop CS2, Version Cue CS2, and Adobe Bridge.
    -plus the regular programs that came with the computer.
    I wanted to sell it and put the money toward a new PowerBook G4 Titanium for my school stuff, I paid a lot of money for the Adobe program and I wanted to know the value of the computer with the programs installed on the computer. Would I be able to still install Adobe to my new computer without any problems? If anyone knows please let me know. Thanks.
    ~KrYsTaL~

    For the iBook, check on eBay and see what others are going for. You can also check Apple's web page for refurbished equipment and see what they are going for there. Between the two you should be able to figure out what the market for it is.
    As for the software. No you can't sell the software installed on the computer and then install it on your new one. You have two choices, delete the software from the computer and keep it for your new PowerBook or provide the buyer with the media, licenses, and documentation when you sell it. You really have to dig through each license agreement to find out what you can and can't do with it. If you got any of the software through educational discounts, there may be additional limitations as to what you can do with it.

  • JSF2 : Problem passing values with f:setPropertyActionListener

    Hi,
    I'm a JSF newbie, and I'm in front of a weird problem on a JSF2 / Glassfish3 project. I'm working on GlassFish Server Open Source Edition 3.1 (build 43) with Mojarra 2.1.0 (FCS 2.1.0-b11).
    I'm using a commandLink to pass values from a page to a backing bean. This example works (here is only the relevant code) :
    user.xhtml :
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="sublayout.xhtml">
      <ui:define name="maincontent">
        <p><a name="projects"><h:outputText value="Projects" /></a></p>
        <p><h:outputText value="#{userController.user.login} has initiated the following projects:" /></p>
        <h:dataTable value="#{userController.getProjects()}" var="p">
          <h:column>
            <h:form>
              <h:outputText value="#{p.id}: " />
              <h:commandLink action="#{projectController.doGetProject()}">
                <h:outputText value="#{p.title}" />
                <f:setPropertyActionListener value="#{p.id}" target="#{projectController.projectId}" />
              </h:commandLink>
            </h:form>
          </h:column>
        </h:dataTable>
      </ui:define>
    </ui:composition>
    </html>userController.java:
    // package, imports...
    @ManagedBean(name = "userController")
    @RequestScoped
    public class UserController {
      @EJB
      private UserServiceEJBLocal userServiceEJB;
      private FacesContext ctx = FacesContext.getCurrentInstance();
      private User user = new User();
      private long userId;
      private String password;
      private String passwordConfirmation;
      public String doGetUser() {
        try {
          user = userServiceEJB.findById(userId);
        } catch (ObjectNotFoundException e) {
          ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "User not found" + userId, "User not found : " + e.getMessage()));
          return null;
          return "user.faces";
      public ArrayDataModel<Project> getProjects() {
        return new ArrayDataModel<Project>(user.getProjects().toArray(new Project[user.getProjects().size()]));
      // Getters and setters
    }projectController.java:
    // package, imports...
    @ManagedBean(name = "projectController")
    @RequestScoped
    public class ProjectController {
      @EJB
      private ProjectServiceEJBLocal projectServiceEJB;
      FacesContext ctx = FacesContext.getCurrentInstance();
      private Project project = new Project();
      private long projectId;
      public String doGetProject() {
        try {
          project = projectServiceEJB.findById(projectId);
        } catch (ObjectNotFoundException e) {
          ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Project " + projectId + " was not found", e.getMessage()));
          return null;
        return "project.faces";
      // Getters and setters
    }The proble occurs on the XHTML page below :
    project.xhtml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="sublayout.xhtml">
      <ui:define name="maincontent">
        <h:form>
          <h:commandLink action="#{userController.doGetUser()}">
            <h:outputText value="#{projectController.project.author.login}" />
            <f:setPropertyActionListener value="#{projectController.project.author.id}" target="#{userController.userId}" />
          </h:commandLink>
        </h:form>
      </ui:define>
    </ui:composition>
    </html>The commandLink syntax seems to be the same as the one provided above, but when I test this for, I get an IllegalArgumentException from Glassfish. Here it is, from the Glassfish server.log :
    [#|2011-08-22T11:15:11.462+0200|WARNING|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=95;_ThreadName=Thread-1;|/project.xhtml @32,42 target="#{userController.userId}": Can't set property 'userId' on class 'org.creagora.server.ejb.managed.UserController' to value 'null'.
    javax.el.ELException: /project.xhtml @32,42 target="#{userController.userId}": Can't set property 'userId' on class 'org.creagora.server.ejb.managed.UserController' to value 'null'.
         at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:139)
         at com.sun.faces.facelets.tag.jsf.core.SetPropertyActionListenerHandler$SetPropertyListener.processAction(SetPropertyActionListenerHandler.java:206)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
         at javax.faces.component.UICommand.broadcast(UICommand.java:300)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
         at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.IllegalArgumentException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at javax.el.BeanELResolver.setValue(BeanELResolver.java:381)
         at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
         at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:197)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:286)
         at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
         ... 35 more
    |#]So I wonder : what makes the first example work, that fails in this one ? Where does this 'null' value come from ? I tested every value (project, author, author id), everything is correct. But for some reason, the projectController.project.author.id is not passed to the userController.userId.
    If I try to replace
    <f:setPropertyActionListener value="#{projectController.project.author.id}" target="#{userController.userId}" />by this (obviously incoherent but syntically correct)
    <f:setPropertyActionListener value="#{projectController.project.id}" target="#{userController.userId}" />I don't get the IllegalArgumentException anymore, but the value is still not passed, and the value of userController.userId is never updated, and remains set to 0.
    But if I hardcode a valid value :
    <f:setPropertyActionListener value="1" target="#{userController.userId}" />It works...
    I can't understand why a 'null' value appears from who knows why, given that the only value passed are of long type.
    Can you help me ? It's getting frustrating, and I didn't find any help on Google so far...
    Thanks!
    Xavier
    Edited by: 880733 on 22 août 2011 04:04

    Ok, I have a little more time now.
    You ask how the value can be null when the property is a long. What is happening is that something in the chain is null, e.g. the author is not set on the project. (Although usually you get an exception with that kind of thing.) The EL resolver is actually not really part of JSF, it is a separate library. Furthermore it is weakly typed so it doesn't know what type of thing projectController.project.author.id is until it evaluates it. If something is null along the way, there is no way for it to know whether the end result should have been a long, a Long, a String or anything else.
    You asked how to pass values without setPropertyActionListener. It is certainly possible. In fact, I would not be surprised if my entire application did not use setPropertyActionListener. Let's start with the first case. In that situation you were using a dataTable. The customary thing to do is to bind the dataTable to a UIData property in a managed bean. Then, in your action method, you can invoke UIData.getRowData() and get the object instance associated with the row in the table that was activated by the user.
    In your second example it is a little difficult to appreciate everything going on without more context but I'll just guess at what I don't know. I'm going to assume you have a simple page here. On the request that generates this page, projectController.project.author.id is known. I imagine the problem is that this is in request scope, causing projectController.project.author.id to be forgotten on the next request. The simplest solution is to store the project somewhere in session scope. I would recommend against putting the Controller classes themselves in the session scope.  Instead create a set of beans for session scope and inject them into the Controller classes.
    There are many other ways to skin the same cat. Many people object to over-using session scope. So you could store something small like just the id in the session. Or you could pass the id using h:inputHidden. Or you could use Tomahawk's s:saveState.
    HTH

  • Passing value from a program to sap script ?

    Hello Friends,
    While defining the header,footer or address window to assign a text we goto text element and assign it.
    Now is there any way where we can pass the value from the program.
    Eg : I want to pass the value for address from the abap editor to the address window in a sap script instead of assigning the address using the text element in sap script. Is it possible?
    Regards,
    Ranjith

    You can have subroutines in script.
    if you have any fields used to get address then using that fileds you can retrieve the address by defining subroutines in your form
    Reward points if useful.
    Regards,
    Nageswar

  • Passing value from one program to another

    Dear All,
    I have to pass one value from one program to the standard selection screen .But there is no paramter id .how can i pass the value.
    Regards,
    Magesh

    Hi Magesh,
    See the help for these
    - EXPORT obj1 ... objn TO DATA BUFFER f.
    - EXPORT obj1 ... objn TO MEMORY.
    - EXPORT (itab) TO ... .
    - IMPORT obj1 ... objn FROM DATA BUFFER f.
    - IMPORT obj1 ... objn FROM MEMORY.
    - IMPORT (itab) FROM ... .
    Important thing is that these work correct in same session only.
    awrd points if useful
    Bhupal

  • Arch loads with many programs running (from past shutdown)

    Hey, i remember this one time i was working on a paper and I think I shut down with all my programs running (i think i was in a hurry). Since then, I've booted up many times and every time I do, all those programs run at startup. I'm unsure of where I can stop these programs from running (perhaps I can simply change their locations so they can't run) but does Arch have some kind of similar program from Windows called "msconfig" which allows you to control which programs run at startup?
    Thanks.

    "Autoloading" has nothing to do with *arch* as such, it's a feature of some desktop environments, like xfce, gnome or kde. You need to look there. tigrmesh said how to do it with xfce. I think gnome has something like "session manager" in its system menu - check that one. I'm sure KDE has something similar, you should go through the control center.

  • Passing values with HttpsURLconnection and reading response back

    i need to communicate with a server url using HttpsURLConnection and pass 2 strings and read the response back.
    how can i make this using HttpsURLConnection object.
    HttpsURLConnection.setDefaultSSLSocketFactory(sslcontext
                        .getSocketFactory());
    HttpsURLConnection https = null;
    https = (HttpsURLConnection) new URL(host).openConnection();// host url of the server program
    https.setRequestMethod("POST");
    https.setDoInput(true);
    https.setDoOutput(true);
    https.setRequestProperty("IP", "10.900.10.2");// i am not sure how to pass two strings.
    https.connect();
    // have to read response back from a server program
    please help,
    thanks in advance.

    You can get around this by using javascript. That way your parent document is not getting refreshed.
    Create form inputs in the parent document for each of the variables you want to gather from the popups.
    You can then fire a function in the parent window when the user clicks a button in each popup that sends the values to the parent window. Just use:opener.funcname(var1, var2, var3...);Create the function funcname() in the parent window that takes each value to be added and sets the form inputs appropriately. You may want to use a different function for each popup window, like submitPopup1, submitPopup2 and so on.
    You can then make the last popup submit the form in the parent window:
    opener.document.FORMNAME.submit();Where FORMNAME is the name of your form.

  • I think I downloaded a fake Firefox update from supportfirefox.perl.sh - ever since I have had I/E popups and now audio playing with no programs running. What do I do?

    I use the Firefox Google as my homepage. I searched for something and it went to the "you need to update your firefox" so I did...then I realized that it wasn't processing the update the way a normal update from Firefox would. Ever since then, I have had Internet Explorer PopUps and now I have audio running even though there is no program for it to be running on...like a webpage running in the background.

    Do a full scan with your Anti-Virus application.
    Then do scans with different Malware applications.
    Install, update, and run these programs in this order. '''''(Not all programs detect the same Malware.)''''' They are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • ITunes 7 not functioning with other programs running

    I used to have Itunes playing while i would play games on my computer but with the new itunes update to 7.0 which i had to do because i just got a new 5th gen ipod with its own set of problems, i now find that when i start another program which is taking about 55,555 mem usage the songs start to skip, jump, and have a static noise sound.

    Rolling back to 6 won't fix every thing, I rolled back..iTunes seams to work but programs that use to work using quicktime still have the jittery, jerky sound affects.
    It was a Reason Ask DVD Video (uses QT.7 that ran fine up until iTunes 7 was installed) run the dvd and any narration gets screwed up when you roll over the application button rollovers, so it has basically stuffed up the system sound, then the video has a hard time trying to catchup.

  • Reduce Question Point Value with Each Guess

    Hello All,
    I'm attempting to create a quiz in Captivate 5.5 with 26 multiple choice questions. The catch is that the more attempts it takes to get the right answer, the less points they earn for that question. For instance, if they come to the question and get it right on the first try they get 4 points. If they get it on their 2nd guess they get 2 points. If they get it on their 3rd guess they get 1 point. After that they earn 0 points.
    I also need to send SCORM results to an LMS. All I need in those results is the total points scored.
    I've thought of a few different ways to attack this, but neither is very elegant. The first was to create Possible Points and Earned Points variables. The Possible Points variable was reduced by the appropriate amount after a wrong guess and added to the Earned Points variable and reset to 4 after a good guess. This would have worked, except I didn't know how to have the project report the Earned Points variable to the LMS instead of (or in addition to) the system variable cpQuizInfoPointsscored.
    The other way was to make as many duplicate slides for each question as there were possible answers. The only thing different on each slide would be the question point value. The person gets it wrong, they go to the next slide, which is worth less, rinse, repeat. The person gets it right, they jump to the first slide of the next question. This would work, using the system variables, but editing any questions later would be cumbersome.
    This is my first captivate project, so hopefully I am just missing some easy setting. I couldn't find anything in my many searches, though. Any gurus have a thought on how to do this?
    Thanks in advance for the help!

    The problem is that the score for every question slide, or for every scored object (like a button) will be added to the total score. You can perfectly store the result in a user variable, but the system variable cpQuizInfoPointsscored is a read-only variable. I have been trying to explain this issue in a blog post:
    Report Custom Questions - part 1
    Lilybiri

  • Passing values to include program

    HI,
    Need help on following.
    in my program A :
    DATA: BEGIN OF it_qlqua OCCURS 0.
            INCLUDE STRUCTURE lqua.
    DATA:   altbatch TYPE ausp-atwrt,
            v_verme TYPE kwmeng.
    DATA: END OF it_qlqua.
    INCLUDE zprogramB.
    perform check_lqua tables it_lqua.
    Program B:
    DATA: BEGIN OF it_qlqua OCCURS 0.
            INCLUDE STRUCTURE lqua.
    DATA:   altbatch TYPE ausp-atwrt,
            v_verme TYPE kwmeng.
    DATA: END OF it_qlqua.
    DATA: v_skzua1 TYPE lagp_skzua,
          v_skzue1 TYPE lagp_skzue,
          v_skzsa1 TYPE lagp_skzsa,
          v_skzse1 TYPE lagp_skzse,
          v_skzsi1 TYPE lagp_skzsi,
          v_lvorm1 type mch1-lvorm,
          v_zustd1 type mch1-zustd,
          v1_skzue1 TYPE lein_skzue,
          v_zskzua1 TYPE lein_skzua,
          v_spgru1 TYPE lvs_spgru,
          v_statu1 type lein-statu.
    FORM zcheck_lqua tables p_it_lqua structure IT_QLQUA.
    ENDFORM.
    Error I get :
    when trying activate :
    statement is not accessible !!
    May i know what have i done wrong?
    What is the correct way to pass internal table to a include file?
    Thanks

    Hi,
    I have made it into simple test but it still fail ?
    report ztest_hl7.
    include zallocation_check2.
    DATA: num  TYPE i VALUE 5,
          fac  TYPE i VALUE 0.
    PERFORM fact USING num CHANGING fac.
    WRITE: / 'Factorial of', num, 'is', fac.
    *&  Include           ZALLOCATION_CHECK2
    FORM fact
           USING f_num TYPE i
           CHANGING f_fact    TYPE i.
      f_fact = 1.
      WHILE f_num GE 1.
        f_fact = f_fact * f_num.
        f_num = f_num - 1.
      ENDWHILE.
    ENDFORM.
    error : statement is not accessible - refer to row perform fact ...

  • Too much RAM usage with no programs running

    Macbook Pro-late 2009 model
    Snow Leopard 10.6.8
    4 gig RAM 1067 MHz DDR3
    2.53 GHz Intel Core Duo 2
    Bootcamp
    VMWare 3.13, Windows 7
    Even w/o Windows running and VMWare completely shut down, something is still gobbling up resources.  See Image.  My green resource aren't even at half of the memory.  I used to run Win XP Pro SP2 (the only decent windows OS), and my green resources barely got beyond half even with a trading program, QB for Mac and safari running on the Mac side.  Now, even if I completely shut down the windows side, including VMWare, I still don't have the same resources.  What gives?  I suspect Windows 7 is getting bigger and bigger (just like the other Win OS' do every time you need to update).  Perhaps a migrated virus?  Both the Apple store and the Microsoft store had no good answers, other than the insipid suggestion of re-installing the OS.  Any big brains in here have any ideas?  I should note that the Microsoft store gave me Windows 7 pro for free since they screwed up the update on XP (despite me telling them NOT to load service pack 3).  I was skeptical of Win 7, and frankly my computer has not performed as well since.  I only use Windows because some of my trading programs only run on Windows, and Quickbooks for Mac still *****.  My QB 2004 runs better and is easier to use even now, and I am one of the first 1000 (possibly 100 people to buy QB nearly 25 years ago).  Oh, and safari is constantly crashing.  I would rather just use the Mac 100% of the time, but unfortunately, being in finance and accounting, that is not an option until Intuit and the like stop s*cking Microsoft's you know what, and make better programs for Mac.  Mac hardware is way superior and prettier, and the OS much smoother imo, so please help.  Thank you.
    Grumpy Middle-aged Mac User

    There is nothing necessarily wrong with your Mac's use of system resources. Inactive "blue" memory may just as well be considered "green" in that is is available to any process that requires it. It is merely given that status in the event a process that previously used that memory requires it again. In that event, it's available right away. Otherwise, whatever it's used for would have to be created again, wasting time and degrading your Mac's performance.
    For a completely correct perspective regarding the memory pie chart, think of "inactive" as essentially "free", and "free" as a resource you paid for that is going completely unused and wasted.
    You will then conclude you really aren't using that much RAM. You aren't even using half of it. What you are observing is most likely the consequence of websites becoming ever more resource-hungry. That so-called progress will never be reversed, and remember that websites are created by programmers with $5000 workstations with 64 GB RAM and practically unlimited bandwidth. Their job is to please their bosses who have $10000 workstations and are easily impressed by flashy animations and other nonsense that others consider wasteful and distracting.
    Oh, and safari is constantly crashing.
    That is the only thing that should concern you. Safari shouldn't do that, so when it does next time post the crash report. Don't post anything below "Binary Images" - it's not useful.

Maybe you are looking for