ABAPCREATE_DATA_EXISTING - CREATE DATA EXISTING
rdisp/max_wprun_time - Maximum work process run time rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
CREATE DATA - TYPE, LIKE
Syntax
CREATE DATA dref [area_handle]
{ {TYPE [LINE OF] {type|(name)}}
| {LIKE [LINE OF] dobj} }.
Effect
type can be any data type from the ABAP Dictionary - especially the structure of a database table,a public data type of a global class, or any data type of the same program that has already been definedwith TYPES and that is either more specific than or identical to the static type of dref.Alternatively, you can specify a character-type data object name in parentheses which containsthe name of the existing data type when the statement is executed. Upper/lower case is irrelevant here. The identifier in name can also be anabsolute type name. If a standard table type with a generic primary table key is specified after TYPE, a newbound table type with standard key is generated and used.
For dobj, a data object that is visible at this point can be specified. The generated data object copies this data type. Within aprocedure,a generically typed formal parameter can also be specified for dobj. When the procedure is executed, the generated data object copies the current data type of the formal parameter.
You can use the optional addition LINE OF if type or the name in name is a tabletype, or if dobj is an internal table. As a result, the generated data object copies the attributes of the row type of the internal table.
Notes
Apart from data objects in the same program, data objects that can be referred to using LIKE also include the public attributes of global classes.
- If a type of another program is specified in name using anabsolute type name, this is loaded, depending on the program type, in a newadditional program group or in the currentprogram group, if it has not been loaded already.
Example
Refer to Creating structured data objects.
TXBHW - Original Tax Base Amount in Local Currency RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 3419 Date: 20120522 Time: 041621 triton ( 196 ms )






