2009 Apr 10 10:24 AM
Hi...
I'm upgrade from ECC 5.0 to ECC 6.0
My problem is syntax error.
The following code is part of source.
in MZXXTOP.
DATA : PARVA LIKE USR05-PARVA.
CLEAR PARVA.
SELECT SINGLE PARVA INTO PARVA
FROM USR05
WHERE BNAME EQ SY-UNAME AND
PARID EQ 'FO2'.
IF PARVA+4(1) EQ 'X'.
FUN_KEY = '=PBBP'.
ELSE.
FUN_KEY = '=BP'.
ENDIF.
this code has Syntax Error.
when activated, 'statement is not accessible' message is displayed.
in ECC5.0, this code is just warning.
I want to know
which cannot module pool's TOP program include process logic,
specially in ECC 6.0.
Sorry, my poor english..
Thanks in advance..
Hi...
I'm upgrade from ECC 5.0 to ECC 6.0
My problem is syntax error.
The following code is part of source.
in MZXXTOP.
DATA : PARVA LIKE USR05-PARVA.
CLEAR PARVA.
SELECT SINGLE PARVA INTO PARVA
FROM USR05
WHERE BNAME EQ SY-UNAME AND
PARID EQ 'FO2'.
IF PARVA+4(1) EQ 'X'.
FUN_KEY = '=PBBP'.
ELSE.
FUN_KEY = '=BP'.
ENDIF.
this code has Syntax Error.
when activated, 'statement is not accessible' message is displayed.
in ECC5.0, this code is just warning.
I want to know
which cannot module pool's TOP program include process logic,
specially in ECC 6.0.
Sorry, my poor english..
Thanks in advance..
2009 Apr 10 10:30 AM
Hi
The TOP-include should be used for declaration data only, so to place that statament SELECT there doesn't make sense.
Max
2009 Apr 10 10:34 AM
Declare FUN_KEY in the data statement before. The actual code should ne in PBO or PAI, not in TOP include
2009 Apr 13 9:26 AM
Hello Min,
I think one of the reasons may be, you haven't declared FUN_KEY.
Moreover, TOP_INCLUDE is used in Module Pool Programming to define all declarations; for example;
PARVA, FUN_KEY and all other declarations should be done in Top-Include .
When you want to create Top-Include; double click on that one which is given by program itself, with comment Global Data.
Moreover, activate that Include.
Try using it.
And I think another reason is, the Top-Include which are using is not activated.
please check it.
Regards,
Zahack
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |