Solutions Custom Errors
Solutions Custom Errors
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.
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.
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:
IF SY-SUBRC NE 0.
MESSAGE E033 WITH P_FILE ' could not be opened'(E03).
ENDIF.
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'
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.
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:
Example:
l_filename = SPACE.
IF sy-subrc = 0
AND l_usr_act <>
CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
l_P_DEF_FILE = P_FILE.
IF sy-subrc = 0
AND w_usr_act <>
CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
ENDIF.
5. Obsolete FM: WS_FILENAME_GET
Replacement Method:
cl_gui_frontend_services=>file_open_dialog
Example:
6.
WRITE : <Itab > is an obsolete statement.
It writes all values of all the fields of the itab to the report.
So, to replace this statement we need to write all fields of the itab individually in the write
statement.
For Ex :
Write : itab-field1,
Itab-field2,
Itab-field3.
If the itab has fields upto 10 , then we can write all these in the Write statement.
But , if the itab has huge no of fields , then we need to get confirmation from the customer to
find out the fields that need to be written in the write statement.
7. Obsolete FM : POPUP_TO_CONFIRM_STEP
Replacement FM: POPUP_TO_CONFIRM
Replacement Method :
Note :
J (YES),
N (NO).
1 (YES),
2 (NO).
So, please change these values accordingly while replacing with the new FM.
8. Correcting the Character string errors by creating Text Elements:
Example:
9.If you get any errors related to text pools is not defined, you
can ignore.
The above statement is obsolete in ECC. So, replace it with the following statement:
The above statement is obsolete in ECC. So, replace it with the following statement:
Replacement: