In reports date - 20100707 o/p should be 07.jul.2010 ?

hi experts,
i have a doubt in report i have a date in the format of 20100707 and the out put should be 07.Jul.2010.
i had a option of writng a customer exit . but do i have any auto format   date settings to get the same with out writing the customer exit.
could you please be in detail.
with regards

Hi Soumya,
Its better you go for an customer exit as ther is no formula to convert the date format.
You can use the following code as your reference:
data: year(4) type c,
month_text(3) type c,
month_number(2) type c,
day(2) type c.
year = mydate+7(4).
month_text = mydate+3(3).
day = mydate+0(2).
CASE month_text.
WHEN 'JAN'.
month_number = '01'.
WHEN 'FEB'.
month_number = '02'.
WHEN 'MAR'.
month_number = '03'.
WHEN 'APR'.
month_number = '04'.
WHEN 'MAY'.
month_number = '05'.
WHEN 'JUN'.
month_number = '06'.
WHEN 'JUL'.
month_number = '07'.
WHEN 'AUG'.
month_number = '08'.
WHEN 'SEP'.
month_number = '09'.
WHEN 'OCT'.
month_number = '10'.
WHEN 'NOV'.
month_number = '11'.
WHEN 'DEC'.
month_number = '12'.
ENDCASE.
concatenate year month_number day into myresult.
Regards,
Satyam

