Where to Commit

I have heard that it is considered best practices not to put Commits in your packages unless you really have to. Instead the Front End should usually do the commits. What is the reason for this?

Prohan wrote:
Thanks hoek.
Would you consider this summary of your response to be accurate:
Complete transactions should be committed, not procedures/functions.Yes, complete transactions, with*expected* outcomes.
You wrote:
If something goes wrong, and transactions get committed without 'caller/invoker' knowing about it then your data is to be considered as corrupted.
I think you meant "If something goes wrong, and PROCEDURES/FUNCTIONS get committed without 'caller/invoker' knowing about it ..."
The idea is that only part of a transaction will have been completed if something goes wrong, thus ALL changes need to be rolled back Is that an accurate description of what you meant? Yes. Think about it: procedure X succeeds and commits. Procedure Y ( followed after X) fails and commits. Tadah: data corrupted.
You only commit at the end of a complete transaction as in: all business rules/checks etc have been met.
Never ever commit 'in between things'.
Meet the business rule, tell the caller: 'Hey, we're the data and we're still fine after all those checks in the same session, so you can commit safely now'.
And don't you dare to use a WHEN OTHERS.
What exactly did you mean there? Did you mean don't commit under that handler?Never ever commit under a WHEN OTHERS.
Don't use it.
Forget about it's existance and stay out of trouble.

