2008 Nov 18 9:34 AM
Hi,
I'm trying to define a parameter type string to get a file path to upload a file and I receive the following error.
PARAMETERS: var1 TYPE string.
The deep data type "STRING" is not allowed.
But then I use the same type to a DATA statement and I can use it with no problem, for example:
DATA var1 TYPE string.
I've got a code created by me the last year where I declare a TYPE string parameter and that code worked perfectly... The SAP version is 6.4...
2008 Nov 18 9:39 AM
Hi Marshall,
The older releases doesn't support the datatype string for parameters as the newer releases wil take it.
If you still want to achieve that you can use the datatype char<x> for that and x being the number of characters.
Cheers,
Simha.
Hi Marshall,
The older releases doesn't support the datatype string for parameters as the newer releases wil take it.
If you still want to achieve that you can use the datatype char<x> for that and x being the number of characters.
Cheers,
Simha.
2008 Nov 18 9:36 AM
2008 Nov 18 9:43 AM
Ok ok, I don't understand why isn't working because the release is new (6.4) but doesn't matter... I will use the data type string to pass the string to char255 parameter as you told me and no more complications
Edited by: Marshal Oliveras on Nov 18, 2008 10:43 AM
2008 Nov 18 9:39 AM
Hi Marshall,
The older releases doesn't support the datatype string for parameters as the newer releases wil take it.
If you still want to achieve that you can use the datatype char<x> for that and x being the number of characters.
Cheers,
Simha.
2008 Nov 18 9:46 AM
i think ur sap version is 4.6 . In 6.0 this will work .
parameter : pa_file like rlgrap-filename.
data : gv_file type string .
gv_file = pa_file .
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |