SQLEXEC Format in the Table Spec of an Extract?

I'm trying to demonstrate to myself how to place tokens in a trail file using an SQLEXEC, and I'm having issues even with a very simple example.  I have the following table spec in my params file:
table my_schema.*, SQLEXEC ( ID myResults, QUERY "select sysdate as fooDate from dual " ), TOKENS (TKFOO=@GETVAL(myResults.fooDate));
... the extract will start up fine with the spec above, but it ABENDS as soon as I make any data changes in the my_schema schema, and the error I get in my extract report is:
Source Context:
  SourceModule    
: [er.sp]
  SourceID
               : [/home/ecloud/workspace/Build_OpenSys_r11.1.1.0.0_078_[34109]/perforce/src/app/er/sp.c]
  SourceFunction
     : [SP_parse]
  SourceLine          
: [465]
2013-10-25 16:51:43  ERROR   OGG-00349  Error in SQLEXEC clause, id myResults: Missing equals sign for param specifier (ID).
... I've tried entering an equals sign in the table spec line ... eg:
table my_schema.*, SQLEXEC ( ID=
myResults, QUERY "select sysdate as fooDate from dual " ), TOKENS (TKFOO=@GETVAL(myResults.fooDate));
... but I still get an error in the same source module and function, but this time at line 473 rather than 465, with
the following error printed:
2013-10-25 17:03:36  ERROR   OGG-00350  Error in SQLEXEC clause, id myResults: Invalid parameter name: ID.
Can anyone show me a simple example of
how to use an SQLEXEC in the table spec of an extract to poplate tokens in the trail?  I realize the example above is trivival / not necessary, but I would just like to get a simple example working first, before I attempt to proceed on to a more complex / realistic example.
Thanks  for any help / insight!

Hi SMI SAP Project Team,
Please check the code for loop and lead selection when you setting the values.
for( f = 0; f < e; f++)
Refer to below documents:
initializing AbstractList Model in Custom Controller
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90?quicklink=index&overridelayout=true
Hope it will helps
Regards
Arun

