Skip to Content
author's profile photo Former Member
Former Member

Copy of Function Group SETB giving error

Dear All,

I tried to copy the standard function Group SETB to ZSETB(Which is having SE16 transaction attached) but during activation the include is giving error as "The Field TABNAME is unknown". I have just copied the entire functional group along with function modules. No clue how I can avoid the error. I deleted the include LSETBF10 and re-copied, but error is persisting. Do you have any clue???

Thanks and regards,

AD

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 09:54 AM

    hi,

    activate all the function modules inside the include

    LZSETBUXX

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi!

      Thanks for all your valuable reply. I could avoid the error but could not avoid another error: "The parameter INTTAB of the Global interface has already been defined outside the function". While double clicking on the error, I have reached to a hidden include (Not possible to browse through Navigtion) LZSETB$07. The include contains the following code:

      *******************************************************************

      • THIS FILE IS GENERATED BY THE FUNCTION LIBRARY. *

      • NEVER CHANGE IT MANUALLY, PLEASE! *

      *******************************************************************

      FUNCTION $$UNIT$$ ZRS_TABLE_VIEW

      IMPORTING

      VALUE(TABNAME) LIKE !DATABROWSE-TABLENAME

      DEFAULT 'TFDIR'

      TABLES

      !FIELDTAB STRUCTURE !X031L OPTIONAL

      !INTTAB

      EXCEPTIONS

      !CANCELD

      !GENERATION_ERROR

      $$GLOBAL.

      I assume that is a system generated include. The Global option in FM has automatically been copied during copy of the function group and the function module.

      Thanks and regards,

      AD

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 09:46 AM

    You have copied individual FMs (to Z* FMs) as well I assume.

    Likely cause : TABNAME is a parameter in one of the function modules you copied (say RS_TABLE_VIEW is the original FM). If you go to the attribute tab of this FM, you will see a checkbox for 'Global' (on right window, last row) which will be checked. This means parameters defined in the FM interface have global scope (are available throughout the function group).

    In the copy Z FM, it is likely that this GLOBAL property is unchecked (it is the default option) hence the parameter TABNAME is not available in places other than the FM, hence this error.

    If this is the case, to fix it, choose in SE37 editor menu :- Edit>Interface>Globalize parameters.

    cheers,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.