Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Module Pool : xxxxTOP syntax in ECC 6.0

Former Member
0 Likes
2,429

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..

3 REPLIES 3
Read only

Former Member
0 Likes
2,157

Hi

The TOP-include should be used for declaration data only, so to place that statament SELECT there doesn't make sense.

Max

Read only

Former Member
0 Likes
2,157

Declare FUN_KEY in the data statement before. The actual code should ne in PBO or PAI, not in TOP include

Read only

Former Member
0 Likes
2,157

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