Application Development and Automation 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: 
Read only

Obsolete Function Module!!

Former Member
0 Likes
1,163

Hi Everybody,

Could someone give me the replacement function module for TRANSFER_NAMES_TO_FIELDS, as this is obsolete.

Thanks,

Arul.

9 REPLIES 9
Read only

Former Member
0 Likes
1,067

chk this

F4IF_INT_TABLE_VALUE_REQUEST

Reward points if answered and close thread if solved

Message was edited by: Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
1,067

which version ?

it is available in 4.7 E

Read only

0 Likes
1,067

Hi,

In Version ECC5.0

Thanks,

Arul

Read only

Former Member
0 Likes
1,067

Hi Raj,

Its not Obsolete even in ECC5.0.

Which version are you on? 6.0?

To tell that a function module is obsolete. you should

see the Attributes tab of the FM and see if a date is there in the Function Obsolete Field(IN General data Section).

In Ecc5.0 its not obsolte.

REgards,

ravi

Read only

0 Likes
1,067

Hi Ravi,

Even though it's not mentioned in the function module documentation, it gives an error in the EPC when it is used in a report, as the function module is flagged ( which means its obsolete).

Thanks,

Arul.

Read only

0 Likes
1,067

I Have done the EPC for a program using this FM.

Its absolutely alright.

The problem may be something else.

Do an EPC check for SAPMJBBEWZUSAINIT.

This program also uses the FM you have mentioned.

Regards,

Ravi

Read only

Former Member
0 Likes
1,067

No,

This FM is obsolute from 4.7 onwards,

Check FMs available in <b>Function Groups SDH4 and SDHI</b>you can find a suitable one.

rgds,

TM

Read only

Former Member
0 Likes
1,067

Hi,

The FM is obsolete in Higher versions. so you can use the FM <b>F4IF_INT_TABLE_VALUE_REQUEST</b>

Regards

vijay

Read only

Former Member
0 Likes
1,067

Hai

go through the following COde

and also Check the difference b/w the two Function modules

both are giving the same output

  • LI_DDIC_FIELD_LIST-FELDNAME = 'ZAPO_FABGRP-FABGRP'.

  • APPEND LI_DDIC_FIELD_LIST.

*

  • REFRESH LI_FIELDS.

  • CALL FUNCTION 'TRANSFER_NAMES_TO_FIELDS'

  • EXPORTING

  • SELECTFIELD = 'FABGRP'

  • TABLES

  • FIELDS = LI_FIELDS

  • NAMELIST = LI_DDIC_FIELD_LIST

  • EXCEPTIONS

  • WRONG_FORMAT_GIVEN = 01.

*

*loop at LI_DDIC_FIELD_LIST.

*write 😕 LI_DDIC_FIELD_LIST.

*endloop.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.

DATA: BEGIN OF LI_DDIC_FIELD_LIST OCCURS 0,

matnr like mara-matnr,

END OF LI_DDIC_FIELD_LIST.

parameters : P_MATNR like MARA-MATNR.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.

select matnr from mara into table LI_DDIC_FIELD_LIST

where mtart = 'ROH'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'MATNR'

DYNPPROG = SY-REPID

DYNPNR = '1000'

DYNPROFIELD = 'P_MATNR'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = LI_DDIC_FIELD_LIST

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

start-of-selection.

loop at T_RETURN.

write 😕 T_RETURN-fieldname,T_RETURN-Fieldval.

endloop.

Thanks & Regards

Sreenivasulu P