Similar Messages

  • Loading complex report data into a direct update DSO using APD

    Dear All,
    Recently, I had a requirement to download the report data into a direct update DSO using an APD. I was able to perform this easily when the report was simple i.e it has few rows and columns. But I faced problems If the report is a complex one. Summing up, I would like to know how to handle the scenarios in each of the following cases:
    1.   How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
          key fields of DSO and the remaining to the data fields? Correct me.
    2.   What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
          system and then include these in the DSO data fields to accommodate the extracted data ?
    3.   How do I handle the Free Characteristics and Filters ?
    4.  Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
         use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
         shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    I would appreciate if someone can answer my questions clearly.
    Regards,
    D. Srinivas Rao

    Hi ,
    PFB the answers.
    1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
    key fields of DSO and the remaining to the data fields? Correct me.
    --- Yes , you can use the elements in the ROWS in the Key fields,  but in case you get two records with same value in the ROWS element the data load will fail. So you basically need to have one value that would be different for each record.
    2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
    system and then include these in the DSO data fields to accommodate the extracted data ?
    Yes you would need to create new Infoobjects for the CKF's and RKF's in the Report and include them in your DSO.
    3. How do I handle the Free Characteristics and Filters ?
    The default filters work in the same way as when you yourself execute the reoprt. But you cannot use the Free characterisitics in the APD. only the ROWS and cloumns element which are in default layout can be used.
    4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
    use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
    shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    --- Yes you would need to create 10 different APD's. Its very simple to create, you can copy an APD. but it would be for sure a maintance issue. you would have to maintain 10 APD's.
    Please revert in case of any further queries.

  • Tax Reporting Date for Cz Republic in report S_ALR_87012357/RFUMSV00

    Hi All,
    We activated Tax reporting date as per SAP Note 1023317. However we are not able to see in the report "S_ALR_87012357 / RFUMSV00" tax reporting date column which should show which document has which date assigned to it. I executed the report with tax reporting date.
    Please help me to find out how to get the column in this report.
    Regards,
    Abishek

    hi Giovanni Baumann  .,
             will u please tell me how u added NAME1 field to on the output list Layout on the report . please guide me on this.
    Regards.,
    S.Sivakumar

  • How to refresh report data from bex query (BW) with parameters

    Hello,
    i hope someone can help me with my problem. I developed an desktop application, which loads (actual state) a report from the local file system. After setting the parameters, the report should be saved as a pdf file. Loading the report into the ReportDocument object and exporting the report to a pdf works fine. Setting parameters (without) a data source too. But now i can't refresh the data in the reports given by a parameter (e.g. time).
    I know there are two methods to do this. Push and pull. I want to use the pull method, cause my program should exports different reports and i think it should be easier to handle this with this method.
    On my development environment is installed:
    Crystal Reports SP 4
    MS Visual Studio 2010 (coding with C# .NET)
    .NET Framework 4
    SAP Integration Kit
    Crystal Reports for Visual Studio 2010 SP1 - SDK libraries
    Crystal Reports for Visual Studio 2010 SP1 - Runtime 32 bit
    SAP GUI 7.20 (Compilation 3)
    The bex query is enabled for external use from ole db for olap. Do i have forget something else?
    Here is a part of my code:
            public ReportDocument doPullMethod(ReportDocument crReportDocument)
                TableLogOnInfo crTableLogOnInfo = crReportDocument.Database.Tables[0].LogOnInfo;
                ConnectionInfo crConnectionInfo = crTableLogOnInfo.ConnectionInfo;
                crConnectionInfo.Password = "*******";
                crReportDocument.SetDatabaseLogon(crConnectionInfo.UserID, crConnectionInfo.Password, crConnectionInfo.ServerName, crConnectionInfo.DatabaseName);
                MessageBox.Show(crConnectionInfo.UserID + " _ " + crConnectionInfo.Password + " _ " + crConnectionInfo.ServerName + " _ " + crConnectionInfo.DatabaseName);
                for (int i = 0; i < crReportDocument.Database.Tables.Count; i++)
                //    crReportDocument.Database.Tables<i>.ApplyLogOnInfo(crTableLogOnInfo);
                    MessageBox.Show("TestConnectivity: " + crReportDocument.Database.Tables<i>.TestConnectivity());
                return crReportDocument;
    Cause i'm using only one bex query, i know that the SetDatabaseLogon()-method should bring me the same result as the ApplyLogOnInfo()-method SAP Crystal Reports .NET API Guide
    Exists an order which i have to follow? First setting parameter and then set the login informations or backwards? Cause i also get the "Failed to load database information" exception, when i set a parameter and TestConnectivity() returns false.
    Do i have to activate the data refresh manually or will be the data refreshed automatically on export?
    I searched in this forum (.NET - SAP Crystal Reports) and found only this thread which according to my problem:
    [Re: Crystal report connects to BW RFC by .NET;
    The question is assumed answered.

    Hi Robin,
    There is a SAP Integration Kit you need to allow CR to connect to SAP data sources. There isn't one for CR for VS 2010 and I don't believe there are the various extra options available in the SDK, no SDK access to the DB driver.
    Possibly, Check the other post, download and run the app Ludek suggested, it will get the connection info for your report using RAS and then plug the output code into your code and see if that works. It should show the crdb_olap dll is the database driver, assuming that is the connection method you used when designing the report.
    Pay attention to the database dll in the output from that app and verify it is on your PC in: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86
    If that doesn't work then.....
    The problem is, CR for VS 2010 ( version 13 ) is the runtime for BOE 4.0  ( version 14 ) which includes the Integration kit drivers on install. There is no standalone install of the database drivers. They are installed with CR 2011, which doesn't have a SDK included, CR for VS 2010 is also the Developer version for CR 2011.
    Because of the "custom" connection requirements there is no SDK or access to the BW datasource extra options....
    Also note that CR 2008 is not supported in VS 2010, it should work though as long as you stick to 2.0 -> 3.5 framework, no 4.0 Framework support in CR 2008 or BOE 4.0
    You may want to try the SAP Integration Kit forum to see if anyone has been able to make this work or contact your account manager to verify if there are any plans to do what you are doing....
    Don

  • Asset Report  Date Its very very urgent

    I m working on asset report ,t.code AR01 there is asset report date ,so plz tell me of field and table of asset report date and plz tell me the link with asset number of this fields and tables

    Hi
    The system then uses this date to determine the fiscal year for which evaluation should take place.
    It will not store in any table.
    Best Regards
    Ashish Jain

  • Asset Report - Date

    Hi
    I would like to get some clarification regarding report date. I've always noticed that asset reports can be only run as of <end of a period>. Such as month-end date and not as at any given date. 
    For example if I run AR01 as at 26.07.07 it gives an error saying the "Report date is invalid". I have to run as at 30.06.07. I'm unable to view as of now status.
    Appreciate if someone could confirm my understading or state whether I am wrong.
    Thanks & Regards
    Nadini

    Hi Nandini,
    Just go through the SAP text below. I hope it helps you.
    Reporting date in program
    The report date, on which the evaluation should take place.
    You can set this parameter using the selection variable 'FIAA_REPORTING_DATE'
    Enter the date as a calendar date. If necessary, the system converts the date to a fiscal year, according to the fiscal year version in use for the given company code. The system then uses this date to determine the fiscal year for which evaluation should take place. The following situations are possible:
    The report date is in the past or in the current fiscal year:
    In this case, you can request the report for the last day of any period, providing that period is still open. If the previous fiscal year is already closed, you can only run reports for the last day of that year. For evaluations in the past, the system uses the report date to determine whether it should access the online database or an archive file.
    The report date is in a future fiscal year:
    In this case, you can only run a report for the last day of the fiscal year concerned.
    Note
    You should also consider the following in regard to the report date:
    The current fiscal year is always the year which was opened during the last fiscal year change.
    In order to make sure values are identical at the end of the old fiscal year and at the beginning of the new fiscal year, the system resets all values (transactions, depreciation) in the fiscal year when you request a report for the first day of the fiscal year; therefore only cumulative values are displayed.
    You can only request a report based on depreciation posted in financial accounting with the last day of the last period in which depreciation was posted (or a following period) in the relevant fiscal year as the report date.

  • Using the tcode:S_ALR_87013611, no report data  for the cost center

    Hi,Friends.I need a help.
    In the tcode FB60,i entered the following data and then posted the vendor inovice sucessfully.
    data:
    ( Note: G/L acct:55020141 is also a primary cost element)
    In the tcode:S_ALR_87013611,I entered the following data and executed.
    but the result is:{Report contains no data. Check the selection log}.
    data: { Controlling Area: C999, Fiscal Year: 2010, From Period:1, To Period:12,Plan Version:0,
            Or value(s):2001}
    (Note: Cost center:2001 belongs to Controlling Area: C999) 
    please tell me how to do,so that using the tcode:S_ALR_87013611, I can see the report data  for
    the cost center 2001.
    sincerely                      WenYao Ma
    Edited by: wenyao ma on Mar 22, 2010 1:09 PM

    thank you,friends.
    I just solved it.
    Solution:
    1) Maintain Controlling Area
       path:spro>Controlling>Organization>Maintian Controlling Area>Maintain Controlling Area.   tcode:OKKP
    In the {Activate components/control indicators}cost center should be 'component active'
    2) Maintain Number Ranges for Controlling Documents
       path:spro>Controlling>Organization-->Maintain Number Ranges for Controlling Documents.   tcode:KANK
      Element { COIN CO Through-postings from FI} should be assigned to one group.

  • Unable to generate Power View report out of Multidimensional report data source

    Hi,
    I have created 'Report Data Source' connection to point to Multidimensional cube on Share Point site. But when I try to create a new Power View report out of it, I get following error message : 
    "An error occured while loading the model for the item or data source 'http://*********/PowerPivot Gallery/TestCube.rsds'. Verify that the connection information is correct and that you have permission to access the data source."
    I can see following message in the <moreInformation> section :
    <Source>Microsoft SQL Server 2012 Analysis Services</Source><Message>Errors in the metadata manager. The current model can only be expressed when the client is requesting tabular view metadata with VERSION restriction of 2.0 or later.</Message>
    Following are the System configurations :
    1) SSAS : SQL Server 2012 + SP2 (version 11.0.5058)
    2) Share Point 2013
    As mentioned in one of the MSDN documents this configuration supports creation of Power View reports on multidimensional cube.
    Can any one suggest what might be the issue?
    Thanks in advance!

    Hi Dipti,
    According to your description, you get the connection failure when creating a power view report, and it throws information "Errors in the metadata manager. The current model can only be expressed when the client is requesting tabular view metadata with
    VERSION restriction of 2.0 or later." Right?
    Based on the error message, the issue should be the SSRS on sharepoint metadata version mismatch when sending to SSAS. There's someone mentioned in a similar thread that this issue can be solved by installing the full package of CU4 for SP1.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/133558cd-ffc8-4608-ae45-fdff01770c6d/powerview-sql-2012-sp1-cu4-cannot-connect-to-dimensional-metadata-version-11?forum=sqlreportingservices
    Even you already have SP2 installed, it supposed included CU1~CU9 for SP1. However, it has reported that SP2 doesn't fix all bugs which supposed to be fixed in CU for SP1.
    SQL Server 2012 Service Pack 2 is available - but there's a catch!
    So please re-install the full CU4 for SP1, restart the services and try again.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Activate tax reporting date (VAT due date) Spain

    Dear all,
    My Spanish customer should start using electronic VAT book, Modelo 340. If I understood correct VAT due date (activate tax reporting date) is a prerequisite for this? If I activate this functionality in their system, what affect will this have except a new field?
    Is it possible to do this during a year or should it be done in the beginning of a new year, from 1st of January? Does it matter?
    What affect will it have on already existing documents?
    If they start to use electronic VAT book, do they not need to use the ordinary Tax report, transaction S_ALR_87100833, then and use only this instead?
    Please help me to understand how to tell the customer of how this will affect them.
    BR L

    Hi Paul,
    I have already red these notes but don´t think that my questions are answered by these. Escpecially the question if ordinary tax report, program RFUMSV00 (transaction S_ALR_87100833) are replaced by Modelo 340, is not answered.
    Could you please help?
    BR L

  • Please help: User cannot see webi report data

    Hi,
    I've got a wired problem here in my webi report. Basically I am located in Singapore and produced a webi report for our user in UK. The report looks totally fine with all the data shown correctly. But when our report user logged into the dashboard from UK, she could only see partial data and some of the information are missing(blank cells in the report).
    To verify the cause I've done the following test:
    1. I remote control her computer and log into dashboard using my account, the result is I get same problem and I cannot see some of the data.
    2. I let her remote control my pc and log into dashboard using her account, she no longer has this problem and can see complete data.
    We use same version of IE, same JAVA version. And the report data is not time sensitive, so different time zone might not the possible cause.
    This problem is killing me. Can anyone please help and let me know any possible solution? Thanks so much.
    Edited by: Sinsin Tan on Jul 14, 2010 5:59 AM

    Hi Sinsin, what version of BusinessObjects are you using? Is it XI 3.1?
    I don't know if it is the same problem or not, but I have seen that before when a user cannot view the data, change the font and/or background color and the data becomes visible. Reinstalling the client fixed that problem. If you couldn't figure out the root cause, you might want to consider this option.
    If you are using the BusinessObjects tool, you should join [ASUG|www.asug.com]

  • APEX Report Data Download in Excel and PDF format

    Hi,
    Can someone please guide me how to download APEX report data in Excel and PDF format.I know this is possible through BI Publisher but that is extra Licence cost for client so i don't want to use that option.
    Thanks in advance.
    Regards
    Prabhat Mishra

    1005844 wrote:
    Hi ,
    Thanks for Reply,
    I am using APEX 4.2 but when i am trying to download the IR data then getting 3 options only(CSV,HTML and Email).
    PrabhatWell, Excel should understand the .csv format for offloads. Perform web seraches to see what can be done for pdfs

  • Reporting data in alternate unit of measure

    hi
    I was going through the document " How to report data in alternate unit of meaure" .
    There they have talked about modification in program LRRSVF20.
    Can anyone tell me what does this include "LRRSVF20" does?
    Regards,
    Moniika

    Hi,
    Please tell me when i create a program "YBW_AUNIT_ENHANCEMENT" UNDER se38 and type: include...
    what code i should write under this program?
    i am pasting the program LRRSVF20 AND please tell me what should i write in program ""YBW_AUNIT_ENHANCEMENT"?
    ***INCLUDE LRRSVF20 .
    *& Form varchavl_atr_get
    form varchavl_atr_get using i_t_sid type rrsi_t_sid
    i_chanm type rsd_iobjnm
    i_th_var_atr type rro01_th_var_lrech
    i_srdate type sy-datum
    i_mostrecent type rsr_mostrecent
    changing c_th_varchavl type rrsv_th_varchavl.
    call method l_r_reader->sid_read_master
    exporting
    i_readatr = rsdm_c_readatr-specified
    i_t_req_atr = l_t_req_atr
    i_date = i_srdate
    i_mostrecent = i_mostrecent
    importing
    e_tx_atr = l_tx_atr
    changing
    c_t_chavlinfo = l_t_chavlinfo
    exceptions
    others = 1.
    if sy-subrc <> 0.
    raise inherited_error.
    endif.
    *{ INSERT
    Enhancement Alternate U.o.M.
    INCLUDE ybw_aunit_enhancement.
    *} INSERT
    PERFORM varchavl_atr_fill USING i_th_var_atr
    l_tx_atr
    CHANGING c_th_varchavl.
    endform. " varchavl_atr_get
    ***INCLUDE YBW_AUNIT_ENHANCEMENT.
    TYPE-POOLS: rrs0.
    DATA:
    l_vnam LIKE rszglobv-vnam,
    l_s_cob_pro TYPE rsd_s_cob_pro,
    l_s_rkb1d TYPE rsr_s_rkb1d,
    l_periv TYPE rro01_s_rkb1f-periv,
    l_t_var_range TYPE rrs0_t_var_range,
    l_s_var_range TYPE rrs0_s_var_range,
    l_t_range TYPE rsr_t_rangesid,
    l_s_range TYPE rsr_s_rangesid,
    l_unit LIKE rszglobv-meeht,
    l_currency LIKE rszglobv-waers.
    FIELD-SYMBOLS:
    <l_sx_atr> TYPE rsdm_sx_atr,
    <l_s_var> TYPE rro01_s_var_lrech,
    <l_s_atr> TYPE rsdm_s_atr,
    <l_s_atr_cu> TYPE rsdm_s_atr.
    Loop over all characteristic values
    LOOP AT l_tx_atr ASSIGNING <l_sx_atr>.
    Loop over all variables to be replaced by attributes
    LOOP AT i_th_var_atr ASSIGNING <l_s_var>.
    Fill additional information into pseudo variables
    REFRESH l_t_var_range.
    InfoObject (i.e. characteristic)
    CLEAR l_s_var_range.
    l_s_var_range-sign = 'I'.
    l_s_var_range-opt = 'EQ'.
    l_s_var_range-vnam = '1CHANM'.
    l_s_var_range-iobjnm = i_chanm.
    l_s_var_range-low = <l_sx_atr>-chavl.
    APPEND l_s_var_range TO l_t_var_range.
    Attribute
    READ TABLE <l_sx_atr>-t_atr ASSIGNING <l_s_atr>
    WITH KEY attrinm = <l_s_var>-attrinm.
    IF sy-subrc <> 0.
    RAISE x_message.
    ENDIF.
    CLEAR l_s_var_range.
    l_s_var_range-sign = 'I'.
    l_s_var_range-opt = 'EQ'.
    l_s_var_range-vnam = '1ATTRINM'.
    l_s_var_range-iobjnm = <l_s_atr>-attrinm.
    l_s_var_range-low = <l_s_atr>-attrivl.
    APPEND l_s_var_range TO l_t_var_range.
    Unit of measure (only for amounts and quantities)
    IF ( <l_s_var>-mwkz = 'M' OR <l_s_var>-mwkz = 'Q' ) AND
    ( <l_s_var>-fixcudim IS INITIAL ).
    CLEAR l_s_var_range.
    l_s_var_range-sign = 'I'.
    l_s_var_range-opt = 'EQ'.
    l_s_var_range-vnam = '1CUNM'.
    READ TABLE <l_sx_atr>-t_atr ASSIGNING <l_s_atr_cu>
    WITH KEY attrinm = <l_s_var>-cunm.
    IF sy-subrc = 0.
    l_s_var_range-iobjnm = <l_s_atr_cu>-attrinm.
    l_s_var_range-low = <l_s_atr_cu>-attrivl.
    APPEND l_s_var_range TO l_t_var_range.
    ENDIF.
    ENDIF.
    Key date of query
    CLEAR l_s_var_range.
    l_s_var_range-sign = 'I'.
    l_s_var_range-opt = 'EQ'.
    l_s_var_range-vnam = '1DATE'.
    l_s_var_range-iobjnm = '0DATE'.
    l_s_var_range-low = i_srdate.
    APPEND l_s_var_range TO l_t_var_range.
    InfoObject properties
    CALL FUNCTION 'RSD_COB_PRO_GET_ALWAYS'
    EXPORTING
    i_iobjnm = i_chanm
    IMPORTING
    e_s_cob_pro = l_s_cob_pro
    EXCEPTIONS
    infocube_not_found = 1
    error_reading_infocatalog = 2
    iobjnm_not_found = 3
    illegal_input = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    l_vnam = <l_s_atr>-attrinm.
    Call variable exit to get virtual attribute
    CALL FUNCTION 'EXIT_SAPLRRS0_001'
    EXPORTING
    i_vnam = l_vnam
    i_vartyp = rrkg_c_vartyp-formula
    i_iobjnm = i_chanm
    i_s_cob_pro = l_s_cob_pro
    i_s_rkb1d = l_s_rkb1d
    i_periv = l_periv
    i_t_var_range = l_t_var_range
    IMPORTING
    e_t_range = l_t_range
    e_meeht = l_unit
    e_waers = l_currency
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc = 0.
    READ TABLE l_t_range INTO l_s_range INDEX 1.
    IF sy-subrc = 0.
    Attribute value
    <l_s_atr>-attrivl = l_s_range-low.
    Attribute unit of measure (only for amounts and quantities)
    IF <l_s_var>-mwkz = 'M' AND <l_s_var>-fixcudim IS INITIAL.
    <l_s_atr_cu>-attrivl = l_unit.
    ELSEIF <l_s_var>-mwkz = 'W' AND <l_s_var>-fixcudim IS INITIAL.
    <l_s_atr_cu>-attrivl = l_currency.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDLOOP. " variables for attributes
    ENDLOOP. " characteristic values
    Thanks,
    Vijaya.

  • Report Date

    Hello,
    I am generating a report in BEx Explorer
    I need to output Current date as Report date in my report output?
    Also
    My report input variables as follows
    1.Period No
    2.Fiscal Year
    But user want to see inthis order
    1.Fiscal Year(Comming from RKF)
    2.Period No.(Comming from RKF)

    If you want current date to be displayed on the report itself then,
    1. In the properties, go to Description
    2. Create a text variable for current date. [Click to the option available rightmost of the Description]. If a text variable is already available, select it, otherwise create a new one.
    This should show up the date on the report itself.

  • Report Data on Infospoke

    Hi,
    we have infospokes extracting data to files on app server.
    Now can i create a bex report to report data on 3 app server files created by infospokes.
    if yes, how do i do it?
    thanks
    kar

    Hi
    I don't think it will be possible to create a bex report on flat files on application server.
    why i think so is-
    1.How will the query identifies the infoprovider?
    2. How does it know what is a char and and what is a key figure?
    3. How does the query know the data type of each field?
    But you should be able to access the data and display in your required format by writing unix or perl scripts and get the data in the format you want.( here i am not talking about bex reports, but talking about an option to read data from app server)
    Regards,
    Raghu
    Edited by: Raghu tej harish reddy on May 5, 2009 8:16 PM

  • Report data download to excel file

    Hi experts,
       My requirement is report data download to excel file and that file should be an attachment to send email to specified people.
    first i want to to download data to excel file and that file should be an attachment.
    Regards
    V.Venu

    Hi venu,
    Before posting the question, just search for the related query, more number of post has been posted related to your query,
    any ways  check this below links, it will solve your problem.
    <<linkfarm removed>>
    Cheers
    NZAB
    Edited by: kishan P on Jan 10, 2012 4:51 PM

Maybe you are looking for