‎2008 Dec 03 6:05 AM
Hi All,
Can u plz suggest me wt wrong with this declaration?
PARAMETERS : p_date TYPE bkpf-budat OBLIGATORY,
p_file TYPE string OBLIGATORY
Here error "string is not accepted...". But if i repalce it with datatype c.. am not getting correct o/p.
‎2008 Dec 03 6:07 AM
u can declar like that
data : samt type string .
CHAR 1-255 Character string c(m)
so
PARAMETERS : p_date TYPE bkpf-budat OBLIGATORY,
p_file (30) TYPE c OBLIGATORY.
‎2008 Dec 03 6:08 AM
hi,
when u r declaring parameter do not use string type..
for ur requirement do like this..
parameter : p_file type rlgrap-filename.
data : f_file type string.
f_file = p_file.
do in the above way.. it will work..
Rgds,.
subash
‎2008 Dec 03 6:08 AM
Hi,
I hope you are using version 4.6 or 4.7 ..
Because in there you cannot declare type string . From versions 5.0 onwards its compatible .
P_file like rlgrap-filename .
You can try this declarations in ur case.
Br,
Vijay.
‎2008 Dec 03 6:11 AM
hi it seems u want to read filename
RLGRAP-filename for p_file
if u want string itself declare it as character of some max length.
if the value is move that to string var, then remove the spaces at the end
‎2008 Dec 03 6:14 AM
PARAMETERS : p_date TYPE bkpf-budat OBLIGATORY,
p_file(200) OBLIGATORY.
data : l_file type string.
l_file = p_file.
‎2008 Dec 03 6:15 AM
Hi
Below statement is working fine for me in ECC6.0.
PARAMETERS P1 TYPE STRING OBLIGATORY.
I guess you are in some older release which is not supporting STRING type for PARAMETERS.
Cheers,
Hakim