Hi All,
In Business Object coding if SY-SUBRC, returned to zero what is the best method of error logging back to the system.
Assuming that the Workflow runs in the background and calls the Background method in the Business Object.
Have used mostly two of the below
1) IF sy-subrc <> 0.
Exit_Object_Not_Found
ENDIF.
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.
Which one is recommended in case of BO coding, Can anyone explain, just curious
Thanks,
Charan.