diff --git a/.github/workflows/alignAfterPr.yml b/.github/workflows/alignAfterPr.yml index 5fdac3f..30edc12 100644 --- a/.github/workflows/alignAfterPr.yml +++ b/.github/workflows/alignAfterPr.yml @@ -16,6 +16,6 @@ jobs: - name: Align after PR uses: ./actions/regesta/alignAfterPr with: - githubToken: ${{ secrets.GITHUB_TOKEN }} + githubToken: ${{ secrets.CI_GITHUB_TOKEN }} repoName: ${{ github.event.repository.name }} mainBranch: ${{ github.ref_name }} diff --git a/README.md b/README.md index 20c2618..30fc16c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ TRM Server is the essential component for operations between TRM Client and your Typically, trm-server is used by a TRM Client. -When a TRM Client (like [trm-client](https://github.com/RegestaItalia/trm-client)) has to execute any of the functions of trm-server, it makes use od the [SAP NW RFC SDK](https://support.sap.com/en/product/connectors/nwrfcsdk.html). +When a TRM Client (like [trm-client](https://github.com/RegestaItalia/trm-client)) has to execute any of the functions of trm-server, it makes use of the [SAP NW RFC SDK](https://support.sap.com/en/product/connectors/nwrfcsdk.html). The SDK connects to the development system, where this package exists, and executes the function. @@ -64,4 +64,4 @@ Make sure to open an issue first. Contributions will be merged upon approval. -[Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines. \ No newline at end of file +[Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines. diff --git a/docs/rfcFunctions.md b/docs/rfcFunctions.md index 40c5934..eb08b98 100644 --- a/docs/rfcFunctions.md +++ b/docs/rfcFunctions.md @@ -91,6 +91,10 @@ The transport request will be created as a workbench transport (K). Transport request description. + - IV_TARGET - `TR_TARGET` + + Transport system target. + - Exporting - EV_TRKORR - `TRKORR` @@ -321,6 +325,20 @@ This parameter can also be seen in transaction `AL11`. Binary file to write. +## TRM Package + +TRM Package related functions. + +### Update integrity + +Integrity is used to verify package content. + +- Function module `ZTRM_SET_INTEGRITY` +- Importing + - IS_INTEGRITY - **required** - `ZTRM_INTEGRITY` + + Package integrity. + ## Interfaces Interfaces are used to modify objects. diff --git a/src/zif_trm.intf.abap b/src/zif_trm.intf.abap index 9588f8c..a20b598 100644 --- a/src/zif_trm.intf.abap +++ b/src/zif_trm.intf.abap @@ -1,6 +1,6 @@ INTERFACE zif_trm PUBLIC . - CONSTANTS version TYPE string VALUE '1.0.0' ##NO_TEXT. + CONSTANTS version TYPE string VALUE '1.0.1' ##NO_TEXT. ENDINTERFACE. diff --git a/src/ztrm.fugr.xml b/src/ztrm.fugr.xml index 1e7ac81..6fbed2f 100644 --- a/src/ztrm.fugr.xml +++ b/src/ztrm.fugr.xml @@ -459,6 +459,10 @@ IV_TEXT AS4TEXT + + IV_TARGET + TR_TARGET + @@ -482,6 +486,10 @@ IV_TEXT P + + IV_TARGET + P + EV_TRKORR P @@ -1662,6 +1670,32 @@ + + ZTRM_SET_INTEGRITY + R + Set TRM package integrity + + + IS_INTEGRITY + ZTRM_INTEGRITY + + + + + TRM_RFC_UNAUTHORIZED + + + + + IS_INTEGRITY + P + + + TRM_RFC_UNAUTHORIZED + X + + + ZTRM_SET_TRANSPORT_DOC R diff --git a/src/ztrm.fugr.ztrm_create_import_tr.abap b/src/ztrm.fugr.ztrm_create_import_tr.abap index ca48dd7..b37fe9d 100644 --- a/src/ztrm.fugr.ztrm_create_import_tr.abap +++ b/src/ztrm.fugr.ztrm_create_import_tr.abap @@ -3,6 +3,7 @@ FUNCTION ZTRM_CREATE_IMPORT_TR. *"*"Local Interface: *" IMPORTING *" VALUE(IV_TEXT) TYPE AS4TEXT +*" VALUE(IV_TARGET) TYPE TR_TARGET *" EXPORTING *" VALUE(EV_TRKORR) TYPE TRKORR *" EXCEPTIONS @@ -22,6 +23,7 @@ FUNCTION ZTRM_CREATE_IMPORT_TR. EXPORTING iv_text = iv_text iv_type = 'K' + iv_target = iv_target IMPORTING es_request_header = ls_header EXCEPTIONS diff --git a/src/ztrm.fugr.ztrm_set_integrity.abap b/src/ztrm.fugr.ztrm_set_integrity.abap new file mode 100644 index 0000000..77b4a23 --- /dev/null +++ b/src/ztrm.fugr.ztrm_set_integrity.abap @@ -0,0 +1,21 @@ +FUNCTION ZTRM_SET_INTEGRITY. +*"---------------------------------------------------------------------- +*"*"Local Interface: +*" IMPORTING +*" VALUE(IS_INTEGRITY) TYPE ZTRM_INTEGRITY +*" EXCEPTIONS +*" TRM_RFC_UNAUTHORIZED +*"---------------------------------------------------------------------- + CALL FUNCTION 'ZTRM_CHECK_AUTH' + EXCEPTIONS + trm_rfc_unauthorized = 1. + IF sy-subrc EQ 1. + RAISE trm_rfc_unauthorized. + ENDIF. + + MODIFY ztrm_integrity FROM is_integrity. + COMMIT WORK AND WAIT. + + + +ENDFUNCTION. diff --git a/src/ztrm_integrity.tabl.xml b/src/ztrm_integrity.tabl.xml new file mode 100644 index 0000000..877ba28 --- /dev/null +++ b/src/ztrm_integrity.tabl.xml @@ -0,0 +1,49 @@ + + + + + + ZTRM_INTEGRITY + E + TRANSP + Package integrity + E + X + A + 1 + + + ZTRM_INTEGRITY + A + 0 + APPL0 + N + + + + PACKAGE_NAME + X + ZTRM_PACKAGE_NAME + 0 + X + E + + + PACKAGE_REGISTRY + X + ZTRM_PACKAGE_REGISTRY + 0 + X + E + + + INTEGRITY + ZTRM_PACKAGE_INTEGRITY + 0 + X + E + + + + + diff --git a/src/ztrm_package_integrity.dtel.xml b/src/ztrm_package_integrity.dtel.xml new file mode 100644 index 0000000..e53fa85 --- /dev/null +++ b/src/ztrm_package_integrity.dtel.xml @@ -0,0 +1,24 @@ + + + + + + ZTRM_PACKAGE_INTEGRITY + E + 55 + 10 + 20 + 40 + TRM Package Integrity + Integrity + Int + Integrity + Integrity + E + CHAR + 000128 + 000128 + + + + diff --git a/src/ztrm_package_name.dtel.xml b/src/ztrm_package_name.dtel.xml index 5071326..c444776 100644 --- a/src/ztrm_package_name.dtel.xml +++ b/src/ztrm_package_name.dtel.xml @@ -5,7 +5,15 @@ ZTRM_PACKAGE_NAME E + 12 + 04 + 04 + 12 TRM Package name (incl. scope) + Package name + Name + Name + Package name E CHAR 000042 diff --git a/src/ztrm_package_registry.dtel.xml b/src/ztrm_package_registry.dtel.xml index c4303f4..4013f4b 100644 --- a/src/ztrm_package_registry.dtel.xml +++ b/src/ztrm_package_registry.dtel.xml @@ -10,6 +10,10 @@ 20 40 TRM Package registry URL + Registry + Reg + Registry + Registry E CHAR 000100