Standard include

Can we include standard includes in our custom function group?

actually yes, you can do that, and you do not have to copy them first.
Tho, be aware that these includes are then again SAP standard, and changes to them are modifications.
So if you plan to have the functionality of a standard include, but have to change something in the way it works, then better copy them first.
But then again you need to check after every upgrade or hotpackage installation, if the standard included was added new funtionality which you also need, since those wont be reflected in your copied Z-include.

Similar Messages

  • Creating a Function Module for Standard Include

    Hi ALL,
    There is a standard Include in that i have created 1implicit Enhancement Point and there is 200 lines code is there ,so my client is saying to keep this code in function module. This is the below code  can any one do how to write this code in function module with passing parameters and all the stuff.Means Import parameters ,Export parameters and Source code ?
      Perform change_order_va02.
      data: l_vbfa like vbfa,
            l_FKART like vbrk-FKART,
            l_fksto like vbrk-fksto,
            l_sfakn like vbrk-sfakn.
      data: begin of lt_vbfa occurs 0,
              vbeln like vbfa-vbeln,
            end of lt_vbfa.
      if komfk-vbtyp ca 'PO'.              " debit/credit memo
        select vbeln into table lt_vbfa from vbfa
               where vbelv = KOMFK-VBELN and
                     ( vbtyp_n = '5' or vbtyp_n = '6' ).
          loop at lt_vbfa.
            clear: l_fksto, l_sfakn.
            select single FKART fksto SFAKN into (l_FKART, l_fksto, l_sfakn)
                   from vbrk
                   where vbeln = lt_vbfa-vbeln.
            check: sy-subrc = 0,
                   l_fksto is initial,
                   l_sfakn is initial.
                 message e310(zz) with l_FKART l_vbfa-vbeln.
          endloop.
      endif.
    *}   INSERT
    ENDFORM.
    *{   INSERT         D01K9A0PBY                                        1
    *&      Form  change_order_va02
      228810/45115 FUWAGNK implement VA02 into VF01 for Turkey
    -->  p1        text
    <--  p2        text
    FORM change_order_va02.
    Tables : *knvi, *lips, *likp.
    DATA: Z_MODE value 'N'.
    data: hf-date(10).
    DATA: BEGIN OF BDC_TAB OCCURS 0.
           INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDC_TAB.
    DATA: BEGIN OF BDC_MSG OCCURS 0.
           INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF BDC_MSG.
    select single vbeln vgbel from *lips into corresponding
           fields of *lips
                  where vbeln = KOMFK-VBELN.
    select single vbeln LFART from *likp into corresponding
           fields of *likp
                  where vbeln = KOMFK-VBELN.
    if *likp-lfart = 'LF'.
    select single vbeln vkorg kunnr from vbak into corresponding
           fields of vbak
                  where vbeln = *lips-vgbel.
    if vbak-vkorg = '1252'.
       clear bdc_tab. refresh bdc_tab.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '102 '     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move: 'VBAK-VBELN'  to BDC_TAB-FNAM,                   "Doc.Number
              VBAK-VBELN   to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                 "OK-CODE
              '/00 '        TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '4001'     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                 "OK-CODE
              'KKAU '      TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '4002'     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       select single * from *KNVI into *KNVI where KUNNR = vbak-kunnr
                                               and ALAND = 'TR'
                                               and TATYP = 'MWST'
                                               and TAXKD = '2'.
       if sy-subrc =  0.
          exit.
       endif.
       move: 'VBAK-WAERK'  to BDC_TAB-FNAM,               "Currency
             'YTL '        to BDC_TAB-FVAL.
             APPEND BDC_TAB. CLEAR BDC_TAB.
       write sy-datum to hf-date.
       move: 'VBAK-AUDAT'  to BDC_TAB-FNAM,                   "Doc.Number
              hf-date      to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move: 'VBKD-PRSDT'  to BDC_TAB-FNAM,                   "Doc.Number
              hf-date      to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                  "OK-CODE
              '/11 '        TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       CALL TRANSACTION 'VA02'
            USING BDC_TAB MODE Z_MODE UPDATE 'S'
                  MESSAGES INTO BDC_MSG.
         IF SY-SUBRC NE 0.
            clear bdc_tab. refresh bdc_tab.
         endif.
      endif.
    endif.
    ENDFORM.                    " change_order_va02
    Regards,
    Venkat

    ans

  • Syntax check error in the standard include

    Hi,
    I have modified one standard include using access key to insert one logic as per businness requirements.Now after inserting that code iam getting syntax error but while activating it is not showing the error and getting activated.
    The include is V05XZZMO in that i have inserted code is as follows
    FORM MOVE_USERFIELDS USING ZP.
      CASE ZP.
        WHEN 'VBRK'.
        header
        MOVE LVBRK-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        1
              MOVE LVBRK-ZUONR TO LFAMTV-ZZZUONR.
    *}   INSERT
        WHEN 'VBRP'.
        item
        MOVE LVBRP-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        2
       MOVE LVBRP-MATWA TO LFAMTV-ZZMATWA.
    *}   INSERT
      ENDCASE.
    ENDFORM.
    now it is throwing error saying that LFAMTV doesn't exist...when I double click on that it is taking me to the FM RV_INVOICE_VIEW_2 where it is defined....
    Can anyone know the reason why it is throwing the error when we go for the syntax check but when u activate the program it is getting activated.. so can this error can be neglected?
    Any help on this will be appreciated..
    Regards,
    Rohan.

    Hi,
    First comment ur code and then activate the include.
    Now put a break point in the form and then in the debug mode check the structre LFAMTV is visible or not.
    if yes then once again add ur code and then activate the whole program.
    and now once again debug it and see...., whether the values are updated to the strurure LFAMTV.
    Regards,
    Nagaraj

  • Runtime Error in Standard Include

    Hi,
    After upgrading from SAP 4.7 E to ECC 6.0, we have facing few problem in execution of Reports..
    Main problem is that, it called Standard INCLUDES..
    Error:-
    Short text
        Format error with IMPORT.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZHINCANN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    But, this program called a standard INCLUDE HINPAYMACRO ... that dump goes in it.
    What's the problem...plz clear..
    Thanks

    Hi,
    Error Message is:....
    Short text
        Format error with IMPORT.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZHINCANN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_IMPORT_FORMAT_ERROR', was not
         caught in procedure "IMP-RESULT-CLSTR" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    When attempting to IMPORT the object "EPF", there was a format error.
    Unable to read an IMPORT dataset.
    The dataset may have been processed using SQL and is
    thus no longer readable for the IMPORT.
    How to correct the error
        Determine which actions resulted in the destruction of the
        dataset.
        The exception must either be prevented, caught within proedure
        "IMP-RESULT-CLSTR" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
    This is complete error message...
    Now plz. tell...

  • 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

  • Can we add the standard includes inside a function exit.

    Hi,
    Can we add the standard includes inside a function exit.
    I want to add 4 to 5 standard includes. If iam adding it it says report or program already exists.
    Can anyone tell me is it possible or we can modify the only the data which is coming to that function module .
    Please help me on this.
    Thanks,
    Rose.

    hi santhosh,
      The data needed for those includes are also exist in the funtion module exit. I want to add those includes and in one include just i want to add some 10 to 15 lines of code. Is it possible.
    If i include all those includes inside the function exit it says report or program name already exists. When i double clicked on the error it takes me to a line in 1 include which has function-pool statement.
    How can i eradicate this error.
    Can u please help me on this.

  • Package name which contain user exit  in standard include name

    hai experts,
    can i know the package name which contain user exit mean standard include which contain forms of the perform. or give some suggestion to find this exit for purticular tcode.
    useful reply will be awarded.
    regards,
    jai.m

    Hai,
    it is not over thare....
    actualy i need to do some work at the time of the save document of mb1b transaction. my need is if any one exit or custmer exit or badi has trigger at the time of save the document in mb1b transaction.
    regards ,
    jai.m

  • Pricing requirements - VOFM tranx (standard include)

    Hi,
    I want some information about the pricing requirements in the tranx code: VOFM.. For each standard include of the parent include: LV61ANNN, there are two forms: kobed_xxx and kobev_xxx.
    1) What is the different between these two forms and what is their effect..
    2) in my requirement, it was not mentioned as to in which form do i need to write the required code. (Though it was said that i need to copy one of stnd include)..

    hi Rohith
    just go to this thread link
    Re: VOFM - Requirements
    this must answer your queries
    hope this helps
    regards
    Aakash Banga

  • Standard include in Zprogram

    Hi Friends,
    One standard include is used by customer Zprogram. When i tried to see what includes they used using the table D010INC. It is showing the standard include. But when i searced in the program i am unable to find it. Ple help me in this regard how i can found where the zprogram is used the standard include.
    Regards
    Sapna

    hi Sapna,
    The information got from D010INC table contains all the includes which are directly or indirectly used in the master program.
    The best way to see what are the includes being used is to goto se80 and expand the node <b>Includes</b>, in the left pane. This will list all the includes called directly from the program.
    D010INC will contain includes which corresponds to function-modules/methods used in your program, which are not directly connected with the program.
    Hope this helps,
    Sajan Joseph.

  • Difference 4.7 and ECC 6.0 - standard includes and programs

    Can someone provide me the list of the
    standard programs and includes which have been affected in the version 4.7 and ECC 6.0
    thanks.
    regards,

    Hi Pulla,
    We use R/3 4.7 version for Travel Management (FI-TV) with fairly good features but the latest  version ECC 6.0 which is Enterprise Central Component version 6.0 gives you the opportunity to use ESS/MSS ie, using portal to create the trips/claims as against interfaces. 
    Therefore one difference would be to get the work done easily by logging into a internet site and complete the trips/claims which in turn updates your database tables where as in 4.7 there is no such functionality to use portal to make an expense claim.
    There might be other feature enhancements available in 6.0 which I am currently unaware of but surely SAP gurus in this forum will be able to provide more on that.
    Hope the above provides more info.
    Rgds
    CONMJI

  • Copy standard include to z include

    I have copied the include  into   LYMCB3_1I01
    Now i want to add some cl=ode here but where i have to add the code there enhancement Section already exist...
    Now when i try to add any code it gives me enhancement creation message and when i tried to create it it asks for
    : enhancement spot , text , package (Must be standard ) , request ......
    Though it doesnt allow me to create it

    That means you have not specified the parameter name to which the selected value will be returned from the search help. Take a look at the standard one and mention the same parameter name.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Is CS3 Web Standard included as part of FrameMaker 10?

    I installed FrameMaker 10 on my PC, and apparently Adobe's CS3 Web Standard was included in that installation.  Is Creative Suite 3 Web Standard a necessary component of FrameMaker, or can I remove it from my PC and still use FrameMaker 10 without a problem?  

    With a nod toward the movie Fargo, I'm not so sure I agree 100% with your policework, there, Lou"... (see the 3:00 mark of http://www.youtube.com/watch?v=9n3k0gqtYgM)
    FrameMaker 10 installs with, well, FrameMaker 10. There's a native capacity to create PDF, ExtendScript, probably some version of the Bridge product, but a distinct lack of other components (except, maybe, Version Cue?).
    You can most certainly remove the Web Standard install, if you don't need the apps in the included screenshot!

  • Modify standard include of Custom Function Group

    Hi experts!
    I have a include LZFG_VT00 into ZFG Function group.
    SAP created this include when I set Table maintenance generator in SE11 for table ZFG_TABLE1.
    SAP wrotes this code in include automatic:
       view related data declarations
      generation date: 13.08.2007 at 13:17:25 by user DJLU
      view maintenance generator version: #001407#
    ...processing: ZFG_TABLE1......................................
    DATA:  BEGIN OF STATUS_ZFG_TABLE1                    .   "state vector
             INCLUDE STRUCTURE VIMSTATUS.
    DATA:  END OF STATUS_ZFG_TABLE1                    .
    CONTROLS: TCTRL_ZFG_TABLE1
                TYPE TABLEVIEW USING SCREEN '0001'.
    .........table declarations:.................................
    TABLES: *ZFG_TABLE1                    .
    TABLES: ZFG_TABLE1                     .
    The problem is:
    Table ZFG_TABLE1 is deleted.
    View  ZFG_TABLE1 is deleted.
    But, you can see, include LZFG_VT00 declares ZFG_TABLE1 and I can not change it because is a SAP standard program.
    Any suggestions?
    A lot of thanks in advance.
    Regards.
    djlu

    Hi,
    IF the table is deleted, then goto SE80 & delete the corresponding function group as well.
    Best regards,
    Prashant

  • Problem in Standard Include

    Hello Guru's,
             I have a requirement like I have SO10 include(That include in French language),It is used in Script, But I am not able to see the output same as So10 include, Insted of displaying the ' charecter it is displaying the # Charecter.
    Thank You,
    Usha.G

    Hi ,
    Tell me tell you about a scenario that I faced.
    I worked in a Poland Client and the script output was always filled with special characters.
    The steps followed to rectify this were :
    1) 4 Polish fonts were installed.
    2) In control panel of the system , in Regional & Lang options , the Location and Format was changed.
    3) The keyboard settings was changed to Polish Keyboad.
    4) Before logging into the particular client , The language preferences (Available in Advanced setting) was changed accordingly.
    5) The System itself was logged in PL(polish) language.
    Once all this was done , the script output was displayed properly with no weird characters.
    Maybe yours is also a similar issue.
    Do try and let me know if it works for you.

  • Syntax error in standard include RKEB090F in ECC6

    Hi,
    I have one issue with this include program RKEB090F. This program is being used in one of the custom program while checking this program we are getting syntax error field P_USEDB is unknown.
    When I compared 4.7 and ECC 6 version, the code contains in 4.7 version is
          FORM INITIALIZATION_EXIT                                      *
    FORM INITIALIZATION_EXIT.
    ENDFORM.
    but in ECC 6 the code contains
          FORM INITIALIZATION_EXIT                                      *
    FORM INITIALIZATION_EXIT.
       if rkb1d-smode = '7'.
         CALL FUNCTION 'AS_DATASOURCE_INIT'
           EXPORTING
             I_REPORT                   = 'KE30'
             I_REPORTTYPE               = 'TR'
           IMPORTING
             E_USE_DATABASE             = P_USEDB
             E_USE_ARCHIVE              = P_USEAR
             E_USE_INFOSYS              = P_USEAS
             E_ARCHOBJ                  = P_OBJECT
             ET_ARCH_SEL                = SO_FILES[].
         G_RKB2A-OBJECT = P_OBJECT.
         G_RKB2A-USEDB = P_USEDB.
         G_RKB2A-USEAR = P_USEAR.
         G_RKB2A-USEAS = P_USEAS.
         G_RKB2A-SO_FILES = SO_FILES[].
         PERFORM HANDLE_DATASOURCE USING 'EX'.
       endif.
    ENDFORM.
    due to this code I am getting the syntax errors. How can we know how this code is added.
    Please let me know if you get any inputs.
    Regards,
    Jyothi CH.

    Hi Guys,
    I am having the same syntax error with this include RKEB090F and the Field P_USERB, but instead the program is a SAP Program. I have been trying to archive a table and I keep getting this error for different G* programs. I regenerate one, the other one gives error. I tried regenerating all of them and I still got this error.
    Error in the ABAP Application Program
    The current ABAP program "SAPLKYP4_UC" had to be terminated because it h
    come across a statement that unfortunately cannot be executed
    The following syntax error occurred in program "GPC6ZZ9KJ35AEXCXNZFQDJG3
    in include "RKEB090F " in
    line 17:
    "Field "P_USEDB" is unknown. It is neither in one of the specified tabl"
    "es nor defined by a "DATA" statement. ."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    PLEASE HELP
    --Thanks in Advance,
    Fiyaz

Maybe you are looking for