SORT INTERNAL TABLE USING NON KEY OF THE INTERNAL TABLE
HI,
i have one query for the cdpos table of abap.
What i am looking is i want the latest CHANENR of the cdpos for that
objectid and tabname and fname in my internal table.
what i thought of doing was to sort my internal table with objectid changnr tabname fname in descending order
and than use delete adjacent duplicates command
BUt that is not sorting based on all field , its sorting on changnr only
please let me know what can i do
no, that is not what i am looking at,
I am saying say i have internal table cdpos
OBJECTCLAS OBJECTID CHANGENR TABNAME FNAME
RECN_RECN |0100TEST1 0000384409| VICN01 |RECNEND
RECN_RECN 0100TEST1 0000383462 VICN01 RECNLIFNR
RECN_RECN 0100TEST1 0000360190 VICN01 RECNEND
RECN_RECN 0100TEST1 0000340630 VICN01 RECNEND
this is my debug output after sorting on objectid changenr tabname fname in descending
i wanted line 2nd to be at last so when i use delete adjacent command i can get 2 line item i.e 1st and 2nd line ...
Similar Messages
-
Using shortcut keys in the block diagram
i want to use shortcut keys in the block diagram. is this possible?
Thanks!
~drycsr~
Attachments:
S1.jpg 318 KB
shortcut.jpg 155 KBthank you guys, actually i want to move objects to a pane by using mouse (drag and drop to pane). there are more than one objects (as boxes). then when an object (box #1) which is clicked by mouse is active, the other objects are passive. so,i think maybe i can use shortcut keys as commands.
for example when i drag second box to same coordinates of the first box, it places on top of the first one. i dont want to stow objects. i want to put them side by side. sorry about mess!
Thanks!
~drycsr~
Attachments:
move.jpg 142 KB
front_panel.jpg 115 KB -
Hp officejet pro k550 will not print a test page using control keys on the printer.
How do I print a test page to ensure that this printer is still operational?
I have tried all instructions for clearing the printer of possible jams, removed and reinserted the print heads, and cleaned the rollers. When pressing the appropriate keys on the front of the printer, it will not print a test page. and no error lights appear.
The printer has been connected to a different computer and ceased working last summer. The printer would not respond to commands from the computer nor would it respond to keys on the front of the printer itself. I can get the printhead to move using the controls on the front of the printer, however. The printer is not currently connected to any computer and the nearest computer does not have the appropriate drivers installed. Originally the printer was connected to a Dell desktop running Windows XP (sp 3).
This question was solved.
View Solution.Here's how to print a self-test page from the control panel.
I am an HP employee. -
JComboBox fires ActionEvent when using Arrow Keys on the JComboBox popupwindow
Hi,
Situation:
I have a JComboBox and an ActionListener (ItemStateListener is
the same) attached to the JComboBox component.
I have several items in the ComboBox.
At runtime I open the ComboBox with arrow Key (DOWN Key)
(popupwindow is visible) and go through the items with the arrow
keys (UP or DOWN).
Every time I change from one item to another with the arrow
keys , the ActionListener is called, although the popupwindow is
still open (ENTER was not pressed). I think this is very bad,
because I do not have chance to divide between "the user is
travelling around in the combo looking for the right item"
and "the user selects the item he wants".
When you walk through the items with the mouse, the
ActionListener is not called.
Question:
Is there any chance to prevent the ComboBox fireing
ActionEvents, when the users walks through the items with Arrow
Keys?
I've looked at the L&F Classes, but in my opinion it is not the
right way to overwrite the ComboUI classes.
Any ideas?
LoeriTry using the PopupMenuListener.
m_objListNameComboBox.addPopupMenuListener(/* your listener */);
Do what you want in the method popupMenuWillBecomeInvisible.
I use it to get the LAST selected item in the combobox.
// Implementation of PopupMenuListener
public void popupMenuWillBecomeVisible(PopupMenuEvent e)
m_intSelectedIndex = m_objListNameComboBox.getSelectedIndex();
// Implementation of PopupMenuListener
public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
if (m_intSelectedIndex != m_objListNameComboBox.getSelectedIndex())
// do what you want! -
How to Use "Hot Key" in the Search help
Hi,
Please explain how to use hot key with some example.TYPE-POOLS SLIS. DATA: BEGIN OF itab OCCURS 0,
BUKRS LIKE T001-BUKRS,
BUTXT LIKE T001-BUTXT,
END OF itab.
PARAMETERS: P_BUKRS TYPE BUKRS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BUKRS.
PERFORM F4_FOR_BUKRS.
FORM F4_FOR_BUKRS. DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
ES_SELFIELD TYPE SLIS_SELFIELD. * Get data
SELECT BUKRS
BUTXT
FROM T001
INTO TABLE itab
up to 10 rows .
Get field
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'ITAB'
CHANGING
CT_FIELDCAT = IT_FIELDCAT[]. LOOP AT IT_FIELDCAT.
IT_FIELDCAT-KEY = SPACE.
IF IT_FIELDCAT-FIELDNAME = 'BUTXT'.
IT_FIELDCAT-EMPHASIZE = 'C710'.
IT_FIELDCAT-HOTSPOT = X.
ENDIF.
IF IT_FIELDCAT-FIELDNAME = 'BUKRS'.
IT_FIELDCAT-EMPHASIZE = 'C610'.
ENDIF. MODIFY IT_FIELDCAT.
ENDLOOP. CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TITLE = 'THIS IS FOR F4 IN COLOR'
I_TABNAME = 'ITAB'
IT_FIELDCAT = IT_FIELDCAT[]
IMPORTING
ES_SELFIELD = ES_SELFIELD
TABLES
T_OUTTAB = ITAB . ENDFORM. " F4_FOR_BUKRS -
Sqlplus how to use arrow key look the history
sqlplus in DOS, I can use arrow to look the sql statement history.
How to use arrow in Solaris.
ThanksIf you were using Linux, I'd refer you to http://www.dizwell.com/prod/node/56
Since you aren't, I'll refer you to that anyway and hope that you find a way of compiling rlwrap for Solaris. -
Using Enter key on the TextField
How to complete filling of the text to a TextField after pressing key "Enter"?
pressing enter causes any ActionListener objects to be notified. checkout the java tutorial to see how to do this:
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
(note this actually uses a JTextField but it's pretty much the same with TextField)
jonesy (sun developer support) -
Reformat a HP Pavilion g4 and reinstall windows 7 using product key at the back of the laptop
I would appreciate it if I someone can provide the instructions or point to where I can find them. Also, how do I reinstall the other necessary softwares and drivers to properly run the laptop.
Thanks.Hi,
You can do this as follows.
Create an installation disc yourself using another PC - just download the correct Disc Image ( this must be the same version - ie Home Premium, Professional, Ultimate etc - that originally came with your notebook ) from the link below and use an application such as ImgBurn to burn the ISO correctly to a blank DVD - a guide on using ImgBurn to write an ISO to a disc is Here. These Images are clean and from a well-respected source - Digital River.
Windows 7 Images.
Use the disc to perform the installation, enter the Windows activation key found on the COA Label when requested and when the installation has completed, use the 'Phone Method' detailed in the link below to activate the OS - this method supported by Microsoft and is popular with people who just want a clean installation of Windows 7 without the additional software load normally bundled with OEM installations.
http://www.kodyaz.com/articles/how-to-activate-windows-7-by-phone.aspx
Any additional drivers and software you may need can be found starting by entering either the full Model No. or Product No. of your g4 series notebook Here. -
If the "Find in this message" search box has been left open, but I have selected a message in the message pane, if I use the delete key to delete the current message, the focus moves to the "Find" box. It took me a while to figure out why the focus did not remain in the message list so I could delete the next message. I can regain the desired behavior by closing the search box, but it would be nice to not need to. This is on a Windows 7 OS. I should check to see how it behaves on a Linux box.
Hi,
for the Points
Sometime I think I would like it if I could delete an iMessage completely.
Other times when reading them on my iPhone I wish to leave them until I can answer them with something that is on my Mac.
It seems that as a device or a Mac that is off line can "catch up" on iMessages sent within a few hours would suggest that the iMessages are held on the server for a period.
It would be handy for different levels of "deletion".
7:19 PM Monday; February 11, 2013
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images." No, Seriously -
When a context node use non-singleton, how to invoke the supply funtion eve
when a context node use non-singleton, how to invoke the supply funtion everytime the lead selection is changed ?
Hi wei,
<b>Non-singleton nodes:</b>
Web Dynpro allows you to define non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.
<b>Supply function:</b>
The Web Dynpro tools also automatically enhance the corresponding controller class with a supply function including the user coding area contained in it
Supply functions are implemented as methods of type
<b>public void supplyChildNodeElements(SomeChildNode node,
SomeParentNodeElement)</b>
in a Web Dynpro controller (view controller or custom controller). Supply functions and context nodes have a 1..1 relationship, that is, supply functions are specific for individual context nodes. Under certain conditions, supply functions are called by pages in the Web Dynpro runtime environment.
Hope this helps u,
Regards,
Nagarajan. -
Hi all
what exactly are the SORTED & HASHED tables??
Regards
SriniInternal tables are the core of ABAP. They are like soul of a body. For any program we use
internal tables extensively. We can use Internal tables like normal data base tables only, but the
basic difference is the memory allocated for internal tables is temporary. Once the program is
closed the memory allocated for internal tables will also be out of memory.
But while using the internal tables, there are many performance issues to be considered. i.e which
type of internal table to be used for the program..like standard internal table, hashed internal
table or sorted internal table etc..
Internal tables
Internal tables provide a means of taking data from a fixed structure and storing it in working memory in ABAP. The data is stored line by
line in memory, and each line has the same structure. In ABAP, internal tables fulfill the function of arrays. Since they are dynamic data
objects, they save the programmer the task of dynamic memory management in his or her programs. You should use internal tables
whenever you want to process a dataset with a fixed structure within a program. A particularly important use for internal tables is for
storing and formatting data from a database table within a program. They are also a good way of including very complicated data
structures in an ABAP program.
Like all elements in the ABAP type concept, internal tables can exist both as data types and as data objects A data type is the abstract
description of an internal table, either in a program or centrally in the ABAP Dictionary, that you use to create a concrete data object. The
data type is also an attribute of an existing data object.
Internal Tables as Data Types
Internal tables and structures are the two structured data types in ABAP. The data type of an internal table is fully specified by its line type,
key, and table type.
Line type
The line type of an internal table can be any data type. The data type of an internal table is normally a structure. Each component of the
structure is a column in the internal table. However, the line type may also be elementary or another internal table.
Key
The key identifies table rows. There are two kinds of key for internal tables - the standard key and a user-defined key. You can specify
whether the key should be UNIQUE or NON-UNIQUE. Internal tables with a unique key cannot contain duplicate entries. The uniqueness
depends on the table access method.
If a table has a structured line type, its default key consists of all of its non-numerical columns that are not references or themselves
internal tables. If a table has an elementary line type, the default key is the entire line. The default key of an internal table whose line type
is an internal table, the default key is empty.
The user-defined key can contain any columns of the internal table that are not references or themselves internal tables. Internal tables
with a user-defined key are called key tables. When you define the key, the sequence of the key fields is significant. You should remember
this, for example, if you intend to sort the table according to the key.
Table type
The table type determines how ABAP will access individual table entries. Internal tables can be divided into three types:
Standard tables have an internal linear index. From a particular size upwards, the indexes of internal tables are administered as trees. In
this case, the index administration overhead increases in logarithmic and not linear relation to the number of lines. The system can access
records either by using the table index or the key. The response time for key access is proportional to the number of entries in the table.
The key of a standard table is always non-unique. You cannot specify a unique key. This means that standard tables can always be filled
very quickly, since the system does not have to check whether there are already existing entries.
Sorted tables are always saved sorted by the key. They also have an internal index. The system can access records either by using the
table index or the key. The response time for key access is logarithmically proportional to the number of table entries, since the system
uses a binary search. The key of a sorted table can be either unique or non-unique. When you define the table, you must specify whether
the key is to be unique or not. Standard tables and sorted tables are known generically as index tables.
Hashed tables have no linear index. You can only access a hashed table using its key. The response time is independent of the number of
table entries, and is constant, since the system access the table entries using a hash algorithm. The key of a hashed table must be unique.
When you define the table, you must specify the key as UNIQUE.
Generic Internal Tables
Unlike other local data types in programs, you do not have to specify the data type of an internal table fully. Instead, you can specify a
generic construction, that is, the key or key and line type of an internal table data type may remain unspecified. You can use generic
internal tables to specify the types of field symbols and the interface parameters of procedures . You cannot use them to declare data
objects.
Internal Tables as Dynamic Data Objects
Data objects that are defined either with the data type of an internal table, or directly as an internal table, are always fully defined in
respect of their line type, key and access method. However, the number of lines is not fixed. Thus internal tables are dynamic data objects,
since they can contain any number of lines of a particular type. The only restriction on the number of lines an internal table may contain are
the limits of your system installation. The maximum memory that can be occupied by an internal table (including its internal administration)
is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more
than 2 million entries. The line types of internal tables can be any ABAP data types - elementary, structured, or internal tables. The
individual lines of an internal table are called table lines or table entries. Each component of a structured line is called a column in the
internal table.
Choosing a Table Type
The table type (and particularly the access method) that you will use depends on how the typical internal table operations will be most
frequently executed.
Standard tables
This is the most appropriate type if you are going to address the individual table entries using the index. Index access is the quickest
possible access. You should fill a standard table by appending lines (ABAP APPEND statement), and read, modify and delete entries by
specifying the index (INDEX option with the relevant ABAP command). The access time for a standard table increases in a linear relationship
with the number of table entries. If you need key access, standard tables are particularly useful if you can fill and process the table in
separate steps. For example, you could fill the table by appending entries, and then sort it. If you use the binary search option with key
access, the response time is logarithmically proportional to the number of table entries.
Sorted tables
This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries
are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add
them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always
uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the
table key in the WHERE condition.
Hashed tables
This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index.
The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always
have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for
processing large amounts of data.
Creating Internal Tables
Like other elements in the ABAP type concept, you can declare internal tables as abstract data
types in programs or in the ABAP Dictionary, and then use them to define data objects.
Alternatively, you can define them directly as data objects. When you create an internal table as a
data object, you should ensure that only the administration entry which belongs to an internal
table is declared statically. The minimum size of an internal table is 256 bytes. This is important if an
internal table occurs as a component of an aggregated data object, since even empty internal
tables within tables can lead to high memory usage. (In the next functional release, the size of the
table header for an initial table will be reduced to 8 bytes). Unlike all other ABAP data objects, you
do not have to specify the memory required for an internal table. Table rows are added to and
deleted from the table dynamically at runtime by the various statements for adding and deleting
records.
You can create internal tables in different types.
You can create standard internal table and then make it sort in side the program.
The same way you can change to hashed internal tables also.
There will be some performance issues with regard to standard internal tables/ hashed internal
tables/ sorted internal tables.
Internal table types
This section describes how to define internal tables locally in a program. You can also define internal tables globally as data types in the
ABAP Dictionary.
Like all local data types in programs , you define internal tables using the TYPES statement. If you do not refer to an existing table type
using the TYPE or LIKE addition, you can use the TYPES statement to construct a new local internal table in your program.
TYPES <t> TYPE|LIKE <tabkind> OF <linetype> [WITH <key>]
[INITIAL SIZE <n>].
After TYPE or LIKE, there is no reference to an existing data type. Instead, the type constructor occurs:
<tabkind> OF <linetype> [WITH <key>]
The type constructor defines the table type <tabkind>, the line type <linetype>, and the key <key> of the internal table <t>.
You can, if you wish, allocate an initial amount of memory to the internal table using the INITIAL SIZE addition.
Table type
You can specify the table type <tabkind> as follows:
Generic table types
INDEX TABLE
For creating a generic table type with index access.
ANY TABLE
For creating a fully-generic table type.
Data types defined using generic types can currently only be used for field symbols and for interface parameters in procedures . The generic
type INDEX TABLE includes standard tables and sorted tables. These are the two table types for which index access is allowed. You cannot
pass hashed tables to field symbols or interface parameters defined in this way. The generic type ANY TABLE can represent any table. You
can pass tables of all three types to field symbols and interface parameters defined in this way. However, these field symbols and
parameters will then only allow operations that are possible for all tables, that is, index operations are not allowed.
Fully-Specified Table Types
STANDARD TABLE or TABLE
For creating standard tables.
<b>SORTED TABLE</b>
For creating sorted tables.
<b>HASHED TABLE</b>
For creating hashed tables.
Fully-specified table types determine how the system will access the entries in the table in key operations. It uses a linear search for
standard tables, a binary search for sorted tables, and a search using a hash algorithm for hashed tables.
Line type
For the line type <linetype>, you can specify:
Any data type if you are using the TYPE addition. This can be a predefined ABAP type, a local type in the program, or a data type from the
ABAP Dictionary. If you specify any of the generic elementary types C, N, P, or X, any attributes that you fail to specify (field length, number
of decimal places) are automatically filled with the default values. You cannot specify any other generic types.
Any data object recognized within the program at that point if you are using the LIKE addition. The line type adopts the fully-specified data
type of the data object to which you refer. Except for within classes, you can still use the LIKE addition to refer to database tables and
structures in the ABAP Dictionary (for compatibility reasons).
All of the lines in the internal table have the fully-specified technical attributes of the specified data type.
Key
You can specify the key <key> of an internal table as follows:
[UNIQUE|NON-UNIQUE] KEY <col1> ... <col n>
In tables with a structured line type, all of the components <coli> belong to the key as long as they are not internal tables or references,
and do not contain internal tables or references. Key fields can be nested structures. The substructures are expanded component by
component when you access the table using the key. The system follows the sequence of the key fields.
[UNIQUE|NON-UNIQUE] KEY TABLE LINE
If a table has an elementary line type (C, D, F, I, N, P, T, X), you can define the entire line as the key. If you try this for a table whose line
type is itself a table, a syntax error occurs. If a table has a structured line type, it is possible to specify the entire line as the key. However,
you should remember that this is often not suitable.
[UNIQUE|NON-UNIQUE] DEFAULT KEY
This declares the fields of the default key as the key fields. If the table has a structured line type, the default key contains all non-numeric
columns of the internal table that are not and do not contain references or internal tables. If the table has an elementary line type, the
default key is the entire line. The default key of an internal table whose line type is an internal table, the default key is empty.
Specifying a key is optional. If you do not specify a key, the system defines a table type with an arbitrary key. You can only use this to
define the types of field symbols and the interface parameters of procedures . For exceptions, refer to Special Features of Standard Tables.
The optional additions UNIQUE or NON-UNIQUE determine whether the key is to be unique or non-unique, that is, whether the table can
accept duplicate entries. If you do not specify UNIQUE or NON-UNIQUE for the key, the table type is generic in this respect. As such, it can
only be used for specifying types. When you specify the table type simultaneously, you must note the following restrictions:
You cannot use the UNIQUE addition for standard tables. The system always generates the NON-UNIQUE addition automatically.
You must always specify the UNIQUE option when you create a hashed table.
Initial Memory Requirement
You can specify the initial amount of main memory assigned to an internal table object when you define the data type using the following
addition:
INITIAL SIZE <n>
This size does not belong to the data type of the internal table, and does not affect the type check. You can use the above addition to
reserve memory space for <n> table lines when you declare the table object.
When this initial area is full, the system makes twice as much extra space available up to a limit of 8KB. Further memory areas of 12KB each
are then allocated.
You can usually leave it to the system to work out the initial memory requirement. The first time you fill the table, little memory is used. The
space occupied, depending on the line width, is 16 <= <n> <= 100.
It only makes sense to specify a concrete value of <n> if you can specify a precise number of table entries when you create the table and
need to allocate exactly that amount of memory (exception: Appending table lines to ranked lists). This can be particularly important for
deep-structured internal tables where the inner table only has a few entries (less than 5, for example).
To avoid excessive requests for memory, large values of <n> are treated as follows: The largest possible value of <n> is 8KB divided by the
length of the line. If you specify a larger value of <n>, the system calculates a new value so that n times the line width is around 12KB.
Examples
TYPES: BEGIN OF LINE,
COLUMN1 TYPE I,
COLUMN2 TYPE I,
COLUMN3 TYPE I,
END OF LINE.
TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.
The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a unique key of the component
COLUMN1.
TYPES VECTOR TYPE HASHED TABLE OF I WITH UNIQUE KEY TABLE LINE.
TYPES: BEGIN OF LINE,
COLUMN1 TYPE I,
COLUMN2 TYPE I,
COLUMN3 TYPE I,
END OF LINE.
TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.
TYPES: BEGIN OF DEEPLINE,
FIELD TYPE C,
TABLE1 TYPE VECTOR,
TABLE2 TYPE ITAB,
END OF DEEPLINE.
TYPES DEEPTABLE TYPE STANDARD TABLE OF DEEPLINE
WITH DEFAULT KEY.
The program defines a table type VECTOR with type hashed table, the elementary line type I and a unique key of the entire table line. The
second table type is the same as in the previous example. The structure DEEPLINE contains the internal table as a component. The table
type DEEPTABLE has the line type DEEPLINE. Therefore, the elements of this internal table are themselves internal tables. The key is the
default key - in this case the column FIELD. The key is non-unique, since the table is a standard table.
Internal table objects
Internal tables are dynamic variable data objects. Like all variables, you declare them using the DATA statement. You can also declare static
internal tables in procedures using the STATICS statement, and static internal tables in classes using the CLASS-DATA statement. This
description is restricted to the DATA statement. However, it applies equally to the STATICS and CLASS-DATA statements.
Reference to Declared Internal Table Types
Like all other data objects, you can declare internal table objects using the LIKE or TYPE addition of the DATA statement.
DATA <itab> TYPE <type>|LIKE <obj> [WITH HEADER LINE].
Here, the LIKE addition refers to an existing table object in the same program. The TYPE addition can refer to an internal type in the
program declared using the TYPES statement, or a table type in the ABAP Dictionary.
You must ensure that you only refer to tables that are fully typed. Referring to generic table types (ANY TABLE, INDEX TABLE) or not
specifying the key fully is not allowed (for exceptions, refer to Special Features of Standard Tables).
The optional addition WITH HEADER line declares an extra data object with the same name and line type as the internal table. This data
object is known as the header line of the internal table. You use it as a work area when working with the internal table (see Using the
Header Line as a Work Area). When you use internal tables with header lines, you must remember that the header line and the body of the
table have the same name. If you have an internal table with header line and you want to address the body of the table, you must indicate
this by placing brackets after the table name (<itab>[]). Otherwise, ABAP interprets the name as the name of the header line and not of the
body of the table. You can avoid this potential confusion by using internal tables without header lines. In particular, internal tables nested
in structures or other internal tables must not have a header line, since this can lead to ambiguous expressions.
TYPES VECTOR TYPE SORTED TABLE OF I WITH UNIQUE KEY TABLE LINE.
DATA: ITAB TYPE VECTOR,
JTAB LIKE ITAB WITH HEADER LINE.
MOVE ITAB TO JTAB. <- Syntax error!
MOVE ITAB TO JTAB[].
The table object ITAB is created with reference to the table type VECTOR. The table object JTAB has the same data type as ITAB. JTAB also
has a header line. In the first MOVE statement, JTAB addresses the header line. Since this has the data type I, and the table type of ITAB
cannot be converted into an elementary type, the MOVE statement causes a syntax error. The second MOVE statement is correct, since
both operands are table objects.
Declaring New Internal Tables
You can use the DATA statement to construct new internal tables as well as using the LIKE or TYPE addition to refer to existing types or
objects. The table type that you construct does not exist in its own right; instead, it is only an attribute of the table object. You can refer to
it using the LIKE addition, but not using TYPE. The syntax for constructing a table object in the DATA statement is similar to that for defining
a table type in the TYPES statement.
DATA <itab> TYPE|LIKE <tabkind> OF <linetype> WITH <key>
[INITIAL SIZE <n>]
[WITH HEADER LINE].
As when you define a table type , the type constructor
<tabkind> OF <linetype> WITH <key>
defines the table type <tabkind>, the line type <linekind>, and the key <key> of the internal table <itab>. Since the technical attributes of
data objects are always fully specified, the table must be fully specified in the DATA statement. You cannot create generic table types (ANY
TABLE, INDEX TABLE), only fully-typed tables (STANDARD TABLE, SORTED TABLE, HASHED TABLE). You must also specify the key and whether
it is to be unique (for exceptions, refer to Special Features of Standard Tables).
As in the TYPES statement, you can, if you wish, allocate an initial amount of memory to the internal table using the INITIAL SIZE addition.
You can create an internal table with a header line using the WITH HEADER LINE addition. The header line is created under the same
conditions as apply when you refer to an existing table type.
DATA ITAB TYPE HASHED TABLE OF SPFLI
WITH UNIQUE KEY CARRID CONNID.
The table object ITAB has the type hashed table, a line type corresponding to the flat structure SPFLI from the ABAP Dictionary, and a
unique key with the key fields CARRID and CONNID. The internal table ITAB can be regarded as an internal template for the database table
SPFLI. It is therefore particularly suitable for working with data from this database table as long as you only access it using the key. -
How about Hot Keys for the Wireless Keyboard?
Hello all.
Been using the iPad 2 for about 2 weeks since I got it. Had to "ditch" the iPad Keyboard Dock and use a regular Apple Wireless Keyboard. The good thing is now using the TwelveSouth iPad Stand, I can orientate the iPad to any of the two positions I want.
But I miss the special hot keys on Keyboard Dock, namely the Home and Lock keys. Kind of inconvenient pushing the Home button on the iPad 2, especially having to double-press for multitasking.
If only the iPad's iOS allows some sort of configuration for hot keys on the wireless keyboard. I do notice that the F5 and F6 are empty.
CheersI would only hope that the keyboard would turn off, not just when it isn't pairing with the computer, but for the keyboard that is paired (mine is) it would be best if it turned off after a period of no use. Here is what one man, not an Apple tech, said about the A1314 keyboard he was selling on ebay:
"The keyboard automatically powers down when you're not using it and turns on instantly as soon as you start typing. This intelligent power management means you'll get up to nine months of battery life based on average usage patterns. It also has an on/off switch for when you're away from your computer for a long time."
This doesn't indicate how many minutes of no use it needs before it 'powers down' (doesn't sound as good as really being turned off) and it also doesn't address the issue of knowing if your keyboard is on or off via the power button.
Even my dog electric training collar blinks twice when it is turned on and blinks three times when it is turned off. The Apple keyboard needs two indicator lights, one to tell you if it is searching for pairing and the other strictly as an on off indicator. I'm not going to loose any sleep over this, but it does seem like somebody was sleeping in the design department as this keyboard is really cool, but it doesn't convey the basic on/off information to the user. -
I use Apple's wireless keyboard to type email messages on my ipad. Often applications, such as Mail, would shut down suddenly after using "delete" key on the wireless keyboard. This happens when I am typing in Japanese language. It is really annoying because I will lose all the text that are not saved. Any suggestions?
Sorry but that was a completely pointless post.
-
How to maintain, the validity internal when we use non commulative key figu
Hi Friends,
I would like to check, I've created query on Inventary infocube, when we trying to execute the report, I'm getting the following error.
The validity internal has the initial value as lower limit
Generally, How we will maintain validity internal when we use non cumulative key figures.
Can anybody have some idea about this.
SiriYou need to maintain the validity period on which your stock can be calculated. The user will see special values when asking for stock outside this period (don't remember the special value).
It can be a fixed period (in a first step, I will recommend that). For instance : from 01.01.1000 to 31.12.9999. Thus you will never have any error.
It can also be a dynamic period (generally linked to the last data load).
Regards,
Fred -
How to make a form using a wizard when the table has no primary key ?
Hi,
I want to make a form to update, delete a table. The table has no primary key. The problem is that the Wizard ask for a primary key.
How to avoid using a primary key ? i mean I don't want to create a primary key if is is possible.
I would like to use the wizard; is it possible ?
Thank you for your kind answers.
ChristianI believe the key is choosing 'Interactive' as opposed to 'Classic' in the implementation and then you can choose 'Existing Trigger' for the primary key source and it should work to use an existing column as your proimary key.
Maybe you are looking for
-
Combo chart - different colors for Bar/Line
Hi, In a combo chart is it possible to have different colors for bar and lines......................In our report- combo charts the intersection of bar/line is NOT visible beacuse of same color.
-
How to see the length of a call made or received on my BB 9360
How do I see the length of a call made or received on my Blacberry 9360? I've tried to set it or see in the caller log history, but no success. Where or how do I do this? In my previous blackberry I could do this.
-
Doubts after reading Logic Express 7's manual
Hello everybody, I am sorry to be posting on Logic Express 7 here, but nobody seems to be able to answer my questions that I posted in the respective thread. I only have to ask whether the following are Logic Pro 7 ONLY features: 1. Customizing the T
-
Erreur 14018 lors du telechargement
comment résoudre une erreur 14018 lors du téléchargement d'un film ? merci d'avance
-
How do I import videos from a HDR-XR160 camcorder to my imac
How do I import videos from a HDR-XR160 camcorder to my imac