How do I get the rowcount of target table using Sunopsis API in ODI 10g ?

Hi guys,
Actually I want to send an alert mail once interface is run from a package. I have included OdiSendMail alert which sends a mail once interface is run.
Could anyone please tell how to get the no of rows inserted in the target table from Sunopsis API.
I tried using <%=odiRef.getNbRows( )%> but this did not work for me. Since I'm a beginner, could you please help me out
This is my ODI send mail format
" Data population has been completed successfully at <%=odiRef.getSysDate( )%>
Total rows in target table are: <-- need some API code --> ''
Regards,
Clinton
Edited by: LawrenceClinton on Feb 25, 2013 8:53 PM

Hi
Create project variable with below details
Variable_name: Total_Row_Count
Variable Type: Refresh Variable
Definition Tab:
Datatype: Numeric
Action: Not Persistent
Refreshing Tab:
Schema: provide your Work Repository Schema and be
SELECT log.nb_row
FROM snp_step_log log, snp_scen_step step
WHERE log.nno = step.nno
AND step.scen_no =( SELECT scen_no FROM snp_scen_step WHERE step_name='<%=odiRef.getPrevStepLog( "STEP_NAME" )%>' )
AND log.sess_no = '<%=odiRef.getSession( "SESS_NO" )%>'low code
AND step.step_name = '<%=odiRef.getPrevStepLog( "STEP_NAME" )%>'
Note: Add this variable after interface step in your package (after the interface any where you can place), you can add this variable before ODISendEmailNotification Step in your package
Call this varciable *#Total_Row_Count* in ODISendEmail Notification
eg:
Data has been populated successfully at <%=odiRef.getSysDate( )%>
Total no of rows populated are : *#Total_Row_Count*
It will work
Regards,
Phanikanth
Edited by: Phanikanth on Feb 28, 2013 1:13 AM
Edited by: Phanikanth on Feb 28, 2013 1:14 AM

