SAP ABAP SY-SUBRC value return / SY-SUBRC 정리


SAP ABAP SY-SUBRC value return / SY-SUBRC 정리

ABAP에서는 SY-SUBRC를 통해서 정상적으로 로직이 흘러가고 있는지 확인할 수 있다.일반적으로 정상적일 때는 SY-SUBRC 가 0으로 떨어지지만,에러나 문제가 발생한 상황에서는 SY-SUBRC 값은 다르게 출력 된다.실행되는 상황에 따라 다르게 출력되는 SY-SUBRC를 정리하면 다음과 같다. • ASSIGN sets SY-SUBRC to 0 if assignment to field symbol is possible, otherwise 4.• ASSIGN ->* sets SY-SUBRC to 0 if dereferencing is possible, otherwise 4.• AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the necessary authorization, otherwise 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause.• CALL DIALOG with..........



원문링크 : SAP ABAP SY-SUBRC value return / SY-SUBRC 정리