‎2007 Feb 20 10:52 AM
What are the compatable datatypes for the parameters?
Thanks in advance
‎2007 Feb 20 10:57 AM
Hi,
Instead of the F(Float) you can use all Datatypes for the PARAMETERS
Regards
Sudheer
‎2007 Feb 20 10:57 AM
Hi,
Instead of the F(Float) you can use all Datatypes for the PARAMETERS
Regards
Sudheer
‎2007 Feb 20 10:58 AM
HI,
All the below types are allowed for PARAMETERS. Also you can use LIKE with any data object typed with the following types.
The built-in ABAP types c, d, i, n, p, string, t, and x
A non-generic data type from the ABAP Dictionary, a non-generic public data type of a global class, or a data type, from the same program, already defined using TYPES, and which is elementary and not of the type f or xstring.
Regards,
Sesh
‎2007 Feb 20 11:03 AM
following data types can be used
C Character 1 Space
N Numeric text 1 '00...0'
D Date YYYYMMDD 8 '00000000'
T Time HHMMSS 6 '000000'
X Byte (heXadecimal) 1 X'00'
I Integer 4 0
P Packed number 8 0
‎2007 Feb 20 11:13 AM
Hi,
The data types valid for parameters include all elementary ABAP types except data type F. You cannot use data type F, references and aggregate types.
The basic form of the PARAMETERS statement is as follows:
PARAMETERS <p>[(<length>)] [TYPE <type>|LIKE <obj>] [DECIMALS <d>].
This statement creates parameter <p>. Currently, parameter names are limited to eight digits. The additions <length>, TYPE|LIKE and DECIMALS are the same as for the DATA statement.
If the parameter refers to data types from the Dictionary, it adopts all attributes of the Dictionary field. Currently, parameters can only refer to fields of database tables, views and structures. In particular, the field help (F1) and the possible entries help (F4) defined for these fields in the Dictionary are available to the user. To check a user entry against a value list in the Dictionary, you must use the special addition VALUE CHECK.
Regards,
Sruthi