How to convert the following FORALL Update to direct SQL UPDATE statement

I have a FORALL loop to update a table. It is taking too long. I want to rewrite the code to a direct UPDATE sql. Also, any other tips or hints which can help run this proc faster?
CURSOR cur_bst_tm IS
SELECT listagg(tm, ' ') WITHIN GROUP(ORDER BY con_addr_id) best_time,
       con_addr_id
   FROM   (select Trim(Upper(con_addr_id)) con_addr_id,
                  ||decode(Initcap(start_day),
                                  'Monday', 'm',
                                'Tuesday', 'tu',
                                'Wednesday', 'w',
                                'Thursday', 'th',
                                'Friday', 'f',
                                 Initcap(start_day))
                  ||'='
                  ||trunc(( ( TO_DATE(start_tm,'HH12:MI:SS PM') - trunc(TO_DATE(start_tm,'HH12:MI:SS PM')) ) * 24 * 60 ))
                  ||','
                  ||trunc(( ( TO_DATE(end_tm,'HH12:MI:SS PM') - trunc(TO_DATE(end_tm,'HH12:MI:SS PM')) ) * 24 * 60 )) tm
           FROM   (SELECT DISTINCT * FROM ODS_IDL_EDGE_OFFC_BST_TM)
             WHERE con_addr_id is not null)
  GROUP  BY con_addr_id
  ORDER BY con_addr_id;
TYPE ARRAY IS TABLE OF cur_bst_tm%ROWTYPE;
l_data ARRAY;
BEGIN
OPEN cur_bst_tm;
     LOOP
    FETCH cur_bst_tm BULK COLLECT INTO l_data LIMIT 1000;
    FORALL i IN 1..l_data.COUNT
      UPDATE ODS_CONTACTS_ADDR tgt
      SET best_times = l_data(i).best_time,
      ODW_UPD_BY = 'IDL - MASS MARKET',
       ODW_UPD_DT = SYSDATE,
      ODW_UPD_BATCH_ID = '0'
      WHERE Upper(edge_id) = l_data(i).con_addr_id
       AND EXISTS (SELECT 1 FROM ods_idl_edge_cont_xref src
                   WHERE tgt.contacts_odw_id = src.contacts_odw_id
                      AND src.pc_flg='Y')  
    EXIT WHEN cur_bst_tm%NOTFOUND;
    END LOOP;
  CLOSE cur_bst_tm;Record count:-
select count(*) from
ODS_IDL_EDGE_OFFC_BST_TM;
140,000
SELECT count(*)
FROM ods_idl_edge_cont_xref src
WHERE src.pc_flg='Y';
118,000
SELECT count(*)
FROM ODS_CONTACTS_ADDR;
671,925
Database version 11g.
Execution Plan for the update:
Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
UPDATE STATEMENT Optimizer Mode=ALL_ROWS          6 K          8120                     
UPDATE     ODW_OWN2.ODS_CONTACTS_ADDR                                   
HASH JOIN SEMI          6 K     256 K     8120                     
TABLE ACCESS FULL     ODW_OWN2.ODS_CONTACTS_ADDR     6 K     203 K     7181                     
TABLE ACCESS FULL     ODW_OWN2.ODS_IDL_EDGE_CONT_XREF     118 K     922 K     938
Edited by: user10566312 on May 14, 2012 1:07 AM

