Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement for obsolete 'FM NAMETAB_GET'

nishant_nayyar
Explorer
0 Kudos

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

3 REPLIES 3

former_member1052991
Active Participant
0 Kudos

Try this function module...

'NAMETAB_GET'

0 Kudos

My Dear...I have a problem with this FM only...please suggest an alternative for this

0 Kudos

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......