Last transaction

Hi
Could any one tell me how the extract the date of last transaction made by a list of vendors. The purpose is to block the inactive vendors.
regards
Hari

Hi Hari,
Please check the below thread, it might help you.
Vendors Last Transaction date
Regards,
Akhila.

Similar Messages

  • How to get the last transaction in a row in SQL Developer?

    What syntax would I use to get the last transaction of a row in SQL developer?
    The way I have my query set-up currently it is not returning the correct data, here is my current syntax:
    select ssn, max(tran_id), chng_type,tran_id
    from pda_tran
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type,tran_id;
    It returns a 'C' chng_type but it is not the last one. when I query on this ssn this is what I get:
    ssn tran_id chng_type
    xxx-xxx-0011 001 A
    xxx-xxx-0011 002 E
    xxx-xxx-0011 003 C
    xxx-xxx-0011 004 S
    xxx-xxx-0011 005 C
    xxx-xxx-0011 006 T
    I only want to return the ssn's with a last transaction chng_type of 'C'. How can I get the correct information returned. Please advise.

    From what I see and read... there is one to many group by
    You wrote
    select ssn, max(tran_id), chng_type,tran_id
    from pda_tran
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type,tran_id;
    If you want the max(tran_id), remove it from the "group by"
    select ssn, chng_type, max(tran_id)
    FROM
    (SELECT 'xxx-xxx-0011' ssn, '001' tran_id, 'A' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '002' tran_id, 'E' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '003' tran_id, 'C' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '004' tran_id, 'S' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '005' tran_id, 'C' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '006'tran_id, 'T' chng_type FROM DUAL )
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type;

  • Inventory report with the last transaction details of each material

    Hi,
    is there any standard inventory report in SAP which gives us  the last transaction details of each
    Material,along with last procurement qty, value, date and last issue
    details of Qty, Value & date.
    Thansk in advance.

    Hi
    try following t-code
    MB5B u2013 Stock on Posting Date
    or
    2   s_p00_07000139 u2013 Stock Card and Inventory Material Report
    Regards
    Kailas Ugale

  • How to get the date of the last transaction in a mounted standby database?

    Hello,
    Could you tell me how to get the date of the last transaction recorded in a MOUNTED standby database?
    The following query doesn't work...because the database is not open...
    select scn_to_timestamp(current_scn) from v$database;
    Thanks

    Hi,
    You should be able to run the following command in mounted mode on standby database.
    select current_scn from v$database;
    then run the following to convert it to timestamp.
    select scn_to_timestamp(99999999) from dual; *<-- Replace here the SCN value you got above. This needs to be run on the primary database due to standby database in mount mode.*
    Alternatively you can also check at the alert.log file to find the last scn which has been applied.
    Regards
    Edited by: skvaish1 on Jan 19, 2010 11:15 AM

  • How to determine the last transaction of a Batch Number

    Hello,
    For example,
    ITEMCODE - BATCHNUM - WHSCODE - LINENUM - DIRECTION
    ITEM1 - BATCH1 - WH1 - 0 - 0
    ITEM1 - BATCH1 - WH2 - 0 - 0
    ITEM1 - BATCH1 - WH1 - 1 - 1
    ITEM1 - BATCH1 - WH2 - 1 - 1
    How will I know that record number 4 is the last transaction regardless of the transaction type and warehouse code.  Is there any table which can help me solve this issue other than OIBT?
    Regards,
    Gilbert Ngo

    You could use the OINM Transnum (connected to the IBT1) to determine the last transaction:
    SELECT T1.[TransNum],
    T0.[ItemCode], T0.[BatchNum], T0.[WhsCode]
    FROM [dbo].[IBT1]  T0
    Join OINM T1 On T1.[BASE_REF] = T0.[BaseEntry]  and  T0.[BaseType] = T1.[TransType]

  • After a recover database, how can I find the time of the last transaction?

    After doing a restore and recovery. Is there something in the data dictionary that I can query to find the time of the last applied transaction that took place during the recover process?
    restore database ;
    recover database ;
    For example, if I restored from a full backup on 8/3/2008 with archive redologs, I know my last restored transaction is from sometime on that day, but I'd like a way to know the hour:minute:second of the last transaction included in the backup and redologs that was applied to my restore. Is that possible?
    The recover database applies all available redo logs for that day, but I want to know if that includes transaction up to 6PM, or 11:50PM, etc?
    Thanks,
    Jason

    If you did only a "recover database" that would have been a Complete Recovery to the last transaction -- ie the point when the database was shutdown.
    For an Incomplete Recovery, you would have to note the Sequence#, SCN or Timestamp of the recovery point.

  • Vendor last transaction date

    Hi,
      I want to show vendor last transaction date. How we can get it.
      Thanks in advance.
      Regards,
    Moderator message : Requirements dumping not allowed, thread locked.
    Edited by: Vinod Kumar on Dec 9, 2011 5:42 PM

    Hi,
    You can take the report of the  FI accounting document for all vendors based on the company code and the posting date ( input the present date) in the T code- S_ALR_87012991.
    regards,
    Kannan B

  • Last transaction date

    hi experts,
    I want to write a daily report to show a item's history, not only last sales, purchase date, but also last transaction date(includes production, inventory transfer, issues and receipts).
    I know OITM and OITW can get Stock, unit price, last purchase date and last sales date, but where can I get the last transaction date and info such as item post list? Thanks...

    Try this one:
    SELECT   T0.ItemCode, T0.ItemName, T0.Onhand, Max(T1.DocDate) 'Last Trans Date'
    FROM        dbo.OITM T0
    INNER JOIN dbo.OINM T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.ItemCode Like '[%0\]%'
    GROUP BY T0.ItemCode, T0.ItemName, T0.Onhand
    Thanks,
    Gordon

  • Vendor Last transaction

    Dear All,
    I would like to know is there any Transaction Code or tables from where we can get the last date of transactions in the vendor account.
    Regards
    Uttam

    Dear Sir,
    Thanks for the reply.
    Basically,
    We have 4000 vendor master list in SAP and I want to block those vendors (at Company code level and Purchase organisation level) whose transactions has been stop for which I want a list from system where I will get the details of last transaction in one shot.
    On the basis of that we will block the vendors.
    From FBL1N or S_ALR_87012103 (T. Codes) I have to go one by one which will take a lot of time to get the same.
    Please help.
    Regards
    Uttam

  • Need a report_Batchwise Mvt type last transaction date qty

    Dear Gurus
    Please suggest me any standard report or Table for display below report.
    Batchwise>Mvt type>last transaction date>qty
    thanks in advance
    Mayur

    Hi,
    MB51 --- Material documents list.
    Regards,

  • Vendor with last transaction date

    Hi,
    Can I generate any report which contains all vendors with last transaction date? THis is for audit purpose.
    Thanks & Regards,
    Rajaneesh.C

    Hi,
    You can take the report of the  FI accounting document for all vendors based on the company code and the posting date ( input the present date) in the T code- S_ALR_87012991.
    regards,
    Kannan B

  • Storage Location last transaction date

    Hi All
    What particular transaction code or report will I can find storage location last transaction date?
    We'll be using this for our PID
    Thank you
    Jesielle

    Hi  Shiva Ram         
    Aside from tcodes MB51 and MB5B. Is there any other report wherein it only shows the storage location codes with last transaction date?
    Thanks
    Jesielle

  • Kill session after Specific Time in Last transaction

    Dear All
    I have Database oracle 10g i need kill the session after last transaction with specific time like(10 minutes for example).
    How I can use it.
    Thanks in advance...

    user8942603 wrote:
    but i don't use application server i use database oracle 10g and the application its flex software that connect to my database.Are you saying you use a dedicated session for each web browser connection? If so how many concurrent connections your database server can handle? Actually, based on your question, I can guess you are already running into too many concurrent sessions issue, right? If so, my suggestion is not to look into killing idling sessions but rather redesigning your site by using at least Oracle's connection pooling.
    SY.

  • Item details with Last Transaction Date ?

    Hi,
    Please help someone to fine tune this query :-
    Select ILLITM,ILDOC, ILDCT, ILTRDJ
    FROM CRPDTA.F4111
    where ILTRDJ in (Select max(ILTRDJ) FROM CRPDTA.F4111);
    The above query is returning the latest transaction date with Item details.
    But expected output is: Every Item with last transactional date.
    Hope I am clear on the above requirement please.
    Thanks in advance.
    RAM

    you can use table alias for this
    Select ILLITM,ILDOC, ILDCT, ILTRDJ
    FROM CRPDTA.F4111 tab1
    where tab1.ILTRDJ in (Select max(tab2.ILTRDJ) FROM CRPDTA.F4111 tab2);
    or if you are using this query inside any PL-SQL block , you can use a variable to hold max(ILTRDJ) and then use this variable in query.

  • Can long lasting transaction fill up undo tablespace .

    Hi,
    Let's say we are on 9.2.0.8 and have long lasting transaction , I mean we started some update (1 row only but no commit/rollback) and do nothing for a couple of days .
    So the amount of undo is minimal ,but we are having one undo slot used and 1 entry in undo transaction table .
    Is that some kind of dangerous ? As far as I know undo is kind of circular buffer so we are fixing some upper end and preventing new transaction from using lower 'end' .
    Please elaborate . I've noticed some GUI reports such situation as undo 100% full , not sure if thats ok .
    Regards
    GregG

    Thanks, I knew it, my configuration is as follows (9.2.0.8):
    SQL> select * from dba_rollback_segs ;
    SEGMENT_NAME                   OWNER  TABLESPACE_NAME                SEGMENT_ID    FILE_ID   BLOCK_ID INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE STATUS           INSTANCE_NUM                             RELATIVE_FNO
    SYSTEM                         SYS    SYSTEM                                  0          1          9         114688                       1       32765              ONLINE                                                               1
    _SYSSMU1$                      PUBLIC UNDOTBS                                 1          2          9         131072                       2       32765              ONLINE                                                               2
    _SYSSMU2$                      PUBLIC UNDOTBS                                 2          2         25         131072                       2       32765              ONLINE                                                               2
    _SYSSMU3$                      PUBLIC UNDOTBS                                 3          2         41         131072                       2       32765              ONLINE                                                               2
    _SYSSMU4$                      PUBLIC UNDOTBS                                 4          2         57         131072                       2       32765              ONLINE                                                               2
    _SYSSMU5$                      PUBLIC UNDOTBS                                 5          2         73         131072                       2       32765              ONLINE                                                               2
    _SYSSMU6$                      PUBLIC UNDOTBS                                 6          2         89         131072                       2       32765              ONLINE                                                               2
    _SYSSMU7$                      PUBLIC UNDOTBS                                 7          2        105         131072                       2       32765              ONLINE                                                               2
    _SYSSMU8$                      PUBLIC UNDOTBS                                 8          2        121         131072                       2       32765              ONLINE                                                               2
    _SYSSMU9$                      PUBLIC UNDOTBS                                 9          2        137         131072                       2       32765              ONLINE                                                               2
    _SYSSMU10$                     PUBLIC UNDOTBS                                10          2        153         131072                       2       32765              ONLINE                                                               2
    _SYSSMU11$                     PUBLIC UNDOTBS                                11          2       1281         131072                       2       32765              ONLINE                                                               2
    _SYSSMU12$                     PUBLIC UNDOTBS                                12          2       4673         131072                       2       32765              ONLINE                                                               2
    _SYSSMU13$                     PUBLIC UNDOTBS                                13          2         17         131072                       2       32765              ONLINE                                                               2
    _SYSSMU14$                     PUBLIC UNDOTBS                                14          2        169         131072                       2       32765              ONLINE                                                               2
    _SYSSMU15$                     PUBLIC UNDOTBS                                15          2        193         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU16$                     PUBLIC UNDOTBS                                16          2        209         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU17$                     PUBLIC UNDOTBS                                17          2       1217         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU18$                     PUBLIC UNDOTBS                                18          2       1233         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU19$                     PUBLIC UNDOTBS                                19          2       4625         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU20$                     PUBLIC UNDOTBS                                20          2       4649         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU21$                     PUBLIC UNDOTBS                                21          2       4665         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU22$                     PUBLIC UNDOTBS                                22          2       4697         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU23$                     PUBLIC UNDOTBS                                23          2       1257         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU24$                     PUBLIC UNDOTBS                                24          2       4729         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU25$                     PUBLIC UNDOTBS                                25          2       2465         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU26$                     PUBLIC UNDOTBS                                26          2       7905         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU27$                     PUBLIC UNDOTBS                                27          2        393         131072                       2       32765              OFFLINE                                                              2
    _SYSSMU28$                     PUBLIC UNDOTBS                                28          2        417         131072                       2       32765              OFFLINE                                                              2
    undo_management                      string      AUTO
    undo_retention                       integer     10800
    SQL> select * from v$transaction;
    ADDR                 XIDUSN    XIDSLOT     XIDSQN     UBAFIL     UBABLK     UBASQN     UBAREC STATUS           START_TIME           START_SCNB START_SCNW START_UEXT START_UBAFIL START_UBABLK START_UBASQN START_UBAREC SES_ADDR               FLAG SPA REC NOU PTX NAME                                                                                                                                                                                                                                                             PRV_XIDUSN PRV_XIDSLT PRV_XIDSQN PTX_XIDUSN PTX_XIDSLT PTX_XIDSQN     DSCN-B     DSCN-W  USED_UBLK  USED_UREC     LOG_IO     PHY_IO     CR_GET  CR_CHANGE
    07000000536031B8          6         34    3374347          0          0          0          0 ACTIVE           07/04/12 08:26:02    2855444428       1809         14            2       229515         4958            1 0700000052175B60    4199939 NO  NO  NO  NO                                                                                                                                                                                                                                                                            0          0          0          0          0          0          0          0          1          1          4          0          0          0
    0700000053609420          8         30    3118147          0          0          0          0 ACTIVE           07/04/12 08:39:03    2855884108       1809          7            2       320063        31882            1 07000000501DBCB8    4199939 NO  NO  NO  NO                                                                                                                                                                                                                                                                            0          0          0          0          0          0          0          0          1          1          4          0          0          0
    070000005360DCB0         12         11     391269          2     675610     -14060          1 ACTIVE           06/26/12 17:12:52    2382349905       1809         47            2       675610       -14060            1 070000004F16E738       7683 NO  NO  NO  NO                                                                                                                                                                                                                                                                            0          0          0          0          0          0          0          0          1          1          6          0         33          0So I've got 28 segments , right ? Half of them are offline (no needed or so) .
    And now my long lasting (but small 1 undo rec) transaction can grow and take up all the free space in undo event there is no other activity on that session (only not commit/rollback).
    And one more think, could You tell how to troubleshoot that issue I mean how to know we are getting close to disaster (ora 1555 or out of undo space) , that long lasting transaction is taking only 1 undo record
    so seems not dangerous .
    Thanks in advance.
    Please bare in mind I've run select * from dba_rollback_segs ; AFTER killing that transaction so it can be missleading when comparing to v$transaction from time transaction was actice :).
    GregG

  • Last Transaction Accesed by User

    Hi Folks,
    I want to find out a last transaction accessed by a user. I am on 4.6C I do not have CCMS logs neither do i have Audit logging enabled on my system and logs are older than a week so STAT/STAD is not an option.
    Is there any table which would be able to provide me with such data?
    Regards,
    Chinmaya

    > I know it wont be reliable but may be worth a shot..
    Hmmm... where to start - if you indicate why you need this and what type of access the user had, then it would help narrow it down:
    Some idea / areas to check:
    - Transaction data headers.
    - Application change document objects.
    - Short dumps.
    - System logs.
    - DB logs.
    - GOS Object history.
    I find it strange that your stat collectors are not working though. If someone deleted the jobs, then perhaps you can still recover the data. If you are lucky, then you can still find out who deleted the jobs via the ST11 trace.
    Cheers,
    Julius

