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

parameters

Former Member
0 Likes
636

Why cant we use string in parameters?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
615

the parameters statement will create a screen field(Selection screen). The string is a dynammic object in the sense that it doesn't have a fixed length. and you cannot create a screen element for such objects.

Regards,

Ravi

4 REPLIES 4
Read only

Former Member
0 Likes
616

the parameters statement will create a screen field(Selection screen). The string is a dynammic object in the sense that it doesn't have a fixed length. and you cannot create a screen element for such objects.

Regards,

Ravi

Read only

0 Likes
615

I am satisfied with ur answer Can u send me any sample program for sorting strings in abap

Read only

0 Likes
615

If there is an internal table with some strings in it.

then you can simply use the sort statement

data: begin of itab occurs 0,

string(20) type c,

end of itab.

itab-string = 'hchgugjk'.

append itab.

clear itab.

itab-string = 'dhhgugjk'.

append itab.

clear itab.

itab-string = 'shhgugjk'.

append itab.

clear itab.

itab-string = 'ahhgugjk'.

append itab.

clear itab.

write:/ 'Before sorting'.

loop at itab.

write:/ itab-string.

endloop.

sort itab by string.

write:/ 'After sorting'.

loop at itab.

write:/ itab-string.

endloop.

Regards,

Ravi

Read only

Former Member
0 Likes
615
For Parameters , Only types C, N, X or P are allowed

you can declare that as C and give some more length


REPORT YCHATEST.
 
data  v_str(200).
 
parameters : p_str like v_str.