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

Similar Messages

  • 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

  • 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

  • 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?

  • 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

  • Doubt in MOVE statement

    what is the arrtibute value of this hex1 type .. in CL_ABAP_CHAR_UTILITIES.
    hex1 TYPE x VALUE '0D',
    my req is this value is in structure n
    data: begin of itab_input
             c1(40) type c value 'hgfsdhfjsdf'.
             hex1 type x value '0D',
         end of itab_input.
    data: begin of itab_output
             c3(42) type c
         end of itab_output.
    MOVE ita_input  TO itab_output.                         .
    im doing unicode conversion.. this MOVE is gving error in unicode conversion
    please explain how to do it..

    Hi Atish..one more doubt same here..
    types:  begin of itab,
              a(5) type c,
              b(5) type dec,
    end of itab.
    types: begin of des ,
              rec(10),
            end of des.
    gw_itab type itab.
    ga_des type des.
    move ga_des-red to gw_itab.
    here i get error moveing this type  as gw_itab contains dec fld..
    if its c type it wont gv any error ..
    how to solve this type error?

  • Dynamic Move statement

    DATA: t184 LIKE TABLE OF t184 WITH HEADER LINE.
    DATA: BEGIN OF pstyd OCCURS 0,
      pstyd TYPE pstyd,
    END OF pstyd.
    LOOP AT t184.
      pstyd-pstyd = t184-psty1. APPEND pstyd.
      pstyd-pstyd = t184-psty2. APPEND pstyd.
      pstyd-pstyd = t184-psty3. APPEND pstyd.
      pstyd-pstyd = t184-psty4. APPEND pstyd.
      pstyd-pstyd = t184-psty5. APPEND pstyd.
      pstyd-pstyd = t184-psty6. APPEND pstyd.
      pstyd-pstyd = t184-psty7. APPEND pstyd.
      pstyd-pstyd = t184-psty8. APPEND pstyd.
      pstyd-pstyd = t184-psty9. APPEND pstyd.
      pstyd-pstyd = t184-psty10. APPEND pstyd.
      pstyd-pstyd = t184-psty11. APPEND pstyd.
      pstyd-pstyd = t184-pstyv. APPEND pstyd.
    ENDLOOP.
    How can I shorten the code. Somthing to this effect:
    DATA name TYPE string.
    FIELD-SYMBOLS <char> LIKE pstyd-pstyd.
    LOOP AT t184.
      DO 12 TIMES.
        name = sy-index.
        IF name = '12'. name = ''. ENDIF.
        CONCATENATE 't184-pstyv' name INTO name.
        ASSIGN (name) TO <char>.
        Write <char> to pstyd-pstyd.
        APPEND pstyd.
      ENDDO.
    ENDLOOP.
    The above code is, of course, not working. I have posted it just to give an idea of what I want.

    Hi Flora,
    1. Such kind of problems are known as REPEAT STRUCTURE.
       To achieve such looping thru REPEAT STRUCTURE
       there is a abap statment
       VARYING
       which will achieve such thing.
    JUST NOTE HOW VARYING STATEMENT WORKS BELOW:
    IT CAN BE USED FOR OTHER REPEAT STRCUTURES ALSO.
    2. Please see the code below :
       Just paste and check.
    REPORT abc.
    DATA: t184 LIKE TABLE OF t184 WITH HEADER LINE.
    DATA: BEGIN OF pstyd OCCURS 0,
      pstyd TYPE pstyd,
      END OF pstyd.
    Start-Of-Selection
    START-OF-SELECTION.
      BREAK-POINT.
      SELECT * FROM t184 INTO TABLE t184
      WHERE mtpos = 'NORM'
      AND auart  = 'AG'.
    Loop and Fetch [IMPORTANT IMPORTANT]
      LOOP AT t184.
        CLEAR pstyd.
        DO 11  TIMES
          VARYING pstyd-pstyd FROM t184-psty1  NEXT t184-psty2.
          APPEND pstyd.
        ENDDO.
        pstyd-pstyd = t184-pstyv.
        APPEND pstyd.
      ENDLOOP.
    Done
      BREAK-POINT.
    HOPE THE ABOVE HELPS.
    Regards,
    Amit M.

  • Move statement.(adding space..)

    hi experts,
    i have one problem with one field.
    depending on first field ,second field should display some value.
    ex:
         if p_v_wagetext = '        '.
        move space to it_display-bet03.
        endif.
        it is not working for me......
    ex:    IF v_wage = ' '.
          CLEAR it_display-bet01.
        ENDIF.
    in the above two cases it is coming as 0.00(because it is cost /amount field).
    instead of 0.00 i have to get space there.....or blank i need to get......

    if that value of yours in beeing printed on a Sap-Script form i´d had another idea for you.
    normally it´s in your form like this: &it_display-bet01&
    just change it to &it_display-bet01(I)&.
    the (I) makes your script processor NOT to print the field if its value is initial.

  • Error in Unicode - Move statement

    Hi ,
          I get the error message for the following code saying   "WA_EXT-VALUEPART1" and "WA_ITEMEXT" are not mutually convertible in a unicode program.
    how to correct this type of error. i cannt use move-corresponding i guess as there are no common fields, that u can check by looking at those structures.
    can you please help?          
    DATA : WA_ITEMEXT  LIKE BAPE_VBAP.
    data   : WA_EXT      LIKE BAPIPAREX.
      MOVE:  WA_ITEMEXT    TO WA_EXT-VALUEPART1.
    Regards
    Sachin

    Hi Sachin, if suppose your BAPE_VBAP has the following structure:
    VBELN     VBELN_VA     CHAR     10
    POSNR     POSNR_VA     NUMC     6
    .APPEND     ZTS_VBAP_01          0
    field1     type     CHAR     18
    field2     type     CHAR     18
    DATA : WA_ITEMEXT LIKE BAPE_VBAP.
    data : WA_EXT LIKE BAPIPAREX.
    you have to fill the BAPIPAREX as following.
    wa_ext-structure = 'BAPE_VBAP'.
    wa_ext-valuepart1+0(10) = wa_itemext-vbeln.
    wa_ext-valuepart1+10(6) = wa_itemext-posnr.
    wa_ext-valuepart1+16(18) = wa_itemext-field1.
    wa_ext-valuepart1+24(18) = wa_itemext-field2.
    and you have to fill the BAPE_VBAPX also like the same way with 'X' to create or change SO fields.
    Thanks.
    Regards,
    Jey

  • Can we use Loop Statement for Ranges

    Hi Friends,
    I have a range say R_Range. I need to loop at each line item and get the values in another range R_New_Range, i have to count the number of items in R_new_range. How is it possible.
    I know range is nothing but an internal table. So we can direcly use Move statements or so ...,
    But my question is .....
    My R_range has values as below
    'I' 'EQ' '001'
    'I' 'EQ' '002'
    'I' 'BT' '003' '007'
    'I' 'EQ' '008'
    I have to move all these values to R_New_range and my count of items should be '8'.
    How can i do that????????
    Expecting ur answers....
    Thanks in advance
    Cheers,
    R.Kripa.

    hey friends,
    Its nice to see the replies.... but i think i had confused u all with the question
    Now i'll explain u all in detail ....
    See i have 15000 projects ( eg., AAA111... ) and 100 GL accounts ( eg., 123443... ) .....
    I have to get the costs from COSS and COSP tables for all the projects - GL account combinations which leads to some 1500000 entries ..... So it is giving me a SQL Dump "DBIF_RSQL_INVALID_RSQL" .........
    Description of the Dump is
    Error in the module RSQL accessing the database interface
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither                                                                
    caught nor passed along using a RAISING clause, in the procedure        
    "GET_COSP_COSS" "(FORM)"                                               
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.                          
    The reason for the exception is:                                        
    The SQL statement generated from the SAP Open SQL Statement violates a  
    restriction imposed by the database system used in R/3.                                                                               
    Possible errors:                                                        
    o The maximum size of an SQL statement has been exceeded.              
    o The statement contains too many input variables.                     
    o The space needed for the input data exceeds the available memory.    
    o ...                                                                               
    You can usually find details in the system log (SM21) and in the        
    developer trace of the work process (ST11).                             
    If an error occurs the developer trace often informs you about the      
    current restrictions.                                                   
    So now i want to fine tune the program so that the execution works perfectly and get me the values for all the data 1500000 :-|
    Now :
    My Projects are stored in the form of a range R_Range
    I have to loop at this range and then process 100 records at a time and then again take other 100 records .... i'll count till 100 records by getting loopaing at the range and for each loop pass i'll increment the counter ....
    I am clear till this .....
    If record consist of 'EQ' option .... then ofcourse we can consider the total record to be 1 record and we can add 1 to counter ......
    But if the record consist of 'BT' option ...... then how can we loop that and get the number of -low numbers in that range and add to my counter ????
    Hope iam clear with my question
    If not do revert back ....
    Thanks in advance for the replies
    Cheers,
    R.Kripa.
    My Doubt is ....

  • Problem in move the data to final internal table.

    hi,
    iam having 3 internal table.
    1. g_t_vbrk  (having data for vbrk table)
    2. g_t_vbak (having data for vbak table)
    3. g_t_likp   (having data for likp table.)
    actually i have written the loop like below .
    LOOP AT g_t_vbrk.
        READ TABLE g_t_vbfa WITH KEY vbeln = g_t_vbrk-vbeln.
        IF sy-subrc = 0.
          MOVE : g_t_vbrk-vbeln TO g_t_output_raw_header_data-vbeln,
                 g_t_vbrk-taxk1 TO g_t_output_raw_header_data-taxk1,
                 g_t_vbrk-taxk4 TO g_t_output_raw_header_data-taxk4,
                 g_t_vbrk-fkart TO g_t_output_raw_header_data-fkart,
                 g_t_vbrk-inco1 TO g_t_output_raw_header_data-inco1,
                 g_t_vbrk-inco2 TO g_t_output_raw_header_data-inco2,
                 g_t_vbrk-zterm TO g_t_output_raw_header_data-zterm,
                 g_t_vbrk-kunag TO g_t_output_raw_header_data-kunag.
          READ TABLE g_t_vbak WITH KEY vbeln = g_t_vbfa-vbelv.
          IF sy-subrc = 0.
            MOVE : g_t_vbak-vkorg TO g_t_output_raw_header_data-vkorg,
                   g_t_vbak-auart TO g_t_output_raw_header_data-auart,
                   g_t_vbak-spart TO g_t_output_raw_header_data-spart,
                   g_t_vbak-vtweg TO g_t_output_raw_header_data-vtweg.
          ENDIF.
          APPEND  g_t_output_raw_header_data.
    endloop.
    my question is i want to move likp table lfdat field to that final internal table with same loop.
    i want to write move statement with same loop.
    pls help with coding wise.
    thanks
    santhosh

    Hi
    In the loop.
    SELECT VBELN FROM VBFA
                  INTO V_VBELN
                  WHERE VBELV = G_I_VBRK-VBELN
                   AND VBTYP_N = 'M'
                   AND VBTYP_V = 'J'.
    Now READ from your LIKP internal table.
    READ TABLE G_I_LIKP WITH KEY VBELN = V_VBELN.
    Write your MOVE statements here.
    Regards
    Surya.

  • Three select statement data in to One Internal table

    HI All,
          By using 3 select statement, data is displying by using work area (classical report). Now i want define three internal table for three select statements, and finally get the data in one final itab, and pass this to function module (ALV Report).
    looking for response

    hi,
    just go through this simple example. no need of declaring 3 itabs.
    data: begin of st1,
            a1 type c,
            a11 type i,
          end of st1.
    data: begin of st2,
            a2 type i,
            a22 type c,
          end of st2.
    data: begin of st3,
            a3 type i,
            a33 type i,
          end of st3.
    data: begin of fin_struct.
              include structure st1.
              include structure st2.
              include structure st3.
    data: end of fin_struct.
    data: fin_itab like table of fin_struct with header line.
    *1st structure  values
    move 'a' to fin_itab-a1.
    move 1 to fin_itab-a11.
    *2nd structure values
    move 11 to fin_itab-a2.
    move 'b' to fin_itab-a22.
    *3rd structure values
    move 15 to fin_itab-a3.
    move 12 to fin_itab-a33.
    *appending 1st record.
    append fin_itab.
    *1st strcuct values
    move 'b' to fin_itab-a1.
    move 3 to fin_itab-a11.
    *2nd structure values
    move 22 to fin_itab-a2.
    move 'c' to fin_itab-a22.
    *3rd structure values
    move 20 to fin_itab-a3.
    move 30 to fin_itab-a33.
    *appending 2nd record.
    append fin_itab.
    loop at fin_itab.
    write:/ fin_itab-a1, fin_itab-a11, fin_itab-a2, fin_itab-a22, fin_itab-a3, fin_itab-a33.
    endloop.
    here structre1,2,3...
    i used move statement.
    here u write select statement.. into struct1,2,3....
    using move u move all the values ...
    finally append it to final itab...
    rest of and all common for ALV...
    Regards,
    Shankar.

  • Better replacement for Obsolete statement

    Hi ,
    During upgradation to ECC 6.0 , at many places in order to correct the Unicode error we need to use the Move statement. Since the Move-Corresponding is an obsolete statement now , so we can't use it any more. It is  very difficult and highly time consuming to move huge structures and internal tables field by field . Is there any alternative to this ?

    Move-Corresponding is an obsolete statement now
    Who said ????
    at many places in order to correct the Unicode error we need to use the Move statement
    What type of error ?

  • Regarding  DATA and MOVE statments with respect to performance

    Hi All ,
       I have a small clarification regarding using the DATA and MOVE  statements in  WEBDYNPRO ABAP /ABAP .
    *Is there any differnce between below declaration regarding performance.
    =========================================================================
    DATA lv_num1 type i.
    DATA lv_num2 type i.
    DATA : lv_num1 type i,
           lv_num2 type i.
    ===================================================================
    MOVE lv_num1 to lv_num2.
    MOVE lv_num2 to lv_num3.
    MOVE : lv_num1 to lv_num2 ,
           lv_num2 to lv_num3.
    thanks
    cb
    Moderator message: please try yourself and search for available information before asking.
    Please Read before Posting in the Performance and Tuning Forum
    locked by: Thomas Zloch on Aug 11, 2010 2:45 PM

    Hi  Preyansh ,
    thanks a lot for your reply,
    but are you sure about the "
    Hence if we write without chin statement it would be fater for compiler to execute the code.
    (same applies for MOVE statement as well)
    i have to give some analysis of an application .that is why i am concern over this.
    Regads
    CB

Maybe you are looking for

  • Windows 8.1 Update - SECURITY THREAT

    Last week's update trashed my internet explorer. After two hours of trying to fix it, I installed Google Chrome. I can now work on the web again and it only cost me two hours.  This week's update changed my computer login, now requiring me to log in

  • Problem with In Rainbows

    Hi everyone Just renamed my Radiohead 'In Rainbows' folder, and was then told iTunes could not find the file. I located them all, but now none of the album plays. If you try to covert it to AAC, it gives me 'an unknown error has occurred [-50]'. I've

  • IWeb keeps crashing

    I started a Blog in iWeb and wanted to add a Portfolio (8 different picture galleries connected under a my albums page) It all worked fine for the blog part I even got it published but when I started adding content to the picture pages iWeb kept cras

  • Does Satellite Pro C850-1EQ support Sata III?

    I've just picked up a new Satellite Pro C850-1EQ laptop, and am looking to replace the slow 5400rpm drive with an SSD. I can't find the SATA specifications of this machine anywhere - does it support Sata III (6Gb/sec)? Thanks, Gareth

  • HT3702 how to cancel the auto renewal

    i just sign up for the free week trail with huluplus and i want to know how can i cancel the AUTO RENOWAL in my acount. thanks