About move statement in abap.

move-corresponding is only for structure or also for internal table?
if you know please some details.

Hi,
To move values between the components of structures, use the statement
MOVE-CORRESPONDING <struct1> TO <struct2>.
This statement moves the contents of the components of structure <struct1> to the components of <struct2> that have identical names.
When it is executed, it is broken down into a set of MOVE statements, one for each pair of fields with identical names, as follows:
MOVE STRUCT1-<ci> TO STRUCT2-<c i>.
Regards
Sudheer

Similar Messages

  • Merge Statement in ABAP

    Dear Gurrus,
    i am having a trouble in using oracle merge statement in abap, the moment i use where clause in the bottom it  gives me an oracle error
    EXEC SQL.
      MERGE INTO SAP_GL_ACCOUNT@GETZDB a
      USING SKA1 b
        ON (A.gl_code= B.SAKNR)
      WHEN MATCHED THEN
        UPDATE SET a.posting_block =  B.XSPEB,
                   a.locked        =  B.XSPEA,
                   A.BALANCE_SHEET =  B.XBILK
         WHEN NOT MATCHED THEN
           insert   (gl_code,
                     DESCRIPTION,
                     posting_block,
                     locked,
                     balance_sheet)
          VALUES (b.SAKNR,'shadab',B.XSPEB,B.XSPEA,B.XBILK)
          where b. mandt = 950      I am talking about this line
             ENDEXEC.
    the Moment  i include WHERE clause in the botton before ENDEXEC it generates as error
    " Database error text........: "ORA-00904: "A3"."MANDT": invalid  identifier#ORA-02063: preceding line from GETZDB".
    although its a basic feature of Oracle to inclue where clauses in insert or update in merge, but here it is generating an error.

    Hello Shadab,
    As per my understanding of this oracle native sql code.
    everything is fine except the use of direct value i.e 950 .
    System is not able to process this value .
    This normally happens even in normal abap sql statements also.
    The better solution could be to declare a variable with the
    same data type as "mandt" and then pass this "950" value into that
    variable and then use this variable in the where clause instead of directly
    passing the value.
    i.e data:l_var type mandt vlaue '950'.
    The other option could be to use the same hard coded
    value but use this value in the where clause in quotations i.e.,
    '950' instead of 950.
    I hope this would solve your purpose, If not please reply me back.
    thanks,
    M.Naveen Kumar.

  • Change "MOVE-CORRESPONDING" statement to MOVE statement in FM

    Hello Guys,
    I have created a datasource based on FM standard template RSAX_BIW_GET_DATA. In the source code in this template, there is a LOOP statement and below that there is a "MOVE-CORRESPONDING" statement.
    LOOP AT g_t_select INTO l_s_select WHERE fieldnm = 'PGMID'.
            MOVE-CORRESPONDING l_s_select TO l_r_pgmid.
            APPEND l_r_pgmid.
    ENDLOOP.
    My customer does not allow MOVE-CORRESPONDING statement for performance reasons. Hence I need to change it to MOVE statement. But I do not know the structure of l_s_select and I am not well at ABAP. So How do I write MOVE statement here.
    Can anybody help on this?
    Regards
    Utpal

    Hi Tibollo,
    Thanks for your prompt reply. Your suggestion has solved my problem. One input to this from  my side. It will not accept FIELDNM because it is not present in l_r_pgmid. Remind you l_r_pgmid is declard as a range and ranges does not have FIELDNM.
    Anyway, that portion I have modified and it worked. Thanks a lot. I am rewarding u points.
    Regards
    Utpal

  • Will alter table table_name move statement change the storage parammeter

    Hi there,
    I have a question about table reorgnization. Will alter table
    table_name move SQL statment change the table's storage parameter
    or keep the same as the original one? If I want to use alter
    table statement to do table defragmentation and change the
    initial and next storage parameter, how will I write this SQL
    statement?
    Thanks in advance.

    Thanks. My table has 5000 extents each of which is 64k, so I
    think I need to do table defragmentation to improve performance.
    If I use alter table table_name move without storage parameter
    and tablespace name, I will relocate this table in current
    tablespace and adopt the current tablespace's storage parameter
    as my table's new storage paramater which is still 64k. After
    that, if I issue alter
    table table_name storage (initial 50M next=50M) command, will it
    change this table's storage parameter and decrease the totoal
    extents number? I ask this question because I use OEM2.2 tuning
    pack reorg wizard to generate the job script to do table
    defragmentation, but in the job script there is no new storage
    parameter. It only generate alter table table_name move
    statement, so I wonder if I don't need to modify this job scripts
    and after it executes this job script, I issue alter table
    table_name storage parameter command manaully. Will this solve
    my problem or I must modify the job script and add new storage
    parameter in the job script?

  • PROBLEM IN MOVE STATEMENT IN ECC 6.0

    hi EXPERTS,
    THE FOLLOWING CODE WORKS FINE IN 4.6C BUT IN ECC 6.0 THE MOVE STATEMENT AT THE END THROWS ERROR.
    ""INNNN" and "I0008" are not mutually convertible. In Unicode systems, "INNNN" must have the same structure layout (fragment view) as"I0008", regardless of the length of the Unicode character."
    DATA: i0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
          i0008 LIKE p0008 ,
          innnn like PRELP.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE i0001
          FROM pa0001
          WHERE begda <= 20061201
          AND endda >= 20061201
          AND pernr = 00014442 .
    READ TABLE i0001 INDEX 1.
          i0008-trfgr = i0001-persk.
          CASE i0001-persg.
            WHEN '4'.
              i0008-trfst = i0001-persg.
            WHEN '7'.
              i0008-trfst = i0001-persg.
            WHEN '8'.
              i0008-trfst = i0001-persg.
            WHEN OTHERS.
              i0008-trfst = '1' .
          ENDCASE.
          MOVE i0008 TO innnn.
    I'VE ALSO CHECKED THE SAME PROGRAM IN DEBUGGER IN 4.6C.
    I'VE FOUND THAT THE VALUES FOR i0008-trfgr i0008-trfst ARE TOGETHER STORED IN THE FIELD DATA1 OF INNNN. BUT THIS DOES NOT HAPPEN IN ECC 6.0.
    PLEASE HELP.
    ITS URGENT.

    Hi priya,
    DATA: i0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
    i0008 LIKE p0008 ,
    declare innnn like this and check
    innnn like p008.
    regards,
    Nagaraj

  • MOVE statement

    Hi all,
                I added one more extra word to move statement and it is not cming in the final report .
    when i put it in the second line it is giving error like two lines not permitted.
    I am using this in a Report where page width is fixed..
    Thanks in advance..
    Regards
    Rao

    Hi PT Rao,
    Try in this way...
    DATA : a(9) type c, b(80) type C. " 80 is the length for b (ur string which u want to move)
    a = w_faxtn-fax_line+0(9).
    b = 'A fronte delle fatture sotto elencate, abbiamo provvveduto a (f22) bonificarVi'  TO b.
    concatenate a b into w_faxtn-fax_line.
    APPEND w_faxtn.
    CLEAR w_faxtn.
    Hope it will solve ur problem
    <b>Reward points if useful</b>
    Thanks & Regards
    ilesh 24x7

  • Question about delete statement

    I have question about delete statement...
    i am performing some simple delete statement against one table..but its taking so long..How can we check whether particular delete statements actually deleting records or not..?

    Is the associated select-statement returning rows or not?
    If yes -> delete is deleting
    If no -> delete is just using CPU-cycles
    To tune the delete-statement, you have to tune the corresponding select-statement. To tune the select-statement, you want to read the thread When your query takes too long ...

  • Explain about roll area , Dispatcher, ABAP-Processor

    Hi all,
    Can anyone explain about roll area , Dispatcher, ABAP-Processor?
    Thanks,
    srikanth.

    Hi Srikanth.
    I would like to suggest a few references,
    [SAP HELP Library - Standard Reference for ztta/roll_area: Roll Area|http://help.sap.com/saphelp_nw04/helpdata/en/02/96274f538111d1891b0000e8322f96/content.htm]
    [SAP HELP Library - Standard Reference for SAP Roll Area|http://help.sap.com/saphelp_nw04/helpdata/en/28/d1d3f6bcb411d188b30000e83539c3/content.htm]
    [SAP HELP Library - Standard Reference for Event Dispatcher|http://help.sap.com/saphelp_nw04s/helpdata/en/10/d57142d868f433e10000000a114b1d/frameset.htm]
    [SAP HELP Library - Standard Reference for Special Events of the Event Dispatcher|http://help.sap.com/saphelp_nw04s/helpdata/en/1c/0f754252404559e10000000a114b1d/content.htm]
    [SAP HELP Library - Standard Reference for Work Processes - ABAP - Processor|http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb2e7d358411d1829f0000e829fbfe/frameset.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Information about UK payroll in ABAP HR

    1)Can anyone share some information about UK payroll in ABAP HR especially INCLUDES that need to be used while getting payroll results from clusters.
    2)Interface programs in ABAP-HR.

    Can be helpful for the Report generation like salary register and reconcile of payroll for certain periods by accessing tables, RT, CRT& LRT.
    all the best

  • About inner join in abap

    hi
        i am new to sap , i dont no about inner join in abap coding
    plz send me some notes or coding.
                            thank u.
                                                              your regrads
                                                                    divya.

    hi
    use this links
    INNER JOIN  and OUTER JOINhttp://help.sap.com/erp2005_ehp_03/helpdata/EN/cf/21ec77446011d189700000e8322d00/frameset.htm
    JOINED TABLES
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/0f/49bd6a5d5049edba7b3afe6c7956e3/frameset.htm
    u will find all thins related to joins with example and how to use it
    Cheers
    Snehi
    Edited by: snehi chouhan on Jul 25, 2008 9:45 AM

  • Information about Integration WebDynpro for ABAP and Business-Workflow

    Hi Experts,
    I'm looking for information about
    • Integration WebDynpro for ABAP and Business-Workflow
    Link, documents and books are welcome!
    Thanks
    mishak

    If you have worked on workflows earlier the procedure is very simple. You just need to enter certain parameter values of your application in SWFVISU for the respective task and re-register your system in UWL administration. Thats it! your webdynpro and workflows are integrated. For details on the parameters check the following link,
    http://help.sap.com/saphelp_nw04/helpdata/en/19/bff5c18ba44da4a4ca68cf572dabda/frameset.htm
    There are also a couple of blogs on "launching webdynpro from UWL" (Procedure for both Java and webdynpro is almost similar). You can also check these for more details.
    Thanks,
    Prasath N

  • Reg alter table move statement

    Hi friends,
    I am having a table with 10GB. i moved the table to the same tablespace using "alter table move" statement.
    previously my tablespace had 6 GB freespace. To move the table i resized datafile to increase freespace in tablespace.
    after moving, my table size reduced to 8GB. now i want to reduce the datafile size to 6GB again. but its throwing error
    ORA-03297: file contains used data beyond requested RESIZE value
    Can't i reduce the datafile size to 6GB again?
    thanks in advance

    resize will not released space below the high water mark.
    The simpliest way how to proceed in this case is to move all tables to the new tablespace and drop the original including datafiles. And rename new tablespace back to the old ones name if You want.
    You can read some more discussions here:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:766625833673

  • Queyr about move-corresponding

    Hi guys,
    is move-corresponding capable of moving all entries of internal table w/o headerline to another internal table?
    or is it only capable of moving one entry?
    thanks a lot!

    Hi,
    To move values between the components of structures, use the statement :
    MOVE-CORRESPONDING <struct1> TO <struct2>.
    This statement moves the contents of the components of structure <struct1> to the components of <struct2> that have identical names. The other fields remain unchanged.
    When it is executed, it is broken down into a set of MOVE statements, one for each pair of fields with identical names, as follows:
    MOVE STRUCT1-<ci> TO STRUCT2-<ci>.
    Any necessary type conversions occur at this level. This process is different to that used when you assign a whole structure using the MOVE statement, where the conversion rules for structures apply.
    Example :
    DATA: BEGIN OF ADDRESS,
              FIRSTNAME(20) VALUE 'Fred',
              SURNAME(20) VALUE 'Flintstone',
              INITIALS(4) VALUE 'FF',
              STREET(20) VALUE 'Cave Avenue,
              NUMBER TYPE I VALUE '11'.
              POSTCODE TYPE N VALUE '98765'.
             CITY(20) VALUE 'Bedrock',
             END OF ADDRESS.
    DATA: BEGIN OF NAME,
               SURNAME(20),
               FIRSTNAME(20),
               INITIALS(4),
               TITLE(10) VALUE 'Mister',
              END OF NAME.
    MOVE-CORRESPONDING ADDRESS TO NAME.
    Yes all the values are moved to the corresponding fields.
    Hope this will help you.
    Plz reward if useful.
    Thanks,
    Dhanashri.

  • About C-States and VID

    I have some questions about C-States and about this so-called VID.
    First, what is that VID ? Core Temp shows me the VID, is the same thing with the vcore ?
    I have a 3770k 4.5Ghz 1.2V and if i stress the CPU, in Core Temp VID shows 1.246V
    And i had a picture from the past with my CPU and while he was stressed, and i'm using the same BIOS overclock settings, and in that picture under stress test with prime95 the VID was 1.22V, and now is 1.24V, why is that ?
    And about C-States, if i put C6 State from BIOS, it will affect my CPU performance and every day usage ?
    Because C States brings the CPU when is in idle into a sleeping state, and if the CPU needs to stress he wakes from the C States. This will not affect the CPU ?
    So basically, if i use C2 State while already have a Turbo OC, of 4.5Ghz, will affect the CPU, beying in idle in a C2 state, and then if i need the CPU power, releasing from C2 state, then back to C2 state.
    I mean is safe if i OC for the CPU to be in a C state ? I didn't have any kind of crashes or BSODS.

    Quote from: CalinTM on 23-May-13, 01:53:49
    Today i just saw that prime95 was crashing while he finishes 8K test. I am using the turbo OC, with 4.5Ghz, and all the save features on, except C1E. I use c-states, C2.
    So, prime95 crashed every time, and i could pass intel burn test on very high, 10 loops, but prime crashes.
    So, (i don't use vdroop, its set to auto), for example if i put 1.2V in BIOS and vdroop to 87% prime95 works a bit, but i have in event viewer full of WHEA errors, basically the OS tells that the CPU is unstable.
    So, i don't use vdroop because my CPU can't handle at 4.5Ghz low voltages. I use it on Auto, and putted in BIOS vcore of 1.22V
    So, then in idle it sets to 1.21V or 1.226V, and in stress test it lowers to 1.2V (due to native vdroop), and i find only at 1.2V in full load prime95 passes the 8K test, and going further on into the tests.
    The temps was on the coldest core 67 degrees, and on hottest core (basically the middle cores) 75-78 degrees, but mostly stays at 73-74.
    Also, another question, i have in the C-States section, an Auto and No Limit options, so basically if i select Auto C-States it's selecting C2 state, or every state in auto mode ?
    EDIT: Also i find, about the VID, if i do a multiplier OC, the VID always stays at 1.246V, idle and load. But if i use the turbo oc (multipliers to 45) the VID drops in idle to 0.8V-0.9V
    EDIT 2: BUT, attention in games i can use even lower voltage, and don't have a single problem, crashes or everything, only prime crashes if i dont put his wanted voltage.
    Setting Vdroop to 100% will result in higher CPUV than when it is set to "auto".
    If you change Intel C-states to "no Limits" you will notice that many options disappear. I think that you are disabling the feature when you do this. When it is set to auto the system will select when and how it is implemented. Otherwise you can make the settings yourself.

  • Where could i find information about the state of my request to change my ipod nano 1st gen?

    my ipod 1st gen is part of the program of replacement, but i dont know where i can find information about the state of my request. some ideas?   

    You can enter the Serial Number and Repair ID on this page to get a stsus update:
    https://selfsolve.apple.com/repairstatus/main.do;jsessionid=0phLTksW2mwLbyQVF3Qs zFtCQMH2Jv5xkMxvMlD6RsKVLhpJjpjj!846893301
    Hope that helps!

Maybe you are looking for

  • After Effects CC UI slowness

    [This message has been branched to a spearate thread, since it was posted on a thread about a UI slowdown on Windows that has been fixed. This message is about a separate issue.] Hello, Has this issued been "solved" by Adobe? I am experiencing issues

  • Mapping Runtime errror

    Dear all, This week we had done XQ1 operating system transformation from HP-UX to Linux environment,after that we test our Interfaces(Scenarios) and get the following error in runtime message mapping We tested manually for our scenarios,every scenari

  • Creation of a liveCache Standby system with automatic recovery

    Hello folks with MaxDB affinity I'm currently studying the documentation about creating a standby system for a liveCache. I would like to realize the same scenario as we've already done in our MSSQL environments: for every clustered MSSQL Server, we'

  • ITunes Widget Builder bug

            Oddly, when I went to this area (iTunes Widget Builder) http://widgets.itunes.apple.com/builder/, and began creating a widget by pressing the "Add/Edit Widgets" button, the message box under "Add Podcasts" asks me to "Start with the search ba

  • Apps purchase but wont download

    I Purchased an app called bloons tower defense 5 and it charged me the $5 plus tax but it didnt download, i saw if i could download it from the cloud, but in the store it says i have to make the $5 dollar purchase again. Whats going on??? Also when c