Skip to content

Instantly share code, notes, and snippets.

@chumpa
Created September 20, 2018 12:03
Show Gist options
  • Save chumpa/a2deccbf480e70bfda2e68309a1b8239 to your computer and use it in GitHub Desktop.
Save chumpa/a2deccbf480e70bfda2e68309a1b8239 to your computer and use it in GitHub Desktop.
rsugio-cpi-001-showVersion-tenantInfo
import com.sap.gateway.ip.core.customdev.util.Message as CpiMsg
// tenant information
// ilya.kuznetsov@sap.com
CpiMsg r001showVersion_tenantInfo(CpiMsg msg) {
String hn = msg.headers.host
String tenantName = System.properties['com.sap.it.node.tenant.name']
msg.setBody("tenant $tenantName, host $hn" as String)
msg
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment