2007 Oct 31 10:42 AM
I am using call transaction in back ground how do i check errors
2007 Oct 31 10:45 AM
If you are using in Background then just create a report with the return table of CALL Transaction. That will be saved as log and can be viewed from SM37.
Regards,
Amit
Reward all helpful replies.
If you are using in Background then just create a report with the return table of CALL Transaction. That will be saved as log and can be viewed from SM37.
Regards,
Amit
Reward all helpful replies.
2007 Oct 31 10:45 AM
If you are using in Background then just create a report with the return table of CALL Transaction. That will be saved as log and can be viewed from SM37.
Regards,
Amit
Reward all helpful replies.
2007 Oct 31 2:23 PM
hi soumya,
In call transaction ,we can use an internal table with structure BDCMSGCALL for viewing the error records.It s/b given explicitly.
Reward me if it is usful.
Thanks,
Srikanth.A
2007 Oct 31 2:25 PM
Hi,
You can chek the errors by creating the session method. Try this code.
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE P_MODE
UPDATE P_UPDATE
MESSAGES INTO IT_MESS.
IF SY-SUBRC = 0.
READ TABLE IT_MESS WITH KEY MSGTYP = 'S'.
IF SY-SUBRC = 0.
IT_SUCESS-LIFNR = IT_MESS-MSGV1.
IT_SUCESS-NAME1 = IT_VENDOR-NAME1.
APPEND IT_SUCESS.
ADD 1 TO V_SUCESS.
ENDIF.
ELSE.
READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
IF SY-SUBRC = 0.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = IT_ERROR-MESSAGE
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IT_ERROR-LINENO = V_INDEX.
APPEND IT_ERROR.
ADD 1 TO V_ERROR.
ENDIF.
IF V_ERR_1 EQ SPACE.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = P_EGROUP
USER = P_EUSER
KEEP = P_EKEEP
HOLDDATE = P_EHDATE.
V_ERR_1 = 'X'.
ENDIF.
Regards
Srinu
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |