Application Development 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: 

FM WR26_FILL_ERROR_TABLE

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Kanagaraja_L
Active Contributor
0 Kudos

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

1 REPLY 1

Kanagaraja_L
Active Contributor
0 Kudos

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