Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data Types

Former Member
0 Likes
532

What are the compatable datatypes for the parameters?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
513

Hi,

Instead of the F(Float) you can use all Datatypes for the PARAMETERS

Regards

Sudheer

4 REPLIES 4
Read only

Former Member
0 Likes
514

Hi,

Instead of the F(Float) you can use all Datatypes for the PARAMETERS

Regards

Sudheer

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
513

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

Read only

Former Member
0 Likes
513

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

Read only

Former Member
0 Likes
513

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