08-07-2009 11:51 AM
Hello Experts,
can someone explain in detail what the FM WR26_FILL_ERROR_TABLE is for? I didn`t find a detailed description somewhere else. Perhaps someone can give an example for the usage with exemplary values for import parameters and returned structures.
Thanks.
Regards
Tobias
08-07-2009 1:10 PM
When you are using any Function Module related to Check Module or Site Master Details, all the FMs are starting with WR26_ after call the FM you can get the Error message by using the FM WR26_FILL_ERROR_TABLE. See the Sample code below
CALLl FUNCTION 'WR26_*...........
......................................
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL FUNCTION 'WR26_FILL_ERROR_TABLE'
EXPORTING
I_SUBRC = SY-SUBRC
I_MSGID = SY-MSGID
I_MSGTY = SY-MSGTY
I_MSGNO = SY-MSGNO
I_MSGV1 = SY-MSGV1
I_MSGV2 = SY-MSGV2
I_MSGV3 = SY-MSGV3
I_MSGV4 = SY-MSGV4
I_RETURN_CODE = O_RETURN_CODE
IMPORTING
O_RETURN_CODE = O_RETURN_CODE
TABLES
O_ERROR_TABLE = O_ERROR_TABLE.
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Aug 7, 2009 2:15 PM
Edited by: Kanagaraja Lokanathan on Aug 7, 2009 2:16 PM
08-07-2009 1:10 PM
When you are using any Function Module related to Check Module or Site Master Details, all the FMs are starting with WR26_ after call the FM you can get the Error message by using the FM WR26_FILL_ERROR_TABLE. See the Sample code below
CALLl FUNCTION 'WR26_*...........
......................................
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL FUNCTION 'WR26_FILL_ERROR_TABLE'
EXPORTING
I_SUBRC = SY-SUBRC
I_MSGID = SY-MSGID
I_MSGTY = SY-MSGTY
I_MSGNO = SY-MSGNO
I_MSGV1 = SY-MSGV1
I_MSGV2 = SY-MSGV2
I_MSGV3 = SY-MSGV3
I_MSGV4 = SY-MSGV4
I_RETURN_CODE = O_RETURN_CODE
IMPORTING
O_RETURN_CODE = O_RETURN_CODE
TABLES
O_ERROR_TABLE = O_ERROR_TABLE.
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Aug 7, 2009 2:15 PM
Edited by: Kanagaraja Lokanathan on Aug 7, 2009 2:16 PM