Condense in a structure

Hi,
report  zars no standard page heading
        line-size 170
        line-count 65(4).
data: begin of d1600,
        field1(5),
        field2(10),
        field3(3).
data: end of d1600.
move '1' to d1600-field1.  " Only 1
move ' 3' to d1600-field3. " Space and 3
concatenate d1600 space into d1600.
condense d1600 no-gaps.
After concatenate result showing like
FIELD1     1
FIELD2                                                                               
FIELD3      3
After condense system showing like
FIELD1     13
FIELD2                                                                               
FIELD3     
But i want the results after condense this way
FIELD1     1 3
FIELD2                                                                               
FIELD3     

try this instead..
report  zars no standard page heading
        line-size 170
        line-count 65(4).
data: begin of d1600,
        field1(5),
        field2(10),
        field3(3).
data: end of d1600.
move '1' to d1600-field1.  " Only 1
move ' 3' to d1600-field3. " Space and 3
concatenate d1600-field1 d1600-field3 into d1600-field1.
clear  d1600-field3.
~Suresh

Similar Messages

  • How to extend structures at runtime

    hello,
    is there any chance to
    extend a data structure at runtime?
    normally you define a structure with
    data: begin of x,
          field1 type c,
          field2 type n.
    data: end of x.
    this structure is the basis for your internal tables etc.
    it would be definitely nice to add a third field at runtime if it is needed.
    in other programming languages it would also be possible to add elements to an array. the question ist: how can i add fields to the structure dynamically?
    it could be useful for a lot of situations.
    dynamically generated fieldcatalogue for example.
    i think i could succeed in changing the structure by using field symbols in combination with dynamically creating data objects by the "CREATE DATA" statement.
    has anyone already done something similar?

    Hello Gideon,
    It is possible using ABAP runtime program generation like in code below.
    This program generate a dinamic ALV with N fields. There is a parameter where the user type how many fields he wants to display (or generate).
    Then form f_create_dynamic_table generate an internal table with N fields according to the number in the parameter.
    You can change the program to generate a dinamic structure if you want, in fact it already does it.
    Just cut and paste the program and execute in your system.
    Regards,
    Mauricio
    REPORT zasmm008.
    $$ Declarações -
    TYPE-POOLS:
      kkblo.    "Tipos para lista especial
    FIELD-SYMBOLS:
       TYPE table.
    PARAMETERS p_qtd TYPE i OBLIGATORY DEFAULT 10.
    $$ Eventos -
    INITIALIZATION.
      %_p_qtd_%_app_%-text = 'Dinamic fields quantity'.
    START-OF-SELECTION.
      CHECK p_qtd > 0 AND p_qtd < 100.
      PERFORM f_create_dynamic_table.
      PERFORM f_fill_dynamic_table.
      PERFORM f_create_alv.
    $$ Forms -
    *&      Form  f_create_dynamic_table
    FORM f_create_dynamic_table.
      DATA:
        lv_line           TYPE i,
        lv_word(72)       TYPE c,
        lv_form(30)       TYPE c VALUE 'TABLE_CREATE',
        lv_message(240)   TYPE c,
        lp_table          TYPE REF TO data,
        lp_struc          TYPE REF TO data,
        lv_name           LIKE sy-repid,
        lv_cont(02)       TYPE n,
        lv_lng            TYPE i,
        lv_typesrting(6)  TYPE c.
    The dynamic internal table stucture
      DATA: BEGIN OF lt_struct OCCURS 0,
              fildname(8) TYPE c,
              abptype TYPE c,
              length TYPE i,
            END OF lt_struct.
    The dynamic program source table
      DATA: BEGIN OF lt_inctabl OCCURS 0,
              line(72),
            END OF lt_inctabl.
    Sample dynamic internal table stucture
      DO p_qtd TIMES.
        ADD 1 TO lv_cont.
        CONCATENATE 'FIELD' lv_cont INTO lt_struct-fildname.
        lt_struct-abptype = 'C'.
        lt_struct-length = '4'.
        APPEND lt_struct.
      ENDDO.
    Create the dynamic internal table definition in the dyn. program
      lt_inctabl-line = 'PROGRAM ZDYNPRO.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'FORM TABLE_CREATE CHANGING P_TABLE P_STRUC.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'DATA: BEGIN OF DYNTAB OCCURS 0,'.
      APPEND lt_inctabl.
      LOOP AT lt_struct.
        lt_inctabl-line = lt_struct-fildname.
        lv_lng = strlen( lt_struct-fildname ).
        IF NOT lt_struct-length IS INITIAL .
          lv_typesrting(1) = '('.
          lv_typesrting+1 = lt_struct-length.
          lv_typesrting+5 = ')'.
          CONDENSE lv_typesrting NO-GAPS.
          lt_inctabl-line+lv_lng = lv_typesrting.
        ENDIF.
        lt_inctabl-line+15 = 'TYPE'.
        lt_inctabl-line+21 = lt_struct-abptype.
        lt_inctabl-line+22 = ','.
        APPEND lt_inctabl.
      ENDLOOP.
      lt_inctabl-line = 'END OF DYNTAB.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'DATA: POINTER TYPE REF TO DATA.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'CREATE DATA POINTER LIKE DYNTAB[].'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'P_TABLE = POINTER.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'CREATE DATA POINTER LIKE LINE OF DYNTAB.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'P_STRUC = POINTER.'.
      APPEND lt_inctabl.
      lt_inctabl-line = 'ENDFORM.'.
      APPEND lt_inctabl.
      CATCH SYSTEM-EXCEPTIONS generate_subpool_dir_full = 9.
        GENERATE SUBROUTINE POOL lt_inctabl[] NAME lv_name
                 MESSAGE lv_message LINE lv_line WORD lv_word.
      ENDCATCH.
      PERFORM (lv_form) IN PROGRAM (lv_name) CHANGING lp_table lp_struc.
    Dynamic table in <tb> and its header line in <st>
      ASSIGN lp_table->*  TO .
    ENDFORM.                    " f_create_dynamic_table
    *&      Form  f_create_alv
    FORM f_create_alv.
      DATA:
        ls_layout    TYPE slis_layout_alv,
        lv_cont(02)  TYPE n,
        lt_fieldcat  TYPE slis_t_fieldcat_alv WITH HEADER LINE.
      DO p_qtd TIMES.
        CLEAR lt_fieldcat.
        ADD 1 TO lv_cont.
        CONCATENATE 'FIELD' lv_cont INTO lt_fieldcat-fieldname.
        CONCATENATE 'Campo' lv_cont INTO lt_fieldcat-seltext_s
                    SEPARATED BY space.
        lt_fieldcat-seltext_m = lt_fieldcat-seltext_s.
        lt_fieldcat-seltext_l = lt_fieldcat-seltext_s.
        lt_fieldcat-outputlen = 10.
        APPEND lt_fieldcat.
      ENDDO.
      ls_layout-zebra = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout     = ls_layout
                it_fieldcat   = lt_fieldcat[]
           TABLES
                t_outtab      =
           EXCEPTIONS
                program_error = 1
                OTHERS        = 2.
    ENDFORM.                    " f_create_alv
    *&      Form  f_fill_dynamic_table
    FORM f_fill_dynamic_table.
      DATA:
        lv_line(2)   TYPE n,
        lv_field(2)  TYPE n.
      DO 20 TIMES.
        ADD 1 TO lv_line.
        CLEAR lv_field.
        DO p_qtd TIMES.
          ADD 1 TO lv_field.
          ASSIGN COMPONENT lv_field OF STRUCTURE .
      ENDDO.
    ENDFORM.                    " f_fill_dynamic_table

  • Max Number of Fields in a Structure?

    I have been requested to write an RFC that outputs a table with 505 columns ... which would require a structure defined with 505 fields... 
    Before I start typing in 505 of these, i was hoping to find what SAP's maximum number is.
    Does anyone know this?  Thank you in advance!
    Margo Kidd

    I don't know if there is a limit or not.  Are all of the fields the same?  If so you can create a dynamic internal table instead of defining 505 separate fields.
    In this sample program, it does allow for 505 fields in a dynamically created internal table.
    report zrich_0003
           no standard page heading.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
          it_fldcat type lvc_t_fcat.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_check type c.
    selection-screen end of block b1.
    start-of-selection.
      perform build_dyn_itab.
      perform build_report.
      loop at <dyn_table> into <dyn_wa>.
        write:/ <dyn_wa>.
      endloop.
    *  Build_dyn_itab
    form build_dyn_itab.
      data: index(3) type c.
      data: new_table type ref to data,
            new_line  type ref to data,
            wa_it_fldcat type lvc_s_fcat.
    * Create fields
      clear index.
      do 505 times.
        index = sy-index.
        clear wa_it_fldcat.
        concatenate 'Field' index into
                 wa_it_fldcat-fieldname .
        condense  wa_it_fldcat-fieldname no-gaps.
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 5.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    endform.
    *      Form  build_report
    form build_report.
      data: fieldname(20) type c.
      data: fieldvalue(5) type c.
      data: index(3) type c.
      field-symbols: <fs1>.
      do 505 times.
        index = sy-index.
    * Set up fieldname
        concatenate 'FIELD' index into
                 fieldname .
        condense   fieldname  no-gaps.
    * Set up fieldvalue
        concatenate 'FLD' index into
                 fieldvalue.
        condense   fieldvalue no-gaps.
        assign component  fieldname  of structure <dyn_wa> to <fs1>.
        <fs1> =  fieldvalue.
      enddo.
    * Append to the dynamic internal table
      append <dyn_wa> to <dyn_table>.
    endform.
    BTW, Welcome to SDN. Please remember to award points for helpful answers and mark you posts as solved when solved completely.  Thanks.
    Regards,
    Rich Heilman

  • Condensing and organizing iPhoto library

    I'm trying to figure out the best way to condense and organize my pictures that are stored both an internal and external hard drive. I've been reading some different posts and articles to figure out what to do but am still not sure.
    I recently just started to keep closer track of the photos on my internal hd by changing their titles, assigning keywords, etc. and want to do that with my photos that are on my external as well. I don't have the hard drive space to import all of these pics back in to iPhoto but thought I could do this is in batches. Once I've imported and organized these as I'd like what's the best way to move these batches back to the hard drive?
    I get confused with whether I should just drag the images straight out of iPhoto, drag from the data/original/modified folders (in the iPhoto library) or do I just copy the entire iPhoto library on to the hard drive each time? Would I simply copy over the older version each time I do this? Also if I've read correctly I should be able to choose which library I want to operate from upon start up of iPhoto.....so I could switch back an forth between my older and newer images? Hope this makes sense and thanks for any responses.

    Welcome to the Apple Discussions.
    As you are using iPhoto 6 it’s very easy to simply have 2 Libraries, one on your internal, one on your external drive:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library' to make a second Library on your external.
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library' will allow you to choose which Library to open too.
    As you are still using iPhoto 6 keywords added to Photos are not maintained outside of an iPhoto Library. (If you upgrade to a later version you can do this)
    drag from the data/original/modified folders (in the iPhoto library)
    Never, ever. Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Managing Multiple Libraries - including moving pics/albums/rolls and metadata between them - is greatly facilitated by using iPhoto Library Manager
    Regards
    TD

  • Move a flat structure into a large character field.

    I have a flat structure that has a total length of 700, and a table of type c(700).
    I would like to move my structure into a work area of the table and then append it. I do not want to condense the fields, or add separators.
    I could write function to go through each element and write them one at a time, but I'm hoping that this is an existing function in a utility somewhere. I've been looking but have not found one as of yet.
    Thanks.
    +===============================================+
    Update: Found one:
    CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C

    Not sure if such function module exists or not..
    In 3.1H Version or even in 4.6C version, this could have been a simple issues...
    we used to do a assignment directly to the structure...
    Structure = Char String.
    This used to assign the values of the Char string to the Structure fields by taking into consideration the length of the structure fields.. But from 4.7 onwards, we cannot use such assign statements directly (if field has other than char fields).. hope this helps you

  • [Function] Declare a internal table with structure name (entry parameter)

    Hi all,
    I'm explaining my problem :
    I want to create a function with two parameters in entry :
    (IMPORT)  - structure_name with type DD02L-TABNAME
    (TABLES) - t_outtab with empty type
    t_outtab will be in structure_name type.
    Now, in my source function, I want to retrieve all contain of t_outtab in another internal table or field-symbol. I don't know in advance the used structures in my function entries.
    I don't manage to get this contain, cause I can't do :
    DATA : internal_table TYPE structure_name*
    OR
    DATA : internal_table TYPE (structure_name)
    OR used field-symbol
    DATA : internal_table TYPE <fs>*  where <fs> had structure name value.
    To do more later :
    *DATA : line LIKE LINE OF internal_table. *
    *internal_table][ = t_outtab][. *
    And work with this table.
    _ I tried different solutions like : _
    Get the structure of the table.
      ref_table_des ?= cl_abap_typedescr=>describe_by_name( I_STRUCTURE_NAME ).
      idetails[] = ref_table_des->components[].
    Get the first structure table of result table
    LOOP AT idetails INTO xdetails.
        CLEAR: xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        APPEND xfc TO ifc.
    ENDLOOP.
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ifc
        IMPORTING
          ep_table        = dy_table.
      ASSIGN dy_table->* TO <dyn_table>.
    Create dynamic work area and assign to FS
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    and retrieve to <dyn_table>[] = t_outtab[].
    the but I don't try the solution. If someone have an idea.
    Thanks and regards.
    Romain
    Edited by: Romain L on May 14, 2009 11:35 AM

    Hi,
    We can acheive this using dynamic internal tables.
    Please find sample below.
    *Creating Dynamic internal table 
      PARAMETERS : p_table(10) TYPE C.
      DATA: w_tabname TYPE w_tabname,            
            w_dref TYPE REF TO data,             
            w_grid TYPE REF TO cl_gui_alv_grid. 
      FIELD-SYMBOLS: <t_itab> TYPE ANY TABLE. 
      w_tabname = p_table. 
      CREATE DATA w_dref TYPE TABLE OF (w_tabname).
      ASSIGN w_dref->* TO <t_itab>.
    * Populating Dynamic internal table 
      SELECT *
        FROM (w_tabname) UP TO 20 ROWS
        INTO TABLE <t_itab>.
    * Displaying dynamic internal table using Grid. 
      CREATE OBJECT w_grid
        EXPORTING i_parent = cl_gui_container=>screen0. 
      CALL METHOD w_grid->set_table_for_first_display
        EXPORTING
          i_structure_name = w_tabname
        CHANGING
          it_outtab        = <t_itab>. 
      CALL SCREEN 100.
    * Scenario 2: 
    *Create a dynamic internal table with the specified number of columns. 
    * Creating Dynamic internal table
    TYPE-POOLS: slis.
    FIELD-SYMBOLS: <t_dyntable> TYPE STANDARD TABLE,  u201C Dynamic internal table name
                   <fs_dyntable>,                     u201C Field symbol to create work area
                   <fs_fldval> type any.              u201C Field symbol to assign values 
    PARAMETERS: p_cols(5) TYPE c.                     u201C Input number of columns
    DATA:   t_newtable TYPE REF TO data,
            t_newline  TYPE REF TO data,
            t_fldcat   TYPE slis_t_fldcat_alv,
            t_fldcat   TYPE lvc_t_fcat,
            wa_it_fldcat TYPE lvc_s_fcat,
            wa_colno(2) TYPE n,
            wa_flname(5) TYPE c. 
    * Create fields .
      DO p_cols TIMES.
        CLEAR wa_it_fldcat.
        move sy-index to wa_colno.
        concatenate 'COL'
                    wa_colno
               into wa_flname.
        wa_it_fldcat-fieldname = wa_flname.
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 10.
        APPEND wa_it_fldcat TO t_fldcat.
      ENDDO. 
    * Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = t_fldcat
        IMPORTING
          ep_table        = t_newtable. 
      ASSIGN t_newtable->* TO <t_dyntable>. 
    * Create dynamic work area and assign to FS
      CREATE DATA t_newline LIKE LINE OF <t_dyntable>.
      ASSIGN t_newline->* TO <fs_dyntable>.
    *Populating Dynamic internal table 
      DATA: fieldname(20) TYPE c.
      DATA: fieldvalue(10) TYPE c.
      DATA: index(3) TYPE c. 
      DO p_cols TIMES. 
        index = sy-index.
        MOVE sy-index TO wa_colno.
        CONCATENATE 'COL'
                    wa_colno
               INTO wa_flname. 
    * Set up fieldvalue
        CONCATENATE 'VALUE' index INTO
                    fieldvalue.
        CONDENSE    fieldvalue NO-GAPS. 
        ASSIGN COMPONENT  wa_flname
            OF STRUCTURE <fs_dyntable> TO <fs_fldval>.
        <fs_fldval> =  fieldvalue. 
      ENDDO. 
    * Append to the dynamic internal table
      APPEND <fs_dyntable> TO <t_dyntable>.
    * Displaying dynamic internal table using Grid. 
    DATA: wa_cat LIKE LINE OF fs_fldcat. 
      DO p_cols TIMES.
        CLEAR wa_cat.
        MOVE sy-index TO wa_colno.
        CONCATENATE 'COL'
                    wa_colno
               INTO wa_flname. 
        wa_cat-fieldname = wa_flname.
        wa_cat-seltext_s = wa_flname.
        wa_cat-outputlen = '10'.
        APPEND wa_cat TO fs_fldcat.
      ENDDO. 
    * Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat = fs_fldcat
        TABLES
          t_outtab    = <t_dyntable>.
    Thanks,
    Jyothi
    Edited by: Jyothi on May 14, 2009 11:42 AM
    Edited by: Jyothi on May 14, 2009 11:43 AM

  • Little tip to get the nr of elements in a local structure using RTTI

    sometimes you need to know the number of elements in a structure for manpulating data
    for example you might need to convert the elements in an internal table to a special file format such as "field","field",......"field".
    instead of something like this where  you have counted the number of elements in your structure
    you can obtain the number of elements dynamically. This saves changing the code each time you change the structure and can avoid errors.
    data: zstring type string
    data: zstring1 type string.
    lv_index = 1.
        WHILE lv_index LE 47. 
          .CLEAR zstring.
          ASSIGN COMPONENT lv_index OF STRUCTURE  your_ structure  TO  <fsa>.
          CONCATENATE '"' <fsa> '"' INTO zstring.
          CONCATENATE zstring1 zstring INTO zstring1.
          CONCATENATE  zstring1 ',' INTO zstring1.
          lv_index = lv_index + 1.
          CLEAR zstring.
        endwhile
    lv_index = 48.
        ASSIGN COMPONENT lv_index OF STRUCTURE wa_interface_contracts TO  <fsa>.
        CONCATENATE '"' <fsa> '"' INTO zstring.
        CONCATENATE zstring1 zstring INTO zstring1.
        CONDENSE zstring1.    "Left align all data fields within the string
        APPEND zstring1 TO ta_string1.
        CLEAR zstring.
        CLEAR zstring1.
        lv_index = 1.
    Using the RTTI
    DATA lr_rtti_struc TYPE REF TO cl_abap_structdescr .
    DATA: zog    LIKE LINE OF lr_rtti_struc->components .
    DATA:  zogt                    LIKE TABLE OF zog,
      CREATE DATA dref TYPE your_structure
      ASSIGN dref->* TO <fs>.
      lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( <fs> ).
    * get the structure details into a table.
    * table zogt[] contains the structure details
      zogt[]  = lr_rtti_struc->components. 
    now the nr of rows in this table contains the number of elements in your structure.
    cheers
    jimbo

    hi Jimbo,
    why don't you start blogging?
    ec

  • Can we condense the two ODBC forums

    Under Technologies | Windows, there are two different forums for discussing ODBC and nothing, apparently, to differentiate the two forums. Under the old structure, this at least accomplished the objective of having ODBC discussions with two different navigation paths, since different users might look for the forum differently. Now, however, there's no real function to having two different forums. Can we condense them into one?
    Justin

    Thanks Bulut for your reply,
    But by going through View creation involves ABAP help, that I dont want.
    However, is it poosible to use View while creating the reports in Report Painter? I am not sure.
    I want to know whether can we create a table which is used for report painter, so that I can use for creating the Library and then the reports.
    I hope you understand my point.
    Regards
    Kami

  • Method t create dynamic structure if the field name contains space

    HI all,
    I am creating a dynamic internal table. Everything id fine but when creating dynamic structure if field name contains space its giving me dump.Can you please suggest me any other methos which takes space in the field name.
    Iam using the following method:
      gr_struct_typ  ?= cl_abap_structdescr=>create( p_components = gt_component ).
    In the gt_component i have one of the field with space like ( RU STAND) and its giving error.
    Any help will be appreciated.
    thanks
    Suku.

    Hello Sukumar
    If the space in the fieldname is a mistake then you could simply use:
    CONDENSE ld_fieldname NO-GAPS.
    However, I guess your fieldname should contain this space:
    >...suggest me any other methos which takes space in the field name.
    >
    Well, have you ever seen a field or column name in SAP standard containing a space in its name???
    Regards
      Uwe

  • Remove the stacked sequence structure from LabVIEW.

    Remove once and for all the stacked sequence structure from labVIEW
                                           It's an absolute horror.

    > Sequence locals are sometimes (for very few cases) usefull if you know how to use them properly
    What does that even mean????
    (.. and you are repeating basically the same statement about four more times as if  the use of sequences and sequence locals is an advanced skill, only to be used by LabVIEW masters. Your post is so redundant that it could be condensed to 20% of the size without loss of information).
    It is clear that the stacked sequence can never disappear from LabVIEW, because of the need for backward compatibility. (It could be taken out of the palette, but why...).
    LabVIEW Champion . Do more with less code and in less time .

  • Returning table without defining structure

    Hello, I'm back again, finally I can work with general tables without defining structures but now I found a problem, I want introduce the modified fields into a table for returning it,  but the question is that this table hasn't the structure definition because is for general purpose so I need return it a then work with it.
    I was looking for a solution here and into the sap help but I'm not able to find the solution.
    How can I work with the fields (field1-a = xxxxx)?
    This one is my code:
    DATA: itab_spfli TYPE spfli OCCURS 0 WITH HEADER LINE,
              itab1_spfli LIKE itab_spfli OCCURS 0 WITH HEADER LINE,
              wa_spfli LIKE spfli.
    SELECT * INTO wa_spfli FROM spfli.
      APPEND wa_spfli TO itab_spfli.
    ENDSELECT.
    PERFORM read_table TABLES itab_spfli[] USING 'ITAB_SPFLI[]'.
    LOOP AT itab1_spfli INTO wa_spfli.
      WRITE: / wa_spfli-carrid.
    ENDLOOP.
    *& Form read_table
    text
    -->P_TABLA text
    FORM read_table TABLES pe_itspfli USING ti.
      FIELD-SYMBOLS: <f1> TYPE STANDARD TABLE,
                     <f2> TYPE ANY,
                     <f3> TYPE ANY.
      DATA tabla(20).
      tabla = ti.
      CONDENSE tabla NO-GAPS.
      ASSIGN (tabla) TO <f1>[].
    Get data into table
      LOOP AT <f1> ASSIGNING <f2>.
        WHILE sy-subrc = 0.
          ASSIGN COMPONENT sy-index OF STRUCTURE <f2> TO <f3>.
        ENDWHILE.
    Working with table
        APPEND <f2> TO itab1_spfli.
      ENDLOOP.
    ENDFORM. " read_table
    Thank You Very Much In Advance.

    Hi Jose
    ASSIGN COMPONENT sy-index OF STRUCTURE <f2> TO <f3>.
    <f3> = <new value>.
    This will change the value in the internal table automatically.
    Hope this is what you are asking.
    Regards
    Kathirvel

  • Itcsy structure

    Hello,
    I am calling a subrouting from SAP SCRIPT.
    But in the subroutine I am not able to change the currecy value to integer.
    FORM cal_Tot tables ntwr structure itcsy
    tot structure itcsy.
    DATA value type vbap-netwr.
    value = ntwr-value.
    ENDFORM.
    If the value of ntwr-value is 300.0 its working but
    if the value of ntwr-value is 1,345.0 this is giving runtime error.
    How can store 1,345 into variable value

    hi,
    try to replace command ',' with ' '. it will work i think..
    REPLACE ',' IN L_QUANTITY WITH ' '.
        CONDENSE L_QUANTITY NO-GAPS.
    I THINK IT WILL WORK

  • Condensing 4 libraries into 1

    I know this must be somewhere on here, but I cannot find it. Unfortunatley, we have been syncing 4 different iPods on each of our Window's log-in accounts. We use only one iTunes account. We now have 4 different libraries and duplicate music is now taking up too much space on the PC....
    What I want to do is use 1 Window's log-in that everyone in the house uses to update their iPod. I know we'll have to manually click which playlist we want once we do this, but what I need is directions on how/what to do to condense libraries.
    I need easy instructions on what to do from here. Is there instructions from beginning to end out there? We know all the normal computer language, but I need layman's instructions on where to begin. HELP PLZ??
    Thank you so much.

    I think all you really need to do is these steps to consolidate each independent library to your new shared location:
    http://support.apple.com/kb/index?page=answerlink&url=http%3A%2F%2Fsupport.apple .com%2Fkb%2FHT1364&answerid=16777216&src=support_site.home
    And then on your other libraries once they are all consolidated if you want one of those songs in your library, just click and drag them into the itunes app... it should index them.
    However, since you are consolidating multiples that may repeat and have the same directory structure, I don't know what iTunes may do with the exceptions if it sees a duplicate.
    I've never done that to tell you the truth..
    It's a start on the right path...
    I'd really suggest that you make a backup copy of the iTunes folder on each users profile before starting incase something goes wrong... Because at that point you could just delete the iTunes folder and restore your backup and you'll start back where you were before you tried.
    Best Regards

  • Condense property node elements

    Hello,
    Attached is a snippet of a program in which after the program goes into a specific state, the front panel elements are made either visible or invisible or there are value changes.
    In my actual VI, I have a lot more front panel elements, and in trying to keep my code consistent and easy to follow, if I line up the propery nodes of the elements in the block diagram, the block diagram can extend to over 2 screens. 
    I would like to know if there is a procedure that I can adopt where I can condense the activation of the property nodes of elements from the front panel so that the property nodes do not extend over 2 screens as it makes it harder for my collegues with a laptop to follow.
    Thanks,
    hiNi.
    Attachments:
    Visibility.llb ‏39 KB
    Visibility.llb ‏39 KB

    I would suggest that instead of using property nodes in each state to update the values of your indicators, you could just place the indicator terminals outside of your state structure (but within the while loop) and pass whatever value is appropriate for the state out of the case structure.  Writing directly to the control instead of using property nodes will be faster and will save you a lot of space.  It also generally scales better, as you've found out.  You're already doing something like this for your status updates- why not the rest of the indicators?  For hiding/showing elements, it would be more compact to use explicit instead of implicit property nodes and for loops.  You can also use explicit property nodes within subVIs, which will go a long way towards making things smaller and neater.
    Control References: Overview (Creating and using Implicit vs. Explicit nodes)
    http://www.ni.com/white-paper/3159/en/#toc3
    This may be oversimplifying things on account of your basic example, but in general you'll be better off grouping your indicator values into a cluster that's stored in a shift register (like your status string) and then modifiying the cluster contents as needed.  This allows you to start adding logic in subVIs much more easily. It's a lot easier to avoid race conditions caused by writing values from multiple locations as well as things get more complex.
    Regards,
    Tom L.

  • How to use one Account dimension for multiple account structures

    We are implementing a HFM application to replace two general ledger applications, one being Corporate and the other a new subsidiary. We need to maintain both of the chart of accounts and their unique rollup structures. We are facing the difficulty in attempting to combine the two chart of accounts into one HFM Account Dimension because a few of the subsidiary accounts have the same account numbers but they are meant different things. 
    Question:
    How can we set up two distinct account structures in HFM and also have the subsidiary accounts rolled into the Corporate accounts for consolidation reporting? 
    Appreciate your help.

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

Maybe you are looking for

  • While product costing CK11N error

    While using CK11N I am getting following error: Sr.No.               Error Description                                                                                Msg No 1>     No price could be determined for Material /Batch XXXXXXX/Plant XXXX   

  • Pb e-licence in adobe acrobat 8.1

    I use adobe customization wizard 8 to customize my installation of acrobat pro 8.1 in silent mode. I integrate in my .mst the e-licence (AdobeConfig.xml) and i put this file in my setup files install. the install run correctly but when i launch acrob

  • How can I retreve bookmarks after uninstalling firefox

    My husband uninstalled firefox due to it crashing. In the process it looks like all my years and years worth of bookmarks have gone. He installed the latest version of firefox which is working fine. But I cant find/import any old bookmarks. I didn't

  • Installation file in Design Standard CS6

    I cannot see photoshop.exe file in download for Design standard CS6 but it is included in the suite. Will it be installed automatically? regards HumaDK

  • Problem upgrading Broadband package

    I am on Broadband Option 1 (now just called Broadband) with a 10Gb monthly limit. After incurring several £5 one-off charges for exceeding this over the past year, I've decided to upgrade to the next package which is unlimited (Broadband Unlimited) a