Transaction - FILE

Hello ,
Please let me know how to use transaction FILE as i need to use the FM 'FILE_GET_NAME'.

Hi,
Have a look at
http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa029d493111d182b70000e829fbfe/frameset.htm
Regards
Kiran

Similar Messages

  • Error while creating logical file using transaction FILE

    Hello there,
    I am facing an error while creating Logical File name definition using transaction FILE
    This is the input which I'm trying to give
    Logical file name: ZTEST
    Name : ZTEST
    Physical file : ZTEST_1<DATE><TIME>.csv
    Data format: ASC
    Application area: BW
    Logical path:ZTEST_1_DATAOUT
    when I tried to save it throws me an error like  ASSIGN_SUBSTRING_NOT_ALLOWED
    Please help.

    Hi,
    Please check the OSS Notes :
    Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
    SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
    Hope this solves the problem.
    -Vikram

  • ITSG transaction FILE setup

    Hi,
    I'm setting up the Basis side of configuring ITSG for German Social Insurance. Part of the work involves setting up logical File paths in transaction FILE.
    problem is that logical path configured in FILE is the same across all SAP instances but the physical path on the OS is not the same. The path is actually specified in the UNIX OS environment variable and is local to each host running the SAP instances and can i use that in FILE somehow? i thought AL11 but that is same across all instances, its the DVEBMGS00 and D21 that is different and causing issues.
    the path is
    /usr/sap/<SID0>/DVEBMGS00/sec
    but on otherhosts running instances its /usr/sap/<SID>/D21/sec
    Your help would be much appreciated.
    Mani

    try this syntax for the logical path:
    /usr/sap/<SYSID>/data/archiv/<FILENAME>
    and this for the file
    R<PARAM_1><MONTH><DAY><PARAM_2>.<TIME>.<F=EXAMPLE>
    take care about the 'brackets' <>.

  • Using path variable to CI under transaction file for DBTABLOG archiving

    Hello Colleagues,
    I have to configure DBTABLOG archiving among others under transaction file.
    Here you have to configure archive path to the filesystem.
    E.g.this is the path to the development system:
    DEV23015\Interfaces\Outbound\Archiving_IDOCs\<FILENAME>
    It's clear, for test as well production we are using different hostname.
    So the consideration was to use a respective variable for the server system.
    E.g.
    <HOST>\Interfaces\Outbound\Archiving_IDOCs\<FILENAME>
    But now the problem, we are using CI (centra instnace) and application server for test as well as production and the archiving path respectively the archiving folder are only configured at CI server.
    So the HOST variable is not sufficient in this case.
    The variable SAPGLOBALHOST pointing directly to the CI server but not possible to configure under TC file.
    Any idea which variable possible and pointing direct to CI server?
    Or is the only possibility for pointing direct to CI server for archiving to use the HOST variable and modify the archiving job to run only on CI server?
    Many thanks in advance!
    Regards,
    Jochen

    You have two options...
    First one is to mount that path into all your instances
    Second is to use a Server Group Name under Cross-Archiving Object Customizing -> Technical Settings to force that particular object jobs to run on your CI.
    Regards
    Juan

  • Logical File name of Transaction File

    Hi All,
    I am using FILE_NAME_GET function module to get the Physical file name based on logical file name.
    But here i am not getting total file name, i maintained Physical File name as ZDM\INTB18\<PARAM_1>.
    Transaction File is stored in application server and it's name is ZDM\INTB18\RMCB18_DATETIME.
    Could you please anybody suggest how to get total file name.
    Thanks,
    Rami Reddy.

    Hi Rami,
    Have you utilised the Parameter WITH_FILE_EXTENSION in the function ... e.g.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
      physical path (Windows): C:\SALES\<FILENAME>
    Get file name for WINDOWS platform, with file name extension
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
          WITH_FILE_EXTENSION = 'X'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Rgds, Derrick

  • Duplicate Records error when processing transaction file....BPC 7.0

    Hi All,
    I have a situation. I am using BPC NW 7.0 and I have updated my dimension files. When I try to validate my transaction file every single record is validated successfully. But when I try to import the flat file into my application, I am getting a lot of dupplication records error and these are my questions.
    1. Will we get duplicate records in transaction files?
    2. Even if there are duplication, since it is a cube it should summarize not display that as a error and reject records?
    3. Is there something I can do to accept duplicates (I have checked the Replace option in the data package, to overwrite the simillar records, but it is only for account, category and entity only.
    5. In mycase I see identical values in all my dimension and the $value is the only difference. Why is it not summing up.
    Your quickest reply is much appreciated.
    Thanks,
    Alex.

    Hi,
    I have the same problem.
    In my case the file that I want to upload has different row that differ for the nature column. In the conversion file I map different nature to one internal nature.
    ES: cost1 --> cost
          cost2 --> cost
          cost3 --> cost
    In my desire was that in BPC the nature cost assume the result  cost = cost1 + cost2 + cost3.
    The result is that only the first record is uploaded and all other recorda are rejected as duplicate.
    Any suggestion?

  • Transaction FILE : Configuration/Usage Best Practice

    Looking for information regarding the best practice configuration for the transaction FILE. In particular, the activity is currently configured as a transportable object to where we have to define values in our DEV system and then promote through to PRD. This seems a bit off. I've looked all over to try and determine if this is a default setting and to see if other folks have turned this off as a best practice but I've yet to find any relevant info. Everywhere I read about using the functionality no one ever complains about the transport process... so this leads me to beleive that it really should not be setup that way.
    So, can anyone point me to a SAP Note, or White Paper, or anything, with an official recommendation on how to configure as transportable or not.
    I'm not necessarily looking for opinions... I'm really looking for some hardcopy recommendations.
    Thanks in advance.
    Bryan

    FILE is basically useful for the Logical and Physical File mapping.
    The end user is not aware of any physical path.
    Its difficult to remember the physical path.
    Eg:
    BWSWEB\Interfaces\Out\File\Bank\RBS\ is mapped to simple and easy to remember logical path like Z_Bank_RBS
    The configuration is very easy and transportable.
    Developer can do it if have the authorization else BASIS will do it.
    YOu need to enter the logical path, physical path and the file system to configure it.
    YOu can also pass the run time parameters like System ID and Client.
    Eg:
    BWSWEB\DE1\300 will be development and the same will be dynamically changed to
    BWSWEB\QE1\300 for Quality.
    Hope this helps.

  • Populate an Invoice from a variable length transaction file

    I have a transaction file which has labor rows and material rows which need to be posted onto an invoice.  Column A in transaction file has an L if labor and a M if a material record:
    Transaction file:
    L Labor = 123.45
    L Labor = 234.56
    M Part1
     = 333.33
    L Labor = 22.25
    M Part2  = 12.45
    M Part3  = 56.45
    On the Invoice spreadsheet which this data must be 'posted' to:
    The VARIABLE number of Material rows must be on top and go down an UNLIMITED number of rows.  The labor will end up being just one summary line at the bottom of the invoice or right after the end of the Material lines.
    INVOICE  EXAMPLE:
    Description Amount
    Part1 333.33
    Part2   12.45
    Part3   56.45
    TOTAL Labor 380.26

    Hi,
    I try to reproduce your needs, check the below image if it is you wanted.
    If it is, we need to do some steps:
    1.Copy the transaction data to column A.
    2.Split the original data. Formula:
    B1:=LEFT(A1,FIND("=",A1,1)) C1:FIND("=",A1,1)))
    3.We need some VBA code to realize two behaviors.
    List the material record to column F.
    Sum the labor record
    If you need further help about the VBA coding/programing, please post your questions to MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Transactional Files in Java - by Ganotis Ioannis

    Hi,
    I am happy to announce the release of the "Transactional Files in Java" project.
    Using this project means there is no need any more to provide transactional support manually which results in mixing-up business logic with transaction related code.
    The project provides you with a library which can be used to have access to both files and directories transactionally (offering ACID semantics). The library also gives you the powerful feature of recovering from failures, as in our days there is no guarantee that software or hardware of systems never fail.
    For more information on the library and how it can be used follow the link below:
    [http://www.jboss.org/jbosstm/fileio/] .
    You will also find links to run the provided demo applications on that page.
    For more discussion on the project check this [forum topic|http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173688#4173688].
    All comments are welcome.
    Cheers,
    I. Ganotis
    [http://iganotis.blogspot.com/]

    Thanks a lot
    It's working now

  • Transaction file to convert ket figure model toaccount model

    I am trying to create a transaction file to convert ket figure model to account model, here it is:
    *MAPPING
    C_CATEGORY = 0VERSION
    ENTITY = 0COMP_CODE
    RPTCURRENCY = 0CURTYPE
    TIME = 0FISCPER
    AMOUNT = 0BALANCE
    C_DATASRC = *NEWCOL(INPUT)
    FLOW = *NEWCOL(F_NONE)
    PROFITCENTER = 0PROFIT_CTR
    INTCO = *NEWCOL(I_NONE)
    CCTR = 0COSTCENTER
    C_ACCT = *MKEY(0key10 | *NEWCOL(cost) | | 0key20 | *NEWCOL(variance))
    where 0key10, 0key20 are the two key figure in my BI cube  and cost, variance are the two base members in account dimension.
    whey I tried to validate the t file, I receive the error message" Unknown mapping formula *MKEY"
    Anybody know how to fix this?
    Edited by: Jianbai on Mar 8, 2011 6:59 PM

    I delete the AMOUNT = 0BALANCE  and validate it again,, this time I receiv the following message:
    "=MKEY(COL(43 )|NEWCOL(cost)||COL(50 )|NEWC is not a valid command or column =MKEY(COL(43 )|NEWCOL(cost)||COL(50 )|NEWC does not exist in source"

  • Use transaction FILE to store data from a cube into a file with Open Hub

    Hi people:
    I'm using BI 7.0 .Mi requirement is to make a flat file using the information of a virtual cube. The file name must have the number of the month and the year. I know that this is possible through FILE transaction.
    Can anybody give me a clue how this transaction is used?Which are the steps in order to assemble the name of the file? Or is there any other option? I have defined the physical directory where the file must be leaved
    Any help will be great. Thanks in advanced

    Hi,
    pick up the code which you need from below.
    REPORT RSAN_WB_ROUTINE_TEMP_REPORT .
    TYPES: BEGIN OF y_source_fields ,
             /BIC/ZTO_ROUTE TYPE /BIC/OIZTO_ROUTE ,
             ZINT_HU__Z_WM_HU TYPE /BIC/OIZ_WM_HU ,
             CREATEDON TYPE /BI0/OICREATEDON ,
             ROUTE TYPE /BI0/OIROUTE ,
             PLANT TYPE /BI0/OIPLANT ,
             PLANT__0STREET TYPE /BI0/OISTREET ,
             PLANT__0CITY TYPE /BI0/OICITY ,
             PLANT__0REGION TYPE /BI0/OIREGION ,
             PLANT__0POSTAL_CD TYPE /BI0/OIPOSTAL_CD ,
             /BIC/ZRECVPLNT TYPE /BIC/OIZRECVPLNT ,
             ZRECVPLNT__0STREET TYPE /BI0/OISTREET ,
             ZRECVPLNT__0CITY TYPE /BI0/OICITY ,
             ZRECVPLNT__0REGION TYPE /BI0/OIREGION ,
             ZRECVPLNT__0POSTAL_CD TYPE /BI0/OIPOSTAL_CD ,
             KYF_0001 TYPE /BI0/OIDLV_QTY ,
             ROUTE__Z_CR_DOCK TYPE /BIC/OIZ_CR_DOCK ,
             REFER_DOC TYPE /BI0/OIREFER_DOC ,
           END OF y_source_fields .
    TYPES: yt_source_fields TYPE STANDARD TABLE OF y_source_fields .
    TYPES: BEGIN OF y_target_fields ,
             RECORDTYPE TYPE /BI0/OISTREET ,
             CONTAINER TYPE /BI0/OICITY ,
             /BIC/ZTO_ROUTE TYPE /BIC/OIZTO_ROUTE ,
             TRACKINGNUMBER TYPE /BIC/OIZ_WM_HU ,
             PO TYPE /BI0/OICITY ,
             STAGEDDATE TYPE /BI0/OICITY ,
             MOVEMENTTYPE TYPE /BI0/OICITY ,
             ROUTE TYPE /BI0/OIROUTE ,
             PLANT TYPE /BI0/OIPLANT ,
             PLANT__0STREET TYPE /BI0/OISTREET ,
             PLANT__0CITY TYPE /BI0/OICITY ,
             PLANT__0REGION TYPE /BI0/OIREGION ,
             PLANT__0POSTAL_CD TYPE /BI0/OIPOSTAL_CD ,
             ORIGINCONTACTNAME TYPE /BI0/OISTREET ,
             ORIGINCONTACTPHONE TYPE /BI0/OISTREET ,
             /BIC/ZRECVPLNT TYPE /BIC/OIZRECVPLNT ,
             ZRECVPLNT__0STREET TYPE /BI0/OISTREET ,
             ZRECVPLNT__0CITY TYPE /BI0/OISTREET ,
             ZRECVPLNT__0REGION TYPE /BI0/OISTREET ,
             ZRECVPLNT__0POSTAL_CD TYPE /BI0/OISTREET ,
             DESTINATIONCONTACTNAME TYPE /BI0/OISTREET ,
             DESTINATIONCONTACTPHONE TYPE /BI0/OISTREET ,
             RCCCODE TYPE /BI0/OISTREET ,
             GLCORCLLICODE TYPE /BI0/OISTREET ,
             JFCCODE TYPE /BI0/OISTREET ,
             DESCRIPTIONOFWORK1 TYPE /BI0/OISTREET ,
             DESCRIPTIONOFWORK2 TYPE /BI0/OISTREET ,
             INSTRUCTIONS TYPE /BI0/OISTREET ,
             REQUESTEDSHIPDATE TYPE /BI0/OICITY ,
             ROUTE__Z_CR_DOCK TYPE /BIC/OIZ_CR_DOCK ,
             REQUESTEDDELIVERYDATE TYPE /BI0/OICITY ,
             ATTSEORDER TYPE /BI0/OICITY ,
             CUBE TYPE /BI0/OISTREET ,
             WEIGHT TYPE /BI0/OISTREET ,
             PIECES TYPE /BI0/OIREFER_DOC ,
             REEL TYPE /BI0/OISTREET ,
             REELSIZE TYPE /BI0/OISTREET ,
             VENDORSKU TYPE /BI0/OISTREET ,
             ATTSESKU TYPE /BI0/OISTREET ,
             COMPANYNAME TYPE /BI0/OISTREET ,
             OEM TYPE /BI0/OISTREET ,
             REFER_DOC TYPE /BI0/OIREFER_DOC ,
             REFERENCENUMBER2 TYPE /BI0/OISTREET ,
             REFERENCENUMBER3 TYPE /BI0/OISTREET ,
             REFERENCENUMBER4 TYPE /BI0/OISTREET ,
           END OF y_target_fields .
    TYPES: yt_target_fields TYPE STANDARD TABLE OF y_target_fields .
    Begin of type definitions -
    *TYPES: ...
    End of type definitions -
    FORM compute_data_transformation
         USING     it_source TYPE yt_source_fields
                   ir_context TYPE REF TO if_rsan_rt_routine_context
         EXPORTING et_target TYPE yt_target_fields .
    Begin of transformation code -
      DATA: ls_source TYPE y_source_fields,
            ls_target TYPE y_target_fields,
            var1(10),
            var2(10),
            year(4),
            month(2),
            day(2),
            date(10),
            it_workdays type table of /bic/pzworkdays,
            wa_workdays type /bic/pzworkdays,
            sto_date(10),
            V_tabix TYPE sy-tabix,
            Y_tabix TYPE sy-tabix,
            sto_var1(10),
            sto_year(4),
            sto_month(2),
            sto_day(2),
            sto_final_date(10),
            W_HEADER LIKE LS_TARGET-RECORDTYPE,
            W_HEADER1(12) TYPE C VALUE 'HEDR00000000',
            W_FOOTER LIKE W_HEADER VALUE 'TRLR0000',
            CNT(5),
            CMD(125) TYPE C.
    **********CODE FOR GENRATING CSV FILE PATH*******************
    data: OUTFILE_NAME(100) TYPE C,
          OUTFILE_NAME1(10) TYPE C VALUE '/sapmnt/',
          OUTFILE_NAME3(18) TYPE C VALUE '/qoutsap/ATTUVS',
          DATE1 LIKE SY-DATUM,
          DD(2) TYPE C,
          MM(2) TYPE C,
          YYYY(4) TYPE C.
    MOVE SY-DATUM+6(2) TO DD.
    MOVE SY-DATUM+4(2) TO MM.
    MOVE SY-DATUM(4) TO YYYY.
    CONCATENATE YYYY MM DD INTO DATE1.
    CONCATENATE OUTFILE_NAME1 SY-SYSID OUTFILE_NAME3 '.CSV' INTO
    OUTFILE_NAME.
    **********END OF CODE FOR GENRATING CSV FILE PATH*************
      OPEN DATASET OUTFILE_NAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Code for generating Header.
      CONCATENATE W_HEADER1  SY-DATUM SY-UZEIT INTO W_HEADER.
      APPEND W_HEADER TO ET_TARGET.
      TRANSFER W_HEADER TO OUTFILE_NAME.
      CLEAR W_HEADER.
    End of code for generating Header.
    code for excluding the rows who's Quantity(PIECES) equal to zero.
      LOOP AT it_source INTO ls_source where KYF_0001 NE '0'.
    end of code for excluding the rows who's Quantity(PIECES) equal to
    *zero
        MOVE-CORRESPONDING ls_source TO ls_target.
        ls_target-RECORDTYPE = 'PKUP'.
        ls_target-CONTAINER = ''.
        ls_target-TRACKINGNUMBER = ls_source-ZINT_HU__Z_WM_HU.
        ls_target-PO = ''.
    Date Conversion for Staged Date.
        var1 = ls_source-CREATEDON.
        year = var1+0(4).
        month = var1+4(2).
        day = var1+6(2).
        CONCATENATE month '/' day '/' year INTO date.
    End of Date Conversion for Staged Date.
        ls_target-STAGEDDATE = date.
        ls_target-MOVEMENTTYPE = 'P'.
        ls_target-ORIGINCONTACTNAME = ''.
        ls_target-ORIGINCONTACTPHONE = ''.
        ls_target-DESTINATIONCONTACTNAME = ''.
        ls_target-DESTINATIONCONTACTPHONE = ''.
        ls_target-RCCCODE = ''.
        ls_target-GLCORCLLICODE = ''.
        ls_target-JFCCODE = ''.
        ls_target-DESCRIPTIONOFWORK1 = ''.
        ls_target-DESCRIPTIONOFWORK2 = ''.
        ls_target-INSTRUCTIONS = ''.
        ls_target-REQUESTEDSHIPDATE = date.
    Calculating STO Creation Date + 3 working Days.
        select /BIC/ZWORKDAYS from /bic/pzworkdays into table it_workdays.
        loop at it_workdays into wa_workdays.
            if  wa_workdays-/bic/zworkdays = ls_source-CREATEDON.
                V_tabix = sy-tabix.
                Y_tabix = V_tabix + 3.
            endif.
            If sy-tabix = y_tabix.
                sto_date = wa_workdays-/bic/zworkdays.
            endif.
        Endloop.
        clear v_tabix.
        clear Y_tabix.
        sto_var1 = sto_date.
        sto_year = sto_var1+0(4).
        sto_month = sto_var1+4(2).
        sto_day = sto_var1+6(2).
        CONCATENATE sto_month '/' sto_day '/' sto_year INTO sto_final_date.
    End Of Calculating STO Creation Date + 3 working Days.
        ls_target-REQUESTEDDELIVERYDATE = sto_final_date.
        ls_target-ATTSEORDER = ''.
        ls_target-CUBE = ''.
        ls_target-PIECES = ls_source-KYF_0001.
        ls_target-REEL = ''.
        ls_target-REELSIZE = ''.
        ls_target-VENDORSKU = ''.
        ls_target-ATTSESKU = ''.
        ls_target-COMPANYNAME = 'AT&T'.
        ls_target-OEM = ''.
        ls_target-REFERENCENUMBER2 = '0'.
        ls_target-REFERENCENUMBER3 = '0'.
        ls_target-REFERENCENUMBER4 = '0'.
        APPEND ls_target TO et_target.
        TRANSFER ls_target TO OUTFILE_NAME.
        CNT = CNT + 1.
      ENDLOOP.
        CNT = CNT + 2.
    Code for generating Header -Footer.
      SHIFT CNT LEFT DELETING LEADING SPACE.
      CONCATENATE W_FOOTER CNT INTO W_HEADER.
      APPEND W_HEADER TO ET_TARGET.
    End of code for generating Header -Footer.
    Code for file permissions
      TRANSFER W_HEADER TO OUTFILE_NAME.
      CLOSE DATASET OUTFILE_NAME.
      CONCATENATE 'chmod 644' OUTFILE_NAME INTO CMD SEPARATED BY SPACE.
      CALL 'SYSTEM' ID 'COMMAND' FIELD CMD.
    End of code for file permissions
    End of transformation code -
    ENDFORM.
    Hope it helps
    bhaskar

  • Separate details for Adjustment transaction files

    Hi,
    As an out put from Time Evaluation I need to generate report for Oracle payroll office. For that I need to produce separate transcation file for adjustment days (post period regularization of attendance and absence days) of previous months. Can writing a new PCR in time evaluation schema be of any help and what will be that PCR like.
    Thanks and regards,
    Payal

    Can you please show the code which you run to backup transaction log and I guess you have added verify backup task as well ?
    It seems its failing during verifying trn logs
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Why is my transaction file growing when db is in simple mode and there are no waiting transactions

    I noticed that my database log file has reached 160GBs. My database is in simple recovery mode and I used the following query to see if there are
    any waiting transactions.
    SELECT d.name,d.log_reuse_wait,d.log_reuse_wait_desc
    FROM sys.databases d
    It returned log_reuse_wait 0 and description 'NOTHING'. Why is my transaction log growing then? Please advice.
    mayooran99

    DBCC opentran will give spid, you can pass that spid to dbcc inputbuffer(spid) to see what transaction is running. Also you can do sp_who2 spid will give other details.
    You can make use of these queries to get MORE details about OPEN and ACTIVE transactions.
    SELECT
    trans.session_id as [Session ID],
    trans.transaction_id as [Transaction ID],
    tas.name as [Transaction Name],
    tds.database_id as [Database ID]
    FROM sys.dm_tran_active_transactions tas
    INNER JOIN sys.dm_tran_database_transactions tds
    ON (tas.transaction_id = tds.transaction_id )
    INNER JOIN sys.dm_tran_session_transactions trans
    ON (trans.transaction_id=tas.transaction_id)
    WHERE trans.is_user_transaction = 1 -- user
    AND tas.transaction_state = 2 -- active
    AND tds.database_transaction_begin_time IS NOT NULL
    SELECT
        [s_tst].[session_id],
        [s_es].[login_name] AS [Login Name],
        DB_NAME (s_tdt.database_id) AS [Database],
        [s_tdt].[database_transaction_begin_time] AS [Begin Time],
        [s_tdt].[database_transaction_log_bytes_used] AS [Log Bytes],
        [s_tdt].[database_transaction_log_bytes_reserved] AS [Log Rsvd],
        [s_est].text AS [Last T-SQL Text],
        [s_eqp].[query_plan] AS [Last Plan]
    FROM
        sys.dm_tran_database_transactions [s_tdt]
    JOIN
        sys.dm_tran_session_transactions [s_tst]
    ON
        [s_tst].[transaction_id] = [s_tdt].[transaction_id]
    JOIN
        sys.[dm_exec_sessions] [s_es]
    ON
        [s_es].[session_id] = [s_tst].[session_id]
    JOIN
        sys.dm_exec_connections [s_ec]
    ON
        [s_ec].[session_id] = [s_tst].[session_id]
    LEFT OUTER JOIN
        sys.dm_exec_requests [s_er]
    ON
        [s_er].[session_id] = [s_tst].[session_id]
    CROSS APPLY
        sys.dm_exec_sql_text ([s_ec].[most_recent_sql_handle]) AS [s_est]
    OUTER APPLY
        sys.dm_exec_query_plan ([s_er].[plan_handle]) AS [s_eqp]
    ORDER BY
        [Begin Time] ASC;
    GO
    http://www.sqlskills.com/blogs/paul/script-open-transactions-with-text-and-plans/

  • RBE 3.0 Transaction file

    Running RBE3.0 Test version I downloaded the 4 xml-files using ZRBE_MAIN, but there is the Transaction assignment file that seems to be misformatted
    meaning that TRANSACTION TAG of the XML seems to be missing.
    File is generated using Abap zrbe_dwl_trans_assignments provided by OSS note.
    Anyone ran into this kind of issue ?
    marco

    Hi Rafael
    Note 1001343 contains info on the reports for extracting RBE data
    This link: https://websmp102.sap-ag.de/~sapidb/011000358700000052162007E/RBE30_V02.htm
    has a few other notes that are applicable for RBE3 that may be useful
    Regards,
    Alex

  • Transactional file output from a Java Stored Procedure invoked by trigger.

    I need to write information to a file from a Java Stored
    Procedure which is called from an insert trigger. This works OK
    except for the condition when a rollback is performed - the file
    is updated anyway.
    I need the Java Stored Procedure file output to be part of the
    transaction - performed on commit and skipped on rollback. Is
    there any way the Java Stored Procedure can be aware of the
    state of the transaction?

    i am Still facing the following problem:
    if i pass a parameter like :
    rm -f /test/menu.ksh
    then the required output is that the menu.ksh file gets deleted.
    but when i pass this command:
    ./test/menu.ksh
    It is supposed to execute the specified script but it does not.
    I have tried multiple things like giving chmod 777 rights to the following file and changing the command to /test/menu.ksh but nothing happens
    Can you kindly tell me what can the problem be. Is there any execution rights issue: i am executing these scripts from pl sql developer.
    You can find both the procedure and java method which is being called below
    ==========================================================================================
    create or replace procedure TEST_DISPLAY(filename in varchar2, result out varchar2, error out varchar2) is
    command varchar2(100);
    vRetChar varchar2(100);
    begin
    command := filename ;
    prc_host(command, vRetChar);
    result := vRetChar;
    dbms_output.put_line(result);
    Exception
    when No_Data_Found Then
    error := 'Command is not Found';
    dbms_output.put_line('Failure');
    return;
    end TEST_DISPLAY;
    ======================================================================
    create or replace and compile java source named host as
    import java.io.*;
    import java.lang.Runtime;
    import java.lang.Process;
    import java.io.IOException;
    import java.lang.InterruptedException;
    public class Host {
    public static void executeCommand(String command,String[] outString) {
    String RetVal;
    try {
    String[] finalCommand;
    final Process pr = Runtime.getRuntime().exec(command);
    // Capture output from STDERR...
    }

Maybe you are looking for

  • Mobile phone redirection

    I'm having difficulty making Muse redirect to a phone version of a website. I have the 'Redirect from Desktop' box checked in site properties box for the phone, but it does not seem to work. In the customer's host site, I have a 'public' directory an

  • How do I get a refund for movies I can't download?

    I purchased two movies on iTunes and I can't download them on my computer or my iPad. I would like a refund. I purchased these movies so my kids could watch them while traveling on a plane, but couldn't download them so we didn't get to use them. The

  • 3D templates doypack?

    Anyone got any good links to a 3D doypack, needs to be a 3d model and exportable as 3D pdf. Thanks

  • WD Mybook

    I have a 3TB external WD MyBook hard drive with data on it from my previous PC. I am new to MAC and am unfamiliar with the inner workings. I plugged it up to my Macbook Pro retina so that I can use it as a backup due to only having 128 of flash stora

  • Importing from Media Player

    I'm terrible with computers...I have my entire music library on my windows media player and now want to switch everything to iTunes.  How do I go about this?  I did read somwhere that any files I import will only be copies - the original to remain wh