Skip to content

Instantly share code, notes, and snippets.

@larshp
Last active February 25, 2021 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larshp/71609852a79aa1e877f8c4020d18feac to your computer and use it in GitHub Desktop.
Save larshp/71609852a79aa1e877f8c4020d18feac to your computer and use it in GitHub Desktop.
METHOD zif_abapgit_exit~http_client.
DATA: lv_ticket TYPE text4096,
ls_bapiret2 TYPE bapiret2.
* Or create RFC calling function module CREATE_RFC_REENTRANCE_TICKET
CALL FUNCTION '/PLMI/EASYDMS_CREATE_SSOTICKET'
DESTINATION 'SOMETHING'
IMPORTING
ev_ticket = lv_ticket
es_return = ls_bapiret2
EXCEPTIONS
system_failure = 1
communication_failure = 2
resource_failure = 3.
IF sy-subrc = 0.
ii_client->request->set_header_field(
name = 'MYSAPSSO2'
value = CONV #( lv_ticket ) ).
ENDIF.
ENDMETHOD.
@prasanth-pulapaka
Copy link

Hi Larshp, Nikhil
I am also looking for the oath proxy authentication to connect to Azure devops git from SAP.
Can you please let me know if you have the latest http_client implementation available for this ?
@nikhil : did you set any default value to the profile parameter ?

Thanks & Regards,
Prasanth P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment