Create header file based on data in Data file

Hi,
For Data File: created an interface to extract data from table to data file.
1) Now i want to create a header file which contains info like :
Created On: #Rows Fetched:
2) I also want to create a footer, which contains info like:
SUM(AMOUNT) (amount is one of the columns of data file)
How do i implement this using an interface?
Thanks.

Step 1. Create a Variable Header - Call the count using some thing like this SELECT COUNT(*)||CHR(10) FROM TABLE
Step 2. Call it in OdiOutFile
Step 3 . Call the Interface to load from table to File using [ IKM SQL to File Append  with create Header option - no ]
Step 4. Create another Variable Footer - Call the sum in the Refreshing Tab
Step 5. Call it in OdiOutfile with Append option Checked
Note - Make sure you use the same File Name for all the three places.
There are other ways too but this is simple way. Hope this helps.

Similar Messages

  • How to create an album based upon date of importing photos

    today i imported over 2000 photos with dates accross three years time frame. how can i create an album based upon the date i imported the photos? or can i.
    if not, how would i add these pix to a specific album without going through the whole library some 15,000 photos strong now?

    Check out the Film Rolls ->
    View -> Film Rolls
    Each import creates a Roll, so the most recent one's should be easy to find. Select all and make an album from them.
    Regards
    TD

  • Creating iCal entries based on date/time appearing in text on any app

    One thing I like about iCal's integration with Apple Mail is that the mail client is able to sense dates and times in email messages and then allow you to create iCal entries. But it seems that this date and time sensing is only limited to Apple Mail when technically users could potentially want to create iCal entries when a date and time appears on any app, such as on a web page in a web browser, in a PDF, or a word processing document. It seems logical then for iCal to be integrated with OS X's text services, so that at least if I highlighted a date and time, I could right click on it and bring up an option to create an iCal entry on based on that date and time.
    Does anyone know if this feature is natively supported (for which I have yet to enable), or is there a third party app out there that will allow me to do this?

    Just a quick update. I tried the first two -- text2cal and Calendar Creator -- and they don't seem to work on OS X 10.6.6.
    However, on another note, I found some discussion regarding Snow Leopard's enhanced data detectors being natively able to do what I've been looking for. But I just can't seem to get it to work on my computer:
    "Enhanced Data Detectors now link dates, times and other items found in text to actionable items in other applications, like iCal. For example, a drop-down menu that automatically appears when you select the time or date parts in a text enables you to create a new iCal event from a selected date or show the date in iCal." From this link: http://www.geek.com/articles/chips/5-cool-snow-leopard-features-that-apple-doesn t-want-you-to-see-yet-20090520/

  • Create header file from Visual Age

    Hi, everyone! I write some java code that uses JNI, so I have to create java header file, but not with javah -jni command, but from Visual Age. I am new to Visual Age, so if anyone can help I'll be very grateful.

    It will take a lot to write down the whole process. You don't need create any xml file. All you do is creating a jar file that contains you bean, save it in WebSphere and using WebSphere's UI to deploy the beans in the jar file. This link may be useful and if it doesn't, you should be able to find more on IBM's site.
    http://www7b.boulder.ibm.com/wsdd/library/tutorials/vajwebsph35/1200_rickweaver_index.html
    PC

  • Best way to create detail records based on data in the master record..

    Hi,
    I am using 11gr1p1 and ADF stack.
    I have a master detail relation between 2 records. I have EO and entity associations. I want to create a number detail records based on the data on the master record.
    For example
    I have a Stay Record which has begin and end date I need to create the DailyStay Record for each day for the range of begin and end date of StayRecord.
    Where should I do this? In EO implementation or in VO implementation.?
    Thanks

    Where should I do this? In EO implementation or in VO implementation.?If your child record should in no case be created without those default values, then EO.
    Otherwise, to increase reusability of your EO, then in the VO over the view link (i.e. other VO's would still be able to use your EO without having the child VO created with these defaults).
    This way your ViewObjects can also be used in a context where you don't want to copy from the masterFrank, If there's another UI flow that is so drastically different that it does not want things defaulted, then it probably needs a different VO altogether (on the same underlying EO though)

  • I want to create a report based on date ranges...

    I have surfed the forum and seen all of the responses and can't get anything to work.
    This is where I am:
    select     OBJECT_ID,
         EVENT_CATEGORY,
         EVENTS_TITLE,
         EVENTS_DATE,
    OBJECT_ID "Click Icon For More Info"
         from EVENTS
    where     EVENT_CATEGORY = :P3_EVENT_CATEGORY and EVENTS_DATE between to_date(:P3_START_DATE,'DD-MON-RR HH:MI') and to_date(:P3_END_DATE,'DD-MON-RR HH:MI');
    When I input actual data for my querry:
    select     OBJECT_ID,
         EVENT_CATEGORY,
         EVENTS_TITLE,
         EVENTS_DATE,
    OBJECT_ID "Click Icon For More Info"
         from EVENTS
    where EVENT_CATEGORY = 'Category 1' and EVENTS_DATE between '04-MAY-06 10:57 AM' and '12-MAY-06 02:27 PM'
    It works!
    Please help

    Either
    1. Make sure the page is submitted so that those 2 items (P3_START_DATE and P3_END_DATE) get saved into session state and can be used by the report
    or
    2. Make sure both the items have the apppropriate Source or Default values defined so that the initial run of the page will display the report properly
    or
    3. Put a condition on the report region to not display until 1 (or both) of those 2 items have a non-null value.
    Hope this helps.

  • Create another table based on data from table above

    Hi all am using EJB 3.0 as technology.
    I have a table where user insert records.
    The field are as below
    TableId, projectId, TaskId, TOdate, duration, comments.
    I need to traverse this table and create another table that will display duration perday.
    for example
    Monday Tuesday Wednesday Thursday Friday
    6hr 8hr 7hr 8hr 9hr
    Thank you for your help regards
    Lutchumaya

    How-to information added to the example page.
    I experimented (not altogether to my satisfaction) with APEX 4.0 sub-regions which won't be usable anywhere else at present, so haven't said anything about region layout. In earlier versions you could use 2 or 3 regions with suitable choices of region templates according to your preference.

  • Creating header file

    I tried to run javah
    javah.exe -jni Test
    using class I crteated and compiled (Test.class) and I recived an error
    Class Test could not be found
    The file was in the same directory i run javah .
    There is no package .
    What have I done wrong ?

    Nothing. If indeed your .class file is in the same directory from which you are invoking javah, then you should be good to go. You could try to explicitly set the classpath for javah by using the -classpath option, and you could drop the -jni option since the new version headers are generated by default (though that part shouldn't matter one way or the other).

  • Problem creating line chart with character data

    Post Author: burkartt
    CA Forum: Charts and Graphs
    CR Developer v. 11.5.0.313
    I want to create a line chart with data from a SQL2K table to show how much server time each application uses per day. All data is defined a character.
    HWA,4/24/2007,01:44.6HWA,4/25/2007,12.28HWB,4/24/2007,4.6HWC,4/24/2007,55.55HWC,4/25/2007,01:22.3HWE,4/24/2007,01:16.1HWE,4/25/2007,0.59
    I want one horizontal line per application where the X-axis represents the date and the Y-axis represents the server time. I have tried all column combinations for "On Change Of" and "Show Value(s)". What confuses me is why are Count and Discount the only Summary Options for the "Show Value(s)" data?
    Thank you,
    tim

    Post Author: V361
    CA Forum: Charts and Graphs
    I created a group based on date, day, then created the chart and put it in the group footer, on change of server, show sum of time, you will get a seperate chart for each day.  I am not sure if this will help, or will just do.  Since you have CR XI, you may want to look at the gauge chart also....

  • Header file entry for Text Channel

    I have taken an ASCII Text Data file, read the file, and created a Header File, then saved the data into a binary file. This is my attempt to speed up the loading of the text file. One of the columns is a text column, containing a flag for the state of the test. I can not figure out how to define the column as a Text Column in the Header File. If I define it as a numeric column, it returns an error for every entry in the data file. Normal (one of the states) is not a Numeric Value.
    The script file(s) I am using is a modification of a script listed on this board by Brad Turpin ( TimeSlice DAT Hdr Create.zip ) The only thing I have changed is the Test for the Channel Name to see if it contains on of 3 states. If Date is present in the Channel Name , it changes the field to a Time channel, if the channel contains Relay it changes it to a Text channel (which doesn't work), else the Channel is a Numeric.
    There must be a way to define a Text Channel in a Header File. I hope someone can show me the way.
    Thanks
    Bill Lane
    Test Engineer
    Takata, INC.

    Hello Bill!
    The DAT format was never able to store text channels (TDM is able today). Please refer to the DAT format description on your DIAdem CD or in this post.
    Your idea to convert it to a numeric value is the right way. The error message must come out of the header. Do you convert all properties to numeric values? See page 4-6 and following in the header description or search for the word 'normal' in the created header file.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Header files

    Can I create header files with my own functions in java such as in C++?
    If not, do I need always to make my own classes in order to call these functions?
    Thanks!!

    Can I create header files with my own functions in java such as in C++?Sure, but the java compiler will not do anything with them as it only compiles .java files, so technically you'd be wasting your time.
    If not, do I need always to make my own classes in order to call these functions?Yes. A collection of utility methods is often provided in a class with a private constructor class with static methods. Then you can call them.

  • I have an iMac with 2 internal drives and set-up with multiple user accounts.  How do I create a path to store data files on my second drive within an application?

    I have an iMac with 2 internal drives and a multiple user account set-up.  Hw do I create a path to store data files on the second drive within an application?

    This is the Mac mini forum not the iMac forum however...
    Applications written for average users like Photoshop, Word, i.e. GUI based applications provide a 'Save' dialog box which while allow selecting second drives or any drive. The dialob box initially shown might be in the simple mode but you just need to click on the triangle to show the full set of options. You should then see the different drive names amongst other options.
    If your referring to an application your writing yourself then you need to build a pathname. This can be in one of two styles depending on the programming system your using. This could be a POSIX style path or a Mac style path.
    POSIX = /Volumes/volname/foldername
    Mac style = Volname:foldername:

  • Create a report based on sample data!

    Hello all,
    I would like to get some helps for creating a report based on the following table data in the database:
    Class     |        Name                   |         Student
    =======================================
    1            |        Algebra               |             60
    1            |        Extra Algebra      |             20
    2            |        Calculus              |             80
    2            |        Extra Calculus     |             10
    3            |        Geometry            |             90
    What I expect to have the layout of report should be look like as below:
                               School Register Report
    ClassGroup     |         Name          |    Ontime register   |    Late register   
    =========================================================
    1                      |        Algebra        |             60              |           20            
    2                      |       Calculus        |             80              |           10           
    3                      |       Geometry      |             90              |                           
    Please tell it is possible to do it in Crystal Report? Please help with solution. Thanks in advance.

    Assumimg second type always starts with Extra then, create formula
    @Name
    If like 'Extra*' then mid(, 7,20) else
    Group on this formula
    @LateReg
    If like 'Extra*' then else 0
    @OnTimeReg
    If not( like 'Extra*') then else 0
    Add Maximum smmaries of these formula to @Name Group footer, suppress details and group header
    Ian

  • How create header with user id time date to VC-report's output as display ?

    How create header with user id time date to VC-report's output as display ?
    This info should come from the VC - not all the way from R3-side via FunctionModule/BABI. So only userid, date, time to output as normal text (which is not editable of course). Thanks =)

    Hi ann-mari
    Go through following link may it help u
    Form Item disabled based on portal role
    /people/community.user/blog/2007/01/17/visual-composer-explorations-using-portal-roles-to-influence-ui-element-behavior
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/usingrolestoinfluenceapplication&
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/passingvaluesvia+URL&
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad182ac7-0a01-0010-4fb8-8a4d217b19c1
    Best Regards
    ````Satish````

  • Hi,I want  ABAP program to create an file of this data and to upload in app

    Hi Sir/Madam,
               I want  ABAP program to create an file of this data and to upload in application server.this is urgent requirement.plz reply soon. i'll b thankful to u.
    Regards,
    Vishali

    Hi ,
    Use this abap code .this will create a file in AL11 that you can use .
    data: d_msg_text(50),
          v_string(20000) type c,
          v_filename type rlgrap-filename,
    ******Create a file on app server
    concatenate '<directory name present in AL11 case sensitive>' ' filename.CSV' into v_filename .
    condense v_filename no-gaps .
    open dataset v_filename for output in text mode
    encoding default message d_msg_text.
    if sy-subrc ne 0.
      write: 'File cannot be opened. Reason:', d_msg_text.
      exit.
    endif.
    ****Header for file
    concatenate 'information you want to write in file like header etc ' into v_string separated by '|'.
    transfer v_string to v_filename.
    *****Write data into file by looping an internal table
    loop at  <internal table > assigning <work area>.
      concatenate      <work area>-field name1   <work area>-field name2    into v_string separated by '|' .
      transfer v_string to v_filename.
    endloop.
    close dataset v_filename.
    Hope this will solve your purpose.
    Regards,
    Jaya Tiwari

Maybe you are looking for

  • SOAP Framework error while activating interactive form in SFP

    hi everyone, I am new to adobe forms, I got an error while activating interactive form SOAP Framework error: SOAP Runtime Exception: CSOAPExceptionTransport: HTTP response contains unexpected content-type(100,101). I am unable to trace this error, ca

  • Why does my Macbook Air only have 64MB of dedicated video memory

    Hello, I created a windows partition on my Macbook Air and after going into my Display settings I see that it only has 64MB of dedicated video memory out of 1696MB. Please tell me how I can fix this problem as I should have much more Dedicated memory

  • Office for mac with Mtn Lion?

    This will not run since installing Mountain Lion.  I reloaded it with no improvement.  We need a fix on one program or the other.

  • HT4913 iTunes Match causes iTunes to crash

    I recently subscribed to iTunes Match, however iTunes consistently has a problem and needs to close on step 3 of the process of uploading unmatched songs and artwork. Time and time again. My libarary is on a USB external HD and running the most recen

  • Exchange 2013 installation fails

    We're in the process of migrating from Exchange 2007 to Exchange 2013.  I've followed the prerequisites, and have the necessary account permissions, but when I start the installation it fails at step 1 of 5 (mailbox role:mailbox service). This warnin