Report of Total GR qty/IR qty,date when last GR was passed (latest one)

Dear all
       Kindly let me know how to get the below report using input of PO no:
Report of Total GR qty,IR qty,date when last GR was passed (latest one),date when last IR was passed (latest one)
Standard t.code such as ME2n.me2l is not giving the above report.

Dear
Try ME80FN and ME2N/L with the setting with Selection Parameters
regds
dev...!

Similar Messages

  • Date when the cube was filled with data for the last time

    Hi!
    We are using a SAP BW System and on top of it BOBJ for reporting. Within BEx Web Application Designer, it's very simple to access the data, when the cube was filled with data for the last time. Is it possible to access this information within BOBJ, too?
    Thanks for your help!
    Greetings
    Stefan

    Hallo Ingo,
    thanks for your answer. That was exactly what we were looking for.
    We will have to think about a workaround now.
    Greetings
    Stefan

  • Dynamic sql reurns no data when multiple values are passed.

    (Dynamic sql returns no data when multiple values are passed.)
    Hi,
    While executing the below dynamic sql in the procedure no data is returned when it has multiple input values.
    When the input is EMPID := '1'; the procedure works fine and returns data.Any suggestion why the procedure doen't works when input as EMPID := '1'',''2'; is passed as parameter?
    =======================================================
    create or replace PROCEDURE TEST(EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
    stmt VARCHAR2(9272);
    V_EMPID VARCHAR2(100);
    BEGIN
    V_EMPID :=EMPID;
    stmt := 'select * from TEST123 where Empid is NOT NULL';
    IF V_EMPID <> '-1' THEN
    stmt := stmt || ' and Empid in (:1)';
    ELSE
    stmt := stmt || ' and -1 = :1';
    END IF;
    OPEN rc FOR stmt USING V_EMPID;
    END Z_TEST;
    ============================================================
    Script for create table
    ==================================================================
    CREATE TABLE TEST123 (
    EMPID VARCHAR2(10 BYTE),
    DEPT NUMBER(3,0)
    ===========================================
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('1',20);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    =============================================
    Select * from TEST123 where Empid in (1,2,3)
    EMPID DEPT
    1     20
    2     10
    3     30
    3     30
    2     10
    ===================================================================
    Any suggestion why the procedure doen't works when input EMPID := '1'',''2';?
    Thank you,

    The whole scenario is a little strange. When I tried to compile your procedure it couldn't compile, but I added the missing info and was able to get it compiled.
    create or replace PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      IF V_EMPID = '-1' THEN
        stmt := stmt || ' and Empid in (:1)';
      ELSE
        stmt := stmt || ' and -1 = :1';
      END IF;
      OPEN rc FOR stmt USING V_EMPID;
    END;If you pass in 1 as a parameter, it is going to execute because the statement that it is building is:
    select * from TEST123 where Empid is NOT NULL and -1 = 1Although the syntax is valid -1 will never equal 1 so you will never get any data.
    If you pass in 1,2 as a parameter then it is basically building the following:
    select * from TEST123 where Empid is NOT NULL and -1 = 1,2This will cause an invalid number because it is trying to check where -1 = 1,2
    You could always change your code to:
    PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      stmt := stmt || ' and Empid in (:1)';
      OPEN rc FOR stmt USING V_EMPID;
    END;and forget the if v_empid = '-1' check. If you pass in a 1 it will work, if you pass in 1,2 is will work, but don't pass them in with any tick marks.

  • How to find the date when the cube was created

    Hi gurus
    I just want to find out the date when the cube was created,
    Regards
    Kumar

    Kumar,
    Go to table RSDCUBE, you can see date there.
    Hope it helps,
    Sam

  • Log data when signal is for at least one hour stable

    All, can you please help me out with the following;
    I have data to log when one signal is for at least one hour between two values. If this is the case, all the data can be kept. If this is not the case, let's say after 30min that one signal is out of spec, previous measured data in those 30min may not be displayed in the log file. Does somebody have a solution for this?
    Thanks in advance
    Solved!
    Go to Solution.

    So, it means, you want to log data if pressure is between 8 and 12 bar. Else, discard data and continue monitoring of data. Monitor only value
    Right?
    you can compare the pressure value using an In Range function and put a case structure to log data only when the value is in range. use timestamps to know when the data was in range. so the file only contains data when the pressure is in range
    Or, if you want to log data ONLY IF the presusre was between 8 and 12 bar AND for an hour or more, then, put a timer to check time elapsed since the last value change and then log if timer has counted an hour. Then instead of inrange, use a shift register to see the last value which changed and then turn on a timer. When the value changed next, update the shift register. when the timer is up, reset the timer and log data.
    I will take time to put these two logics on code and post. instead, you can make a code of either of the two options and post back. we can review your progress.  
    Almost forgot two questions: How are you reading the data? hardware used and data type? which file format do you plan to use?

  • Time and date when the video was taken ???

    i burned my project allready but while watching it on tv i cannot see time and date when it was taken .. i could see it on my camcorder but not in my project on dvd. how do i put it there?
    thanx a lot.

    I have this question too.

  • Can I recover FileVault data when the sparsebundle was deleted on a MacBook Pro running OSX 10.6.8?

    I have a MacBook Pro that I purchased from a friend of mine. He reformatted it before giving it over to me, and he left me a couple of install files in the Downloads folder before he gave it to me. When I got it, I turned on FileVault because encrypting my data seemed like a good idea. Little did I know that it would end up biting me in the butt.
    I tried to add music files from my iPod to the laptop. It didn't work properly, so I deleted those files and tried again. Same issue, and I deleted them again. I noticed, though, that the laptop acted like both copies of those files were still on board, and half my HD was filled up with almost nothing on the computer. I used Disk Inventory to find out why, and found that all that excess data was locked up in a hidden file called a sparsebundle. Disk Inventory removed that file, and then the laptop stopped working. I couldn't get my applications to run properly, and when I restarted the computer, I couldn't log in at all. I rebooted and created a new Admin account so I could get into the laptop.
    Now I'm trying to recover all the files that I had put onto the laptop before I had to reboot. They appear to still be there, and I have a copy of the computer in its current state backed up through Time Machine. The programs that were on it before the reboot mostly still worked (exception Firefox, so I'll just reinstall that and hope it works).
    Is there any way for me to recover the files that are currently still locked up under FileVault? I have copies of DiskWarrior 4.0 and TechTool Pro 4.6.1, but neither seems to work with OSX 10.6.8. Any help in recovering the "lost" files would be appreciated.
    Alternately, if the files cannot be directly recovered: if I have to completely reinstall everything, will having the Time Machine backup of the extra programs my friend had installed let me keep those programs after a reinstallation of OS X?
    My thanks to the community in advance for any assistance that can be offered.

    oh, I thought I had seen it. I will do a re-install of Snow Leopard, hopefully then I can find it.
    Thank you very much, I will let you know how it goes.

  • How do i return data, when my sql was opened in a ref cursor.

    In Pl/sql, I was been bunged in the following situation:
    I am opening a ref cursor, where i couldn't determine the return type. In that case how will i return the data for those sql.
    Sample code :
    Declare
    Type a_ref IS REF CURSOR;
    C1 a_ref;
    Begin
    Open c1 for ‘select a, b, c from D’;
    Fetch c1 into ??????;
    Close c1;
    End;
    My doubt resides in ??? part..
    The columns in the select clause will vary dynamically.
    Hence how can I declare my variable..
    Regards,
    Bala

    Well, nothing is over to change mind if possible. I think the knowledge of
    alternatives is always useful... :).
    As for DBMS_SQL, it's an alternative to ref cursors too, but surely inside PL/SQL:
    SQL> declare
      2   c integer;
      3   desc_t DBMS_SQL.DESC_TAB;
      4   col_cnt integer;
      5   type gvarray is varray(25) of varchar(40);
      6   values1 gvarray := gvarray();
      7   a integer;
      8  begin
      9   values1.extend(25);
    10   c := dbms_sql.open_cursor;
    11   DBMS_SQL.PARSE(c,'select hiredate,ename from emp' ,DBMS_SQL.NATIVE);
    12   DBMS_SQL.DESCRIBE_COLUMNS (
    13     c,
    14     col_cnt,
    15     desc_t);
    16   for j in 1..col_cnt loop
    17     dbms_sql.define_column(c,j,values1(j),40);
    18   end loop;
    19   a:=dbms_sql.execute(c);
    20   loop
    21     if dbms_sql.fetch_rows(c) > 0 then
    22      for j in 1..col_cnt loop
    23        dbms_sql.column_value(c,j,values1(j));
    24        dbms_output.put_line('Row number ' || j || ', column ' || desc_t(j).col_name || ', value
    25        || values1(j) );
    26      end loop;
    27     else
    28       exit;
    29     end if;
    30   end loop;
    31   dbms_sql.close_cursor(c);
    32  end;
    33  /
    Row number 1, column HIREDATE, value 17.12.80
    Row number 2, column ENAME, value SMITH
    Row number 1, column HIREDATE, value 20.02.81
    Row number 2, column ENAME, value ALLEN
    Row number 1, column HIREDATE, value 22.02.81
    Row number 2, column ENAME, value WARD
    Row number 1, column HIREDATE, value 02.04.81
    Row number 2, column ENAME, value JONES
    Row number 1, column HIREDATE, value 28.09.81
    Row number 2, column ENAME, value MARTIN
    Row number 1, column HIREDATE, value 01.05.81
    Row number 2, column ENAME, value BLAKE
    Row number 1, column HIREDATE, value 09.06.81
    Row number 2, column ENAME, value CLARK
    Row number 1, column HIREDATE, value 19.04.87
    Row number 2, column ENAME, value SCOTT
    Row number 1, column HIREDATE, value 17.11.81
    Row number 2, column ENAME, value KING
    Row number 1, column HIREDATE, value 08.09.81
    Row number 2, column ENAME, value TURNER
    Row number 1, column HIREDATE, value 23.05.87
    Row number 2, column ENAME, value ADAMS
    Row number 1, column HIREDATE, value 03.12.81
    Row number 2, column ENAME, value JAMES
    Row number 1, column HIREDATE, value 03.12.81
    Row number 2, column ENAME, value FORD
    Row number 1, column HIREDATE, value 23.01.82
    Row number 2, column ENAME, value MILLER
    PL/SQL procedure successfully completed.Rgds.

  • Z report for opening qty of material date wise

    I have to develop a zreport which will calculate date wise opening  stock of material   and closing stock of that material at particular
    location ( not to use standard reports)
    I have to display sale qty and stock transfer qty  date wise.
    Similarly receipt qty  date wise.
    For sale qty, stock transfer qty and receipt calculation are date wise ok. But problem is to get date wise opening and closing stock of particular material.
    is it possible to get location wise material wise date wise opening stock list  in z report.
    Thanks

    Hi Ravikumar,
    Hope you are an ABAPer. If not also, you can achieve this through an ABAPer. As mentioned by others, you need to check whether your requirement is met by the standard transaction MB5B. You need to check whether this transaction gives you the exact opening and closing balance for a material. If this gives what you want, then you need to make some small enhancement in the MB5B report program so that you will be getting the result of the opening and closing stock. In this enhancement you will use EXPORT to export the result to your program where you can IMPORT it. This procedure is explained in detail in a document created in SCN dated 30th November, 2012 by Sijin Siji. Have a look in that.
    That document is descriptive and it will be helping you in solving this issue. If you have any doubts, please revert back.
    Regards,
    Abijith

  • Running total for item availbe qty. from On Hand - SO + PO by promise date

    I stuck with Balance(running total).
    How to link item number with SO and PO?  
    Need daily item qty. available qty from "On Hand" Qty. + PO - SO by promise date and sort by ascending?
    Item#    Order Date  SO/PO   PromiseDate  Qty   Bal.
    AE01    08/01/08     OnHand                       20     20
                08/02/08     SO#1877   08/05/08       -3    17
                08/04/08     SO#2044   08/08/08       -6    11
                07/22/08     PO#632     08/10/08      10   21
    Thanks.

    create a group by promise date
    2nd group by po#
    put the fields either in the group or in the details
    PO#, PO promise date, qty and SO#, SO promise date, qty then availability qty
    manual running totals
    create 3 formulas
    1 reset
    WHILEPRINTINGRECORDS;
    NUMBERVAR ITEMLOC := 0;
    place in the group header on what you want the total to reset by (po#)
    1 calc
    WHILEPRINTINGRECORDS;
    NUMBERVAR ITEMLOC := ITEMLOC +(qty};
    this gets placed where the calculate will take place (next to qty)
    1 display
    WHILEPRINTINGRECORDS;
    NUMBERVAR ITEMLOC;
    ITEMLOC
    this gets placed in the group footer.
    for each field that gets calculated by a group create 3 formulas for each
    they need to have the same variable name to reference each other.
    if you need to create a 2nd set to calc something else give that a new variable name.

  • OPEN PO QTY IN PARTICULAR DATE

    Hi Experts
    I need to check the open qty of purchase order bcoz i have to upload the PO from old system to new system.
    so i want to get the Open Purchase order qty from particular date say 1st april .
    so that i can upload the same into new System with upload programme.
    Thanks
    Pankaj Agarwal

    Hi
    check following link
    [Report including open purchase order quantity for one storage location;
    [http://wiki.sdn.sap.com/wiki/display/sandbox/OPENPOQTYREPORT-CODE]
    Regards
    Kailas Ugale

  • Stock value and qty on particular date.

    Hi All.
    Could you  you guide me in which transcation I will get the report of existing stock value and qty for a particular valution class  on particular date like 15 Apr 2009.There is a transaction MB5B similar to my requirement  but there is no Valuation class as selection.
    Thanks in Advance
    Regards
    katta

    Hi,
    You can get valuation class data thru MC.9 or MC.1  but problem is it is for month only
    If you want to go for particular material analysis than use MB51 from go live to till date or MB5b with storage location selection
    Regards,
    Chetan Mistry

  • Report on totals and detailed data

    Hi Expertz,
    I need to build a report for purchasing contracts where the initial apspect of the report should be like this:
    Total of Contract Valid:               1                    
    Total of Contract Expired:            2                    
    Total of Contract to be reviewed : 1
    And then, when i double click in each one of them (valid, expired, to be reviewed) i should see the details of each contract. For example:
    Contract Number    Vendor       Company Code  Purch.Organ. Target Qty
    4467000001          200000999        XYZX                 XXYY          10,000
    4467000007          200000123        ABCD                 DD00          99,999
    Does anyone has a suggestion of doing this?
    Thank you in advance,
    N.M.

    Hi,
    Can anyone help with this? Soe guidelines? It's urgent !!
    Thanks,
    N.M:

  • PO OPEN QTY AT PARTICULAR DATE

    Hi Experts
    I need to check the open qty of purchase order bcoz i have to upload the PO from old system to new system.
    so i want to get the Open Purchase order qty from particular date say 1st april .
    so that i can upload the same into new System with upload programme.
    Thanks
    Pankaj Agarwal

    If the legacy system is also a SAP system, you may refer to ME2* series reports (eg: ME2M, ME2N, etc).
    As regards to open, it depends on the definition of open PO, so PO's which are not delivered, those delivered but not invoiced etc. So use the selection parameter eg: WE101 to get the relevant data.
    If you wish to do the same at table level, then some of the tables which should help are EKKO,EKPO,EKBE,EKET,MSEG.
    However if the legacy system is not a SAP system, then get in touch with the client's IT team to do the extraction.
    Also do search in MM forum to find similar threads.

  • Report to check "Book Qty & Counted Qty" in Warehouse Management

    Hi All,
    In MI24, I can see "Book Qty & Counted Qty" in Inventory Management.
    But, Is there any report to check "Book Qty & Counted Qty" in Warehouse Management.
    If any report is there, let me know the T-Code.
    Regards
    Siva

    if you know the inventory record and the warehouse number, you can fetch the information from table LINV. Input warehouse and inventory record. The fields GESMA and MENGE/MENGA give the book quantity and counted quantity respectively.
    Regards,
    Rajiv..

Maybe you are looking for

  • 300cdt hard drive

    hello all, since last month I have a beautiful Satellite 300cdt on my desk. I would like to put a larger hard drive in (it is 2 GB now). I understand there is a limit to the size of it. Can anyone tell me what size is still supported by this machine?

  • Picture & Slideshow error message...

    www.wrdinc.net or web.mac.com/wrdinc i have several pages of pictures on my iWeb site. on most of the pages ("captured" "europe circa 2002" "the empire state") the pictures and slideshows display normally. On one page ("the happiest place on earth")h

  • Customizing Prompts

    I need to display a report, where it gets the current date as a prompt. But the data it interprets are like weekly basis. For example, if the current date is 09th May 2011. The report should get the immediate last saturday (07th May) as the current w

  • Please help,Three Questions for Tuxedo

    Hi All I am new to Tuxedo, I ha ve three questions about tuxedo: 1. My Tuxedo is running on Linux, Can it connect to Ms SQL Server running on another server? How? 2. I want to use C++ to program for Tuxedo server,but I found all samples are developed

  • Query applications and deployment types

    Hi, I got this powershell script to perform the above task (a query for applications and deployment types from SCCM) But getting the following error after running the script: "You cannot call a method on a null-valued expression At Line:2 char:13" $S