Any altenate statement for WRITE-TO

Hi Experts,
I am trying to dump or casting data from one internal table to another of different data types......
where i am using WRITE-TO statement....since i need to go through each and every field and i have huge data ..
it is killing my time........
can anybody suggest me any other statement which exactly acts as WRITE TO  ..and where i can do this on a fly.....
Regards
sam

Hi,
thank you for your reply
My code is some thing like this:
write  wa_vmctmp-counter                        TO  wa_zvmctmp-temp1.
write  wa_vmctmp-mem_alloc_local          TO  wa_zvmctmp-temp2.
temp1,temp2 are my required data types.......
Regards
sam

Similar Messages

  • How to write procedure or function or any sql statement for requirement

    Hi,
    i have a table named letter,it contains 2 columns named as letter_id and letter_content.
    select * from letter;
    letter_id letter_content
    103 Dear MFR
    103 This is in regards to the attached DM List
    103 Please Credit us after reviewing it.
    103 Thanks
    103 Regards
    103 xxxx
    108 Dear customer
    108 This is to inform that ur DM List is as follows
    108 Credit us according to the Dm after reviewing it.
    108 Thanks
    108 Regards
    108 xxxx
    now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
    if we will pass parameter(letter_id) = 103 then it displays as follows:
    Dear MFR
    This is in regards to the attached DM List.Please Credit us after reviewing it.
    Thanks
    Regards,
    XXXXX.
    if we will pass parameter(letter_id) = 108 then it should displays as follows:
    Dear customer,
    This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
    Thanks
    Regards,
    XXXXX.
    ---------------------------------------------------------------------------------------------------------

    i am really appriciate ur help.
    thank u so much for ur suggestions.
    when i am uning line_seq its giving an error
    ORA-00904: "LINE_SEQ": invalid identifier
    so,in my table i had created a sequense named content_seq.
    select * from letter;
    content_seq letter_id letter_content
    1 103 Dear MFR
    2 103 This is in regards to the attached DM List
    3 103 Please Credit us after reviewing it.
    4 103 Thanks
    5 103 Regards
    6 103 xxxx
    7 108 Dear customer
    8 108 This is to inform that ur DM List is as follows
    9 108 Credit us according to the Dm after reviewing it.
    10 108 Thanks
    11 108 Regards
    12 108 xxxx
    then i had used ur code as follows:
    select linefrom ( select content_seq , letter_content || case content_seq when 2 then ' ' || lead(letter_content) over (partition by letter_id order by content_seq) end as line from letter where letter_id = 103 )where content_seq <> 3;
    LETTER_CONTENT
    Dear MFR
    this is in regards to the attached DM List Please credit us after reviewing it
    thanks
    Regards
    EXP
    but when i take letter_id = 108 the format is comming different.it was unable to combine 2lines.
    Message was edited by:
    user579585
    Message was edited by:
    user579585

  • Is there any alternative statement for OPEN CURSOR?

      OPEN CURSOR WITH HOLD l_cursor FOR
              SELECT paledger vrgar versi perio paobjnr pasubnr belnr posnr
                             hzdat usnam gjahr perde wadat fadat budat altperio papaobjnr
                            papasubnr kndnr artnr fkart frwae kursf kursbk kurskz rec_waers
                           kaufn kdpos rkaufnr skost prznr bukrs kokrs werks gsber vkorg
                         vtweg spart hrkft plikz kstar pspnr kstrg rbeln rposn sto_belnr
                         sto_posnr prctr pprctr rkestatu timestmp copa_awtyp copa_aworg
                     copa_bwzpt copa_awsys ktgrd kmhi01 kmhi02 kmhi03 hie04 hie05
                     hie06 hie07 prdha ww003 kunwe pstyv ww150 vsart ww152 ww153
                     ww154 ww155 crmelem ww156 ww157 vbund vv002_me vv001_me vv003_me
                     vv002 vv070 vv071 vv072 vv073 vv074 vv075 vv076 vv077 vv078
                     vv079 vv080 vv081 vv095 vv096 vv040 vv104 vv001 vv003 vv004
                     vv028 vv105 vv150 vv151 vv152 vv153 vv154 vv155 vv038 vv068
                     vv030 vv156 vv157 vv158 vv159 vv160 vv161 vv162 vv035 vv166
                     vv167 vv168 vv169 vv170 vv171 vv172 vv163 vv164 vv165 vv045
                     vv046 vv047 vv059 vv031 vv032 vv039 vv173 vv195 vv194 vv193
                     vv192 vv191 vv184 vv185 vv186 vv187 vv188 vv189 vv190 vv174
                     vv175 vv176 vv177 vv178 vv179 vv180 vv181 vv182 vv183
              FROM (l_table)                                    "ce1na01
              WHERE  paledger IN r_curr_ty
              AND   vrgar IN r_record
              AND   perio EQ lv_period.
    *  Fetch in Packets of 10000
        DO .
          FETCH NEXT CURSOR l_cursor
            INTO TABLE lt_data
            PACKAGE SIZE 10000.
    *  No More Data
          IF NOT sy-subrc IS INITIAL.
            CLOSE CURSOR l_cursor.
            EXIT.
          ENDIF.
         ENDDO.
    This is my current code. while executing it is taking more time so we need optimize this statement. Could you please suggest me.

    No.

  • How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column

    Please Help!!!
    How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column.
                                      January 2014         January
    2013                            +/-
                    Region   Entry   Exit  Total    Entry   Exit   Total   (Total of Jan2014-Total of Jan2013)
                    A               2         3      
    40        5       7        30                    40-30= 10

    What is a table structure? Sorry cannot test it right now..
    SELECT <columns>,(SELECT Total FROM tbl WHERE Y=2014)-(SELECT Total FROM tbl WHERE Y=2013)
    FROM tbl
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to write Select statement for this codition

    I need to check whether SGTXT contains BELNR value.
    SGTXT is a text field and It should be matched with BELNR
    How to write select statement for this.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT should have the given BELNR Value.
    Plz note : Here I cannot give as SGTXT = BELNR as coz BELNR have only 10 digits.

    Hi,
    data temp(12).
    concatenate '%' belnr '%' into temp.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT like temp.
    If belnr is having multiple values,just create a internal table as follows.
    types : begin of ty,
            belnr....
            temp(12),
            end of ty.
    data itab_ type standard table of ty.
    data wa type ty.
    loop at itab into wa.
    concatenate '%' wa-belnr '%' into wa-temp.
    modify itab from wa index sy-tabix transporting temp.
    endloop.
    Change your select statement accordingly.
    Kindly reward poits if it helps.

  • For PCI-4451,How to change the frequency of an output signal without any undefined state

    I would like to generate a signal using output channels of PCI-4451 and at the same time capture data using the input channels. Is there any method that I can generate a continuous signal without any undefined state when the signal frequency is being changed?
    Attachments:
    Input_Signal.bmp ‏729 KB

    Wee,
    DSA boards such as the PCI-4451 have a number of very desirable properties including high precision and a high sampling rate. The trade-off for the combination of these two properties is that the DSA boards cannot adjust their sampling rate on-the-fly. Instead they have to be stopped and reconfigured. During this reconfiguration time, the value of the board's output becomes flat and level.
    If you are looking to adjust the board's output without seeing these flat spots, you have to take a different approach to programming a DSA board. Instead of reconfiguring the board, what you need to do is allow the board to continue to run (at the same output frequency), and then overwrite the output buffer that the board reads to output values. This will
    allow you to output new data without the flat spots. Below you will find an example that displays this behavior.
    If you determine that this is not an acceptable workaround due to the limitations on output rates, you may want to look at using a Multifunction DAQ board (60xx or 62xx) or an arbitrary waveform generator (54xx) device instead.
    Best of luck with your application.
    Regards,
    Jed R.
    Applications Engineer
    National Instruments
    Attachments:
    Cont_Gen_Voltage_Wfm-Int_Clk-With_Updates_for_DSA.llb ‏161 KB

  • Using an output statement for a delete w/o affecting any oracle error msg

    Dear all;
    I have a delete statement similar to this below
      delete from tbl_one t
      where t.tbl_one_location = location
      and location not in (select distinct p.issuearea  from tbl_two p);the delete statement is within a package, however what i would like to do is output a simple message to show if the delete was successful meaning that an actual item was deleted and if it wasnt successful output another statement for that.
    I have an idea in my mind which is to keep track of the number of items in tbl_one before the deletion and then check the count after deletion and if the count is less, then the deletion was successful...hence output the message. Is this the best way to go about it or is there an easier way to do this.
    Thank you, All help is appreciated.

    All u need is this -
    SQL%ROWCOUNTPlease see the folowing -
    SQL> select empno
      2    from emp;
         EMPNO
             1
             2
             3
             4
             5
    SQL>
    SQL> BEGIN
      2     DELETE FROM emp
      3           WHERE empno = 1;
      4 
      5     IF (SQL%ROWCOUNT > 0)
      6     THEN
      7        DBMS_OUTPUT.put_line (SQL%ROWCOUNT || ' Rows Deleted.');
      8     END IF;
      9  END;
    10  /
    1 Rows Deleted.
    PL/SQL procedure successfully completed.
    SQL> select empno from emp;
         EMPNO
             2
             3
             4
             5
    SQL> Hope this helps..
    Formatted the code..
    Edited by: Sri on Mar 22, 2011 8:31 AM

  • Sql statement substituion - any special rules for formatting the query?

    Hey,
    I was wondering - are there any special rules for formatting the query that is to be substituted?
    I am asking, as somehow I am unable to make the DSP substitute my query. I took the basesql from the server console (to make sure that I have the correct version), configured a query substitution, and well, nothing happens.
    I've tried to substitute it with a modified version of the original query (where NVL(,0) is changed to NVL(,-9999)), then also with select * from dual (which I hope would generate some error), but DSP is ignoring everything...
    The query is rather big (400 lines), so maybe I need to format it somehow? I've noticed that in the docs (http://edocs.bea.com/aldsp/docs25/admin/server.html#wp1049919) that the query used in the example has all leading spaces removed. I've tried that, but DSP is still not doing any substitution...
    Any suggestions welcomed...
    Thanks,
    Leszek

    Michael,
    I am doing everything as in edocs, retrieving from logs the basesql (so with place holders). I've removed all new lines (so the query is now in a single line) and all excessive blanks (so all double/more blanks replaced with a single blank). Still the DSP is like ignoring the substitution. I've tried to do it even with a simple query, like:
    SELECT t4."PRODUCT_ID" AS c1, t4."PRODUCT_NAME" AS c2 FROM {DB}.{SELECTION} t1 JOIN {DB}.{CUSTOMER_FACT} t2 ON (t1."VAL" = t2."CUSTOMER_ID") JOIN {DB}.{CUSTOMER} t3 ON (t3."CUSTOMER_ID" = t2."CUSTOMER_ID") JOIN {DB}.{PRODUCT} t4 ON (t4."PRODUCT_ID" = t3."PRODUCT_ID") WHERE ((? = t1."SESSN_ID") AND (t1."NAME" = 'CUSTOMER_ID') AND (t3."DELET_DATE" IS NULL) AND (t3."PRODUCT_TYPE" = 11))
    am I missing something here? do I need to remove/add something , to make it work?
    I've tried removing blanks around = signs (which from the DSP pov results in a different query), sitll with no results.
    Edited by xnts at 06/24/2008 7:37 AM

  • Update statement for object table.

    Hi,
    I have created one type as
    Create type test as object(
    ins_by varchar2(30),
    ins_on date,
    upd_by varchar2( 30),
    upd_on date);
    and then created an object table as
    create table imst(
    i_code number(5),
    i_desc varchar2(35),
    i_op test);
    now i am able to insert record in this table as
    insert into imst values(1,'Hawkins cooker',test(user,sysdate,'',''));
    Above works fine.
    But I would also like to update the record with i_op.upd_by,i_op.upd_on with some other values.
    Can any body help me specifying how to write a plain update statement for the same.
    Regards.
    Soumen

    Check it out:
    SQL> Create type myTest as object(
      2  ins_by varchar2(30),
      3  ins_on date,
      4  upd_by varchar2( 30),
      5  upd_on date);
      6  /
    Type created.
    SQL> create table imst(
      2  i_code number(5),
      3  i_desc varchar2(35),
      4  i_op myTest);
    Table created.
    SQL> insert into imst values(1,'Hawkins cooker', mytest(user,sysdate,'',''));
    1 row created.
    SQL> select * from imst;
        I_CODE I_DESC
    I_OP(INS_BY, INS_ON, UPD_BY, UPD_ON)
             1 Hawkins cooker
    MYTEST('APC_LOAD', '12-JUL-04', NULL, NULL)
    SQL> update imst i set i.i_op.upd_by = USER, i.i_op.upd_on = add_months(sysdate, 1);
    1 row updated.
    SQL> select * from imst;
        I_CODE I_DESC
    I_OP(INS_BY, INS_ON, UPD_BY, UPD_ON)
             1 Hawkins cooker
    MYTEST('APC_LOAD', '12-JUL-04', 'APC_LOAD', '12-AUG-04')
    SQL> Smoke me a kipper I'll be back before breakfast.
    Cheers, APC

  • Need Select statement for fetch the details

    Hi
      i want to fetch particular customer wise sales orderds and that sales order No  and  date of sales order was created..  and  that sales order related PO No  and Materials ..
    for this..   how can i write an executable programm.. is it needed to  define seperate  internal tables or single internal table is enough  ?
    what is the select statement for fetching  all these details..
    any help will be appriciated
    Thanks
    Bbau

    custmer master table is KNA1  knb1  knbk
    sales data tables r  VBAK VBAP VBEP
    Material data  MARA, MARAC, MARD
    PO RELATED ekko  ekpo  eket
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:04 PM

  • Missing read stats for zpool iostat?

    All,
    I'm working on benchmarking a T5240 w/ ZFS storage pools and a new Hitachi AMS2300. I'm using iozone and bonnie++ to benchmark. Iozone gives me stats for read performance, but the Hitachi doesn't record and read commands. Odd. Using zpool iostat <storage pool> also doesn't report and read commands for any of the tests I've done. Even if i cp a large zip file to the fs and then unzip it, I only get write stats, no read stats. What am I missing here? Do these missing stats have something to do with ZFS?
    How can I get reliable performance stats about each zpools workload and performance?
    Thanks,
    Demian

    Ive never had any trouble getting read stats out of iostat or zpool iostat.
    Well, unless its the first time you unzip'ed it. It could well be cached.
    And it you downloaded it. It could have been cached when it was written.
    For the sake of sanity checking, try rebooting the box. Then redo the test.
    Once you've established that your testing method works, you can see if you can find more convenient methods
    of achieving the same thing. Maye unmounting and remounting the filesystem.

  • I cannot access online statements for my credit card account when using firefox, but have no problem when using safari.

    When I attempted to check the monthly statement for my credit card account and clicked on "See statement", the next screen that appeared, which was labeled Online Statement", was blank. In the past, I have never had any problems with this. When I checked with the bank that issued the credit card, the representative I spoke with said that it was a browser issue and that, since I was working on a Mac, I should try using Safari. When I switched to Safari, I had no problem bringing up my statement. But I would prefer to be able to use Firefox to obtain information like this, since it's the browser I always use.

    Can you upgrade your browser to Firefox 12 and check?
    * getfirefox.com

  • VLD-1119: Unable to generate Multi-table Insert statement for some or all t

    Hi All -
    I have a map in OWB 10.2.0.4 which is ending with following error: -
    VLD-1119: Unable to generate Multi-table Insert statement for some or all targets.*
    Multi-table insert statement cannot be generated for some or all of the targets due to upstream graphs of those targets are not identical on "active operators" such as "join".*
    The map is created with following logic in mind. Let me know if you need more info. Any directions are highly appreciated and many thanks for your inputs in advance: -
    I have two source tables say T1 and T2. There are full outer joined in a joiner and output of this joined is passed to an expression to evaluate values of columns based on
    business logic i.e. If T1 is available than take T1.C1 else take T2.C1 so on.
    A flag is also evaluated in the expression because these intermediate results needs to be joined to third source table say T3 with different condition.
    Based on value taken a flag is being set in the expression which is used in a splitter to get results in three intermediate tables based on flag value evaluated earlier.
    These three intermediate tables are all truncate insert and these are unioned to fill a final target table.
    Visually it is something like this: -
    T1 -- T3 -- JOINER1
    | -->Join1 (FULL OUTER) --> Expression -->SPLITTER -- JOINER2 UNION --> Target Table
    | JOINER3
    T2 --
    Please suggest.

    I verified that their is a limitation with the splitter operator which will not let you generate a multi split having more than 999 columns in all.
    I had to use two separate splitters to achieve what I was trying to do.
    So the situation is now: -
    Siource -> Split -> Split 1 -> Insert into table -> Union1---------Final tableA
    Siource -> Split -> Split 2 -> Insert into table -> Union1

  • My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem.

    My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem. The only thing that solves it is switching off and on , but sometimes I have to do that for 6-7 times before its ok or wait for a few hours. Some help please

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Error while uploading Bank statement for BACS

    Hi All,
    We are facing a error while uploading a bank statement for BACs, the system is not autoposting (clearing the open items) for the BACs file. The bank statement is as below
    :20:20081015
    :25:200000/50414107
    :28:28290/01
    :60F:C081015GBP1176,45
    :61:0810151015DX448,97FDDRNONREF//
    :86:999/00DDRARVAL             1875180          
    :61:0810151015DX779,07FDDRNONREF//
    :86:999/00DDRBP OIL UK RECPS AC230679BI2898784  
    :61:0810151015DX24469,50FDDRNONREF//
    :86:999/00DDRSAPBACS0000341816               BACS
    :61:0810151015DX233018,83FDDRNONREF//
    :86:999/00DDRSAPBACS0000340411               BACS
    The last line items BACS file is not posting the document but we have manually auto cleared the document.
    Can any one let me know what has caused the error. And where to check out the setting of this.
    Thanks and Regards
    Sri

    solved myself

