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

statement inaccessible in ECC 6.0 Include program

Former Member
0 Likes
589

Hi all,

I am working on an upgrade project from 4.6c to ECC 6.0.

The code is correct but the statement is inaccessible in include 'ZMV21TOP'.

Kindly help me to understand the problem..

Here is the code for your consideration..

----


  • INCLUDE ZMV21TOP *

----


PROGRAM ZV21_MV45A MESSAGE-ID ZCIC.

TABLES: TVKO,

TVKOV,

TVTA,

TVKBZ,

kna1,

T188,

T151,

TVV4,

TVV5,

TVV1,

T001W,

tvakz,

ZMKTUSG,

zmktseg,

zsalestype,

tvlv,

tvakt,

tvak,

KUAGV,

KNVK,

ZTELE.

TYPE-POOLS vrm.

TYPES: tt_bdcdata TYPE STANDARD TABLE OF bdcdata.

DATA:

wa_za21_header TYPE za21_header,

bdcdata TYPE tt_bdcdata WITH HEADER LINE,

opt LIKE ctu_params,

opt1 LIKE ctu_params,

dismode(1) TYPE c,

updmode(1) TYPE c,

ok_code LIKE sy-ucomm,

mess1(150) TYPE c,

mess2(150) TYPE c,

data_ok(1) TYPE c,

return,

f12 LIKE sy-loopc.

DATA: str1 TYPE string,

str2 TYPE string,

str3 TYPE string,

str4 TYPE string,

l_mstring(80).

DATA: auart_codes TYPE vrm_values.

DATA: INCL_ITEMS.

DATA: NO_ERR.

data: first_time.

DATA: c_answer.

DATA: V_TXTPA LIKE KUAGV-TXTPA.

data : DA_TELF1 like ztele-TELF1.

data : Q_VBELN LIKE VBAK-VBELN.

opt-dismode = 'N' . >>(STATEMENT IS IN ACCESSIBLE HERE)<<

opt-updmode = 'S'.

opt-nobinpt = 'X'.

opt-racommit = 'X'.

opt1-dismode = 'A'.

opt1-updmode = 'S'.

opt1-nobinpt = 'X'.

opt1-nobiend = 'X'.

dismode = 'N' .

updmode = 'S' .

I would be grateful to you all as I need the solution urgently.Please help.

Thanks,

Rekha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

Hi Rekha,

the cdoe you write in athis include should be inside a FORm-ENDFORM or a MODULE-ENDMODULE block to be called from the main programs.

like this:

form <b>test.</b>
opt-dismode = 'N' . >>(STATEMENT IS IN ACCESSIBLE HERE)<<
opt-updmode = 'S'.
opt-nobinpt = 'X'.
opt-racommit = 'X'.
opt1-dismode = 'A'.
opt1-updmode = 'S'.
opt1-nobinpt = 'X'.
opt1-nobiend = 'X'.
dismode = 'N' .
updmode = 'S' .
<b>endform.</b>

4 REPLIES 4
Read only

Former Member
0 Likes
543

HI,

1.Plz comment the TABLE statement.(if its wrong go for 2nd)

2.Otherwise u missed any table name in TABLES statement.

i am not sure...

Read only

Former Member
0 Likes
543

Hi,

Its not an error.

You are trying to activate an include.

Just activate the main program. That will do..

Thanks and Regards

Manish

Read only

0 Likes
543

Ya I know it is not.

I have done that.

But main program can't be activated unless and until includes are error free.

And this include has a problem.

Thanks,

Rekha.

Read only

Former Member
0 Likes
544

Hi Rekha,

the cdoe you write in athis include should be inside a FORm-ENDFORM or a MODULE-ENDMODULE block to be called from the main programs.

like this:

form <b>test.</b>
opt-dismode = 'N' . >>(STATEMENT IS IN ACCESSIBLE HERE)<<
opt-updmode = 'S'.
opt-nobinpt = 'X'.
opt-racommit = 'X'.
opt1-dismode = 'A'.
opt1-updmode = 'S'.
opt1-nobinpt = 'X'.
opt1-nobiend = 'X'.
dismode = 'N' .
updmode = 'S' .
<b>endform.</b>