Regarding Include which is generated during function module

hi ,
IN quality   there is include  LCFBTT12 which is  standard include generated during creation of function module  "CF_BT_CO_FHM_READ_FROM_DB".
but in production we are not able to find  this include  ,whereas there is  function module  .
but now in program where it is used is giving error  that include report not found LCFBTT12  .
i want to know how this include is deleted  from system  .
is there any option  to know this  ?.
regards
Deepak.

Hi all,
I know this is an old thread, but just wanted to add we had this issue as well, with the LCFBTT12 include during the SPUMG "additional preparation steps." We are running 4.7 and SAP_BASIS level 620, Level 68.
We did not have this problem in any of our testing systems, so it only happened during production, and caused alot of short dumps. This thread was alot of help in quickly identifying the problem.
One other note that was relevant to this issue: 1457258
SAP support was able to resolve the issue, and here were their instructions. (Moderators feel free to remove this if it is not appropriate to post message information here):
Include "LCFBTT12" belongs to old generated test frame for a function
module in function group CFBT. This old generated test report is not
used anymore and can be deleted.
Please run report RS_TESTREPORT_DELETE_ONLINE and after that report
RS_TEST_REPORT_GENERATE_JOB as described in note 931824. This should
solve the problem.

Similar Messages

  • Document number generated from function module K_COSTS_PLAN_INTERFACE_TOTAL

    Dear friends,
      I am using function module K_COSTS_PLAN_INTERFACE_TOTAL to upload the Planning costs, After this function module call I need the document number generated for that item, but there is no return parameter from this function module which would give me the document number generated. Please let me know how to get the document number after this function module call.

    Hi...
    Try this function module..
    CALL FUNCTION 'BAPI_DOCUMENT_GETLATEST2' "
      EXPORTING
        documenttype =              " bapi_doc_aux-doctype  Document type
        documentnumber =            " bapi_doc_aux-docnumber  Document number
        documentpart =              " bapi_doc_aux-docpart  Documentation - text lines
        documentversion =           " bapi_doc_aux-docversion  Document version
        multilevelexplosion = 'X'   " bapi_doc_aux-flag  Document management indicator
    *   docbomchangenumber = SPACE  " bapi_doc_draw2-ecnumber  Change number
    *   docbomvalidfrom = SY-DATUM  " bapi_doc_draw2-validfromdate  Valid-From Date
    *   docbomrevisionlevel = SPACE  " bapi_doc_draw2-revlevel  Revision level
    *   loadlatest = 'X'            " bapi_doc_aux-flag  Document management indicator
    *   loadlatestreleased = 'X'    " bapi_doc_aux-flag  Document management indicator
    *   search_new_maindoc = SPACE  " bapi_doc_aux-flag  Document management indicator
    *   getdocdata = SPACE          " bapi_doc_aux-flag  Document management indicator
    *   getobjectlinks = SPACE      " bapi_doc_aux-flag  Document management indicator
    *   getdocdescriptions = SPACE  " bapi_doc_aux-flag  Document management indicator
    *   getlongtexts = SPACE        " bapi_doc_aux-flag  Document management indicator
    *   getstatuslog = SPACE        " bapi_doc_aux-flag  Document management indicator
    *   getdocfiles = SPACE         " bapi_doc_aux-flag  Document management indicator
    *   getcomponents = SPACE       " bapi_doc_aux-flag  Document management indicator
    *   getclassification =         " bapi_doc_aux-flag  Document Management Indicator
    *   getstructures =             " bapi_doc_aux-flag  Document Management Indicator
    *   getwhereused =              " bapi_doc_aux-flag  Document Management Indicator
    *   sortf_exclude = SPACE       " stpox-sortf   Sort string
    *   sortf_stop_expl = SPACE     " stpox-sortf   Sort string
    *   expl_docs_only_once = 'X'   " bapi_doc_aux-flag  Document management indicator
    *   stop_on_first_error = SPACE  " bapi_doc_aux-flag  Document Management Indicator
      IMPORTING
        return =                    " bapiret2      Return parameter
        newversion =                " bapi_doc_aux-docversion  Document version
      TABLES
        docstructure =              " stpox         BOM Items (Extended for List Displays)
    *   changedversions =           " tchg_vers     Table for Transferring Changed Document Versions
    *   statuslist =                " tstate_order  Sequence of Status Check
    *   documentdata =              " bapi_doc_draw2  BAPIS DMS: document data
    *   objectlinks =               " bapi_doc_drad_keys  BAPIS DMS: document data
    *   documentdescriptions =      " bapi_doc_drat_keys  BAPIS DMS: document data
    *   longtexts =                 " bapi_doc_text_keys  BAPIS DMS: document data
    *   statuslog =                 " bapi_doc_drap_keys  BAPIS DMS: document data
    *   documentfiles =             " bapi_doc_files2_keys  BAPIS DMS: document data
    *   components =                " bapi_doc_comp_keys  BAPIS DMS: document data
    *   all_returns =               " bapiret2      Return Parameters
    *   characteristicvalues =      " bapi_char_values_keys  BAPI Structure for Characteristic Value Assignment (Docs)
    *   classallocations =          " bapi_class_allocation_keys  BAPI Structure for the Assignment of Classes to Several Objects
    *   documentstructures =        " bapi_doc_structure_keys  BAPIs DMS: Structure Data for Several Documents
    *   whereusedlists =            " bapi_doc_structure_keys  BAPIs DMS: Structure Data for Several Documents
        .  "  BAPI_DOCUMENT_GETLATEST2
    And also check this link..
    Send original document from DMS as mail attachment
    Hope this will help you..
    Regards,
    Jhings

  • Suppressing Messages Generated by Function Modules

    Hello,
    Is there a way to suppress a message generated from within a function module even though the function module doesn't raise an exception to be handled?
    I am calling L_TO_CREATE_MULTIPLE and it calls another function module that doesn't raise an exception, it just generates a message. I'd like to be able to handle the message rather than have it displayed to the user.
    Thanks for any help anyone could provide.
    Best Regards,
    Brett

    Brett,
    When I tried it in a normal function module (not RFC), I am not able to suppress the "Information" messages. I have a BDC inside the fn module.
    Do you have any idea?
    Thanks for your help,
    Bala

  • User Exit for Variable which calls to a Function Module is NOT working ???

    Hi all,
        I have a created a variable 'ZNBUSDAY' with Processing Type 'Customer Exit' on 0SCL_DELDAT  (Date). The query is on 0PUR_C04 and passing 0SCL_DELDAT  to Function Module  Z_WORKDAY to get the Next Business Day by using the company Calendar(30). The following code is NOT working and what is WRONG with it, PLEASE? The FM is working FINE.
    DATA: wa_calendar(2) TYPE c value '30',
          wa_znbusday    like sy-datum,
          0scl_deldat    like sy-datum,
          p_days         TYPE i value 1.
    case i_vnam.
       when 'ZNBUSDAY'.
       CLEAR wa_znbusday.
       CALL FUNCTION 'Z_WORKDAY'
         EXPORTING
         CURR_DATE        = 0scl_deldat
         NUMBER_DAYS      = p_days
         CALENDAR         = wa_calendar
       IMPORTING
         WORK_DAY         = wa_znbusday
         l_s_range-low  = wa_znbusday.
         l_s_range-opt  = 'EQ'.
         l_s_range-sign = 'I'.
         append l_s_range to e_t_range.
    endcase.
    Thanks,
    Venkat.

    Hi Venkat,
    Looks like you're only assigning type sy-datum to 0scl_deldat but not the actual value. Try the following:
    DATA: wa_calendar(2) TYPE c value '30',
          wa_znbusday    like sy-datum,
          0scl_deldat    like sy-datum,
          p_days         TYPE i value 1.
    case i_vnam.
       when 'ZNBUSDAY'.
       CLEAR wa_znbusday.
       0scl_deldat = sy-datum.
       CALL FUNCTION 'Z_WORKDAY'
         EXPORTING
         CURR_DATE        = 0scl_deldat
         NUMBER_DAYS      = p_days
         CALENDAR         = wa_calendar
       IMPORTING
         WORK_DAY         = wa_znbusday
         l_s_range-low  = wa_znbusday.
         l_s_range-opt  = 'EQ'.
         l_s_range-sign = 'I'.
         append l_s_range to e_t_range.
    endcase.
    Kind regards,
    Alex

  • Unable to generate IDOCS using IDOC_INPUT_ORDERS Function Module

    Hi,
    I have written a program to post IDOCS using function module IDOC_INPUT_ORDERS .
    In the debugging mode,I found that after the call of this function-module,sy-subrc is set to zero which means that this function-module is getting successfully executed.
    But when I go to WE02 transaction code , i do not see any IDOCS being generated for IDOC Type ORDERS05 .
    Please could someone help me out with this .
    Regards,
    Sushanth H.S.

    hi
    check your ALE configuration:
    go thru the links:
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    reward points for useful ans
    Regards
    Aarti

  • Simple Examples on ABAP Objects without using include or function modules

    Hi,
    I am new to ABAP. I need simple example codes on ABAP Objects. It should not have Includes or Function Modules. Just simple codes, using local & global classes, interfaces etc. I searched the forum and even <<the site that shall not be mentioned>>, but did not find a solution. Kindly help please.
    Regards,
    Smruthi.
    Edited by: Matt on Mar 1, 2009 1:20 PM - forbidden site reference removed

    Hello Smruthi
    If you go to the Forum Search and choose the forum ABAP Objects then serach for ZUS_SDN and you will find many of my simple sample reports.
    These reports usually do not contain any includes but they may call function modules which makes perfectly sense. For example, if you are still doing a direct table SELECT instead of using an available BAPI (or class) to get a business object then this is a clear sign of poor (=non-ABAP-OO) programming.
    Regards
      Uwe

  • Reg include generated in function library

    Hi Experts,
    I have three include generated while creating maintanance view
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.             *
      NEVER CHANGE IT MANUALLY, PLEASE!                           *
    INCLUDE LZZMEDRUCK_SPU01.
                        "ZUS_ME_PRINT_PO_SP1
    INCLUDE LZZMEDRUCK_SPU02.
                        "TABLEFRAME_ZZMEDRUCK_SP
    INCLUDE LZZMEDRUCK_SPU03.
                        "TABLEPROC_ZZMEDRUCK_SP
    All these includes are created in function group zzmedruck_sp.
    I need to delete these includes.
    Thanks in Advance,
    Sashti

    Those include programs for Function modules but these function modules can be used by Table maintenance
    JUST open  function group check if there any function module exists.
    ZZMEDRUCK_SPU01/2/3 or any other that is using the same includes
    try to delete those function module from SE37 but check the dependencies
    of function module.
    INCLUDE LZZMEDRUCK_SPU01-----Just comment it in the main include
             I think there are dependencies for that reason you cannot delete it
            Create a new one and use it
    Regards,
    Gurpreet

  • Function module to set user status during QA11 transaction

    Hi ,
    Anyone knows the function module to set the user status during QA11/QA12  transaction?
    I received the user status 'e.g CFA1' from an idoc data and would like to set the user set based on this idoc value during QA11/QA12 transaction.
    Any function module for this action? BDC seems impossible..
    Thanks.
    Regards,
    Clarice.

    oh i realised this function module can be used
    STATUS_CHANGE_EXTERN
    with a commit statement..

  • Regarding hr function modules

    if to read the data from a RT table which of the following function module will be best
    . <b>pyxx_read_payroll_result</b> or <b>RP_FILL_WAGE_TYPE_TABLE</b>
    what i am doing is i am filling the rgdir table using the function module <b>cu_read_rgdir</b>
    as looking at the query you can see i am totally confused in these function modules
    can anone please let me know that  how i can get data from rt using these function modules coz i am not using ldb PNP in my program and i have got all the data wihtout using it now the only issue left is PF that i can get only from RT TABLE.
    if there is any other way also for that please let me know
    the wage types for pf are /3f1,/3f2./3f3
    if anynobdy can help me in this i can complete rest of the parts by today ..
    sorry for disturbing you all have asked too many questions on rt table
    please dont mind
    just wanted to have a grip on it thats y asking so many queries and thanks for all your replies that you all have given
    pelase help me in this last one also:)

    Hi,
    refer
    Retrieve record from RT
    Re: regarding RT tables
    Hope this solves your purpose.
    Award points if it helps.
    -Gaurang

  • How to change the name of function module ,generated by SMARTFORMS

    Dear All,
    As you all know, SMARTFORMS generates one function module.
    The default name is somewhat like    /1BCDWB/SF00000099
    instead of, i want to give some specific user defined name.
    how to do???

    Hi,
    I think its not possible to give it a user defined name, but you can assign it to a variable and use that variable name instead.
    Please see the code below
    Data: V_FMNAME type RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                 EXPORTING
                   formname                 = 'ZSMARTFORM'
                  VARIANT                  = ' '
                  DIRECT_CALL              = ' '
                IMPORTING
                  FM_NAME                  =  V_FMNAME
                EXCEPTIONS
                  NO_FORM                  = 1
                  NO_FUNCTION_MODULE       = 2
                  OTHERS                   = 3
               IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ENDIF.
              CALL FUNCTION V_FMNAME
               EXPORTING
                ARCHIVE_INDEX              =
                ARCHIVE_INDEX_TAB          =
                ARCHIVE_PARAMETERS         =
                CONTROL_PARAMETERS         =
                MAIL_APPL_OBJ              =
                MAIL_RECIPIENT             =
                MAIL_SENDER                =
                OUTPUT_OPTIONS             =
                USER_SETTINGS              = 'X'
                  wa_itab1                   = wa_itab1
                  wa_itab2                   = wa_itab2
                  wa_itab3                   = wa_itab3
                  wa_itab4                   = wa_itab4
                IMPORTING
                DOCUMENT_OUTPUT_INFO       =
                JOB_OUTPUT_INFO            =
                JOB_OUTPUT_OPTIONS         =
                TABLES
                  i_itab1                    =  i_itab1
                  i_itab2                    =  i_itab2
                  i_itab4                    =  i_itab4
                  i_itab3                    =  i_itab3
              EXCEPTIONS
                FORMATTING_ERROR           = 1
                INTERNAL_ERROR             = 2
                SEND_ERROR                 = 3
                USER_CANCELED              = 4
                OTHERS                     = 5
              IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
    Regards,
    Manish

  • ABAP Function Module generator

    Hi,
    I wonder if there is a ABAP Function Module generator for inbound and outbound adapter data. Can I generate a function module in XI to trigger a adapter.
    regards,
    Richard

    Hi,
    There is no tool to "generate" RFCs.  You will have to use SE37 to create the RFCs as always.
    For outbound RFC, you will need only to define the interfaces, e.g. IMPORT, EXPORT, TABLES.  No ABAP code is required.  Then, just populate the parameters and send to XI.
    For inbound RFC, you can develop the RFC to do whatever it needs to do in ABAP.
    In the IR of XI, you can import the RFC's meta data.
    Regards,
    Bill

  • Call Function not Generating Function Module for Smartform

    Hi Gurus,
    We have a work copy print program use to print deliveries (smartforms). This program works fine in Production but right now we are doing some testing and I found out that when we run this program in QUALITY environtment, it shortdumps with error saying "Function Module Not Found"
    Basically when it gets to the Function Module "SSF_FUNCTION_MODULE_NAME", it could not generate any function module for the form it Sy-Subrc = 2 Exception meaning NO_FUNCTION_MODULE.
    The problem is this only happens in our QUALITY environment.I compare the function module in the 2 systems, there was not diff as this is a Standard SAP module. I passed diff smartforms we have in QUALITY through the FM and it will not generating any FM for any of them. So this is not an error from the smartforms, bcos all the same smartforms generates FM in Prod.
    So what I did next is to Debug the FM "SSF_FUNCTION_MODULE_NAME" in the 2 systems to see where the diff is coming from. I noticed 2 views that the FM is using, they are STXFADM and D010SINF . So on the Production system, STXFADM-LASTDATE and D010SINF-UDAT fields are the same value, so it generates the FM. On the QUALITY systems, the values are different hence it skips the code to generate the FM.
    Thanks Guys.
    Points will greatly be awarded for this.

    Please guys, help me look into this, I really need a solution fast.
    Thanks

  • Running Function Module in Background with Update Task is not working

    Hello Friends,
    I have a "Z" Report Program where I am running this Report in Background using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE. I am calling this in BADI.
    In this Report I am calling another Function Module PRICES_POST which is a standard Function Module and in this FM there is another FM 'CKML_UPDATE_MATERIAL_PRICE IN UPDATE TASK'. Now when I am running the BADI these values are not being updated.
    Friends I would like to know whether can we run Function Modules which are  included with UPDATE TASK as Background Job program?
    Kindly help me in providing your valuable suggestions in proceeding further.
    Thanks and Regards
    Pradeep Goli

    Usually the sequence of CALLs in your report should look like
      CALL FUNCTION 'CM_F_INITIALIZE'
        EXPORTING
          msg_on_screen = c_x.
      CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.
      CALL FUNCTION 'PRICES_CHANGE'
        EXPORTING
          actual_bdatj = f_matpr-pp-bdatj
          actual_poper = f_matpr-pp-poper
          bukrs        = p_bukrs
          budat        = p_date
          xblnr        = p_xblnr
        TABLES
          t_matpr      = t_matpr.
      READ TABLE t_matpr WITH KEY pp-xerror = ' '
                                TRANSPORTING NO FIELDS.
      IF sy-subrc <> 0.
        MESSAGE i046(ckprch).
      ELSE.
        CALL FUNCTION 'PRICES_POST'
          EXPORTING
            i_bktxt    = p_bktxt
            bukrs      = p_bukrs
            lis_update = 'X'
          TABLES
            t_matpr    = t_matpr.
      ENDIF.
      COMMIT WORK.
    If you forget the COMMIT-WORK each and every FM called in UPDATE TASK will not be triggered.
    Regards,
    Raymond

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • How to get no. of lines in a  function module

    Dear Experts,
       I want to get the no. of lines present in a function module. How can I do it.
       For reports/ include I did like
      read report 'rep name' into itab.
      describe table itab lines wa_line.
      But I am not able to do the same for function module. Is there any function module to find the no. of lines?
    or is there any other way?
    Thanks and regards,
    Venkat

    HI,
    In Se37, enter your FM name display,
    now Goto --> Mainprogram --> you can see include for function modules
    eg:   include lalfauxx.      " Function Modules
    double click the include
    you can see the function module names includes
    Eg:
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.             *
      NEVER CHANGE IT MANUALLY, PLEASE!                           *
    include lalfau01.   "CONVERSION_EXIT_ALPHA_INPUT
    include lalfau02.   "CONVERSION_EXIT_ALPHA_OUTPUT  _
    double click your functipon module name 
    eg :lalfau02.
    you can follow the same as you did for the report
    read report 'rep name' into itab.
    describe table itab lines wa_line
    This is the Include program name for your function module.
    Basically FM is a include program.
    eg:
    data: begin of itab occurs 0,
            text type char2000,
           end of itab.
           data wa_line type syindex.
    read report 'lalfau02' into itab.
    describe table itab lines wa_line.
    write wa_line.
    output 13.
    regards,
    Nazeer

Maybe you are looking for