Replacement of obseleute function modules
Hi,
We are upgrading our system from ECC 4.6 to ECC 6.0. For that we are Replacing the below obseleute function module shown in below.
TZ_USER_SYSTEMCLOCK
TZ_LOCATION_TIMEZONE
ADDRESS_GET_DATA
HELPSCREEN_CREATE
HELP_DOCU_SHOW_FOR_FIELD
Could any one please help me out to replace the function module which supports ecc6.0.
Thanks a lot for your help in advance.
Regards,
Balaji..
Hi,
Thanks a lot Lakshman. I have checked the link given by you (Link: List of Obsolete Function Modules in ECC .0)
But in that list the below mentioned function module is not there.
ADDRESS_GET_DATA
HELPSCREEN_CREATE
If you have any idea, Please share with me..
Regards,
Balaji..
Similar Messages
-
How to replace obsolete download function module in ECC6.0?
Hi Experts,
How to replace obsolete download function module in ECC6.0?
Thanks,
Adi.Hi,
DOWNLOAD is obsolete FM in ECC 6. To get the same functionality , we need to use
CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG method (It provides the File selection feature)
and
GUI_DOWNLOAD function module.(It downloads the internal table from program to presentation server)
Please see the example below:
Example:
*CALL FUNCTION 'DOWNLOAD'
EXPORTING
FILENAME = p_filename
FILETYPE = DAT
TABLES
DATA_TAB = T_DOWNL
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
OTHERS = 6.
*End of deletion CH01-
Replacement Method for above code:
DATA: l_filename TYPE string,
l_filen TYPE string,
l_path TYPE string,
l_fullpath TYPE string,
l_usr_act TYPE I.
l_filename = P_filename.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
DEFAULT_FILE_NAME = l_filename
CHANGING
FILENAME = l_filen
PATH = l_path
FULLPATH = l_fullpath
USER_ACTION = l_usr_act
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
IF sy-subrc = 0
AND l_usr_act <>
CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = l_fullpath
FILETYPE = 'DAT'
TABLES
DATA_TAB = T_DOWNL
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22. -
Replaced version of Function Module PFL_COPY_OS_FILE in ECC 6.0
Hi everybody,
Can anybody tell me what is the replaced name of function module PFL_COPY_OS_FILE in ECC 6.0. This function module was used in 4.6C version and become obsolete in ECC 6.0. It is basically used for copying OS files.check CL_GUI_FRONTEND_SERVICES=>FILE_COPY
new_file = P_FILE.
app_full_name = R_FILE.
CALL METHOD cl_gui_frontend_services=>file_copy
EXPORTING
SOURCE = new_file
DESTINATION = app_full_name
overwrite = 'X'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
disk_full = 4
file_not_found = 5
destination_exists = 6
unknown_error = 7
path_not_found = 8
disk_write_protect = 9.
IF sy-subrc NE 0.
EXIT.
ENDIF. -
Replacement for a function module in 6.0
Hi
I am in the process of upgrading from 4.7 to 6.0 . The function module SAPWL_STATREC_READ_FILE is flagged as obsolete . Am unable to find a documentation for this function module . So which is the replacement for this function module . ?
Please help . .hi,
the replacement is SAPWL_STATREC_DIRECT_READ
next time check the source code of the FM, probably you'll find the answer...
hope this helps
ec -
Replacements for obsolete function modules
Hi,
What is the best way to find out the replacement for the obsolete function modules? We are starting an upgrade project and are required to replace the obsolete function modules used in that. So before starting that I want to keep a list of obsolete function modules and their replacements ready.
SSHi,
RODIR table gives not only FM, all obsoletes types.
if you dont find, best way is when we check EPC for the program,
in call function interface warnings shows, obsolete function modules.
or do UCCHECK it will both obsolete and suggested replacements.
Thanks
Vinod -
Replacement for a Function module
Hi all,
There is a function module '<b>HELP_VALUES_GET_NO_DD_NAME'</b> to display possible values for a database field. This FM is getting obsolete in near future.
Does anyone know any replacement provided by SAP for this FM?Hi,
<b>replaced with the FM F4IF_INT_TABLE_VALUE_REQUEST.</b>
check this thread
Re: F4IF_INT_TABLE_VALUE_REQUEST
sample code.
tables: mara, makt.
data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab.
data : begin of btab occurs 0,
maktx like makt-maktx,
end of btab.
data mak like makt-maktx.
DATA : return like ddshretval occurs 0 with header line.
data: begin of dynpfields occurs 0.
include structure dynpread.
data: end of dynpfields.
parameters: p_matnr like mara-matnr,
p_maktx like makt-maktx.
Initialization.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
p_matnr = return-fieldval.
rgds
anver
<i>if hlped pls mark points</i>
Message was edited by: Anversha s -
Replacement of Obsolete Function Modules MATNR_BAPI_CONV_FROM_EXTERNAL
Hello Friends ,
I am working in Upgradation project. I come across Two Obsolete Function Modules which i need replace.
1) MATNR_BAPI_CONV_FROM_EXTERNAL
2) MATNR_CONV_RANGES_3
Please help me in getting replacement of these two Obsolete Function Modules .
Awaiting your reply.
Thank you .
Regards,
Kiran...Hi Saravanan,
Thanks alot for givning the answer. but how do i select the suitable function modules for the two obsolete FMs.
MATNR_BAPI_CONV_FROM_EXTERNAL
MATNR_CONV_RANGES_3
Thank you.
Regards,
Kiran. -
Replacement of Function Module 'www_get_mime_object' in ECC 6.0
HI,
I need an exact replacement for the Function Module 'www_get_mime_object' in ECC 6.0.
Please help it out.
Regards,
Ashok.hey
-
Replacement function modules in ECC6
Hi,
We are working Upgrade project in Ecc6.
We found that function module 1. TABLE_COMPRESS and
2. STRING_MOVE_RIGHT
3. STRING_LENGHT is obsolete
Please suggest the Replacement for these Function Modules
Thanks
VanamaliCheck
for TABLE_COMPRESS
[Fm TABLE_COMPRESS]
for STRING_MOVE_RIGHT
[replacement for obsolete function module STRING_MOVE_RIGHT]
for STRING_LENGHT
DATA: lv_length TYPE i,
var(10) TYPE c VALUE 'Sathar'.
lv_length = STRLEN( var ).
WRITE lv_length. -
Regarding replacement of function module 'GUI_GET_DESKTOP_INFO'
what function module is replaced by obselete function module 'GUI_GET_DESKTOP_INFO'
Hi Naveenkumar,
For differenct fucntions specified in obselete FM
1: Host name (host name of current system) -- CL_GUI_FRONTEND_SERVICES=>GET_IP_ADDRESS
CL_GUI_FRONTEND_SERVICES=>GET_COMPUTER_NAME
2: Windows directory -- CL_GUI_FRONTEND_SERVICES=>GET_WINDOWS_DIRECTORY
3: System directory -- CL_GUI_FRONTEND_SERVICES=>GET_SYSTEM_DIRECTORY
4: Temp. directory -- CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
5: Domain user name -- CL_GUI_FRONTEND_SERVICES=>GET_USER_NAME
6: Platform -- use CL_GUI_FRONTEND_SERVICES=>GET_PLATFORM
7: Windows build number
8: Windows version
9: Program name
10: Program path
11: Current directory (Directory for current process) --
CL_GUI_FRONTEND_SERVICES=>GET_SAPGUI_WORKDIR
Regards,
Mohaiyuddin -
Replacement for function modules
can anyone let me know the replacement for these function modules
POPUP_TO_CONFIRM_STEP
POPUP_TO_CONFIRM_WITH_MESSAGEIt says the name of the replacement right there in the Attributes of the above FMs: POPUP_TO_CONFIRM.
Hope this helps.
Sudha -
Very Urgent Please function module FAGL_GET_TT_DATA_LEAD Enhancement
Hi Guys,
I want to enhance the function module FAGL_GET_TT_DATA_LEAD (that gets the data from FAGLFLEXT) to read the FAGLFLEXA table.Can any one get me an idea on how to enhance it ....
If possible please send me brief code steps aswell ...
Thanks in adnvacehi Harish,
One thing you can do is copy the function module into Z-function module and try to incorporate the custom code and replace the standard function module with custom function module in your program.
Hope it helps... -
Function module CARD_CHARACTERISTIC_READ
Hi All,
We are going upgrade from 4.6 to ECC 6.0 where function module CARD_CHARACTERISTIC_READ is obselete now,below is the code used in 4.6
call function 'CARD_CHARACTERISTIC_READ'
exporting
characteristic = 'Z001GD_PRIMARY_SELLING_SEASON'
tables
descriptions = i_dumdesc
allowed_values = i_dumaval
value_descriptions = i_valdesc
restrict_usage_in_class_type = i_dumrest
reference_to_table = i_dumreft
exceptions
warning = 1
error = 2
others = 3
Could you please tell me the replacment of this function module with an example that use same parameter.
Thanks ,
MohitHi All,
Any help on this issue.
Thanks
Mohit -
BOM function module to find sub components
Hi all ,
I got a requirement . I have to find out the components required for a given product .Like if A is made up of X,Y and Z . If i have A , a final product , then how could i know its sub components X,Y and Z .
Is there any Function module .
Regards ,
RajAparna,
One doubt.Does the function module metioned by you will even explode if a Component under the header material is having a sub-assembly which again is having some components and those componenets also have sub-assembly so on....
I mean in one shot if we give the header material it should explode all the BOMS of the corresponding components.
We have developed a small program kindly have a look at it.Does this whole program can be replaced by that function module alone?
As we need supply area w.r.t a component under header material we are displaying only those fields in the output.
REPORT ZBOMEXPLOSION.
TABLES: MBEW,
MARA, "Material Master
MAKT,
MARC,
MAST, "BOM Header
STKO, "BOM Detail
STPO, "Bom Components
STAS. "BOM Alternative
*Declarations for ALV
type-pools slis.
DATA:itfieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA:itrepid TYPE sy-repid.
itrepid = sy-repid.
DATA:itevent TYPE slis_t_event.
DATA:itlistheader TYPE slis_t_listheader.
DATA:walistheader LIKE LINE OF itlistheader.
DATA:itlayout TYPE slis_layout_alv.
DATA:top TYPE slis_formname.
DATA:itsort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
DATA :itsort1 TYPE slis_sortinfo_alv.
DATA:itprintparams TYPE slis_print_alv.
DATA:itvariant TYPE disvariant.
data : title type lvc_title.
field-symbols <fs> type LVC_TITLE.
concatenate 'BOM Explosion level by level' ' ' into title separated by
space.
assign title to <fs>.
DATA:PARENT-MATNR LIKE MAST-MATNR,
CHILD-MATNR LIKE STPO-IDNRK,
CHILD-WERKS LIKE MAST-WERKS,
CHILD-STLAL LIKE MAST-STLAL,
W_MAKTX LIKE MAKT-MAKTX,
W_LEVEL TYPE I,
W_DOT(1),
W_LVL(12),
W_LVL1(12),
W_LVL2(2),
WCNT TYPE I.
DATA: BEGIN OF ITAB OCCURS 100,
CNT TYPE I,
LEVEL TYPE I,
LVL1 LIKE W_LVL1,
WERKS LIKE MAST-WERKS,
POSNR LIKE STPO-POSNR,
IDNRK LIKE STPO-IDNRK,
PRVBE LIKE STPO-PRVBE,
END OF ITAB.
DATA: BEGIN OF ITAB1 OCCURS 100,
WERKS LIKE MAST-WERKS,
IDNRK LIKE STPO-IDNRK,
END OF ITAB1.
DATA: BEGIN OF ITAB2 OCCURS 100,
CNT TYPE I,
SUBCNT TYPE I,
LEVEL TYPE I,
LVL1 LIKE W_LVL1,
WERKS LIKE MAST-WERKS,
POSNR LIKE STPO-POSNR,
IDNRK LIKE STPO-IDNRK,
prvbe like stpo-prvbe,
SBASE TYPE P,
MAKTX LIKE MAKT-MAKTX,
END OF ITAB2.
PARAMETERS: P_WERKS LIKE MAST-WERKS,
P_MATNR LIKE MAST-MATNR,
P_STLNR LIKE MAST-STLNR,
P_STLAN LIKE MAST-STLAN,
P_STLAL LIKE MAST-STLAL.
perform zmm.
perform alv.
*& Form zmmspt
* text
* --> p1 text
* <-- p2 text
form zmm .
SELECT * FROM MAST WHERE WERKS = P_WERKS
AND MATNR = P_MATNR
AND STLNR = P_STLNR
AND STLAN = P_STLAN
AND STLAL = P_STLAL.
SELECT SINGLE * FROM MARA WHERE MATNR = MAST-MATNR.
IF SY-SUBRC NE 0.
CONTINUE.
ENDIF.
IF MARA-LVORM <> 'X'.
PARENT-MATNR = MAST-MATNR.
CHILD-MATNR = MAST-MATNR.
CHILD-WERKS = MAST-WERKS.
CHILD-STLAL = MAST-STLAL.
CLEAR ITAB.
CLEAR ITAB-LEVEL.
MOVE MAST-WERKS TO ITAB-WERKS.
MOVE MAST-MATNR TO ITAB-IDNRK.
WCNT = WCNT + 1.
MOVE WCNT TO ITAB-CNT.
APPEND ITAB.
W_LEVEL = 1.
PERFORM GETCHILD.
ENDIF.
ENDSELECT.
SORT ITAB BY LEVEL DESCENDING.
LOOP AT ITAB.
PERFORM GET_BOM.
MOVE ITAB-WERKS TO ITAB1-WERKS.
MOVE ITAB-IDNRK TO ITAB1-IDNRK.
APPEND ITAB1.
CLEAR ITAB2.
MOVE-CORRESPONDING ITAB TO ITAB2.
APPEND ITAB2.
ENDLOOP.
SORT ITAB2 BY CNT.
LOOP AT ITAB2.
CLEAR: MAKT-MAKTX.
SELECT SINGLE * FROM MAKT WHERE MATNR = ITAB2-IDNRK AND
SPRAS = 'E'.
SELECT SINGLE * FROM MBEW WHERE MATNR = ITAB2-IDNRK AND
BWKEY = ITAB2-WERKS.
ITAB2-MAKTX = MAKT-MAKTX.
MODIFY ITAB2.
ENDLOOP.
endform. " zmm
*& Form GETCHILD
* text
* --> p1 text
* <-- p2 text
form GETCHILD .
SELECT * FROM STPO WHERE STLNR = MAST-STLNR
ORDER BY POSNR.
SELECT SINGLE * FROM STKO WHERE STLNR = STPO-STLNR
AND STLAL = MAST-STLAL.
SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
STLKN = STPO-STLKN AND
STLAL = MAST-STLAL.
IF SY-SUBRC EQ 0.
CLEAR: W_DOT, W_LVL, W_LVL1.
PERFORM MOV_DATA.
CHILD-MATNR = STPO-IDNRK.
W_LEVEL = W_LEVEL + 1.
PERFORM SUBCHILD.
W_LEVEL = W_LEVEL - 1.
ENDIF.
ENDSELECT.
endform. " GETCHILD
*& Form SUBCHILD
* text
* --> p1 text
* <-- p2 text
form SUBCHILD .
SELECT SINGLE * FROM MAST WHERE MATNR = CHILD-MATNR
AND WERKS = CHILD-WERKS.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
SELECT * FROM STPO WHERE STLNR = MAST-STLNR
ORDER BY POSNR.
SELECT SINGLE * FROM STKO WHERE STLNR = STPO-STLNR AND
STLAL = MAST-STLAL.
SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
STLKN = STPO-STLKN AND
STLAL = STKO-STLAL.
IF SY-SUBRC EQ 0.
W_DOT = '.'.
PERFORM MOV_DATA.
CHILD-MATNR = STPO-IDNRK.
W_LEVEL = W_LEVEL + 1.
PERFORM SUBCHILD.
W_LEVEL = W_LEVEL - 1.
SHIFT W_LVL.
ENDIF.
ENDSELECT.
endform. " SUBCHILD
*& Form MOV_DATA
* text
* --> p1 text
* <-- p2 text
form MOV_DATA .
W_LVL2 = W_LEVEL.
CONCATENATE W_DOT W_LVL INTO W_LVL.
CONCATENATE W_LVL W_LVL2 INTO W_LVL1.
MOVE W_LVL1 TO ITAB-LVL1.
MOVE W_LEVEL TO ITAB-LEVEL.
MOVE MAST-WERKS TO ITAB-WERKS.
MOVE STPO-POSNR TO ITAB-POSNR.
MOVE STPO-IDNRK TO ITAB-IDNRK.
MOVE STPO-PRVBE TO ITAB-PRVBE.
WCNT = WCNT + 1.
ITAB-CNT = WCNT.
APPEND ITAB.
endform. " MOV_DATA
*& Form GET_BOM
* text
* --> p1 text
* <-- p2 text
form GET_BOM .
SELECT SINGLE * FROM MAST WHERE MATNR EQ ITAB-IDNRK AND
WERKS = ITAB-WERKS.
IF SY-SUBRC EQ 0.
SELECT * FROM STPO WHERE STLTY = 'M' AND
STLNR = MAST-STLNR AND
DATUV LE SY-DATUM.
SELECT SINGLE * FROM STKO WHERE STLTY = 'M' AND
STLNR = STPO-STLNR AND
STLAL = MAST-STLAL.
SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
STLKN = STPO-STLKN AND
STLAL = STKO-STLAL.
ENDSELECT.
ENDIF.
endform. " GET_BOM
*& Form alv
* text
* --> p1 text
* <-- p2 text
form alv .
IF itab2[] IS INITIAL.
MESSAGE 'No Values exist for the Selection.' TYPE 'S'.
STOP.
ENDIF.
DEFINE m_fieldcat.
itfieldcat-fieldname = &1.
itfieldcat-col_pos = &2.
itfieldcat-seltext_l = &3.
itfieldcat-do_sum = &4.
itfieldcat-outputlen = &5.
append itfieldcat to itfieldcat.
clear itfieldcat.
END-OF-DEFINITION.
m_fieldcat 'LVL1' '' 'Level' '' 04.
m_fieldcat 'POSNR' '' 'Item' '' 06.
m_fieldcat 'IDNRK' '' 'Component' '' 18.
m_fieldcat 'MAKTX' '' 'Description' '' 40.
m_fieldcat 'PRVBE' '' 'Supply Area' '' 12.
itlayout-zebra = 'X'.
itlayout-colwidth_optimize = 'X'.
itlayout-no_subtotals = ' '.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
IS_LAYOUT = itlayout
IT_FIELDCAT = itfieldcat[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
IT_SORT = itsort[]
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = itab2
* EXCEPTIONS
* PROGRAM_ERROR = 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.
EXPORT ITAB2 TO MEMORY ID 'KK_ITAB2'.
endform. " alv
K.Kiran. -
Report to find function module names
Hi all,
My requirement is to get generate a report with the list of obsolete function modules and the SAP recommended function module equivalent to it. i have identified the table to get the obsolete function module . I m not able to get the function module equivalent to tithe obsolete function module.
Thanks
sivaHi Sivaprasath,
U might have referred RODIR table for finding out function modules which are obsolete.
To find the replacement of obsolete function modules check OSS notes in service.sap.com with search string as the name
of the function module.
U will get Related notes where u can get the alternative FM.
Also check the documentation of obsolete FM,Else check the short description.It might be mentioned there itself for Alternative Function Module.
Regards,
Lakshman.
Maybe you are looking for
-
Free Navigation for Nokia 6700 Classic
Hi everyone, I notice the recent Nokia announcement that navigation is now free on all it's S60 based phones. However, I just purchased a new Nokia 6700 Classic (Which has built in A-GPS, Nokia Maps pre-loaded & full offline Australia maps), but it r
-
Why do I have to activate iPhones in the USA?
This only seems to happen in the USA, but my search for why this happens is bringing up inconclusive results. Whenever I insert a SIM card from at&t or t-mobile, whether for testing or for helping a friend troubleshoot their iPhone, the activation sc
-
Procedure in dynamic page shows only sometimes data
Is anybody recognizing this problem: A stored procedure is called in a dynamic page. The procedure builds up a html form. When calling the dynamic page, sometimes the form appears, sometimes it does not appear. In the last case, even a errormessage i
-
Hello all.. I have a requirement where i need to use an editable alv to display the details. But in the alv display 1st row should display entries from 1 table and second row should show entries from another table. So is this possible with normal gri
-
How do I tell pacman to not touch my kernel directory?
I compile my own kernels, and I don't want pacman to ever touch /usr/src/linux or anything in /boot Is there a nice clean way to do that? Does the NoUpgrade line in /etc/pacman.conf work for whole directories?