From 45d47da86cb802739087c0597f09fd2956c79d30 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 5 Aug 2024 14:12:31 +0200 Subject: [PATCH 1/3] updated php-sap interfaces to 5.1.0, and common to 6.1.0 --- composer.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index d7de46f..2a21402 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "php-sap/common", - "version": "v6.0.0", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/php-sap/common.git", - "reference": "85ea659659f9569246c778e082935ad813b1866f" + "reference": "5598d0f9831f07b33a2e92392300aa176540e3cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-sap/common/zipball/85ea659659f9569246c778e082935ad813b1866f", - "reference": "85ea659659f9569246c778e082935ad813b1866f", + "url": "https://api.github.com/repos/php-sap/common/zipball/5598d0f9831f07b33a2e92392300aa176540e3cf", + "reference": "5598d0f9831f07b33a2e92392300aa176540e3cf", "shasum": "" }, "require": { @@ -56,9 +56,9 @@ ], "support": { "issues": "https://github.com/php-sap/common/issues", - "source": "https://github.com/php-sap/common/tree/v6.0.0" + "source": "https://github.com/php-sap/common/tree/v6.1.0" }, - "time": "2024-08-05T11:02:59+00:00" + "time": "2024-08-05T12:09:10+00:00" }, { "name": "php-sap/datetime", @@ -117,16 +117,16 @@ }, { "name": "php-sap/interfaces", - "version": "v5.0.0", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/php-sap/interfaces.git", - "reference": "d4ae1038eb26251f5e32eb6429cdf4f40d2ab422" + "reference": "0c9d523009946ba223f0fd72e0a403130f3cc664" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-sap/interfaces/zipball/d4ae1038eb26251f5e32eb6429cdf4f40d2ab422", - "reference": "d4ae1038eb26251f5e32eb6429cdf4f40d2ab422", + "url": "https://api.github.com/repos/php-sap/interfaces/zipball/0c9d523009946ba223f0fd72e0a403130f3cc664", + "reference": "0c9d523009946ba223f0fd72e0a403130f3cc664", "shasum": "" }, "require": { @@ -165,9 +165,9 @@ ], "support": { "issues": "https://github.com/php-sap/interfaces/issues", - "source": "https://github.com/php-sap/interfaces/tree/v5.0.0" + "source": "https://github.com/php-sap/interfaces/tree/v5.1.0" }, - "time": "2024-07-30T12:11:01+00:00" + "time": "2024-08-05T11:54:30+00:00" } ], "packages-dev": [ From 5ef682bc23044c12a5924f9465c7ba611f002ca9 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 5 Aug 2024 14:36:28 +0200 Subject: [PATCH 2/3] updated php-sap interfaces to 5.1.1 --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 2a21402..dcc874f 100644 --- a/composer.lock +++ b/composer.lock @@ -117,16 +117,16 @@ }, { "name": "php-sap/interfaces", - "version": "v5.1.0", + "version": "v5.1.1", "source": { "type": "git", "url": "https://github.com/php-sap/interfaces.git", - "reference": "0c9d523009946ba223f0fd72e0a403130f3cc664" + "reference": "5805508158fc086af2d5e977b0be6c115c04746f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-sap/interfaces/zipball/0c9d523009946ba223f0fd72e0a403130f3cc664", - "reference": "0c9d523009946ba223f0fd72e0a403130f3cc664", + "url": "https://api.github.com/repos/php-sap/interfaces/zipball/5805508158fc086af2d5e977b0be6c115c04746f", + "reference": "5805508158fc086af2d5e977b0be6c115c04746f", "shasum": "" }, "require": { @@ -165,9 +165,9 @@ ], "support": { "issues": "https://github.com/php-sap/interfaces/issues", - "source": "https://github.com/php-sap/interfaces/tree/v5.1.0" + "source": "https://github.com/php-sap/interfaces/tree/v5.1.1" }, - "time": "2024-08-05T11:54:30+00:00" + "time": "2024-08-05T12:15:50+00:00" } ], "packages-dev": [ From 2bcc719704333bd8007578c8a9cc01008d65df2f Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 5 Aug 2024 14:39:58 +0200 Subject: [PATCH 3/3] added changing elements to input and output #10 --- src/SapRfc.php | 6 +++++- src/Traits/ApiTrait.php | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/SapRfc.php b/src/SapRfc.php index fe63bb9..e817da5 100644 --- a/src/SapRfc.php +++ b/src/SapRfc.php @@ -208,7 +208,10 @@ public function invoke(): array */ $params = array_merge( $this->getInputParams( - $this->getApi()->getInputElements(), + array_merge( + $this->getApi()->getInputElements(), + $this->getApi()->getChangingElements() + ), $this->getParams() ), $this->getTableParams( @@ -235,6 +238,7 @@ public function invoke(): array */ return $this->castOutput(array_merge( $this->getApi()->getOutputElements(), + $this->getApi()->getChangingElements(), $this->getApi()->getTables() ), $result); } diff --git a/src/Traits/ApiTrait.php b/src/Traits/ApiTrait.php index 57f3a16..0ac3fa0 100644 --- a/src/Traits/ApiTrait.php +++ b/src/Traits/ApiTrait.php @@ -107,9 +107,10 @@ private function mapType(string $type): string private function mapDirection(string $direction): string { $mapping = [ - 'RFC_EXPORT' => IApiElement::DIRECTION_OUTPUT, - 'RFC_IMPORT' => IApiElement::DIRECTION_INPUT, - 'RFC_TABLES' => ITable::DIRECTION_TABLE + 'RFC_EXPORT' => IApiElement::DIRECTION_OUTPUT, + 'RFC_IMPORT' => IApiElement::DIRECTION_INPUT, + 'RFC_CHANGING' => IApiElement::DIRECTION_CHANGING, + 'RFC_TABLES' => ITable::DIRECTION_TABLE ]; if (!array_key_exists($direction, $mapping)) { throw new SapLogicException(sprintf('Unknown SAP Netweaver RFC direction \'%s\'!', $direction));