‎2007 Mar 07 11:30 AM
‎2007 Mar 07 11:31 AM
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
‎2007 Mar 07 11:31 AM
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
‎2007 Mar 07 11:34 AM
I am satisfied with ur answer Can u send me any sample program for sorting strings in abap
‎2007 Mar 07 11:39 AM
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
‎2007 Mar 07 11:34 AM
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.