Statement inaccessible in ECC 6.0 Include program

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.

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>

Similar Messages

  • How to use the variables of Function exit in the include program

    i have a problem of using the variables of a function exit in the include program..
    If i use those variables there will be an error indicating 'Field FEBVW_IN is unknown. It is neither in one of the specified tables nor defined by a DATA statement'. Please help... Below is the code of the function exit:
    FUNCTION EXIT_SAPLIEDP_202.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IDOC_CONTROL_INDEX)
    *"     VALUE(IDOC_DATA_INDEX)
    *"     VALUE(FEBVW_IN) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_IN) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_IN) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_IN) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_IN) LIKE  FEBPI STRUCTURE  FEBPI
    *"  EXPORTING
    *"     VALUE(I_FIMSG) LIKE  FIMSG STRUCTURE  FIMSG
    *"     VALUE(FEBVW_OUT) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_OUT) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_OUT) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_OUT) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_OUT) LIKE  FEBPI STRUCTURE  FEBPI
    *"  TABLES
    *"      IDOC_CONTROL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_AVIP STRUCTURE  AVIP OPTIONAL
    *"      IDOC_AVIR STRUCTURE  AVIR OPTIONAL
    *"      IDOC_AVIT STRUCTURE  AVIT OPTIONAL
    *"  CHANGING
    *"     REFERENCE(IDOC_AVIK) TYPE  AVIK OPTIONAL
    *"  EXCEPTIONS
    *"      PROC_ERROR
      INCLUDE ZXF08U10.
    Here is the code for the include program.
      INCLUDE ZXF08U10
    MOVE febvw_in TO febvw_out.

    Sometimes you will get this error message when checking include code in exits even though there is really no error - it happens because the include does not realise it is in the function due to the navigation index being out of date.
    Try activating the code - it may work even though the check said there were errors.
    You can also get this issue when trying to drill down on the field in the include to view its structure.
    Andrew

  • Problem in creating include program for customer exit for BC425_01

    Hi,
         I want to write a customer exit for transaction BC425_01. For identifying the include program for exit , i go to System->Status.There I double click on the program name(GUI).Then I perform a 'FIND' in main program for 'customer-function' keyword. I get 3 search results with "CALL CUSTOMER-FUNCTION '001' " , "CALL CUSTOMER-FUNCTION '002' " , "CALL CUSTOMER-FUNCTION '003' ".
    Now i double click on CALL CUSTOMER-FUNCTION '001'  and i am taken to the code of program where this function is called in MODULE cust_check INPUT. I double click on CALL CUSTOMER-FUNCTION '001'  and then I am taken to the function module code which contains a single statement 'INCLUDE ZXBC425G01U01 .' .
    Now I double click on this include program so that I can write my own code. But when i double click on it , a message displayed 'Program names ZX.. are reserved for includes of exit function groups'. Hence I am not able to creates this include program and write my coding.
    Kindly Help
    THANKS

    Hi Amber,
    Then you click enter button.It is asking to create object with that include name ZXBC425G01U01 in a pop-up.You  should select YES option.It will ask package . Give the package name and save.Then include program is created and allowed you to write your own code.
    Thanks,
    Prasad GVK.

  • Subroutine inconsistency due to deletion of Include program

    Hi All,
          I created an include program(saved in local object) within my report(this was previously stored in a package) and I copied a few performs and forms from my report into the include program, but then i decided to go for the code without the include and commented the include statement in my report and deleted the include program(in se38). But now when I click on the perform statement in my report it gives a message "Object ZXY not found". The ZXY is my include program. Also when I view the report in se80 I find repetitive sub routines.Also I am not able to delete the duplicate sub routines in se80.
         How can we overcome this inconsistency in duplication of subroutines, how to suppress the message and make sure the code is consistent?

    Hi,
          So currently all the performs in program are part of some other include which is part of your main program?Because if not , obviously an error will be thrown.
    Have you tried the option of rebuilding object  list for the whole program?
    Right click on the program name in SE80--> Other functions->Rebuild object List
    Regards,
    Arun
    Edited by: arun warrier on Nov 30, 2011 1:36 PM

  • Inserting an Include program into all Z programs dynamically using a BDC.

    Hi Experts.
    I've created a BDC to insert a include program (for Authorisation) into all our Zprograms.
    It works but if there is code written on the line where the include has to go it is simply overwritten by the new include.
    Is there a way to search the code lines for example to see on which line the "REPORT" statement is and
    to be able to then dynamically "Hit Enter" to insert a blank line after the report statement sothat the existing code is not
    overwritten.
    Regards
    Vic

    Thanks for sharing your brilliance.
    It's much appreciated
    If I have to insert my lines in, can I update directly from the itab or is there another process
    behind that.
    My reasoning is if there is no space for the Load-of-program and include I'll have to insert it.
    Edited by: Vic Delport on Dec 10, 2009 11:12 AM

  • Subroutine (perform) inside the include program

    Hi all,
    i am writting a subroutine inside an include.include itself is present inside a subroutine.
    form x.
    include xyz.
    endform.
    inside this include, structure of program is like below.
    include xyx.
    perform y.
    perform z.
    form y.
    endform.
    form z.
    endform.
    so i am geting error like before statement form structure introduced by form must be ended with endform.
    can i use perform & form statement inside include?
    if not then how is it possible to put perform statements inside that include. this include is nothing but an exit
    of program--MV50AFZ1.plz suggest me .it is very urgent.
    any suggestion will be highly appreaciated.
    Regards
    pabitra

    <b>inside this include, structure of program is like below.</b>
    include xyx.
    perform y.
    perform z.
    form y.
    endform.
    form z.
    endform.
    Maintain separate Include to keep the FORMS when u ae defining PERFORMS in Include program. Then it will allow u to activate

  • Include program

    Hi all,
    I am tyring to develop an report.In this I want the definition of the subroutine in an include. This the code I have written :
    <b>Main program :</b>
    REPORT zotcrgt003 .
    INCLUDE z_i_otcrgt003. " include for data Declarations.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
    PARAMETERS : p_zbukr TYPE regup-zbukr  ,
                 p_zlsch TYPE regup-zlsch  ,
                 zw_laufd LIKE f110v-laufd ,
                 zw_laufi LIKE f110v-laufi .
    SELECT-OPTIONS : s_kunnr FOR regup-kunnr.
    SELECTION-SCREEN END OF BLOCK b1 .
    PERFORM language_translation.
    INCLUDE z_i_otcrgt0031. " include in whihc i Defined the above form
    break-point.
    <b>Include program :</b>
    form language_translation.
    SELECT SINGLE * FROM ZTFIN WHERE
                               fname = 'Z_F140_ACC_ST_01'
                          AND  spras = 'E'.
    SELECT SINGLE * FROM ztfin INTO t_ztfin WHERE
                                        fname = 'Z_F140_ACC_ST_01'
                                   AND  spras = 'I'.
    endform.                    " language_translation
    This is working fine, but when I keep the include statements together like this  :
    INCLUDE z_i_otcrgt003.
    INCLUDE z_i_otcrgt0031.
    I am getting an error saying statement is not accessible.
    Can anyone explain me what is it so ?
    Regards,
    Varun.
    Message was edited by: varun sonu

    Hi
    I think the problem isn't the INCLUDE statament, but the PERFORM statament.
    You can write this code:
    REPORT ZCCCC.
    INCLUDE ZCCCC0.
    INCLUDE ZCCCC1.
    START-OF-SELECTION.
    PERFORM WRITE_NUMBER.
    The form WRITE_NUMBER is defined in ZCCCC1.
    But you can't write this code:
    INCLUDE ZCCCC0.
    INCLUDE ZCCCC1.
    PERFORM WRITE_NUMBER.
    START-OF-SELECTION.
    Max

  • Include program error

    Hello to all,
    I am including one program to my main program. itab is defined in include program.
    I am reading itab in main program using  'read table itab index x'.
    but after executing main program there is error that this statement is not accessible.
    can u tell me ?
    Thanks a lot.
    Regards.

    Thanks for reply.
    data is filled in   itab  in include program .
    & reading in main program with index .

  • Stop an Include Program

    hello,
    I have a main program in which i have two include programs. On a give condition i need to terminate first include and come back to the main program.
    Can anyone tell me how to do this???

    A trick could be embedding the includes by a loop statement, something like:
    DO 1 TIMES.
      INCLUDE zinc1.
    ENDDO.
    DO 1 TIMES.
      INCLUDE zinc2.
    ENDDO.
    Then you can exit the include by the EXIT or CHECK statement. Somewhat 'dirty' but nevertheless also use by SAP sometimes.
    regards Jack

  • Which is better Function modules or Include programs?

    Hi,
    I am working on an enhancement and it has lot of screens with a tree structure on the left. Now we are planning to have each screen to have its PAI/PBO and the processing logic to be in seperate include programs.
    However in our team we have debate as to go in for include programs or for Function modules. The opinion here is that the program should not take long time to load if its going to be include programs.
    Please suggest what approach is better, is it Function modules or include programs.
    Any other suggestion is also welcome.
    Thank You,
    SAC.

    Thank You all.
    In this enhancement I have about 13 screens and has business logic in each. So if I go with each screens and business logic coding in seperate Function modules than includes under 1 function group is adviceable?
    Using object oriented approach is really the best thing here, but however most of my team members are not welversed in OO concepts. The deadlines are very tight for grooming my team members as well.
    My only concern is that with so much screens and business logic in 1 transaction should not bring down this programs performance when its executed.
    Any other suggestions to keep in mind for this is appreciated.
    Thank You.
    SAC

  • How to exclude the standard Include programs in Code Inspector?

    I am running code inspector (SCi) on all the development objects using a package. But in certain repository objects standard include programs have been used. I want to exclude the standard include programs while running SCI on the package. What are the ways to achieve this?

    Hi,
    while defining an object set choose:(in the menu)
    Edit - Exclude View Maintenance Function Groups.
    This should exclude most or at least some of the includes from being checked.
    Kind regards,
    Hermann

  • How to perform subroutine form in an include program?

    Hi all,
    I would like to perform an external subroutine form residing in an include program from a customer function user exit. I tried using the following code, but it dumps:
    PERFORM <form name> IN PROGRAM (lv_program)
               TABLES <a> <b> USING <c>.
    In the dump analysis I see that "Program <include name> is type I and therefore cannot be generated" and "The current ABAP/4 program attempts to call the program <include name> but this program cannot be executed. Therefore,the current program had to be terminated. "
    If the include can't be generated, is there another way or method I could directly call the form without needing to copy the standard code to an own function or form?
    Best regards,
    Mikko

    Hi,
    take this example..
         perform idoc_status_record_write in program sapmsed7 using
                                                    x_edidc-docnum
                                                    c_idoc_status_ready
                                                    space
                                                    space
                                                    space
                                                    space
                                                    space
                                                    space.
    in this the from is in include, but while calling you need to call with the help of main program.
    in this case <b>SAPMSED7</b> main program, but form is in include <b>MSED7F05</b>
    Regards
    vijay

  • When trying to send a picture as a attachment io a email its states a I to install a email program?

    Whwn trying to send a pictsure as a attachment to a email,n it states I need to install an email program, I allready email.  What do I need to do.

    Please have a check on the following link:
    http://helpx.adobe.com/photoshop-elements/kb/freeze-or-error-no-email.html

  • Activating Include Program in Exit Function EXIT_SAPLAAPM_002

    Hi,
    Thed System does not allow me to create/activate the Include Program ZXAAPMU02. I am getting message : Program names ZX... are reserved for includes of exit function groups. Can you please help me?
    Appreciate Your Help.
    Thanks,
    Kannan

    hi Kannan,
    when you get this message, just press enter. System will ask if it should create ... just say yes and you can create the exit code.
    hope this helps
    ec

  • Table for Include Programs.

    Hi,
    Can anyone tell me which table stores the include program names of a Module Pool.??
    regards,
    Ramakanth

    Thanks for your Reply..
    My exact requirement is to identify the main program for all the include programs. REPOSRC gives the include program name but i think it doesnt give the main program name from where include is fetched.
    So I need table which stores the main program / Module Pool and its includes.

Maybe you are looking for

  • Cannot get maile connection to server failed

    followed the instructions for icloud set up in apple support for ipad and iphone even deleted the account and then set the account up with the correct ID and password.  I do use a different ID  than my apple ID for my icloud account.  I use my me.com

  • IMAP Email / Folder Issues / Deleting Issues

    Recently purchased the Palm Pre and love it.  I use an IMAP acount through a webhosting company (oneworldhosting).  I am able to get and receive email with no problems. Only issue is that under "Default Folders" in "Preferences", it says "none yet av

  • Node over Firewire

    I have a dual G4 that is connected to a MBP 17" over fire wire. I can see the node listed in the node list. I can see the meter for the node load. File sharing is on and firewalls are disabled, but none of the nodes light for any track. I am running

  • Question about gateway package

    When I follow Oracle Transparent Gateway for DRDA installation guide, I don't quite understand DRDA server configuration part. What is Gateway package store procedure? Do we have to define it on DB2 server in order to make oracle gateway work? Thanks

  • Adware, Malware and Security assistance pls

    Hi I'm a little concerned as to possible vulnerabilities with my Macbook pro I've been reading the discussions and checked out thomas_r's Safe Mac, but my question is perhaps slightly different or more specific I definitely get more ads based on pref