/AWS1/IF_CON=>GETREPOSITORYSYNCSTATUS()¶
About GetRepositorySyncStatus¶
Returns details about the sync status for a repository. A repository sync uses Git sync to push and pull changes from your remote repository.
Method Signature¶
METHODS /AWS1/IF_CON~GETREPOSITORYSYNCSTATUS
IMPORTING
!IV_BRANCH TYPE /AWS1/CONBRANCHNAME OPTIONAL
!IV_REPOSITORYLINKID TYPE /AWS1/CONREPOSITORYLINKID OPTIONAL
!IV_SYNCTYPE TYPE /AWS1/CONSYNCCONFIGURATIONTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_congetrepositorysyn01
RAISING
/AWS1/CX_CONACCESSDENIEDEX
/AWS1/CX_CONINTERNALSERVEREX
/AWS1/CX_CONINVALIDINPUTEX
/AWS1/CX_CONRESOURCENOTFOUNDEX
/AWS1/CX_CONTHROTTLINGEX
/AWS1/CX_CONCLIENTEXC
/AWS1/CX_CONSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_branch TYPE /AWS1/CONBRANCHNAME /AWS1/CONBRANCHNAME¶
The branch of the repository link for the requested repository sync status.
iv_repositorylinkid TYPE /AWS1/CONREPOSITORYLINKID /AWS1/CONREPOSITORYLINKID¶
The repository link ID for the requested repository sync status.
iv_synctype TYPE /AWS1/CONSYNCCONFIGURATIONTYPE /AWS1/CONSYNCCONFIGURATIONTYPE¶
The sync type of the requested sync status.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_congetrepositorysyn01 /AWS1/CL_CONGETREPOSITORYSYN01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getrepositorysyncstatus(
iv_branch = |string|
iv_repositorylinkid = |string|
iv_synctype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_repositorysyncattempt = lo_result->get_latestsync( ).
IF lo_repositorysyncattempt IS NOT INITIAL.
lv_timestamp = lo_repositorysyncattempt->get_startedat( ).
lv_repositorysyncstatus = lo_repositorysyncattempt->get_status( ).
LOOP AT lo_repositorysyncattempt->get_events( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_event = lo_row_1->get_event( ).
lv_externalid = lo_row_1->get_externalid( ).
lv_timestamp = lo_row_1->get_time( ).
lv_type = lo_row_1->get_type( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.