Maybe you are looking for

  • BIEE 10g combine month and day data in one report

    Hi I am trying to build a simple model to report employee absence per day against number of employees per month. There are two challenges: a) not setting content level of No_of_employees, drilling down along calendar to day level shows the Absence_da

  • Change Screen Resolution = Mouse Pointer Disappears!

    I am just moving to Arch from Ubuntu which i have used for several years. I am not a novice to linux, but I certainly don't know everything! I installed arch on my pc last night, an old athlon xp with a radeon 9700 pro. I was going to try out KDE so

  • Easy Question -How to start  ALUI 6.5 portal?

    I am new in Aqua logic, after fixing all my database problem waiting to start ALUI 6.5 portal. My ALUI config manager link is: https://home2003.home2003.win2003mydomain.com:9090/cm/login.jsf which works fine. Also http://192.168.0.100:8282 works fine

  • APO DP - handling of cell specific Notes

    I am using APO DP V5. I have 2 questions regarding the use of Notes for cells in the interactive DP planning table: 1. Can there just be 1 Note per cell? 2. What is the maximum length (number of characters) for a given Note. Thanks, Bob Austin, Atos

  • Skipping the ICP dimension in a Logic Account Asset/Liability

    Hi Guys, Currently I am using the logic accounts below to determine whether the total amount (+/-) should go to an asset or liability HFM target account. I put the source accounts on IGNORE in the mapping. Now, instead of creating either the T-...-A