on 09-19-2018 5:02 AM
Hi Team,
I have a requirement in FOX code to read year from fiscal year period variable and to place in another fiscal year period variable by concatenating with '001'.
I have written following code but I am getting data type mismatch error at line 6 .
DATA F_YYYY_V TYPE STRING .
DATA F_YYYY_V1 TYPE STRING .
DATA F_YYYY_D TYPE 0FISCPER.
DATA TEMP1 TYPE 0FISCPER.
TEMP1 = VARV( ZFISCPD_LYFP). eg : ZFISCPD_LYFP =2018001
read year
F_YYYY_V = TRUNC( FLIPMTH / 1000 ). " getting syntax error
F_YYYY_D = concat(F_YYYY_V ,'001').
Please let me know if there is any other way to achieve this requirement.
Thanks
SivaHi,
the FOX documentation contains an example, cf. Examples -> Working with Character Strings.
Regards,
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.