Maybe you are looking for

  • How to make every coloum in a table/report searchable in  an application???

    I used the wirzed to make some applications based on some of my tables in the DB, but I when I typed a specific record in the search textbox, some them I can search, but some of them, they showed" data cannot be found", I hope every coloum in my tabl

  • JDBC Reciever query

    Hi All, I have to update the fields with Dummy value where the field is not null. I.e Update field1 with Dummy from table <u>where field2 is not null</u>. Number of eligible records are zero for this, but in actual case there are some values. Please

  • EA6500 reboots every few hours

    Hi, I got my new comcast connection and using CISCO DPC3008 cable modem and EA6500 Wifi Smart Router. Internet works fine and then suddently the internet goes away. Further investigation shows EA6500 Wifi router just reboots every few hours and then

  • JVMDG315: JVM Requesting Heap dump file

    Hi expert, Using 10.2.04 Db with 11.5.10.2 on AIX 64 bit. While running audit report which generate pdf format output gone in error.... JVMDG217: Dump Handler is Processing OutOfMemory - Please Wait. JVMDG315: JVM Requesting Heap dump file ..........

  • TOO many activations - looks like everyone has problem

    My case number is Case #0181489003 I've been waiting since March 13. Still waiting to get it reset. If so many people are having this problem why isn't adobe trying to fix it? Is it b/c it is a free program? Thanks