Skip to content

Instantly share code, notes, and snippets.

@alezhu
Created April 27, 2017 09:02
Show Gist options
  • Save alezhu/cb151dfa6c6b67093aee94c151bc4575 to your computer and use it in GitHub Desktop.
Save alezhu/cb151dfa6c6b67093aee94c151bc4575 to your computer and use it in GitHub Desktop.
class-methods SY2RETURN
exporting
!ES_RETURN type BAPIRET2
changing
!CT_RETURN type BAPIRET2_T optional .
METHOD sy2return.
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = sy-msgty
cl = sy-msgid
number = sy-msgno
par1 = sy-msgv1
par2 = sy-msgv2
par3 = sy-msgv3
par4 = sy-msgv4
* log_no = log_no
* log_msg_no = log_msg_no
* parameter = parameter
* row = row
* field = field
IMPORTING
return = es_return.
IF ct_return IS SUPPLIED.
APPEND es_return TO ct_return.
ENDIF.
ENDMETHOD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment