‎2007 Mar 19 8:48 AM
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.
‎2007 Mar 19 9:09 AM
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>
‎2007 Mar 19 8:52 AM
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...
‎2007 Mar 19 9:00 AM
Hi,
Its not an error.
You are trying to activate an include.
Just activate the main program. That will do..
Thanks and Regards
Manish
‎2007 Mar 19 9:09 AM
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.
‎2007 Mar 19 9:09 AM
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>