Similar Messages

  • Problem in dispalying the line no in particular format in the table footer

    Hi,
    i am facing a problem in dispalying line numbers in a particular format (expalined below) in the table view control(footer of table) of a RSS iView. The format is
    X - Y / Z
    where:
    X refers to the number of the top article/link displayed
    Y refers to the number of the lowest article/link displayed
    Z refers to the total number of articles supplied by the news-feed.
    i am able to dispaly line number in format X/Z, if someone have some idea please reply.
    Thanks in advance

    Hi Deepak,
    see Table View for the same question.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Data format in the table(THTMLB:CELLERATOR)

    Hi All,
    I want to format the data in the table.
    In my case I want the date field to be displayed in MM/DD/YYYY(currently it is displaying as YYYYMMDD) format. For table display I am using "THTMLB:CELLERATOR".
    I tried using the interface method: IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START but it is not triggering at all.
    Thanks in advance.
    -Chandra

    The issue has been resolved. Need to initialize the iterator in the do_init_context.

  • How to get the Date format inside the table

    I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
    However I have to do this SELECT
    decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
    then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
    Does anybody know how to fix this, so I get exactly what is in the db?
    Thanks in advance

    No matter what you do if you are storing a date in a column it will get stored in the Oracle's internal 7 byte date format.
    The way you get it on retreiving it is as set by your date format. You can either change the default date format for the instance, the individual session or the individual SQL statement(in this case using to_char(date, 'format')).
    If you want to store the date in a format you want to store you'll have to store it as char or varchar2.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by George ([email protected]):
    I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
    However I have to do this SELECT
    decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
    then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
    Does anybody know how to fix this, so I get exactly what is in the db?
    Thanks in advance<HR></BLOCKQUOTE>
    When you do to_char() with 'month' oracle blank pads the month to nine characters, the same goes with day too. So to get rid of it you'll have to trim() the month. And if you want to get a single digit for date less than 10 instead of 0x you'll have to do a bit of extra jugglery using translate() or replace().
    Hope this helps
    Naveen

  • How to Total(Sum) of HH:MM (Varchar2) Format in the Table Region Style of OAF

    Hi All.
    I have Requirement to Calculate the Total Duration in OAF Table Style Region.
    Check In
    Check Out
    Total Hours (HH:MM)
    08:50:59
    15:29:56
    6:38
    07::02:18
    17:05:10
    10:02
    08:20:56
    16:28:33
    8:07
    Total
    24:47
    If i Could not Able to Sum of 6:38+10:02+8:07=24:47 Due to VArchar2 as Display.
    If i use Total (True) in Attribute it is through as sum 0.
    Please Help me to Calculate the Duration Sum in OAF Page.
    Regards
    Rama

    Your question is not clear..
    Provide CREATE tABLE and INSERT statements and expected output. Your DB version also.
    What is the data type of the column RUNTIME?
    And what does your calculation " avg((01:29:40+ 07:10:58)/14)" mean - what is the result of this?
    Please read FAQ: {message:id=9360002}

  • How can I lock a table so that a person can only enter data, not manipulate the table?

    I don't want to Lock the table as Numbers does it so perhaps locking is the wrong term. What I want to do is to lock the formatting of the table so it is possible to enter data but not possible to change the position, number of columns etc. I've been searching and all I can come up with is the regular lock function. But I still want to be able to use the cells. Just not change formatting.
    Thanks, Brad

    you cannot.  When you lock a table the whole table is locked.  I would consider segmenting the user input into a seprate, un-locked table and placing the calculations in a locked table

  • How can I get Numbers to copy the formatting of a table?

    I am trying to replicate the AppleWorks spreadsheet that I created to do my monthly finances
    My AppleWorks spreadsheet has lots of defined ranges that I'm turning into separate Numbers Tables (so I have to change Many Many Many cell references, which does not seem to be easy in Numbers)
    I've formatted one table as I want it - columns for itemizing expenses for the month with column to describe expense. I've got a header column (e.g. "Hobbies") that I'm centering (merge Cells) over the 2 columns for month's expenses and descriptions. Month's expenses columns are narrower than the description columns.
    I've tried selecting the table and saving as a named style.
    Then, when I create the next table, it starts w/ generic formatting. I clear and apply the style I've just created - _some_ of the formatting is applied to the new style, but not all:
    Fill in the header row not applied
    Merged cells in the header row not applied
    Tinted fill in header row not applied
    Centered text of Merged Cells not applied (left justified, instead)
    Centered text of Months not applied (again, left justified)
    Row heights not applied
    Is there any way to copy ALL of the formatting of a table and apply it to another table?

    Thanks Wayne - I've been working on my AppleWorks to Numbers comversion  using the Apple key - D method to duplicate tables.
    I do have to retype column headers (these change for each table)
    If I could paste formatting, I could copy the entire table from imported spreadsheet, paste formatting, and Wah-Lah.
    Oh, Well the Apple Key - D method (re-entering column heads - type once and then Ctrl-C & a bunch of Ctrl-Vs) is WAY easier than reformatting each table manually.
    Only slightly painful to have to re-enter all the cell references for the summed-column totals in the sub-tables into the main table
    I've been using the same spreadsheet (w/ minor tweaks from year to year) for the past 12 years... it ain't broke & I'm grumpy about fixing what Apple broke - computers are such timesavers... sigh
    Win

  • How to put check box in a table format at the out put ?  Urgent issue...

    Hi,
    I am working an assignment to assign multiple roles for multiplr user.
    In selection screen we have to enter mutiple EMPNO from ..to
    1)  in second screen we will get the empno, First name, last name,  Position,
        From  date, To date, Sap user ID, Email id in the table formate with first
        column  with Check box.
    2) In second screen below the table I have to place the multiple roles just like in
       the step  loop format and below this one Execute button should be there.
    If we select the multiple employees or single employee and place the multiple roles or single roles and if I click the execute button then the multiple roles will be assigned to the multiple employees. The empno and roles will come from table and step loop to internal table and the same will pass to the BDC.
    For this requirement I prepered recording for Transaction PFCG. But I can't understand how to design the second screen that table format and the step loop format. Can anybody give any idea or any coding to design  the second screen.
    and how to meet the requirement. This is urgent issue. Good SDN points will be reworded.
    Witing for kind response.
    Thanks in advance.
    Bansidhar

    Hi upendra
    There are slight changes in the sivas code.Where is the data coming into the table.If its from a Model Node then iterate each element of the source node get that value compare and set the corresponding value in the element of the node binded to table.
    Create a boolean attribute "select" in the table node and bind it to checked property of the check box.
    for(int i=0;i<wdContext.node<tablenode>()..size();i++)
    if(wdContext.node<tablenode>().get<tablenode>ElementAt(i).select())
    wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(true);
    else
    wdContext.node<tablenode>().get<tablenode>ElementAt(i).set<yourattribute>(false);
    See the attribute is boolean so pass true or false as a values in setter methods.
    Regards
    Kalyan

  • The online conversion of my pdf file to word did not correctly convert the tables and certain other formatting.  I wish to obtain a refund.

    The online conversion of my pdf file to word did not correctly convert the tables and certain other formatting.  I wish to obtain a refund.

    Hi yammyamm,
    I'm sorry that your conversion didn't work out for you. Please contact Adobe Customer Support via phone or chat, and an agent will be able to process that cancellation/refund for you. Here is the contact information: Contact Customer Care
    Best,
    Sara

  • Using Pages, I have created a document and inserted a Table for use in logging an inventaory. When I came to print this off however the lines for the table were missing but the text was in the Table format, weird! How do I print the Table?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

  • How do I retain the formatting (i.e. tables or graphics) while saving a pdf as an html?

    How do I retain the formatting (i.e. tables or graphics) while saving a pdf as an html?

    Are the PDF files that you are attempting to Save As HTML tagged?

  • "Referenced" Table Cells not copying formatting of the source table

    Hi-
    I have one sheet that has a rental inventory table that is quite large.  On another page, I have a "printable" version that has filtering applied to hide certain columns.
    What I did orginally was duplicate the table on the inventory page, cut it, then go to my printable sheet, and paste it.  I now have a duplicate version of the original.  Then I go and select all cells, hit delete and all the contents disappear leaving me with the correct formating.
    At this point I can type in cells and see that the formating is intact (certain cells are in Bold for example).
    I delete the test contents, then reference the first cell (a1) to the source table, then copy the references across that entire printable table.  Once I've done that, all of the contents of the source table now appear in the "printable" table. 
    The problem is, that once I reference the source table, the formatting goes away.  The data shows up correctly:  ie, =Equip List :: B2, but the specific cell formating is gone.
    What am i doing wrong here?
    Thanks
    Matt

    "I delete the test contents, then reference the first cell (a1) to the source table, then copy the references across that entire printable table."
    If you do this by selecting and Copying the first cell containing the formula, that "copy" includes the formatting of the copied cell. If you then Paste, the Paste includes that format setting. You could try Edit > Paste and Match format.
    If that doesn't work, you could try this:
    Enter, then fill the formula as you've done, then set the format of each cell or group of cells to include the attributes you want at that location.
    Regards,
    Barry

  • When I highlight my bank transactions and paste them on word, they do not retain the table format, why? answer in laymens terms please. I'm new to FF.

    I Have Windows XP and I use Microsoft Word to make a copy of my bank transactions. With IE the copy/paste always retains the table format. With FF it prints out as a continuing line.
    I had to open up IE to perform the action there.

    You can look at this extension:
    *Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • SSIS question - Email the results of the table in pipe delimited format to the users

    I am new to SSIS and I have a requirement.  I have a sales table that has transactions for all months.  I am trying to automate the process which involves following steps:
    I need to query the table based on previous month.
    Email the results of the table in pipe delimited format to the users.
    What I am currently doing:
    I created a temp table and load the query results in it every month by truncating the previous month’s data.  Saved the query results in excel format. Open the excel and save it in csv format. Use SSIS package to convert csv to txt format and email
    them manually with the txt file name as “Salesresults_<previousmonth>.
    I just want to automate this process but the main challenge comes up with email with txt attached. Please help me out.

    First create a SSIS variable(@[User::Path]) that store folder path as "C:\Test".
    Select the "Expression" tab in Send Mail Task Editor and select the appropriate property(FileAttachments) and assign the below expression.
    @[User::Path] + "\\Salesresults_" + (DT_WSTR, 10) MONTH( GETDATE() ) + (DT_WSTR, 10) YEAR( GETDATE() ) + ".txt"
    Regards, RSingh

  • Tables lines/borders, although all formatted to the required weight, once pdf'd show up as different

    Tables lines/borders – although all formatted to the required weight in MS Word 2003, once pdfd show up as different weights and the 'heavier' line varies depending on which magnification the page is in. These lines are coloured, not automatic colour. Hope someone can help. Thanks

    Close the form so you are looking at the "My Forms" tab, the view that shows you all of your forms.  In the "My Forms" tab you can right click on a form and choose "Duplicate" from the context menu or you can select a form and click on the "Duplicate" button in the toolbar above the list of forms.
    Thanks,
    Josh

Maybe you are looking for

  • Setting up an Airport Express with a Time Capsule

    Merry Christmas! I received a new Airport Express for Christmas. My intention is to use it to stream music to my stereo. I have to admit that setting the AE up was not as simple as I had hoped it would be. I do have it working but I would like someon

  • Is it possible to only publish upcoming events?

    Hello, I publish an iCal calendar to iCalX, and I can't find a way to only publish future events... is there a way to keep the privacy of past events, but still publish upcoming events? I would appreciate to be able to share upcoming events with peop

  • Applet Servlet Comm. Problem

    Dear friends, i have an applet that sends a serialized object to the servlet,the Servlet creates another object and passes it back to the applet. Everything works fine, till i read the object with: ObjectInputStream objInputStream = new ObjectInputSt

  • Steps to Enable Archive log - RAC 10gR2(10.2.04)

    Hi Can anyone help on steps to enable archive log in RAC + ASM environment. db version- 10.2.0.4 , filesystem - ASM, Two nodes(db1,db2) Regards & Thanks

  • Installing flash player failed.

    I can't install flash player - 'insufficient administrator privileges' ~Windows 7 home premium service pack 1. 32 bit, ~Browser IE 10.0.9200.16660 ~Have administrator privileges.