on 11-26-2007 1:55 PM
Hi Gurus,
I have defined a variable in my script as
Define &N& = ' '.
So here Variable N is automatically converted into CHAR format.
I am passing this variable in my SUBROUTINE in the script.
I get an integer value inside the SUBROUTINE .
When i transport this value back to the script it gets converted to CHAR format.
Now In the script If i use
IF N > '1'.
write 'sucess'.
ENDIF.
It does not function properly.
Could anyone please help me solving this issue.
I mean after getting an integer value in the subroutine i need to use that value as an integer in the script so that i could easily compare two integer values inside my SCRIPT.
Please help me.
Regards,
Roshan Lilaram Wadhwani.
Hi,
SAPscript is only interested in character format, so to get round the problem use your subroutine to set a flag based on the condition.
In your script
/: DEFINE &FLAG& = ' '
So in your subroutine
IF N > '1'.
FLAG = 'X'.
ENDIF.
Then back in your form
IF &FLAG& = 'X'.
write 'sucess'.
ENDIF
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
IF &N& GT '1'.
write 'sucess'.
ENDIF.
Regards
Aneesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.