12-03-2007 5:34 AM
Hi,
We have been upgrading SAP from 4.6B to ECC6.0...During this process we have encountered an obsolete 'FM NAMETAB_GET', but as no documentation is available for the same, we are looking for an alternative / replacement for the 'FM NAMETAB_GET'...All suggestions are welcome...
Thanks in advance
12-03-2007 5:37 AM
12-03-2007 5:41 AM
My Dear...I have a problem with this FM only...please suggest an alternative for this
01-24-2008 5:04 AM
Hi Nishant,
here is the sample code for the function module NAMETAB_GET
data: begin of nametab occurs 60.
include structure dntab.
data: end of nametab.
call function 'NAMETAB_GET'
exporting
langu = sy-langu
tabname = table
tables
nametab = nametab
exceptions
no_texts_found = 1.
REPLACEMENT
data: begin of nametab occurs 60.
include structure DFIES.
data: end of nametab.
CALL FUNCTION 'DDIF_NAMETAB_GET'
EXPORTING
TABNAME = table
TABLES
DFIES_TAB = nametab
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
rewards if useful......