10-11-2005 10:22 AM
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
10-11-2005 10:54 AM
hi,
activate all the function modules inside the include
LZSETBUXX
cheers,
sasi
10-11-2005 10: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,
10-11-2005 10:54 AM
hi,
activate all the function modules inside the include
LZSETBUXX
cheers,
sasi
10-11-2005 11:11 AM
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