Similar Messages

  • How can i get the list of all tcode used by user of particular module

    Hi,
    How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
    Regards
    Vikram

    Login to your SAP System
    Run TCode SE16
    Type Table Name : TSTCT
    Press F7 Key (Table Contents )
    Go to Settings in menu bar
    Select User Parameters
    Under Keyword select Field Label and press green check mark
    Select your criteria in Data Browser and execute
    You will see all t codes in there
    Regards,
    Yogesh

  • I can not get any updates and therefor not use Java as it only run updates for Mac 10.7. and later? How do i get the updates to install and use Java?

    I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?

    In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
    java -version
    (don't get creative and type anything else)
    The latest version is 1.6.0_65.

  • Iterate through all the records in a table using Java API

    Hi All,
    What is the easiest way to iterate through all the records in a given table using Java API? I cannot find any methods that will return all records in a table and the only way I can use is to perform a free form search with a condition that is always true. The code works but is pretty ugly. Is there an alternative to this approach?
    Thanks!
    Kenny

    Hi Kenny,
    You can construct a new Search object with your table's code name, a new ResultSetDefinition object for your table and just execute this search using the GetResultSet method of CatalogData.
    Please look at the following code:
    Search search = new Search(<code name of your table>);
    ResultSetDefinition rsd = new ResultSetDefinition(<code name of your table>);
    rsd.AddField<code name of a field>);
    rsd.AddField(<code name of a field>);
    String sortField = <code name of your sort field>;
    boolean sortAscending = true;
    int page = 0; //page number
    A2iResultSet rs = <your CatalogData object>.GetResultSet(search, rsd, sortField, sortAscending, page);
    for (int i = 0; i < rs.GetRecordCount(); i++)
        Value fieldValue = rs.GetValueAt(i, <code name of a field>);
    Hope this helps,
    Nir
    PS - I really recommend you to start using the new API, as it is much more efficient and straight-forward.

  • How to get the sum in BSEG table using select statement

    hai all
    i made the internal tale "itab1" .. i want to get the som  feild of  DMBTR in BSG table my code is here but its not working gave som error massage (Aggregate functions and the addition DISTINCT are not supported in field lists for pooled and cluster tables.)  plz tel me how should i do it..... i want to get the som of that feild....          
    loop at itab1
         SELECT sum( DMBTR  ) from bseg INTO itab1-DMBTR141_45
             where GJAHR = itab1-GJAHR
             and   BELNR = itab1-BELNR.
    endloop.
    regard
    nawa

    SELECT BELNR GJAHR SHKZG DMBTR
                 from bseg
                 INTO table it_bseg
                 for all entries in itab1
                 where GJAHR = itab1-GJAHR
                   and BELNR = itab1-BELNR.
    loop at it_bseg.
        IF it_bseg-shkzg = 'H'.
          it_bseg-dmbtr = it_bseg-dmbtr * ( -1 ).
        ELSE.
          it_bseg-dmbtr = it_bseg-dmbtr.
        ENDIF.
        MODIFY it_bseg.
    endloop.
    loop at it_bseg.
    READ TABLE itab1 with key belnr = it_bseg-belnr
                               gjahr = it_bseg-gjahr.
    if sy-subrc = 0.
    collect it_bseg into it_bseg_amount.
    endif.
    endloop.
    U can use the collect statement
    Regards
    Gopi

  • HOW CAN I GET THE TIME IN EXCEL SHEET USING WRITE TO MEASUREMENT INSTRUCTION

    HI, I am using GET TIME IN SECONDS ,and after that i placed SECONDS TO DATE /TIME instruction ,and i had taken a write to measurement file instruction
    to get the time in excel sheet. Now i am not able to connect write to measurement source to seconds to date and time output . Is there any solution.
    I am attaching my VI file also.
    Attachments:
    TEST.vi ‏43 KB

    Hi
    Im using Labview 8.2. Currently it just shows the data without the time. Im not sure what to do. It works perfectly though. I just want the time to appear on my notepad along with my data
    holla
    Attachments:
    Testing1.txt ‏1 KB
    Untitled 231_LV80.vi ‏23 KB

  • How Can i get the data From A Table that use DefaultTableModel

    Hi and sorry for my bad english. The problem that i have is that i used this code to fill a table. Now i want when i select a row and click in a button , get the value of that row that i select so then i can update or delete that data in my dataBasesServer.
    private void consulta(){
              Connection c = ConectarSQL.conexionSQL();
              try {
                   Statement s = c.createStatement();
                   ResultSet ar = s.executeQuery("Select Apellido, Nombre FROM Personas");
                   DefaultTableModel modelo = new DefaultTableModel();
                   this.Tabla.setModel(modelo);
                   modelo.addColumn("Apellido");
                   modelo.addColumn("Nombre");
                   while (ar.next()) {
                      Object [] fila = new Object[2];
                      for (int i=0;i<2;i++)
                         fila[i] = ar.getObject(i+1);
                      modelo.addRow(fila);
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }

    Dont worry kevinaworkman, the thing is that a read it and is really usefull, but i was looking other kind of solution. But i welcome your answer and interested to solve my problem.
    I find the answer.
    To retrive the data i have to use the following instruction:
    Tabla.getValueAt(Tabla.getSelectedColumn(),Tabla.getSelectedRow);

  • How t o get  the sunject in reciever mail using mail adapter

    hi all.
    i had created a file to mail scenario .
    in archive mapping program it was defined to which mailids of reciever side should be mailed and the body of the mail.
    but i just want to know if there are any settings under reciever mail adapter to get the subject uner reciever mails and an increment value (the number of times that the mailget posted in reciever mails) to be displayed in subject line of mail after descryption of the subject.
    waiting for great answer.
    cheers.
    seeta ram.

    Hi Seeta,
    you have to use a UDF in which you define a Container
    http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm
    http://www.erpgenie.com/netweaver/xi/mapping1.htm
    You can make a counter which increments every time you call the UDF.
    Use the UDF in your mail package with the subject.
    Hope this helps.
    Dominic

  • How can I get the length of a sequence using script

    I am trying to get the length of an image sequence that was imported using importOptions.sequence.  I need to check that the length is a correct number, and if it is too short/long it gives an error message.
    Is there a way to do this?
    Thanks

    //Assumes that your clip is the first item in your project
    var a = app.project.item(1).duration;     //Returns clip length in seconds
    var b = app.project.item(1).frameDuration     //Returns a single frame length in seconds
    var c = a/b;     //If you divide the clip duration by the frameDuration, you should get clip length in frames

  • HT2589 We had an account that was housed on our old computer but it didn't make it onto the new one...how can I get the account balance and start using it?

    We had an account that was housed on our old computer but it didn't make it to the  new one.  How can we find the balance and start using it again?

    iTunes accounts are not located on your computer.  They are simply tied to a specific AppleID.  Just log in to iTunes with the correct AppleID and Password and you will be back in that account.

  • I reset my ipod. how do i get the itunes screen off to use it again?

    im trying to sell my ipod to a friend so i reset it to get all of my passwords and everything reset and now i cant figure out how to muse it again. the screen shows a usb plug with an arrow pointing to a round symbol that says itunes. how do i fix it

    That's normal.  It just means that the iPod will need to be connected to iTunes and set up there before it can be used again.
    B-rock

  • How do I get the new Photos App to use my iPhoto library which is stored on an external drive?

    2 years back   assisted me in putting my HUGE iPhoto library on an external TB drive where I store all my pics and videos.  They showed me how to point the iPhoto app to the iPhoto Library on my external, and it has worked flawless since.  But now that I updated to the new release of Yosemite OS X, the Photos app failed to find it.  And from what it looks like, it requires it to be stored locally on the iMac's drive... which I only have 500Gigs, and that was the whole reason for relocating the library...it's WAY bigger than 500Gigs.  I would like to see if there is a way for the Photos app to find the iPhoto Library on my external, and update it so I can take full advantage of the new app and it's features.
    Any help would be appreciated...!
    Niles SoCal

    Hey spdnbusa09,
    If you hold down the Option key on your keyboard and launch Photos it should let navigate to and select you iPhoto Library on your external HD.

  • How do you get the cursor to move faster using the arrow key?

    And how do you forward delete?

    nerowolfe wrote:
    STU9000 wrote:
    Thanks, been wondering how to do that for ages.
    Still can't see the answer to my first question though...
    re-read my post. The answer is there.
    Malcolm Rayfield wrote:
    Still can't see the answer to my first question though...
    *_Use Fn-Delete_*
    That was my second question.

  • HT4356 How do I get the photo paper to print using an app from my iPad?

    Has anyone had difficulties using an airprinter. I have been using a crafting app with photos. I selected my HP airprinter
    To print the project. The first 3 times it worked correctly. Now when I try to print it will not use the photo paper.
    It will print out on regular paper.
    Any suggestions?
    Thank you.

    Has anyone had difficulties using an airprinter. I have been using a crafting app with photos. I selected my HP airprinter
    To print the project. The first 3 times it worked correctly. Now when I try to print it will not use the photo paper.
    It will print out on regular paper.
    Any suggestions?
    Thank you.

  • Help!!!! How do I get the CD Tray to open using Java

    Please I need some help.... A bit line of code that will open the CD tray for a windows OS.
    Cheers
    Rylan

    I don't think there's a suitable java API.
    Try using the following vbscript...
    'declarations ( put in module )
    Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
    'actual code: put this in a command button or something . .
    Dim lngReturn As Long
    Dim strReturn As Long
    'To open the CD door, use this code:
    lngReturn = mciSendString("set CDAudio door open", strReturn, 127, 0)
    'To close the CD door, use this code:
    lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)

Maybe you are looking for

  • My very new MacBook Pro will not acknowledge that I have my camera plugged in, so I am unable to download any pictures.

         This year for Christmas I recieved the newest version of the MacBook Pro. It has worked perfectly, until today. I went to download pictures off of my camera on to my computer, and the computer would not acknowledge that anything was plugged in.

  • Do I need an adapter or a volt converter 220 to 110v for my ipod touch 2nd gen.

    I have and ipod touch 20nd gen and an ipod shuffle 4th gen. I live in Colombia where we have 110 v and I am traveling to Argentina where they have 220 v.  I've been reading that i may not need a power or voltage converter but just an adapter, because

  • Need Help with Javascript for Acrobat Pro 9

    Hello, I am creating a PDF form in Adobe Acrobat Profession 9.  Not having a lot of experience with Javascript, I have found this forum very helpful and have used many of the script examples for other issues I have had.  I was hoping someone could he

  • Output Types Processing Routines

    Hi experts, I need help regarding the Output Types Processing Routines. In SAP, there are several Processing Routines, how does the processing routines work if you put a Program and Forms to Processing 1 and Processing 2? Points will be rewarded. Tha

  • Changing TableModel on row selection

    I have a JTable in which selecting a new row which represents a single item, should cause other rows to be dynamically added and removed. These other rows represent details of the selected item. Only one item can be selected at a time, and subsequent