Similar Messages

  • I have to guess where the comma is the @ sign is and various signals now tell what am i doing wrong on the apple usb keyboard

    I have to guess where the comma is the @ sign is and various signals now tell what am i doing wrong on the apple usb keyboard

    Hello
    This can be verry usefull
    http://support.apple.com/kb/HT2841?locale=en_US
    How to identify keyboard localizations
    HTH
    Pierre

  • How to load a comma seprated text file which contain address in to sql server table using ssis package

    Hi,
    I want to load a file which is comma separated and contain address .Problem is that address its self comma seprated so how do I differenciate whether comma used for column seprator or it used in address.
    for eg.
    One person having address like
    "c/o AB corp,156 cross lane,USA"
    Thanks.....

    Hi SR_MCTS,
    Based on your description, you want to distinguish a comma is used for column separator or used in address column in a text file, then load the data from the text file to SQL Server table.
    As per my understanding, if you can replace the comma column separator to another delimiter like semicolon (;), just do it. Then we can select Semicolon {;} as Column delimiter for the Flat File Connection Manager. Or ensure all columns are enclosed in double
    quotes ("). Then we can set the double quotes (") as Text qualifier for the Flat File Connection Manager, and the commas will be loaded as part of the string fields.
    If you can't have that done, because computers don't know the context of the data, you would have to come up with some kind of rules that decides when a comma represents a delimiter, and when it is just part of the text. I think a custom script component
    would be necessary to pre-process the data, identify where a comma is part of an address, and then treat that as one field.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Implicit commit in ABAP Web Dynpro?

    I wonder if ABAP Web Dynpro is executing an implicit commit. I have two buttons on the same view. The first one inserts an entry into a table, the second one executes a "rollback work" (and to be sure calls function "DB_ROLLBACK").
    However, after first pressing the insert-button and secondly the rollback-button, the rollback had no effect, i.e. one dataset has been permanently inserted into the database table.
    Is it possible that until the view is ready for new processing (i.e. finished any initializations) an implicit commit is executed by SAP?
    I have not used any commit nor do I use debugger mode.
    The same behavior happens when I split the insert and rollback things into two views. In the second view the rollback is possible before the inbound plug is processed to the end, but afterwards (e.g. when handling a button click by an assigned method) not.

    Hi Klaus,
    I was wondering if you could do a ST05 trace? It will reveal the place where the commit happens. It will be quite interesting to see if it happens inside of the WD runtime. If yes, I would consider it a bug.
    Best regards,
    Thomas

  • Passing a comma in a parameter within a URL

    I am trying to pass a parameter whose value contains a comma into Discoverer Viewer using a URL. I have followed the instructions that are given in the Disco documentation, substituting ~44 into the URL where the comma appears. Here's how it looks:
    http://elvis.rock.local:7777/discoverer/viewer?us=anyuser&db=prod&eul=prodeul&wbk=ACT001TESTURL&wsk=2234&qp_Drivers=Smith~44+Shad+A+/+ssmith,Brady~44+Tom++/+brady&qp_Company=Mycompany
    The problem is that the parameter values show up as 'Smith~44 Shad A / ssmith','Brady~44 Tom / brady' rather than what I expected: 'Smith, Shad A / ssmith','Brady, Tom / brady'. I have tried using ~32 and 002c instead, also tried enclosing in quotation marks, i.e., '~44'.
    Obviously I don't get any results because the values passed in the parameters don't match up with the values in my table.
    Any suggestions?
    Thanks in advance,
    Tricia

    Hi,
    It looks like you have a multivalued parameter and Discoverer cannot distinguish between a comma as a delimiter and a comma within the a parameter value. It is because you are using both multivalued parameters and commas within your parameters that you have the problem. If you have a list values like Smith,Brady,Cooke then the URL parameter qp_names=Smith,Brady,Cooke will be translated to 'Smith','Brady','Cooke'. On the other hand if you have a single parameter like Smith, Shad A then qp_name='Smith,+Shad+A' will be translated to 'Smith, Shad A'. I cann't think of any workaround other than using your own encoding.
    So for example, if you encoded comma as ~2c then you would change you condition for the parameter from item_name IN (:Drivers) to REPLACE(item_name, ',','~2c') IN (:Drivers)
    But then all users would have to enter the encoded comma not just when the URL was used.
    Rod West

  • Deploying Java Comm API

    Hi,
    I am developing an applet which uses Java Comm API. I'm running into some deployment issue. My understanding is that Java Comm API needs to have win32com.dll and javax.comm.properties files installed on the client machine for my applet to use Comm API. Is there a way around this? The ideal way will be to have everything (win32com.dll and javax.comm.properties) in a jar file so that it doesn't need to install any file on the client machine. However looking at previous posts, I don't think that's possible with Java Plug-in. Will I be able to utilize Java WebStart to accomplish this? I'll be interested to find how other people deploy Java Comm API. Thanks in advance.
    Regards,
    Joy

    I�ve developed a solution to this problem. I created a class that creates the javax.comm.properties file where the comm.jar lib looks for it. The trick is to run the method that creates the file before the lib looks for it.
    I show you the example of my code:
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    public final class PrinterInit {
        public static void printerInit(){
            String archivoConf =
                System.getProperty("java.home") + File.separator + "lib" +
                File.separator + "javax.comm.properties";
            try {
                BufferedWriter out = new BufferedWriter(new FileWriter(archivoConf));
                out.write(
                    "#"+ "\n" +
                    "# Drivers loaded by the Java Communications API standard extension"+ "\n" +
                    "# at initialization time "+ "\n" +
                    "# "+ "\n" +
                    "# Format: "+ "\n" +
                    "#   Each line must contain ONE driver definition only "+ "\n" +
                    "#   Each line must be of the form: "+ "\n" +
                    "#           driver=<ClassName> "+ "\n" +
                    "#       No spaces or tabs in the line. "+ "\n" +
                    "#       ClassName must implement the interface javax.comm.CommDriver "+ "\n" +
                    "#           example: driver=Win32Serial"+ "\n" +
                    "#   "+ "\n" +
                    "#"+ "\n" +
                    "# The hash(#) character indicates comment till end of line."+ "\n" +
                    "#"+ "\n" +
                    "# Windows Serial Driver"+ "\n" +
                    "Driver=com.sun.comm.Win32Driver" + "\n");
                out.close();
            } catch (IOException e) {
                System.err.println("No se pudo crear el archivo:" + "javax.comm.properties");
                System.err.println("Ruta completa:" + archivoConf);
    }Before opening the port I call
    PrinterInit.printerInit();This example writes de javax.comm.properties file needed for a windows implementation. You can change the value of the Driver property for the system you are using.
    Good Luck!

  • Retain the entityState and postState of entities even after calling commit

    Dear all,
    I am using view objects based on programmatic entity objects in my application for which data is populated from an array using populateRow().
    I need to update the newly created/updated/deleted rows in this EO into the database using a stored procedure.
    The stored procedure needs the input as an array of only those records that are created/updated/deleted with indicators of whether each row in the array is inserted/updated/deleted.
    I have exposed a client interface method in the view object Impl class that calls the dbTransaction().commit() first and then calls the stored procedure.
    In the doDML(), I am constructing the array and keeping the values in a page flow scope which is then accessed in the voImpl method.
    In case if an exception occurs in the business logic inside the stored procedure, the data will not get posted in the database and the exception is displayed to the user in the UI.
    After calling the stored procedure, I am clearing the page flow scope irrespective of whether the data has been posted to DB or not.
    Consider the scenario,
    I have updated 2 records. Of these, I've updated one of the records with wrong values. As per my logic, on calling the save method, doDML() will construct the data array for these two records.
    Inside the stored procedure, the wrongly updated row is identified and exception is raised and the data will not get posted in the database.
    Now, on getting the exception, I update the worngly updated record with proper value.
    On calling the save method again, my doDML() is constucting the array with the currently updated record alone. But actually I need all the records (2 records in this case) that were modified.
    My understanding is, since I've called the commit() action, all the records that make my transaction dirty gets updated as status_unmodified subsequently.
    Hence, on calling commit the second time, only one record will be in modified state and that record alone is getting constructed in the array.
    If I am correct,
    1. Is there any way to make all those records with their status as they were before calling the commit.
    2. Should I construct my array in some other method instead of doing it in doDML().
    Thanks in advance.

    You may want to try calling setClearCacheOnRollback(false) and rollback instead when you get the exception from the stored procedure. I still haven't understood where the commit is done...
    You may want to consider using an Application Module variable to store your list if this helps.
    Cheers,
    Nick

  • Last Database Commit Date

    Is there any table or any way to know the last date where a commit was issued to the database ?

    ALL_TAB_MODIFICATIONS Looks like the descriptions of those views (user, all, dba) are not quite up to date regarding the MONITORING clause and automatic statistics collection in 10g.
    I have not digged around, but briefly it looks like tables' monitoring attribute is specified via some internal setting and not when creating or altering a table (you can still say (NO)MONITORING but the keywords are silently ignored, like the doco states).

  • Doubt in COMMIT WORK

    I have the below code, where the commit work is after the loop.
    LOOP AT itab INTO str.
      UPDATE dtab FROM str.
    ENDLOOP.
    COMMIT WORK.
    As per my understanding an update work process will be created after the COMMIT WORK. Is this can be viewed in SM50 ?
    In case the work process created is not processed and ON HOLD. If i try to update the dtab table again, is there is a possibility I can get a lock error since the last work process in not processed.
    Regards,
    Thanga

    Hi Thanga,
    If you are not using update task ( CALL FUNCTION IN UPDATE TASK ) / background tasks(CALL FUNCTION IN BACKGROUND TASK ), then commit work statement is optional. System will do implicit commit after the program ends. However to be on the safer side, you should explicitly code it.
    https://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm
    Please note that - If you are directly updating the table in your program without using update task, no entry exists in SM13-  Monitor Update task.
    Regards,
    DPM

  • Selective XML Index feature is not supported for the current database version , SQL Server Extended Events , Optimizing Reading from XML column datatype

    Team , Thanks for looking into this  ..
    As a last resort on  optimizing my stored procedure ( Below ) i wanted to create a Selective XML index  ( Normal XML indexes doesn't seem to be improving performance as needed ) but i keep getting this error within my stored proc . Selective XML
    Index feature is not supported for the current database version.. How ever
    EXECUTE sys.sp_db_selective_xml_index; return 1 , stating Selective XML Indexes are enabled on my current database .
    Is there ANY alternative way i can optimize below stored proc ?
    Thanks in advance for your response(s) !
    /****** Object: StoredProcedure [dbo].[MN_Process_DDLSchema_Changes] Script Date: 3/11/2015 3:10:42 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- EXEC [dbo].[MN_Process_DDLSchema_Changes]
    ALTER PROCEDURE [dbo].[MN_Process_DDLSchema_Changes]
    AS
    BEGIN
    SET NOCOUNT ON --Does'nt have impact ( May be this wont on SQL Server Extended events session's being created on Server(s) , DB's )
    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
    select getdate() as getdate_0
    DECLARE @XML XML , @Prev_Insertion_time DATETIME
    -- Staging Previous Load time for filtering purpose ( Performance optimize while on insert )
    SET @Prev_Insertion_time = (SELECT MAX(EE_Time_Stamp) FROM dbo.MN_DDLSchema_Changes_log ) -- Perf Optimize
    -- PRINT '1'
    CREATE TABLE #Temp
    EventName VARCHAR(100),
    Time_Stamp_EE DATETIME,
    ObjectName VARCHAR(100),
    ObjectType VARCHAR(100),
    DbName VARCHAR(100),
    ddl_Phase VARCHAR(50),
    ClientAppName VARCHAR(2000),
    ClientHostName VARCHAR(100),
    server_instance_name VARCHAR(100),
    ServerPrincipalName VARCHAR(100),
    nt_username varchar(100),
    SqlText NVARCHAR(MAX)
    CREATE TABLE #XML_Hold
    ID INT NOT NULL IDENTITY(1,1) PRIMARY KEY , -- PK necessity for Indexing on XML Col
    BufferXml XML
    select getdate() as getdate_01
    INSERT INTO #XML_Hold (BufferXml)
    SELECT
    CAST(target_data AS XML) AS BufferXml -- Buffer Storage from SQL Extended Event(s) , Looks like there is a limitation with xml size ?? Need to re-search .
    FROM sys.dm_xe_session_targets xet
    INNER JOIN sys.dm_xe_sessions xes
    ON xes.address = xet.event_session_address
    WHERE xes.name = 'Capture DDL Schema Changes' --Ryelugu : 03/05/2015 Session being created withing SQL Server Extended Events
    --RETURN
    --SELECT * FROM #XML_Hold
    select getdate() as getdate_1
    -- 03/10/2015 RYelugu : Error while creating XML Index : Selective XML Index feature is not supported for the current database version
    CREATE SELECTIVE XML INDEX SXI_TimeStamp ON #XML_Hold(BufferXml)
    FOR
    PathTimeStamp ='/RingBufferTarget/event/timestamp' AS XQUERY 'node()'
    --RETURN
    --CREATE PRIMARY XML INDEX [IX_XML_Hold] ON #XML_Hold(BufferXml) -- Ryelugu 03/09/2015 - Primary Index
    --SELECT GETDATE() AS GETDATE_2
    -- RYelugu 03/10/2015 -Creating secondary XML index doesnt make significant improvement at Query Optimizer , Instead creation takes more time , Only primary should be good here
    --CREATE XML INDEX [IX_XML_Hold_values] ON #XML_Hold(BufferXml) -- Ryelugu 03/09/2015 - Primary Index , --There should exists a Primary for a secondary creation
    --USING XML INDEX [IX_XML_Hold]
    ---- FOR VALUE
    -- --FOR PROPERTY
    -- FOR PATH
    --SELECT GETDATE() AS GETDATE_3
    --PRINT '2'
    -- RETURN
    SELECT GETDATE() GETDATE_3
    INSERT INTO #Temp
    EventName ,
    Time_Stamp_EE ,
    ObjectName ,
    ObjectType,
    DbName ,
    ddl_Phase ,
    ClientAppName ,
    ClientHostName,
    server_instance_name,
    nt_username,
    ServerPrincipalName ,
    SqlText
    SELECT
    p.q.value('@name[1]','varchar(100)') AS eventname,
    p.q.value('@timestamp[1]','datetime') AS timestampvalue,
    p.q.value('(./data[@name="object_name"]/value)[1]','varchar(100)') AS objectname,
    p.q.value('(./data[@name="object_type"]/text)[1]','varchar(100)') AS ObjectType,
    p.q.value('(./action[@name="database_name"]/value)[1]','varchar(100)') AS databasename,
    p.q.value('(./data[@name="ddl_phase"]/text)[1]','varchar(100)') AS ddl_phase,
    p.q.value('(./action[@name="client_app_name"]/value)[1]','varchar(100)') AS clientappname,
    p.q.value('(./action[@name="client_hostname"]/value)[1]','varchar(100)') AS clienthostname,
    p.q.value('(./action[@name="server_instance_name"]/value)[1]','varchar(100)') AS server_instance_name,
    p.q.value('(./action[@name="nt_username"]/value)[1]','varchar(100)') AS nt_username,
    p.q.value('(./action[@name="server_principal_name"]/value)[1]','varchar(100)') AS serverprincipalname,
    p.q.value('(./action[@name="sql_text"]/value)[1]','Nvarchar(max)') AS sqltext
    FROM #XML_Hold
    CROSS APPLY BufferXml.nodes('/RingBufferTarget/event')p(q)
    WHERE -- Ryelugu 03/05/2015 - Perf Optimize - Filtering the Buffered XML so as not to lookup at previoulsy loaded records into stage table
    p.q.value('@timestamp[1]','datetime') >= ISNULL(@Prev_Insertion_time ,p.q.value('@timestamp[1]','datetime'))
    AND p.q.value('(./data[@name="ddl_phase"]/text)[1]','varchar(100)') ='Commit' --Ryelugu 03/06/2015 - Every Event records a begin version and a commit version into Buffer ( XML ) we need the committed version
    AND p.q.value('(./data[@name="object_type"]/text)[1]','varchar(100)') <> 'STATISTICS' --Ryelugu 03/06/2015 - May be SQL Server Internally Creates Statistics for #Temp tables , we do not want Creation of STATISTICS Statement to be logged
    AND p.q.value('(./data[@name="object_name"]/value)[1]','varchar(100)') NOT LIKE '%#%' -- Any stored proc which creates a temp table within it Extended Event does capture this creation statement SQL as well , we dont need it though
    AND p.q.value('(./action[@name="client_app_name"]/value)[1]','varchar(100)') <> 'Replication Monitor' --Ryelugu : 03/09/2015 We do not want any records being caprutred by Replication Monitor ??
    SELECT GETDATE() GETDATE_4
    -- SELECT * FROM #TEMP
    -- SELECT COUNT(*) FROM #TEMP
    -- SELECT GETDATE()
    -- RETURN
    -- PRINT '3'
    --RETURN
    INSERT INTO [dbo].[MN_DDLSchema_Changes_log]
    [UserName]
    ,[DbName]
    ,[ObjectName]
    ,[client_app_name]
    ,[ClientHostName]
    ,[ServerName]
    ,[SQL_TEXT]
    ,[EE_Time_Stamp]
    ,[Event_Name]
    SELECT
    CASE WHEN T.nt_username IS NULL OR LEN(T.nt_username) = 0 THEN t.ServerPrincipalName
    ELSE T.nt_username
    END
    ,T.DbName
    ,T.objectname
    ,T.clientappname
    ,t.ClientHostName
    ,T.server_instance_name
    ,T.sqltext
    ,T.Time_Stamp_EE
    ,T.eventname
    FROM
    #TEMP T
    /** -- RYelugu 03/06/2015 - Filters are now being applied directly while retrieving records from BUFFER or on XML
    -- Ryelugu 03/15/2015 - More filters are likely to be added on further testing
    WHERE ddl_Phase ='Commit'
    AND ObjectType <> 'STATISTICS' --Ryelugu 03/06/2015 - May be SQL Server Internally Creates Statistics for #Temp tables , we do not want Creation of STATISTICS Statement to be logged
    AND ObjectName NOT LIKE '%#%' -- Any stored proc which creates a temp table within it Extended Event does capture this creation statement SQL as well , we dont need it though
    AND T.Time_Stamp_EE >= @Prev_Insertion_time --Ryelugu 03/05/2015 - Performance Optimize
    AND NOT EXISTS ( SELECT 1 FROM [dbo].[MN_DDLSchema_Changes_log] MN
    WHERE MN.[ServerName] = T.server_instance_name -- Ryelugu Server Name needes to be added on to to xml ( Events in session )
    AND MN.[DbName] = T.DbName
    AND MN.[Event_Name] = T.EventName
    AND MN.[ObjectName]= T.ObjectName
    AND MN.[EE_Time_Stamp] = T.Time_Stamp_EE
    AND MN.[SQL_TEXT] =T.SqlText -- Ryelugu 03/05/2015 This is a comparision Metric as well , But needs to decide on
    -- Peformance Factor here , Will take advise from Lance if comparision on varchar(max) is a vital idea
    --SELECT GETDATE()
    --PRINT '4'
    --RETURN
    SELECT
    top 100
    [EE_Time_Stamp]
    ,[ServerName]
    ,[DbName]
    ,[Event_Name]
    ,[ObjectName]
    ,[UserName]
    ,[SQL_TEXT]
    ,[client_app_name]
    ,[Created_Date]
    ,[ClientHostName]
    FROM
    [dbo].[MN_DDLSchema_Changes_log]
    ORDER BY [EE_Time_Stamp] desc
    -- select getdate()
    -- ** DELETE EVENTS after logging into Physical table
    -- NEED TO Identify if this @XML can be updated into physical system table such that previously loaded events are left untoched
    -- SET @XML.modify('delete /event/class/.[@timestamp="2015-03-06T13:01:19.020Z"]')
    -- SELECT @XML
    SELECT GETDATE() GETDATE_5
    END
    GO
    Rajkumar Yelugu

    @@Version : ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Microsoft SQL Server 2012 - 11.0.5058.0 (X64)
        May 14 2014 18:34:29
        Copyright (c) Microsoft Corporation
        Developer Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    (1 row(s) affected)
    Compatibility level is set to 110 .
    One of the limitation states - XML columns with a depth of more than 128 nested nodes
    How do i verify this ? Thanks .
    Rajkumar Yelugu

  • How do I create a .csv file on my mac?

    I am having issues doing some reporting.  I have a file that I pull from safari- I need to be able to put this into numbers.  Typically, in windows, I would paste the info onto a notepad and save as .csv, then open again in numbers. 
    So--I can't save in pages like that-- and I can't get it to past in numbers correctly.  Any suggestions would be great!
    Thanks

    Thanks-- I was really trying to get it to this point...   I just want to take the text and manipulate it in numbers. 
    So -- essentially-- I have text that is already comma separated, but can't figure out how to either save as a .csv file that i can import into numbers-- OR just save the text in numbers - where each comma separates the data into different collumns. 
    Any suggestions would be completely appreciated!!

  • PL/SQL procedure to insert data doesn't work and unable to find reason.

    Sorry that I couldn't find the best place to post this question. It seems that the forum does not deal with this kind of question. I post here for help.
    I have a stored procedure to insert data into one table. SP was compiled without error and executed without error (from log table to get information). But the data was not inserted into
    the target table. I have tried different way to figure out the reason. But I failed to get any idea. Please help me to find possible reasons. The smple SP looks like this:
    CREATE OR REPLACE PROCEDURE my.sp_insert( P_DATE IN VARCHAR2)
    IS
    declare section
    begin
    insert into target_table (column1, column2, column3, column4)
    select record1, record2, record3, record4 from table1, table2, table3, table4
    where clause;
    commit;
    exception section
    UPDATE PROCESS_LOG_TABLE CLAUSE;
    html_email section;
    rollback;
    end my.sp_insert
    I have tested that "select record1, record2, record3, record4 from table1, table2, table3, table4" really fetch the 7,000 records. and if I only run part of SQL from SQLPLUS as
    insert into target_table (column1, column2, column3, column4)
    select record1, record2, record3, record4 from table1, table2, table3, table4
    where clause;
    It will work and insert 7,000 records into target table. Why did it not insert into target_table when execiting as stored procedure? Please help with your input. Thanks.
    Edited by: citicbj on Feb 12, 2013 4:15 PM

    Dear Friend,
    Is the user from which you created database procedure and sqlplus that you tested the code successfully is same?
    Regards
    Ahamed Rafeeque Cherkala

  • Format of date and numbers

    Hi,
    in Italy the format of date is DD/MM/YYYY e the formato of numbers is NNN,DD (DD means Decimal).
    I use Excel for IPAD but when I write for instance 28/03/2015 the field shows 03/28/2015, the same problem is for numbers where the comma and the dot are inverted.
    How do I change the format of date and numbers?
    Thank you in advance.
    Max

    The general format of the date is tied to the language...use US english, get US date formatting.
    You may want to poke around in excel's settings. I know the desktop version allows you to alter the date formatting, but I'm not sure if the iPad app has that. Look for 'cell formatting' in the settings and see if it's alterable.
    If not, you can try to make your template on a PC, then put that excel onto your iPad and see if it honors the cell formatting already in place.

  • Need to group digits in Indian Format

    Post Author: bhagwad
    CA Forum: Formula
    Good afternoon to all who read this thread. I am using CR v10  I need to find a way to format a number such that it groups not in thousands, as it happens in Europe and the US, but first by three digits, and then by two digits, as we do in India. Eg: A number like 3200000 should be formatted to become: 32,00,000 (Instead of 320,000). The first three digits need to be grouped into a bunch of three, and consequently need to be grouped in pairs. It would read 3 Lakh, instead of Three hundred and Twenty thousand. I don't need to convert the number into words though. The options that are available in the custom formatting, allow grouping only in bunches of three. Turning off grouping removes the commas completely, which is not what is needed. I would appreciate any help in this matter, as I believe I have explored the options rather thoroughly before posting.Thank you in advance for your reply.

    Post Author: GailPray
    CA Forum: Formula
    3,200,000  à  32,00,000  (Lakh)
    I think youu2019ll probably have to create a formula field because I donu2019t think Crystal has any built in formatting for the way you want to display your number.  The formula should break the number into sections and then rebuild it into the format you need.
    If your field is a string field try:
    left(,2)
    & u201C,u201D &
    mid(,3,2)
    & u201C,u201D &
    right((,3)
    If it is stored as a number convert it to text removing any decimal places:
    totext(,0) 
    then use this formula in place of the original database field:
    left({@Formula},2)
    & u201C,u201D &
    mid({@Formula},3,2)
    & u201C,u201D &
    right({@Formula},3)
    But if the length of the number changes (I would assume that if you sometimes have a number like this 32000 you would format 32,000?)  Then you wouldnu2019t be able to use my formula above.  I think you could create variables to determine the length of the number in order to determine where the commas need to be inserted.  Thatu2019s a bit more complicated.  =)

  • Can't Print Over Wireless Network to HP OfficeJet 6210 connected to XP Comp

    I've been trying in vain for the better part of a week and a half to print from my MacBook Pro (w/ Leopard 10.5.5) over my wireless network (Linksys WRT54G Wireless Router) to an HP OfficeJet 6210 connected to my Dell Desktop running Windows XP SP3. I CAN however, both see and print to the printer with a PC laptop running Windows Vista. I've both re-installed and upgraded the drivers to the Windows XP desktop AND the MacBook Pro for the printer and still can't come to a conclusion. I am able to print to the printer from the MacBook Pro when plugged directly in via USB. I've tried to add the printer via "Windows" tab in printer configuration by choosing the network, then the computer, then entering the administrator accounts user name/password, however I'm still unable to print from the MacBook. Any ideas and suggestions would be greatly appreciated. Thanks!
    Message was edited by: LukeZim

    Hi LukeZim,
    Sorry, but drivers on OS X aren't like on Windows (yet), where a driver is just a component in a system that works for all the comm protocols the computer can do. That's the way it would be if manufacturers provided CUPS drivers (CUPS is the print control system on OSX). But most manufacturers are still providing Carbon drivers - where the comm protocol is limited to what is put into the driver. HP provided a Carbon, USB-only driver for your printer. You'll need to use a third-party CUPS driver to use Windows Printing.
    Gutenprint drivers (included with Leopard) are CUPS drivers, for example.
    http://openprinting.org/showprinter.cgi?recnum=HP-OfficeJet6200
    CUPS drivers:
    http://www.linuxfoundation.org/en/OpenPrinting/macosx

Maybe you are looking for

  • How to:  using the Place command in an action and remember the correct source filename...

    I have a large set of product, architecture, and other subject-specific photos, that I'm preparing for a new website; all to be placed in various galleries. For each photo, I want it to have the same background.  If I were doing this manually, I woul

  • I cannot add a new pop email account in my "iphone 6"

    I cannot add a new pop email account in my iphone, when i confirmed "saving account" it is automatically being closed and kick-out me from? It is iPhone 6 and the system is iOS 8.1 I am going to select "Others" and then my user name, password and "ne

  • High DML table for GG replication

    Dear All, GG version : 11.1.1 Source db Version: 9.2.0.6(siebel database) Target DB version: 10.2.04 We have a very huge DML table where daily basis aroud 10 million records will get inserted into this table. As per the business requirement , we have

  • Problem in System Monitoring Setup

    Hi I need to configure System Monitoring Setup in Solution Manager. But I cannot able to open the Page SOLUTION_MANAGER -> Operations -> Solution Monitoring -> System Monitoring/Administration. I am getting the error :Network Access Message: The page

  • Leopard on a Digital Audio G4 - can't access certain sites

    Specs: Digital Audio PowerMac G4 1.5GB RAM 1.7GHz G4 Sonnet Encore/ST; previously 733MHz stock G4 Leopard (10.5.8) Network is controlled by a router running DD-WRT v24-SP2. I am having a horrendous time trying to get this specific Mac to access certa