Skip to content

Instantly share code, notes, and snippets.

@sandraros
Created November 2, 2019 09:53
Show Gist options
  • Save sandraros/fee3543aed40845888541554c7e87b4f to your computer and use it in GitHub Desktop.
Save sandraros/fee3543aed40845888541554c7e87b4f to your computer and use it in GitHub Desktop.
Example implementation for custom_deserialize_abap_clif (https://github.com/larshp/abapGit/pull/2987)
CLASS zcl_abapgit_user_exit DEFINITION PUBLIC FINAL CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_exit.
ENDCLASS.
CLASS zcl_abapgit_user_exit IMPLEMENTATION.
METHOD zif_abapgit_exit~custom_deserialize_abap_clif.
DATA: lo_deserializer TYPE REF TO zcl_abapgit_oo_deserializer.
CASE iv_object_type.
WHEN 'CLAS'.
CREATE OBJECT lo_deserializer
EXPORTING
is_key = is_key
it_source = it_source.
lo_deserializer->deserialize_definition( ).
lo_deserializer->deserialize_implementation( ).
" Issue #2671 "Some error on ABAP 7.02" -> runtime error INSERT_REPORT_NO_EXTTYPE
" because kernel did not support the extension type CS yet.
" lo_deserializer->deserialize_full_class_include( it_source = it_source ).
lo_deserializer->update_source_index( ).
rv_done = abap_true.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_exit~allow_sap_objects.
ENDMETHOD.
METHOD zif_abapgit_exit~change_local_host.
ENDMETHOD.
METHOD zif_abapgit_exit~change_proxy_authentication.
ENDMETHOD.
METHOD zif_abapgit_exit~change_proxy_port.
ENDMETHOD.
METHOD zif_abapgit_exit~change_proxy_url.
ENDMETHOD.
METHOD zif_abapgit_exit~change_tadir.
ENDMETHOD.
METHOD zif_abapgit_exit~create_http_client.
ENDMETHOD.
METHOD zif_abapgit_exit~http_client.
ENDMETHOD.
METHOD zif_abapgit_exit~custom_serialize_abap_clif.
ENDMETHOD.
METHOD zif_abapgit_exit~get_ssl_id.
ENDMETHOD.
ENDCLASS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment