Replace Function Module 'BBP_ORGUNIT_GET_EMPLOYEES'
Hi All,
we are in SRM5.0 upgrade. we are not able to find a replace function module of 'BBP_ORGUNIT_GET_EMPLOYEES' this.
if any one knows the replacement function module please and i could not find any replace function module in service market place, so is there any OSS notes available for this?
Thanks,
John.
Hello John,
On a similar upgrade, I used the function RH_STRUC_GET with input parameter ACT_WEGID (evaluation path) = 'O-S-CP'to replace 'BBP_ORGUNIT_GET_EMPLOYEES'.
Avaible evaluation path are defined in table T778A.
Rgds,
Pierre
Similar Messages
-
Replacement function modules/method for obsolete Funtion Modules in ECC 6.0
We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
1. GET_FIELDTAB
2. WS_EXCEL
3. HR_DISPLAY_BASIC_LIST
4. LOG_SYSTEM_GET_RFC_DESTINATION
5. HELPSCREEN_NA_CREATE
6. TR_RELEASE_COMM
Thank in Advance.
Sarita.
Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PMHi sarita,
for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
CALL FUNCTION 'GET_FIELDTAB'
EXPORTING
LANGU = SY-LANGU
TABNAME = C_STRUCTURE_NAME
WITHTEXT = ' '
TABLES
FIELDTAB = IDFIES
EXCEPTIONS
INTERNAL_ERROR = 01
NO_TEXTS_FOUND = 02
TABLE_HAS_NO_FIELDS = 03
TABLE_NOT_ACTIV = 04.
Replacement :
CALL FUNCTION 'DDIF_NAMETAB_GET'
EXPORTING
TABNAME = C_STRUCTURE_NAME
ALL_TYPES = ' '
LFIELDNAME = ' '
GROUP_NAMES = ' '
UCLEN =
IMPORTING
X030L_WA =
DTELINFO_WA =
TTYPINFO_WA =
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
X031L_TAB =
DFIES_TAB = IDFIES
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
For WS_EXCEL use GUI_DOWNLOAD.. here is sample code
CALL FUNCTION 'WS_EXCEL'
EXPORTING
FILENAME = 'D:\FILE1.xls'
SYNCHRON = ' '
TABLES
DATA = itab
EXCEPTIONS
UNKNOWN_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.
Repalcement :
data : l_filename type string.
l_filename = 'D:\FILE1.xls'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = l_filename
FILETYPE = 'ASC'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES =
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
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
DOCUMENT = 'D:\FILE1.xls'
APPLICATION =
PARAMETER =
DEFAULT_DIRECTORY =
MAXIMIZED =
MINIMIZED =
SYNCHRONOUS =
OPERATION = 'OPEN'
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
SYNCHRONOUS_FAILED = 8
NOT_SUPPORTED_BY_GUI = 9
others = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Hi everybody,
Please let me know what are the replacement function modules for the following function modules :
1) PSCIC_CBP_CREATE
2) PSCIC_CBP_CREATETARGET
3) PSCIC_CBP_DETAIL
4) PSCIC_CBP_DETAIL_CALL
5) PSCIC_CBP_GET
6) PSCIC_CBP_GET_PARTNER
7) PSCIC_CBP_GET_PARTNER_SPA_GPA
8) PSCIC_CBP_INFO
9) PSCIC_CBP_INIT
10) PSCIC_CBP_MAPSEARCH
11) PSCIC_CBP_POPULATE
12) PSCIC_CBP_PUBLISH
13) PSCIC_CBP_SEARCH
14) PSCM_CMACBPST_CHANGE_ST_NUMBER
15) PPC1PP_AFFWRM_CHANGE
16) PPC1PP_RESCO_CHECK
17)PPC1PP_RES_HDR_CREATE
Thank You,
PriyankaModerator message - Welcome to SCN.
But please show that you've done some work beforehand. Please don't post a shopping list.
Thread locked.
Rob -
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. -
Hi Experts, replace function module WS_QUERY to return the name of OS?
Hi Experts,
the function WS_QUERY can return your computer operating system, you can try it SE37(WS_QUERY), and only give value 'OS' to the QUERY parameter and execute the function, you can see it in RETURN parameter, but now this function is obsolete and I must replace it with another function or method, can anyone of you tell me which function can totally(the return value need to be the same, but any valuable feedback is also welcome) replace it? thanks in advance!
Kind regards
DawsonHi Dawson,
You can use the static method GET_PLATFORM of the class CL_GUI_FRONTEND_SERVICES.
Regards,
Jeevan -
Regarding Obsolete Function Modules
Hi all,
can anybody tell me the alternative ECC6.0 function modules of the following Obsolete function modules
DOWNLOAD
UPLOAD
WS_DOWNLOAD
WS_UPLOAD
WS_FILENAME_GET
WS_QUERY
POPUP_TO_CONFIRM_STEP
POPUP_TO_CONFIRM_WITH_MESSAGE
thnks
Sandeephere are replacement function modules for the obsolete ones.
award points in case u feel this useful
1. Obsolete Function Module: WS_UPLOAD.
Replacement FM: GUI_UPLOAD.
Note:
1. If the FM WS_UPLOAD' has file type as ASC, then we can use same file
type ASC for GUI_UPLOAD also.
2. But if the FM 'WS_UPLOAD' has file type as DAT, we can not use DAT for
'GUI_UPLOAD' as it will give short dump.
In this case we need use file type as ASC
and
HAS_FIELD_SEPARATOR = X.
3. If the file name or file type of ws_upload have variables or constants
Instead of hard coding, then dont use hard code values for gui_upload.
3. The data type of file name always should be of character type for gui_upload
The file type should be of Type Character and length 10.
4. Always uncomment the exceptions for gui_upload.
5. And also uncomment the code inside IF SY-SUBRC <> 0. and ENDIF after
gui_upload if the customer has not handled any exception in 46c version.
If there is any code inside IF SY-SUBRC <> 0 and ENDIF for ws_upload in 46c
version, Please use the same code in ECC also after gui_upload.
Example:
Example for File type ASC:
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = P_FILE
FILETYPE = 'ASC'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = P_I_DATA
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
Replacement FM:
DATA L_P_FILE TYPE STRING.
L_P_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = L_P_FILE
FILETYPE = ASC
TABLES
DATA_TAB = P_I_DATA
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC NE 0.
MESSAGE E033 WITH P_FILE ' could not be opened'(E03).
ENDIF.
Example for file type DAT:
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = P_FILE
FILETYPE = 'DAT'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = P_I_DATA
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
Replacement FM:
DATA L_P_FILE TYPE STRING.
L_P_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = L_P_FILE
FILETYPE = ASC
HAS_FIELD_SEPARATOR = X
TABLES
DATA_TAB = P_I_DATA
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Else.
2. Obsolete FM : WS_DOWNLOAD
Replacement FM: GUI_DOWNLOAD.
Note:
1. If the FM WS_DOWNLOAD' has file type as ASC, then we can use same file
Type ASC for GUI_DOWNLOAD also.
2. If the FM 'WS_DOWNLOAD' has file type as DAT, we can use DAT for
'GUI_DOWNLOAD'
3. If the file name or file type of ws_upload have variables or constants
Instead of hard coding,then dont use hard code values for gui_download.
Declare variables and assign the ws_download variables to new variables
and use These in the new FM.
4. The data type of file name always should be of character type for gui_upload
The file type should be of Type Character and length 10.
5. The data type of file name always should be of character type for gui_ download.
6. Always uncomment the exceptions for gui_download.
7. And also uncomment the code inside IF SY-SUBRC <> 0. and ENDIF after
Gui_upload if the customer has not handled any exception in 46c version.
If there is any code inside IF SY-SUBRC <> 0 and ENDIF for ws_ download in
46c version, Please use the same code in ECC also after gui_download.
Example:
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = P_FILENM
FILETYPE = 'DAT' " split into records
TABLES
DATA_TAB = L_ITAB
FIELDNAMES = T_HEAD
EXCEPTIONS
FILE_OPEN_ERROR = 01
FILE_WRITE_ERROR = 02
INVALID_FILESIZE = 03
INVALID_TABLE_WIDTH = 04
INVALID_TYPE = 05
NO_BATCH = 06
UNKNOWN_ERROR = 07.
Replacement FM for above FM:
DATA L_P_FILE TYPE STRING.
L_P_FILE = P_FILENM.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = L_P_FILE
FILETYPE = DAT
TABLES
DATA_TAB = L_ITAB
FIELDNAMES = T_HEAD
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.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
*EXPORTING
*defaultoption = 'N'
* extline1 = 'Soll das Include überschrieben werden?'(034)
* extline2 = i_inc-include
* itel = 'Include existiert bereits!'(039)
START_COLUMN = 25
START_ROW = 6
CANCEL_DISPLAY = 'X'
IMPORTING
answer = answer
EXCEPTIONS
OTHERS = 1.
Replacement Method :
DATA : l_question type string.
Concatenate 'Soll das Include überschrieben werden?'(034)
i_inc-include
into l_question.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Prepack deletion'(019)
DIAGNOSE_OBJECT = ' '
TEXT_QUESTION = l_question
TEXT_BUTTON_1 = 'Yes'(020)
*ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'No'(021)
*ICON_BUTTON_2 = ' '
*DEFAULT_BUTTON = '2'
DISPLAY_CANCEL_BUTTON = 'X'
*USERDEFINED_F1_HELP = ' '
*START_COLUMN = 25
*START_ROW = 6
*POPUP_TYPE =
*IV_QUICKINFO_BUTTON_1 = ' '
*IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
ANSWER = answer
TABLES
*PARAMETER =
EXCEPTIONS
TEXT_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.
Note :
In FM POPUP_TO_CONFIRM_STEP' , the value for import parameter ANSWER is
J (YES),
N (NO).
But for POPUP_TO_CONFIRM , the value for import parameter ANSWER is
1 (YES),
2 (NO).
So, please change these values accordingly while replacing with the new FM.
CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'
EXPORTING
DIAGNOSETEXT1 = TEXT-900
DIAGNOSETEXT2 = SY-MSGV1
DIAGNOSETEXT3 = TEXT-901
TEXTLINE1 = TEXT-902
TEXTLINE2 = TEXT-903
TITEL = TEXT-904
IMPORTING
ANSWER = UP_ANSWER.
replacement:
The Diagnose object parameter Z_ZIMPCHK1_POPUP_TO_CONFIRM'
is created in SE61 transaction as DIALOG TEXT object
DATA: W_PARAM TYPE SPAR,
I_PARAMETERS TYPE STANDARD TABLE OF SPAR,
W_TEXT_Q TYPE STRING.
MOVE TEXT-900 TO W_PARAM-VALUE.
MOVE 'TEXT1' TO W_PARAM-PARAM.
APPEND W_PARAM TO I_PARAMETERS.
WRITE SY-MSGV1 TO W_PARAM-VALUE.
MOVE 'TEXT2' TO W_PARAM-PARAM.
APPEND W_PARAM TO I_PARAMETERS.
WRITE TEXT-901 TO W_PARAM-VALUE.
MOVE 'TEXT3' TO W_PARAM-PARAM.
APPEND W_PARAM TO I_PARAMETERS.
CONCATENATE TEXT-902
TEXT-903
INTO
W_TEXT_Q.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = TEXT-904
DIAGNOSE_OBJECT = 'Z_ZIMPCHK1_POPUP_TO_CONFIRM'
TEXT_QUESTION = W_TEXT_Q
IMPORTING
ANSWER = UP_ANSWER
TABLES
PARAMETER = I_PARAMETERS
EXCEPTIONS
TEXT_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.
call function 'UPLOAD'
exporting
filename = umsfile
filetype = 'ASC'
tables
data_tab = umsatz.
replacement :
DATA : I_FILE_TABLE1 TYPE TABLE OF FILE_TABLE,
W_FILETABLE1 TYPE FILE_TABLE,
W_RC1 TYPE I,
W_P_DEF_FILE1 TYPE STRING,
W_P_FILE1 TYPE STRING,
w_usr_act1 TYPE I.
W_P_DEF_FILE1 = umsfile.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILENAME = W_P_DEF_FILE1
CHANGING
FILE_TABLE = I_FILE_TABLE1
RC = W_RC1
USER_ACTION = w_usr_act1
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5 .
IF sy-subrc = 0
AND w_usr_act <>
CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
LOOP AT I_FILE_TABLE1 INTO W_FILETABLE1.
W_P_FILE1 = W_FILETABLE1.
EXIT.
ENDLOOP.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = W_P_FILE1
FILETYPE = 'ASC'
TABLES
DATA_TAB = umsatz
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = PT_FILE
FILETYPE = 'DAT'
ITEM = ' '
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
SILENT = 'S'
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
ACT_FILENAME =
ACT_FILETYPE =
FILESIZE =
CANCEL =
TABLES
DATA_TAB = BELEGE
FIELDNAMES =
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7.
replacement:
DATA: l_filename TYPE string,
l_filen TYPE string,
l_path TYPE string,
l_fullpath TYPE string,
l_usr_act TYPE I.
l_filename = PT_FILE.
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
BIN_FILESIZE =
FILENAME = l_fullpath
FILETYPE = 'DAT'
TABLES
DATA_TAB = BELEGE
FIELDNAMES =
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
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. -
Hi can you please provide alternate replacement function modules for the following obsolete function modules in ECC.
LOG_SYSTEM_GET_RFC_DESTINATION
NAMETAB_GET
VALUES_GET
VALUES_DISPLAY
WS_QUERY
HELPSCREEN_NA_CREATEfor WS_QUERY replacement are...
GUI_GET_DESKTOP_INFO
GUI_GET_FILE_INFO
GUI_EXEC
GUI_RUN
CL_GUI_FRONTEND_SERVICES=>FILE_EXIST or WS_QUERY-Directory Exist is CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
also, check...
http://help.sap.com/saphelp_46c/helpdata/en/d2/42f955cafe11d1ad0c080009b0fb56/content.htm
Message was edited by:
Ramesh Babu Chirumamilla -
Hello Frnds,
I have a query regarding Funtion modules. Actually i m working in newer version so i want to know the replacement for the older version.
Suppose earlier for uploading flat file data we used "ws_upload". But now in newer version we are using "GUI upload". So can anyone help me that how to find the new replacement function modules for the older ones.
i.e in SAP.
thanking u all.
regards,
karan<b>Refer the following code:</b>
*& Form upload_file
* text
FORM upload_file USING p_filename TYPE any
CHANGING p_local_table TYPE t_local_table.
* To get the input data from desktop file
DATA: l_file TYPE string.
CLEAR: l_file,
p_local_table.
l_file = p_filename.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_file
filetype = 'ASC'
TABLES
data_tab = p_local_table
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE e002 WITH l_file.
ENDIF.
ENDFORM. " upload_file
Here l_file is the desktop file path and p_local_table is the internal table where the data is to be uploaded from the local file. -
Obsolete function module HELP_VALUES_GET_WITH_TABLE
Hi all,
can any one plz suggest me the replacement of function module for HELP_VALUES_GET_WITH_TABLE.
Thanks in AdvanceHi,
'F4IF_INT_TABLE_VALUE_REQUEST'
This is the replacement function module.
<b>Reward points for helpful answers.</b>
Best Regards,
Ram. -
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. -
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 -
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 of Function module in ECC 6.0
Hello All,
The Function module 'NAMETAB_GET' is shown to be obsolete in ECC 6.0 .
Please suggest which of the function modules among 'DDIF_FIELDINFO_GET' and 'DDIF_NAMETAB_GET' can be used as a replacement for the same.
Also ,it would be helpful if the use of these function modules is mentioned.
Best Regards,
Lavanya.use 'DDIF_NAMETAB_GET'
Functionality
This function module reads the runtime information (nametab) of a table or in general of any type of the ABAP Dictionary. However, the runtime information does not contain any text. You should use the function module DDIF_FIELDINFO_GET to read the runtime information including text (or to determine the domain for table fields).
The types of the ABAP Dictionary are divided into data elements, structured types and table types.
A structured type consists of a sequence of components that are each identified by a unique name. A type is defined for each of these components. In addition to the types of the ABAP Dictionary, you can also use the built-in types of the R/3 System (CHAR, NUMC,...) to define the types of the components.
All its components as well as the fields of its structured components are called the fields of a structured type. The name of a field no longer uniquely identifies it within a structured type. For example, a structured type S could have a structured component F, which itself has a component called F. In this case S would have two fields with the name F. For this reason, its long field name is used to identify a field within a structured type. The long field name is the same as the name of the components for the components of the structured type itself. For the fields of a structured component, the long field name is a concatenation of the name of this structured component, the separator '-' and the long field name of the field in the structured component.
A field whose type is defined by a data element or a built-in type is also called an elementary type. A structured type whose components are all defined as elementary types is called flat. All other structured types are called deep.
This module gets the runtime information for the type whose name is defined in the IMPORT parameter TABNAME. If there is no such type, the exception NOT_FOUND is triggered.
Caution: If the IMPORT parameter ALL_TYPES is not set, only flat structured types are taken into consideration. In this case the exception is also triggered if the specified type is a data element, deep structure or a table type.
If the IMPORT parameter LFIELDNAME is not initial, only structured types having a field with the long name defined by LFIELDNAME are taken into consideration. The exception NOT_FOUND is triggered for all other types.
The internal representation of the runtime object is returned in parameters X030L_WA and X031L_TAB. Depending on the type category, this information is then edited in the corresponding parameters (see documentation about the parameters).
Notes
1. If parameter LFIELDNAME is not initial, X031L_TAB nevertheless contains the description of all fields of the structured type. The decoded form is only determined for the specified field, and the result is copied to DFIES_WA instead of DFIES_TAB. Since decoding for all the fields often takes up most of the runtime for this module, you should set parameter LFIELDNAME if you only need information about one field of the structured type.
This module gets the runtime information about a type. This means that only the currently active version of the type is taken into consideration. If none exists, the exception NOT_FOUND is triggered.
The corresponding function module DDIF_<object type>_GET is used to read the actual definition of a type of the ABAP Dictionary.
Caution: These read modules are much less efficient than the modules for defining the runtime information. You should therefore only use them if the runtime information is not sufficient.
2. The documentation for IMPORT parameter GROUP_NAMES describes how to handle named includes. -
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
-
Need Help in Replacement of Function Modules
Hello all,
I am working on Upgrade project from ECC 5.0 to ECC 6.0. I am facing problems for Replacement of two Obsolete Function Modules. Please give me a solution. FM's are as follows.
1) SET_AUTHORITY : This FM is obsolete in ECC 6.0 and there is not alternative FM present in help.sap.com or any other web portal.
2) WS_QUERY : Here as per my knowledge we use class CL_GUI_FRONTEND_SERVICES and methods FILE_EXIST or DIRECTORY_EXIST as per the parameters in old FM. For parameter 'FS' we use 'FILE_EXIST' and 'DS' we use 'DIRECTORY EXIST'.
But in our program prev. FM has parameter 'OS' i.e. Operating System.
But there is not method called 'OS EXIST' or similar. Please suggest suitable method.
Thanking you all in anticipation.
Best Regards,
HarishHi Harish,
I too could not find any replacement for SET_AUTHORITY
Obsolete Modules can be used in newer versions, but it is not supported by SAP in case of any technical issues.If you still need a replacement, you can replace it by the source code in the FM SET_AUTHORITY itself and modify according to your needs.
Below is the source code of FM SET_AUTHORITY, so you can modify it according to your requirement.
DATA: l_actvt TYPE tact-actvt,
l_hier TYPE STANDARD TABLE OF sethier WITH HEADER LINE.
CASE action.
WHEN 'A '.
l_actvt = activity-add.
WHEN 'C '.
l_actvt = activity-modify.
WHEN 'D '.
l_actvt = activity-display.
WHEN 'E '.
l_actvt = activity-delete.
WHEN 'UD '.
l_actvt = activity-display.
ENDCASE.
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
no_descriptions = 'X'
no_rw_info = 'X'
setid = set
tabname = table
root_header_only = 'X'
TABLES
set_hierarchy = l_hier
EXCEPTIONS
OTHERS = 0.
READ TABLE l_hier INDEX 1.
IF sy-subrc <> 0.
CLEAR l_hier.
l_hier-shortname = set.
ENDIF.
CALL FUNCTION 'G_SET_AUTHORITY_CHECK'
EXPORTING
actvt = l_actvt
authgr = l_hier-authgr
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
CASE action.
WHEN 'A '.
MESSAGE e827 WITH l_hier-shortname RAISING no_authority.
WHEN 'C '.
MESSAGE e828 WITH l_hier-shortname RAISING no_authority.
WHEN 'D '.
MESSAGE e829 WITH l_hier-shortname RAISING no_authority.
WHEN 'E '.
MESSAGE e830 WITH l_hier-shortname RAISING no_authority.
WHEN 'UD '.
MESSAGE e831 WITH l_hier-shortname RAISING no_authority.
ENDCASE.
ENDIF.
If you need help in replacing in the above source code, please post your code here so that I can help you in modifying accordingly.
Regards,
Vasuki
Maybe you are looking for
-
How can I get my new Mac book Pro to read my external hard drive?
I have recently upgraded to the new MacBook Pro and have a new 2T external hard drive. I used my old MacBook Pro to transfer all my files from my old 1T hard drive of the same make to the new one. This all worked without isssue and I can open the ne
-
Variable textArea not found in class javax.swing.JFrame...
Making progress on this issue -- but still stuck. Again trying to get the text from a JTextArea on exit: frame.addWindowListener (new WindowAdapter() { public void windowClosing(WindowEvent e) System.out.println("W
-
Hi All, I have a Universe on top of a BW cube and in my report definition I get data for the object supplier, supplier group (which is a detail object to supplier), a few other dimensions and a measure revenue. A table in the report shows columns sup
-
Unknown Error Message/Acrobat XL Pro
I keep getting an "encountered unknown error" message when trying to open and edit existing PDF files in the trial version of Acrobat XL Pro. Any suggestions?
-
Problem opening multiple .tdms files in subroutine
Heya- I'm using LabVIEW 8.2, professional development system. I'm using the Open / Read / Close TDMS functions as part of a subroutine in a larger program. The subroutine is supposed to open one of several TDMS files (each of which contains bulk dat