Top 10 report

How do I create a top ten report base on the formular sum on the grouping?
For example: I have a report with the field AMOUNT in the detail.
a CS_amount(sum of the AMOUNT) is on the group.
How do I sort descending for the top ten, the largest amount first.
Thanks

Hi Shaun,
This is not a simple grouping by the field. it is grouped by a formular.
For example this is my formular:
if :value='Seller' or :value='Lessor' then customer_name
elsif ;value1='Seller' or :value1=:'Lessor' then customer_name1
then I calculate the sum base on the group and sorted by descending.
Is there any function to do top ten in oracle report 91?

Similar Messages

  • Module Pool+TOP+report prog,, Shuld I move to TEST individually?

    Hi Experts,
    I enhanced one Module Pool Prog., which contains 3 parts i.e.
    1 - Main Module Prog.
    2- Top include
    3- One error report prog. i.e. executable prog.
    So,
    Now, I need to move this main Module prog. to TEST box,
    So,
    1) I guess I need to move to TEST box, all 3 individually, in the order of TOP , ERROR report prog., Main Module pool prog.
    2) Or if I move the Main Module pool to TEST, automatically, SAP picks the rest 2 items, even though I did not moved manually?
    thanq.

    This is depends on ur transport request ,did you save all programs in one request,if so it will go automatically.
    if you create transport request indiviudlly ,then need to transport one by one.
    anyhow check in se10 ->main request - sub request -> check ur objects.

  • Conky and top reporting differently

    Here are some screen caps of conky and terminal running top command. The part I am interested in is the processes, one says 85 while the other says 105?
    I question this because when I had gnome-system-monitor installed it would always show gnome-keyring-daemon as being open multiple times when I would logout and log back in. But, a fresh reboot would fix the issue.
    what exactly is going on? How can I keep uninstalling things and when I reboot my processes in conky keep going up and up?
    I am now running xfce and trying to rid myself of things I don't need like gnome based programs. The only thing stopping me from ridding myself of this gnome-keyring is GDM? But what login manager would I use if I don't use GDM, Any suggestions?
    How do I post pictures?
    Last edited by jacko (2007-12-03 17:37:30)

    jacko wrote:I am now running xfce and trying to rid myself of things I don't need like gnome based programs. The only thing stopping me from ridding myself of this gnome-keyring is GDM? But what login manager would I use if I don't use GDM, Any suggestions?
    I use Xfce and Slim.  Search the wiki for slim.

  • Form / Report on a single page

    Hi I'm new to APEX and I have been working on creating what I think to be a simple data entry form with a report that must appear on the same page. I've read tutorials and searched the forum. I'm very frustrated.
    Here's the details.
    APEX 3.0
    Create two regions-
    Form Region (on top) -
    Report Region (bottom)- displays results from data entry and if possible show existing records.
    The page is based on a table - Candidates
    Id_record (pk - auto generated)
    RFP_NO
    F_Name
    L_Name
    Project
    Selected (boolean)
    Contractor_Name
    The user will enter a rfp_no and other candidate info as in the table above.
    Click Add (Submit button - I have in the form region)
    The new record is inserted into the table (this works)
    The record does not appear in the report region.
    The user may enter numerous candidates related to the same rfp number, I would like all candidates related to the rfp_no to appear in the report region.
    On a related note I would like the page to display in the report region all records related to the rfp_no that may have been entered previously. so I need to find a on load process, I think.
    The report region needs to be be editable as well, I've seen example of this as two separate pages but not one.
    Any assistance would be appreciated.
    Moe

    Varinder,
    I apologize for the delay in my response. I was temporarily put on another project.
    Yes there is a where clause. Yes it refers to the rfp_no on the same page.
    But the RFP_NO is not the PK.
    Yet, your post pointed me in the right direction. I needed a valid sequence and trigger to get the expected results. Thank You so much!

  • How can a classic report be filtered using one select item and dynamic action?

    APEX 4.2.1
    DB 11g
    I have a page with 4 reports on it.  The top report is an interactive report and the following 3 are classic reports.  The users would like to be able to use a select list to filter the 3rd report by PO line number without refreshing the entire page.
    After verifying that the report is set to allow partial refreshes, I took the following steps
    1.  Created a PO Line select item (p_po_line_select) in the same report region
    2.  Added p_po_line_select to the report query
    3.  Created a dynamic action on p_po_line_select with 2 true actions
         1.  Set value (p_po_line_select)
         2.  Refresh report region.
    The Set Value dynamic step was not working; I would get an out of memory error at line 2, memory stack error, or the value did not get saved to session state depending on the settings I selected.  I was able to get it working with the following set:
    1.  Action = Set Value
    2.  Set type = PL/SQL Expression
    3.  PL/SQL Expression = :p_field_does_not_exist
    4.   Page items to submit = blank
    5.  Selection Type = Item(s)
    6.  Item(s) = p_field_does_not_exist
    p_field_does_not_exist does not exist as a page or application item which leads me to believe that this is a bug and I am just lucky that it worked.  I would rather know how to do this properly.  Can someone please provide a link to a working example of how this should be done or state which settings are wrong?
    I was able to reproduce the issue in the following app
    http://apex.oracle.com/pls/apex/f?p=4500:1000
    workspace = occam
    user  test/apex1
    Thanks,

    STOP POSTING DUPLICATE THREADS.
    If you have additional information, continue the discussion by posting it as a follow-up on the original thread: What is the proper way to filter classic report using just an LOV select field with dynamic action?

  • Drill through to another report with bins in OBIEE 11g

    Hi Everyone,
    We have a specific scenario that is as follows:
    Bar chart with 3 bars: '0-30', '31-60' and 'other'
    these bars repsent the number of people who are in that age bucket.
    This was accomplished by taking the peron's Age (a dimension with an age column) and using the 'bin' option in obiee 11g answers.
    When the user clicks on one of the bins in the bar chart (e.g. 0-30), it should navigate to another report which contains details (a table) of ONLY the people who are in that age bucket.
    In order do this I created the same 'age bucket' in the drilll through report and set the field as prompted.
    This works in OBIEE 10g but in OBIEE 11g when I click the 'bin' (e.g. 0-30) on the top report, it navigates to the other report via action link and displays ALL of the people, not just the people in the bucket 0-30.
    Can anyone advise?
    P.s. if I remove the bin for the age bucket, and display the actual age, the drill down works fine. I think the issue is specific to the bin feature. I am using OBIEE 11.1.1.6.4

    Just confirmed with Oracle this is bug 13996544 . FYI just incase it helps anyone

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form & Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • Report Navigation

    hello All,
    I have a complex requirement. Here is the scenario.
    Report contains Account type-A and Account Type_B along with other measure columns
    I need to pass the Account type B value to another report. But the problem here is I need to just display Account A and pass the corresponding Account B to the navigated report.
    when i hide the Account B in the top report the value is not passed to the corresponding bottom report.
    Using a case statement in the bottom report is not feasible because i ve multiple account b's for account A
    So please advice. I am thinking of Go URL navigation will that work in this scenario??
    Thanks
    Prash

    You should be able to pass the hidden column.
    e.g.
    ’<a href=http://localhost:9704/analytics/saw.dll?GO&path=/shared/Dynamic%20GO%20URL/Report2&Action=Navigate&P0=2&P1=eq&P2=table.AcctB&P3=’||table.AcctB||’ style=”text-decoration:none;”>’||CAST(table.AcctA AS CHAR)||’</a>’

  • Top and stuck processes

    Once in a while my server won't wake up the display after sleeping it. I'm left with a black screen and no way to use the system.
    If I log in with SSH from another Mac on the LAN, everything seems fine, except that top reports that 1 process is "stuck." But it won't tell me which one! Isn't there some way to identify the stuck process and kill it?
    Also, issuing a reboot command remotely doesn't work. The server screen wakes up (displaying the screen saver image) but sits there forever with the little "gear" thingie going round and round.

    Hi Robert,
       You can use the following command to view all processes:
    ps -auxww
    In the STAT column is the state of the process. An explanation of the letters in that field can be found in the ps man page. From "man ps":I   Marks a process that is idle (sleeping for longer than about 20 seconds).
    R   Marks a runnable process.
    S   Marks a process that is sleeping for less than about 20 seconds.
    T   Marks a stopped process.
    U   Marks a process in uninterruptible wait.
    Z   Marks a dead process (a ``zombie'').   You don't put the whole system to sleep, do you? If you do, it shouldn't even be able to serve anything. Don't put a server to sleep. You can sleep the display but I don't recommend even spinning down the drives.
       If you are talking about the display, that's doubtless just a symptom. Without knowing the processes having problems, it isn't possible to know what is wrong. Of course even a listing might not be sufficient to know what's going wrong but it's probably necessary.
    Gary
    ~~~~
       I'd horsewhip you if I had a horse.
             -- Groucho Marx

  • Creating a 3 line graph report

    Need help with creating a 3 line graph  - need to be able to plot 3rd line of data  without displaying a legend and use a dynamic tag label for the line. Thanks

    You can create two graphs with the same horizontal (and if necessary vertical) scale, and make them occupy the same space on the report, one under another.
    On one report, put your 3rd graph line, and remove any visible text, gridlines etc, so you basically just have the axes lines and the graph line.
    On the top report, make the background transparent, so both graphs are visible (Chart Expert->Options->Transparent Background).

  • How to find the reports

    Hi all ,
    Can you please any one tell me , i want findout the Top 20 reports by using by using Tcode :st03.
    is it possible to find out the top reports by using ST03 , PLEASE EXPLAIN ME HOW TO FIND THIS ONE.
    Thanks
    KK

    Hi,
    I believe you can approach in the following manner.
    Goto ST03 Transaction.
    In the upper left corner Change the Tab "Change User Mode" to Expert User.
    Goto BW System Load
    Double click on the Month.
    You will get one submenu in the bottom left hand side of the page.
    Double click on under Analysis Views -> Reporting -> ranking lists.
    In the report page, you can see a drop down for Number of entries.
    Select Top N from there. A pop up window comes up. Put 20 there. and execute.
    n There you go ..
    hope that helps..
    Regards...

  • CROSS TABLE in APEX

    Hello!
    I have to develop student attendance application in Oracle APEX.
    I have 2 databases. First contain personal info of all the students and class ID (of each of them).
    Second contains column for student_ID from first table (which is foreign key), the date and the comment, when combination of student_ID and date is set as unique, so no one can be attended at lecture twice a day.
    (Of course both tables have their own ID primary key).
    For example:
    first table
    ID | Name | Address | Class ID
    1 | Alex | USA | Group A
    2 | John | Canada | Group A
    3 | Peter | France | Group B
    second table
    ID | first_table_ID | date | comment
    1 | 1 | 1-aug-09 | attended
    2 | 2 | 1-aug-09 | skipped
    3 | 3 | 1-aug-09 | lateness
    4 | 1 | 3-aug-09 | attended
    5 | 2 | 3-aug-09 | attended
    6 | 3 | 3-aug-09 | attended
    So, what I need, is build report table for each of classes, i.e. lecturers choose the class (from list of values for example), and see table like this (for class A, in this case):
    ***** | 1-aug-09 | 3-aug-09
    Alex | attended | attended
    John | skipped | attended
    How can I do it?
    I experimented with PIVOT command and other stuff, but every time i get different errors in query builder.
    Do I need build some data view or some new table from existing ones?
    What will be query commands?
    THANKS.
    Edited by: mindhunter on Aug 9, 2009 4:32 AM
    Edited by: mindhunter on Aug 9, 2009 4:34 AM

    Hi Mindhunter - and, welcome!
    I actually found the new PIVOT functionality annoying - as (A) you have to hardcode the column headings and (B) you have to use an aggregate function to populate the columns.
    However, it is possible to handle this by using a "SQL Query (PL/SQL function body returning SQL query)" report. In this way, you can build up a SQL query as a string and then get Apex to run it for you.
    To create this type of report, create a normal SQL Query report using SELECT 1 FROM DUAL. When the report has been created, edit it and change the type from "SQL Query" to "SQL Query (PL/SQL function body returning SQL query)".
    Then, in the Region Source, you can enter in the PL/SQL that you need to construct the SQL statement. Here is an example using the DEPT and EMP tables:
    DECLARE
    vSQL VARCHAR2(1000);
    vDEPT VARCHAR2(1000);
    vSEP VARCHAR2(2);
    BEGIN
    vDEPT := '';
    vSEP := '';
    FOR d IN (SELECT DEPTNO, DNAME FROM DEPT ORDER BY DNAME)
    LOOP
      vDEPT := vDEPT || vSEP || d.DEPTNO || ' as "' || d.DNAME || '"';
      vSEP := ', ';
    END LOOP;
    vSQL := 'SELECT * FROM (SELECT ENAME, ENAME ENAME2, DEPTNO FROM EMP) PIVOT (MIN(ENAME2) FOR DEPTNO IN (' || vDEPT || '))';
    RETURN vSQL;
    END;In this example, I have to loop through all the departments on the DEPT table and make a list of the DEPTNO and DNAME values. The DEPTNO value is the one also used on the EMP table, and the DNAME value is the one that I want as column headings. When the PIVOT is being performed, the DEPTNO values are the ones that are used to determine what appears in each column. Also note that I've had to duplicate the ENAME column (giving the second instance of this a column alias of ENAME2) - I need to do this to get the ENAME value as the first column of the report and the ENAME2 value as an entry in the appropriate column.
    Once I had done this, I selected the "Use Generic Column Names (parse query at runtime only)" underneath the Region Source so that I don't have to specify the column names to Apex. It also allows the first ENAME value to appear as the first column in the first. If I ticked the "Use Query-Specific Column Names and Validate Query" option, for some reason, the ENAME column appears last.
    OK, that's an example using data that most users here would have. Now for your data. This is actually more complicate as you are using dates as these have to be sorted in order AND converted into strings (for the headings).
    Firstly, I would recommend that you create a view over the two tables (if you haven't already done so). Something like:
    CREATE OR REPLACE FORCE VIEW STUDENT_ATTENDANCE
      STUDENT_ID,
      STUDENT_NAME,
      CLASS_DATE,
      CLASS_COMMENT
    AS
    SELECT
      S.ID STUDENT_ID,
      S.NAME STUDENT_NAME,
      C.DATE CLASS_DATE,
      C.COMMENT CLASS_COMMENT
    FROM
      STUDENTS S
      INNER JOIN COMMENTS C ON S.ID = C.STUDENT_IDNow we can create a PL/SQL code:
    DECLARE
    vSQL VARCHAR2(1000);
    vDATES VARCHAR2(1000);
    vSEP VARCHAR2(2);
    BEGIN
    vDATES := '';
    vSEP := '';
    FOR d IN (SELECT DISTINCT TO_CHAR(CLASS_DATE,'YYYYMMDD') DATEVALUE, TO_CHAR(CLASS_DATE,'DD-MON-YY') HEADING, CLASS_DATE FROM STUDENT_ATTENDANCE WHERE CLASS_DATE IS NOT NULL ORDER BY CLASS_DATE)
    LOOP
      vDATES := vDATES || vSEP || d.DATEVALUE || ' AS "' || d.HEADING || '"';
      vSEP := ', ';
    END LOOP;
    vSQL := 'SELECT * FROM (SELECT STUDENT_NAME, CLASS_COMMENT, TO_CHAR(CLASS_DATE,''YYYYMMDD'') DATEVALUE FROM STUDENT_ATTENDANCE WHERE CLASS_DATE IS NOT NULL) PIVOT (MIN(CLASS_COMMENT) FOR DATEVALUE IN (' || vDATES || '))';
    RETURN vSQL;
    END;You will see that I have two versions of the dates - one in YYYYMMDD format and one in DD-MON-YY. The first is to allow me to create a number that can be used to identify the column (this is easier that trying to compare dates) and the second is for the column heading. As we have to use an aggregate function in the PIVOT, I've just used MIN(CLASS_COMMENT) - assuming that the student can only attend (or not!) one class per date, then this should be ok as this could only return one value.
    As I do not have your tables and data, I have created a sample page with a similar statement for the HIREDATE values on the EMP table: [http://apex.oracle.com/pls/otn/f?p=267:138]
    The PL/SQL for the top report is my example above. The PL/SQL for the bottom report is:
    DECLARE
    vSQL VARCHAR2(1000);
    vDATES VARCHAR2(1000);
    vSEP VARCHAR2(2);
    BEGIN
    vDATES := '';
    vSEP := '';
    FOR d IN (SELECT DISTINCT TO_CHAR(HIREDATE,'YYYYMMDD') DATEVALUE, TO_CHAR(HIREDATE,'DD/MM/YYYY') HEADING, HIREDATE FROM EMP WHERE HIREDATE IS NOT NULL ORDER BY HIREDATE)
    LOOP
      vDATES := vDATES || vSEP || d.DATEVALUE || ' AS "' || d.HEADING || '"';
      vSEP := ', ';
    END LOOP;
    vSQL := 'SELECT * FROM (SELECT ENAME, ENAME ENAME2, TO_CHAR(HIREDATE,''YYYYMMDD'') DATEVALUE FROM EMP WHERE HIREDATE IS NOT NULL) PIVOT (MIN(ENAME2) FOR DATEVALUE IN (' || vDATES || '))';
    RETURN vSQL;
    END;Andy

  • How to save a "new" master record when pressing the "create" in the detail

    I have a simple Master - Detail form for a Customer - Activity case, where the update of Activity table happens through an additional form.
    When users press the create a new user on the top report (Customer Report) they enter the Master detail form, fill in all the Customer fields and instead of saving the customer (master) record and then come back to create a new activity (detail), they press right away the "create new activity" button, causing all customer data (master) to get lost.
    Is there a way to trigger the parent record to be saved when a user presses the create activity (detail) button?
    Thank you
    Yannis

    In order to show you better the idea, I created a demo application that you can see at: http://apex.oracle.com/pls/otn/f?p=45792:2:1386218200737406::NO:::
    When you create a new order (page 3) you can see that instead of inline editing for the detail, there is a report that will drive to another form (page 4) to edit the data for order detail.
    So just to clarify, I am interested to find out in page 3, how to cause a master record to save (when on insert) when a user press the Create button to add a new order detail.
    Thank you
    Yannis

  • How can a JVM terminate with an exit code of 141 and no other diagnostics?

    Hello,
    We are encountering a JVM process that dies with little explanation other than an exit code of 141. No hotspot error file (hs_err_*) or crash dump.  To date, the process runs anywhere from 30 minutes to 8 days before the problem occurs. The last application log entry is always the report of a lost SSL connection, the result of an thrown SSLException.  (The exception itself is unavailable at this time – the JVM dies before it is logged -- working on that.)
    How can a JVM produce an exit code of 141, and nothing else?  Can anyone suggest ideas for capturing additional diagnostic information?  Any help would be greatly appreciated!  Environment and efforts to date are described below.
    Thanks,
    -KK
    Host machine: 8x Xeon server with 256GB memory, RHEL 6 (or RHEL 5.5) 64-bit
    Java: Oracle Java SE 7u21 (or 6u26)
    java version "1.7.0_21"
    Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
    JVM arguments:
    -XX:+UseConcMarkSweepGC
    -XX:+CMSIncrementalMode
    -XX:+CMSClassUnloadingEnabled
    -XX:MaxPermSize=256m
    -XX:NewSize=64m
    -Xms128m
    -Xmx1037959168
    -Djava.awt.headless=true
    -Djava.security.egd=file:///dev/./urandom
    Diagnostics attempted to date:
    LD_PRELOAD=libjsig.so.   A modified version of libjsig.so was created to report all signal handler registrations and to report SIGPIPE signals received.  (Exit code 141 could be interpreted as 128+SIGPIPE(13).)  No JNI libraries are registering any signal handlers, and no SIGPIPE signal is reported by the library for the duration of the JVM run.  Calls to ::exit() are also intercepted and reported.  No call to exit() is reported.
    Inspect /var/log/messages for any indication that the OS killed the process, e.g. via the Out Of Memory (OOM) Killer.  Nothing found.
    Set ‘ulimit –c unlimited’, in case the default limit of 0 (zero) was preventing a core file from being written.  Still no core dump.
    ‘top’ reports the VIRT size of the process can grow to 20GB or more in a matter of hours, which is unusual compared to other JVM processes.  The RES (resident set size) does not grow beyond about 375MB, however, which is an considered normal.
    This JVM process creates many short-lived Thread objects by way of a thread pool, averaging 1 thread every 2 seconds, and these objects end up referenced only by a Weak reference.   The CMS collector seems lazy about collecting these, and upwards of 2000 Thread objects have been seen (in heap dumps) held only by Weak references.  (The Java heap averages about 100MB, so the collector is not under any pressure.) However, a forced collection (via jconsole) cleans out the Thread objects as expected.  Any relationship of this to the VIRT size or the JVM disappearance, however, cannot be established.
    The process also uses NIO and direct buffers, and maintains a DirectByteBuffer cache. There is some DirectByteBuffer churn. MBeans report stats like:
    Direct buffer pool: allocated=669 (20,824,064 bytes), released=665 (20,725,760), active=4 (98,304)  [note: equals 2x 32K buffers and 2x 16K buffers]
    java.nio.BufferPool > direct: Count=18, MemoryUsed=1343568, TotalCapacity=1343568
    These numbers appear normal and also do not seem to correlate with the VIRT size or the JVM disappearance.

    True, but the JNI call would still be reported by the LD_PRELOAD intercept, unless the native code could somehow circumvent that.  Using a test similar to GoodbyeWorld (shown below), I verified that the JNI call to exit() is reported.  In the failure case, no call to exit() is reported.
    Can an OS (or a manual) 'kill' specify an exit code?  Where could "141" be coming from?
    Thanks,
    -K2
    === GoodbyeWorldFromJNI.java ===
    package com.attachmate.test;
    public class GoodbyeWorldFromJNI
        public static final String LIBRARY_NAME = "goodbye";
        static {
            try {
                System.loadLibrary(LIBRARY_NAME);
            } catch (UnsatisfiedLinkError error) {
                System.err.println("Failed to load " + System.mapLibraryName(LIBRARY_NAME));
        private static native void callExit(int exitCode);
        public static void main(String[] args) {
            callExit(141);
    === goodbye.c ===
    #include <stdlib.h>
    #include "goodbye.h"  // javah generated header file
    JNIEXPORT void JNICALL Java_com_attachmate_test_GoodbyeWorldFromJNI_callExit
      (JNIEnv *env, jclass theClass, jint exitCode)
        exit(exitCode);
    === script.sh ===
    #!/bin/bash -v
    uname -a
    export PATH=/opt/jre1.7.0_25/bin:$PATH
    java -version
    pwd
    LD_PRELOAD=./lib/linux-amd64/libjsigdebug.so java -classpath classes -Djava.library.path=lib/linux-amd64 com.attachmate.test.GoodbyeWorldFromJNI > stdout.txt
    echo $?
    tail stdout.txt
    === script output ===
    [keithk@keithk-RHEL5-dev goodbyeJNI]$ ./script.sh
    #!/bin/bash -v
    uname -a
    Linux keithk-RHEL5-dev 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    export PATH=/opt/jre1.7.0_25/bin:$PATH
    java -version
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
    pwd
    /tmp/goodbyeJNI
    LD_PRELOAD=./lib/linux-amd64/libjsigdebug.so java -classpath classes -Djava.library.path=lib/linux-amd64 com.attachmate.test.GoodbyeWorldFromJNI > stdout.txt
    echo $?
    141
    tail stdout.txt
    JSIG: exit(141) called
    JSIG: Call stack has 4 frames:
    JSIG: ./lib/linux-amd64/libjsigdebug.so [0x2b07dc1bdc2f]
    JSIG: ./lib/linux-amd64/libjsigdebug.so(exit+0x29) [0x2b07dc1bea41]
    JSIG: /tmp/goodbyeJNI/lib/linux-amd64/libgoodbye.so [0x2aaab3e82547]
    JSIG: [0x2aaaab366d8e]       
    === ===

  • Spool not generated in some condition

    Requirement :Developing a data transfer program. Approach used is Call Transaction in S mode.
    In some cases(if Receiving Storage Location is PKGX) I need to load only MB11 and other cases I need to load 3 transaction sequentially – MB11 creates Mat. Doc. No. which in turn passed to the LT06 to create TO(Transfer Order) and the TO passed to LT12 to confirm TO.
    Problem – When I run it in background(it generates report in foreground), job finished successfully, data is loaded into system and spool status shown as error ONLY IF ALL THE 3 TRANSACTIONS CALLED AND LOADED.
    I debugged the Batch Job(using t-code JDBG) line by line output,contents are writen to output but at the end spool goes into error and report is not visible.
    In all other cases like messages/outputs due to record not correct or/and only MB11 is to be processed, spool is generated with status Waiting and report is visible.
    Statement at top –
    REPORT ZL6C_LOAD_INVENTORY_WM_SLOC
    NO STANDARD PAGE HEADING
    MESSAGE-ID ZOLSC_AS
    LINE-COUNT 65
    LINE-SIZE 148.
    It works if I set line-size as 132 .
    To overcome this I used FM GET_PRINT_PARAMETER with various cominations of parameter passed but it doesn’t work –
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    COPIES = L_C_ONE
    DEPARTMENT = L_C_SYSTEM
    DESTINATION = L_C_LOCL
    EXPIRATION = L_C_2
    LAYOUT = L_C_X_65_255
    LINE_COUNT = L_C_65
    LINE_SIZE = L_C_255
    LIST_NAME = L_LIST_NAME
    LIST_TEXT = L_LIST_TEXT
    MODE = 'BATCH'
    NEW_LIST_ID = G_C_X
    NO_DIALOG = G_C_X
    RECEIVER = L_C_SAP
    RELEASE = G_C_X
    SAP_COVER_PAGE = G_C_X
    REPORT = SY-REPID
    USER = SY-UNAME
    IMPORTING
    OUT_PARAMETERS = L_PARAMS
    EXCEPTIONS
    ARCHIVE_INFO_NOT_FOUND = 1
    INVALID_PRINT_PARAMS = 2
    INVALID_ARCHIVE_PARAMS = 3
    OTHERS = 4
    IF SY-SUBRC = 0 AND NOT L_PARAMS IS INITIAL.
    NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG NEW-SECTION.
    G_SPOOL = 'X'.
    ENDIF.
    Also when I use this FM under INITIALIZATION then it generates the spool but content written at TOP_OF_PAGE not displayed. When I use it under START-OF-SELECTION, problem still remain same.
    Please Suggest
    thanks
    Sonal

    Hello All,
    I checked in SM58. It showed an error.
    I checked my function module attributes. It was normal. Changed it to Remote enabled.
    Now spool is generated.
    Regards,
    Kausthub

  • [Solved] Suspend to Disk: systemd-hibernate.service Fails

    Howdy-ha, folks.  I know this looks pretty mundane, but for the life of me I can't get hibernation to work.  Each time I run systemctl hibernate the screen will go blank as though preparing to suspend, then come back on; journalctl shows the same error messages:
    PM: Cannot find swap device, try swapon -a.
    PM: Cannot get swap writer
    Failed to start Hibernate.
    Dependency failed for Hibernate.
    Service sleep.target is not needed anymore. Stopping.
    Unit systemd-hibernate.service entered failed state.
    This happens when swap is mounted, and "swapon" says as much.  I've been working on this for about four hours now, and none of what I've found seems to pertain to my situation (most of the "solutions" were "Increase partition size').
    What I've tried:
    - Three different kernels---linux-ck custom build and linux-ck-sandybridge from graysky's repo (both with BFQ and CFQ: see below), as well as the stock Arch kernel
    - A 2 Gb swap file at /swapfile on my SSD;
    - A 4 Gb swap partition on /dev/mmcblk0 (an SD card, and my preferred method/location, if possible);
    - An 8 Gb swap partition on HDD /dev/sdb2
    Reasons for wanting hibernate rather than suspend-to-RAM:
    - Maximize battery life.
    - There's some kind of issue with Linux-ck and suspending to RAM; it'll work once, then freeze in a kernel panic the second time, forcing a hard reset.  The stock kernel suspends to RAM, but still won't hibernate
    - I put a lot of time into building a custom Linux-ck kernel, and would rather not have to start the configuration over with the stock kernel if possible.
    I'm working with limited space on my boot drive and, as mentioned, increasing the amount of swap has no bearing on this.  The resulting phenomenon and error messages are the same, regardless of size and medium.  I've exhausted my ideas on where to look, and what to even look for.  Thanks a lot to everyone in advance (especially you,karol; don't think I don't see you lurking back there )
    Last edited by ANOKNUSA (2013-11-17 05:32:14)

    I rebooted, so trying to recreate the same situation:
    $ free -h
    total used free shared buffers cached
    Mem: 7.7G 7.2G 525M 0B 32M 2.3G
    -/+ buffers/cache: 4.8G 2.9G
    Swap: 3.7G 0B 3.7G
    top reports nearly the same thing:
    top - 20:00:13 up 22 min, 1 user, load average: 0.12, 0.22, 0.14
    Tasks: 155 total, 1 running, 154 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 0.1 us, 0.3 sy, 0.1 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    KiB Mem: 8061380 total, 7500096 used, 561284 free, 34432 buffers
    KiB Swap: 3872236 total, 0 used, 3872236 free, 2417172 cached
    htop, however, reports about 1.5 Gb more free RAM.  After reboot, swappiness is still set to 100 with the same results.
    EDIT:
    ANOKNUSA wrote: I'll test it again with the other locations mentioned in the OP, and get back to you.
    Even though I rebooted, I haven't done this yet, so ignore it for the moment.
    Last edited by ANOKNUSA (2013-08-28 01:06:10)

Maybe you are looking for