The code tag should be in lower case like this {noformat}{noformat}. Otherwise your code format will be lost.
Here is a update statementupdate ods_contacts_addr tgt
set (
          best_times, odw_upd_by, odw_upd_dt, odw_upd_batch_id
     ) =
          select best_time, odw_upd_by, odw_upd_dt, odw_upd_batch_id
          from (
               select listagg(tm, ' ') within group(order by con_addr_id) best_time,
                    'IDL - MASS MARKET' odw_upd_by,
                    sysdate odw_upd_dt,
                    '0' odw_upd_batch_id,
                    con_addr_id
               from (
                         select Trim(Upper(con_addr_id)) con_addr_id,
                              ||decode(Initcap(start_day), 'Monday', 'm', 'Tuesday', 'tu', 'Wednesday', 'w', 'Thursday', 'th', 'Friday', 'f', Initcap(start_day))
                              ||'='
                              ||trunc(((TO_DATE(start_tm,'HH12:MI:SS PM')-trunc(TO_DATE(start_tm,'HH12:MI:SS PM')))*24*60 ))
                              ||','
                              ||trunc(((TO_DATE(end_tm,'HH12:MI:SS PM')-trunc(TO_DATE(end_tm,'HH12:MI:SS PM')))*24*60)) tm
                         FROM (
                              select distinct * from ods_idl_edge_offc_bst_tm
                         WHERE con_addr_id is not null
               group
               by con_addr_id
          where upper(tgt.edge_id) = con_addr_id
where exists
          SELECT 1
          FROM ods_idl_edge_cont_xref src
          WHERE tgt.contacts_odw_id = src.contacts_odw_id
          AND src.pc_flg='Y'
and exists
          select null
          from (
               SELECT listagg(tm, ' ') WITHIN GROUP(ORDER BY con_addr_id) best_time,
                    'IDL - MASS MARKET' odw_upd_by,
                    SYSDATE odw_upd_dt,
                    '0' odw_upd_batch_id,
                    con_addr_id
               FROM (
                         select Trim(Upper(con_addr_id)) con_addr_id,
                              ||decode(Initcap(start_day), 'Monday', 'm', 'Tuesday', 'tu', 'Wednesday', 'w', 'Thursday', 'th', 'Friday', 'f', Initcap(start_day))
                              ||'='
                              ||trunc(((TO_DATE(start_tm,'HH12:MI:SS PM')-trunc(TO_DATE(start_tm,'HH12:MI:SS PM')))*24*60 ))
                              ||','
                              ||trunc(((TO_DATE(end_tm,'HH12:MI:SS PM')-trunc(TO_DATE(end_tm,'HH12:MI:SS PM')))*24*60)) tm
                         FROM (
                              SELECT DISTINCT * FROM ODS_IDL_EDGE_OFFC_BST_TM
                         WHERE con_addr_id is not null
               GROUP
               BY con_addr_id
          where upper(tgt.edge_id) = con_addr_id
This is an untested code. If there is any syntax error then please fix it and try.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to convert the following query to sql server 2005

    hi
    i have the following query in ms access and i want to convert it into sql server 2005 express edition
    SELECT iif(Max(BNo) is null,1,Max(BNo)+1) AS BNo from ( SELECT iif(Max(Product.BNo) is null,0,Max(Product.BNo)) AS BNo FROM Product union all SELECT iif(Max(grndetail.BNo) is null,0,Max(grndetail.BNo)) AS BNo FROM grndetail UNION ALL SELECT iif(Max(srdetail.BNo) is null,0,Max(srdetail.BNo)) AS BNo FROM srdetail ) as t
    how to do this

    The construct involving case when MAX sounds suspicious. Can you explain what the query is supposed to be doing, the structure of your table, then we can re-write it?
    E.g. if you provide your table, some data and desired result, you'll get better answer than direct translation of this suspicious query.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How to convert the following?

    Hi ,
    Below is the java command line that I provide on dos prompt.
    How to I convert the same for unix commandline
    java -cp C:\joost-20090315\lib\joost.jar;C:/joost-20090315/lib/commons-discovery-0.4.jar;C:/joost-20090315/lib/avalon-framework-4.2.0.jar;C:/joost-20090315/lib/batik-all-1.7.jar;C:/joost-20090315/lib/bsf.jar;C:/joost-20090315/lib/commons-io-1.3.1.jar;C:/joost-20090315/lib/fop.jar;C:/joost-20090315/lib/joostGen.jar;C:/joost-20090315/lib/log4j-1.2.15.jar;C:/joost-20090315/lib/resolver.jar;C:/joost-20090315/lib/serializer.jar;C:/joost-20090315/lib/serializer-2.7.0.jar;C:/joost-20090315/lib/servlet-2.2.jar;C:/joost-20090315/lib/xalan-2.7.0.jar;C:/joost-20090315/lib/xercesImpl.jar;C:/joost-20090315/lib/xercesImpl-2.7.1.jar;C:/joost-20090315/lib/xercesSamples.jar;C:/joost-20090315/lib/xml-apisv.jar;C:/joost-20090315/lib/xml-apis-1.3.04.jar;C:/joost-20090315/lib/xml-apis-ext-1.3.04.jar;C:/joost-20090315/lib/xmlgraphics-commons-1.3.1.jar;C:/joost-20090315/lib/commons-logging.jar;C:/joost-20090315/lib/xsltc.jar net.sf.joost.Main sdeg24.xml etl_main_stx.stx
    Regards,
    s

    SDNDeveloper wrote:
    Below is the java command line that I provide on dos prompt.
    java -cp C:\joost-20090315\lib\joost.jar;C:/joost-20090315/lib/commons-discovery-0.4.jar;C:/joost-20090315/lib/avalon-framework-4.2.0.jar;C:/joost-20090315/lib/batik-all-1.7.jar;C:/joost-20090315/lib/bsf.jar;C:/joost-20090315/lib/commons-io-1.3.1.jar;C:/joost-20090315/lib/fop.jar;C:/joost-20090315/lib/joostGen.jar;C:/joost-20090315/lib/log4j-1.2.15.jar;C:/joost-20090315/lib/resolver.jar;C:/joost-20090315/lib/serializer.jar;C:/joost-20090315/lib/serializer-2.7.0.jar;C:/joost-20090315/lib/servlet-2.2.jar;C:/joost-20090315/lib/xalan-2.7.0.jar;C:/joost-20090315/lib/xercesImpl.jar;C:/joost-20090315/lib/xercesImpl-2.7.1.jar;C:/joost-20090315/lib/xercesSamples.jar;C:/joost-20090315/lib/xml-apisv.jar;C:/joost-20090315/lib/xml-apis-1.3.04.jar;C:/joost-20090315/lib/xml-apis-ext-1.3.04.jar;C:/joost-20090315/lib/xmlgraphics-commons-1.3.1.jar;C:/joost-20090315/lib/commons-logging.jar;C:/joost-20090315/lib/xsltc.jar net.sf.joost.Main sdeg24.xml etl_main_stx.stx
    I would probably use
    java -Djava.ext.dirs=/joost-20090315/lib net.sf.joost.Main sdeg24.xml etl_main_stx.stxwhich should work on both Windows and linux.

  • How to Convert the following XML? using XSLT Mapper?

    Hey all,
    I have a simple looking but complex problem
    I have a XML file like this
    <userdata>
    <city> new york</city>
    <address>San Fransico </address>
    </userdata>
    My result XML should look like this
    <UserDetails>
    <Details>
    <id>1234</id>
    <place>new york</place>
    </Details>
    <Details>
    <id>42345</id>
    <place>San Fransico </place>
    </Details>
    </UserDetails>
    I tried things but they never worked.
    Any help regarding this will be of great helpppppppppppppppppppppppppp!!
    Thanks in advance
    -Murthy.

    You can use XSLT. Between, where do you want to get the ID values of the place tag in result xml.
    --Shiv                                                                                                                                                                                                                       

  • How to convert the following code into an applet

    Please reply for me as soon as you can.
    import java.io.*;
    import java.awt.Frame;
    import java.awt.FlowLayout;
    import java.awt.Color;
    import java.awt.Insets;
    import java.awt.Dimension;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    import java.util.Enumeration;
    import javax.comm.CommPort;
    import javax.comm.CommPortIdentifier;
    import javax.comm.SerialPort;
    import javax.comm.NoSuchPortException;
    import javax.comm.PortInUseException;
    public class BlackBox extends Frame implements WindowListener
         static int               portNum = 0,
                             panelNum = 0,
                             rcvDelay = 0;
         static SerialPortDisplay[]     portDisp;
         static BlackBox           win;
         static boolean               threaded = true,
                             silentReceive = false,
                             modemMode = false,
                             friendly = false;
         public BlackBox()
              super("Serial Port Black Box Tester");
              addNotify();
              addWindowListener(this);
         public void windowIconified(WindowEvent event)
         public void windowDeiconified(WindowEvent event)
         public void windowOpened(WindowEvent event)
         public void windowClosed(WindowEvent event)
         public void windowActivated(WindowEvent event)
         public void windowDeactivated(WindowEvent event)
         public void windowClosing(WindowEvent event)
              cleanup();
              dispose();
              System.exit(0);
         public static void main(String[] args)
              Enumeration           ports;
              CommPortIdentifier     portId;
              boolean               allPorts = true,
                             lineMonitor = false;
              int               idx = 0;
              win = new BlackBox();
              win.setLayout(new FlowLayout());
              win.setBackground(Color.gray);
              portDisp = new SerialPortDisplay[4];
              while (args.length > idx)
                   if (args[idx].equals("-h"))
                        printUsage();
                   else if (args[idx].equals("-f"))
                        friendly = true;
                        System.out.println("Friendly mode");
                   else if (args[idx].equals("-n"))
                        threaded = false;
                        System.out.println("No threads");
                   else if (args[idx].equals("-l"))
                        lineMonitor = true;
                        System.out.println("Line Monitor mode");
                   else if (args[idx].equals("-m"))
                        modemMode = true;
                        System.out.println("Modem mode");
                   else if (args[idx].equals("-s"))
                        silentReceive = true;
                        System.out.println("Silent Reciever");
                   else if (args[idx].equals("-d"))
                        idx++;
                        rcvDelay = new Integer(args[idx]).intValue();
                        System.out.println("Receive delay = "
                                  + rcvDelay + " msecs");
                   else if (args[idx].equals("-p"))
                        idx++;
                        while (args.length > idx)
                             * Get the specific port
                             try
                                  portId =
                                  CommPortIdentifier.getPortIdentifier(args[idx]);
                                  System.out.println("Opening port "
                                       + portId.getName());
                                  win.addPort(portId);
                             catch (NoSuchPortException e)
                                  System.out.println("Port "
                                            + args[idx]
                                            + " not found!");
                             idx++;
                        allPorts = false;
                        break;
                   else
                        System.out.println("Unknown option "
                                  + args[idx]);
                        printUsage();
                   idx++;
              if (allPorts)
                   * Get an enumeration of all of the comm ports
                   * on the machine
                   ports = CommPortIdentifier.getPortIdentifiers();
                   if (ports == null)
                        System.out.println("No comm ports found!");
                        return;
                   while (ports.hasMoreElements())
                        * Get the specific port
                        portId = (CommPortIdentifier)
                                       ports.nextElement();
                        win.addPort(portId);
              if (portNum > 0)
                   if (lineMonitor)
                        if (portNum >= 2)
                             portDisp[0].setLineMonitor(portDisp[1],
                                            true);
                        else
                             System.out.println("Need 2 ports for line monitor!");
                             System.exit(0);
              else
                   System.out.println("No serial ports found!");
                   System.exit(0);
         private void addPort(CommPortIdentifier     portId)
              * Is this a serial port?
              if (portId.getPortType()
              == CommPortIdentifier.PORT_SERIAL)
                   // Is the port in use?     
                   if (portId.isCurrentlyOwned())
                        System.out.println("Detected "
                                  + portId.getName()
                                  + " in use by "
                                  + portId.getCurrentOwner());
                   * Open the port and add it to our GUI
                   try
                        portDisp[portNum] = new
                             SerialPortDisplay(portId,
                                       threaded,
                                       friendly,
                                       silentReceive,
                                       modemMode,
                                       rcvDelay,
                                       win);
                        this.portNum++;
                   catch (PortInUseException e)
                        System.out.println(portId.getName()
                                  + " in use by "
                                  + e.currentOwner);
         public void addPanel(SerialPortDisplay     panel)
              Dimension     dim;
              Insets          ins;
              win.add(panel);
              win.validate();
              dim = panel.getSize();
              ins = win.getInsets();
              dim.height = ((this.panelNum + 1) * (dim.height + ins.top
                        + ins.bottom)) + 10;
              dim.width = dim.width + ins.left + ins.right + 20;
              win.setSize(dim);
              win.show();
              panelNum++;
         static void printUsage()
              System.out.println("Usage: BlackBox [-h] | [-f] [-l] [-m] [-n] [-s] [-d receive_delay] [-p ports]");
              System.out.println("Where:");
              System.out.println("\t-h     this usage message");
              System.out.println("\t-f     friendly - relinquish port if requested");
              System.out.println("\t-l     run as a line monitor");
              System.out.println("\t-m     newline is \\n\\r (modem mode)");
              System.out.println("\t-n     do not use receiver threads");
              System.out.println("\t-s     don't display received data");
              System.out.println("\t-d     sleep for receive_delay msecs after each read");
              System.out.println("\t-p     list of ports to open (separated by spaces)");
              System.exit(0);
         private void cleanup()
              SerialPort     p;
              while (portNum > 0)
                   portNum--;
                   panelNum--;
                   * Close the port
                   p = portDisp[portNum].getPort();
                   if (p != null)
                        System.out.println("Closing port "
                                  + portNum
                                  + " ("
                                  + p.getName()
                                  + ")");
                        portDisp[portNum].closeBBPort();
    }

    hi welcome to java forum,
    please do one thing for me so that i can help you, can you put your code in a code tag [code ][code ] (without spaces) so that your code can be readable easily

  • IOS updates - I keep getting the following message when I try to update my iPad2 - unable to install update, an error occurred installing IOS 8.1.2.  How can I fix this?

    IOS error messagge - I keep getting the following message when I try to update my iPad2 - unable to install update, an error occurred installing IOS 8.1.2.  How can I fix this?

    Which way are you trying to update? WiFi or iTunes? In either case, I would try restarting/rebooting all devices and then try again.
    IF you are using iTunes, eject your iPad, quit iTunes, reboot your computer and reset your iPad by holding down on the sleep and home buttons until the Apple logo appears on the screen. After the iPad starts up, connect to iTunes and try again. You may also want to disable your firewall and antivirus software when you try to update using iTunes. Sometimes those will interfere with the download.
    If you are using WiFi, reset the iPad as described above and try again.
    If WiFi updating will not work, try using iTunes, if iTunes will not work, try using WiFi.

  • Issue converting the following query to text.

    Hello guys, I'm trying to convert the following query to text and to use PRINT so that it returns theresult in the picture as output, help would be appreciated, thanks :)SELECT EventName, EventDate
    FROM EventTable
    ORDER BY EventDate DESC;

    This is an example, As I said it is not a good approach
    set nocount on
    declare @tab table(id int,txt varchar(100));
    declare @txt varchar(1000);
    declare @count int;
    insert into @tab
    values(1,'Text 1'),(2,'Text 2'),(4,'Text 4');
    select *,RN=ROW_NUMBER()OVER(ORDER BY (SELECT NULL)) into #temp from @tab
    select @count=@@ROWCOUNT;
    while @count>0
    begin
    select @txt =right(replicate(' ',50)+convert(varchar(50),ID),50) +
    right(replicate(' ',50)+convert(varchar(50),txt),50)
    from #temp where RN=@count
    set @count=@count-1
    print @txt
    end
    drop Table #temp
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • How to convert the counter input as a RPM

    Hello NI,
                          Could you tell me. how to convert the Counter input to the RPM. I am using Rotary encoder has a 5V amplitude with 500 PPR. i am going to measure the Engine speed as a rpm.
    I am using third party hardware, from the hardware i can get the Count as well as Frequency also.
    Could you suggest to me...?  i looked out some disscussion in these forum but i cant able to understand.
    can you please explain with simple way....
    if you have any simulation send me....
    Regards,
    Balaji DP

    Hi balaji,
    [email protected] wrote:
    ...I am using third party hardware, from the hardware i can get the Count as well as Frequency also.
    If you're able to read frequency as X pulses/sec(?) that seems to convert RPM as follows:
    X (pulse/sec) * 1/500 (rev/pulse) * 60 (sec/min) = X * 60/500 RPM (???)
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Does anyone know how to convert the output from the standard report to xml?

    Does anyone know how to convert the output from the standard SAP report to xml?

    since it a standard report which you cannot modify you can only do the following.
    submit report exporting list to memory
    then
    list from memory and then
    use the returned itab along with CALL TRNSFORMATION key word to convert to xml.
    but this only going to place the whole list content (including data and formating lines,etc) into a xml element and not the actual data alone in the list .

  • How to convert the CS6 MAC version to the Windows version?

    I followed the advice to go to go/getserial, but the productcode i entered was "invalid", but the figures i entered are correct. What now ?

    Thank you for the tip, but I only get to : ask the community..   No
    contact with any agent.
    Pat Willener schreef op 19/09/2014 11:25:
    >
          How to convert the CS6 MAC version to the Windows version?
    created by Pat Willener <https://forums.adobe.com/people/pwillener> in
    /Downloading, Installing, Setting Up/ - View the full discussion
    <https://forums.adobe.com/message/6744036#6744036>

  • Launchctl: Please convert the following to launchd

    Hi,
    I'm running 10.5.1, and it's taking a long time for my Mac to start up. I looked in console and found
    11/28/07 10:18:32 AM com.apple.launchctl.Aqua[91] launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/PCIESlotCheck.plist
    11/28/07 10:18:42 AM com.apple.launchctl.Aqua[91] launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/RemoteUI.plist
    11/28/07 10:18:44 AM com.apple.launchd[88] (0x101060.PCIESlotCheck) Failed to check-in!
    I tried using PListEdit Pro to see what might be offending launchd, but I'm at a loss. Does anyone know how I can get those plists to stop choking launchd? Can I just delete them?
    Also, copying messages from Console is a pain now. Is there a way in Leopard to click and drag to select in Console like we used to?
    Thank you!
    Libby

    Sorry, I don't understand these things well enough to explain it, but the gist of it is that in the past, many mechanisms (including 'mach_init') were used to start processes for services, etc. during startup, but since Tiger, Apple has been working toward consolidating them so that eventually 'launchd' will presumably take over everything. If you are really interested, there is some documentation on the startup process here:
    http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/index .html
    Regarding the files though, if you did a clean install, it seems odd that they are there - I did an upgrade install, and the files you mentioned weren't present on my system (the "LaunchAgents" versions were). It seems odd to me that there would be that redundancy in a fresh install, especially if it is generating errors. As long as the launchd counterparts are present, it will probably be safe to remove the 'mach_init' ones, but as before, back them up just in case.
    Specifically, you can try to match a given file to service by searching the web to help you decide if it is something you want mess with it. For starters, I found this page by searching for the file names you mentioned in the earlier post:
    http://www.macgeekery.com/gspot/2006-12/turningoff_unneededservices

  • Message console: Please convert the following to launchd: /etc/mach_init...

    How can I handle with this message console: com.apple.launchctl.Aqua[126]: launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/RemoteUI.plist ???
    I can't found the /etc/ folder to try some posted solutions!!!

    this is is a system message for apple programmers. it can be safely ignored. don't even try to do anything about it yourself. you can't and you shouldn't.
    Message was edited by: V.K.

  • How to convert the javasource file(*.class) to execute file(*.exe)?

    How to convert the javasource file(*.class) to execute file(*.exe)?
    thank you!

    Although i have seen a few programs (that are platform specific) that will embed a small jvm into an exe with your class file, it is generally excepted that you cannot create an executable file using java. The JAR executable file is probably the closest your going to get
    Pete

  • I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?

    I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?
    Thank you

    So it seems from reading the COMMAND manual that my first issue is that I used a 16GB SD card, and the manual says it will only recogize up to a 2GB SD card. I did use my MB Air's SD card slot and crated a folder and dragged the music files to it, then to the card. So I am going to get a 2GB card and try that next. Otherwise just stick with the iPOD connected. At least that is 8GB

  • How to convert the character value to currency/numeric

    Hi,
    See the sample code here
    data: v_qtr_field(7).
    data: w_low_limit like glt0-kslvt,
          w_amount like glt0-hslvt.
    w_low_limit = 02.
    w_max_period = 3.
    concatenate 'HSL' w_low_limit into v_qtr_field.
    *comment
    *I am looking for a field formation thru above code like in GLT0 table like HSL02,HSL03 *etc based on the value user entered in the selection *screen
    DO w_max_period TIMES
      VARYING w_amount FROM v_qtr_field NEXT v_qtr_field + 1.
       t_trans_values-dmbe2 = t_trans_values-dmbe2 + w_amount.
      ENDDO.
    I am facing problem in the Do loop as it wont allows multiple data types. can you suggest me how to convert the v_qtr_field whose data type is character to currency?

    Hi,
    Please check this code .
    PERFORM write_currency
                  USING buf_anla-urwrt t_dates-waers t_txw_anla-urwrt.
    *       FORM WRITE_CURRENCY                                           *
    *       convert currency amount to string                             *
    *       - use decimal point                                           *
    *       - remove separator characters                                 *
    *  -->  P_AMOUNT                                                      *
    *  -->  P_CURRENCY_UNIT                                               *
    *  -->  P_STRING                                                      *
    FORM WRITE_CURRENCY
         USING P_AMOUNT        TYPE P
               P_CURRENCY_UNIT LIKE TCURC-WAERS
               P_STRING        TYPE C.
      DATA: DEC2POINT(2) TYPE C VALUE ',.'.
    * convert separator to decimal point
      WRITE P_AMOUNT TO P_STRING CURRENCY P_CURRENCY_UNIT
            NO-GROUPING
            NO-SIGN
            LEFT-JUSTIFIED.
      TRANSLATE P_STRING USING DEC2POINT.
    * put minus sign before number
      IF p_amount < 0.
        SHIFT P_STRING RIGHT.
        P_STRING(1) = '-'.
      ENDIF.
    ENDFORM.
    <i>Hope This Info Helps YOU.</i>
    Regards,
    Lakshmi

Maybe you are looking for