Posts

SAP: Segregate Different SMTP Mail Server Based on Sender Domain

Image
  Requirement : An SAP server, with a single Productive client shared by multiple company codes. Each CoCode would have their own domain (FQDN), and any email send out, for example PO to vendors, are to be sent using each individual CoCode SMTP mail server. Solution Steps: 1. Configure multiple SMTP nodes in Tx SCOT, limiting each node with a Sender Group 2. Set different Sender Group (CDG) parameters for each user of each CoCode (Tx SU01 > Parameters) 3. Test using SCOT's Routing Test feature 4. Profit Detail Step: Logon to SAP system and configure multiple SMTP Node, can use  Continue with SCOT Wizard. Once you get multiple Nodes (as per below screenshot), double click any of them,  In this example, we double click on the "SECOND" node. And then click on "Set" button for the address type you want to configure (that would most probably be for INT type) And click the Pencil icon for setting the Sender Group Here we can set based on FQDN or any string. We are ...

Reset SAPSR3DB Password Failed using SAP brtools - Manual Way updating SecStore

 Refer to SAP note 1592575 - Recreating Secstore.properties and secstore.key for 7.00/7.01/7.02 J2EE Netweaver systems Download the attachments. BEWARE: THE POWERPOINT CONTAINS INCORRECT SYNTAX. BEWARE: THE LAST COMMAND IN THE TXT FILE HAS A TYPO. the steps in that note might not directly rrelfectted here. but these steps are valid. Exmaple of executions as below: # java -classpath tc_sec_secstorefs.jar:exception.jar:iaik_jce.jar:logging.jar com.sap.security.core.server.secstorefs.SecStoreFS create -s ECD -f Sec.properties -k sec.key -enc -p Password1 SAP Secure Store in the File System - Copyright (c) 2003 SAP AG Store with encryption and a key phrase created. # java -classpath tc_sec_secstorefs.jar:exception.jar:iaik_jce.jar:logging.jar com.sap.security.core.server.secstorefs.SecStoreFS insert -s ECD -f Sec.properties -k sec.key admin/user/ECD SAPSR3DB SAP Secure Store in the File System - Copyright (c) 2003 SAP AG Key/value pair inserted. # java -classpath tc_sec_secstorefs...

Oracle Trigger to Log Logon Denied ORA-1017 Error into Alert Log

  create trigger logon_denied_to_alert after servererror on database declare message varchar2(4000); begin select 'ip='||sys_context('userenv','ip_address')||',host='||sys_context('userenv','host')||',osuser='||SYS_CONTEXT ('USERENV', 'OS_USER') into message from dual; IF (ora_is_servererror(1017)) THEN message := to_char(sysdate,'Dy Mon dd HH24:MI:SS YYYY') || ' logon denied for ' || message; sys.dbms_system.ksdwrt(2,message); end if; end; / === And to view where the trace file is: G:\oracle\diag\rdbms\syp\syp\trace>sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Mon Dec 14 12:09:14 2020 Copyright (c) 1982, 2017, Oracle.  All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> show parameter background NAME                   ...

How To Check Existing NW Java Usage Types / Software Units / Product Instance

 Software Units or Usage Types or the new name Product Instance All same thing, but different names. Example in NW JAVA - ADS or EP Core or Enterpriuse Portal Go To URL: http://fqdn:port/utl/SLDInstancesDetailedInfo.jsp Old URL:  http://<host>:<http_port>/utl/UsageTypesInfo Some side reference:  1793486 - Installing additional usage types in existing SAP systems using SUM //alak

Compiling and Testing sflightClient Demo Application on MacOS 10.15.6 after Installing SAP NW RFC SDK 7.50 PL6

  Just my own notes: Ref: 2573790 - Installation, Support and Availability of the SAP NetWeaver RFC Library 7.50 2573953 - Compiling and Linking RFC Programs with the SAP NetWeaver RFC SDK 7.50 Compiling: cd demo/ clang++ -std=c++11 -DSAPwithUNICODE -I../include -c -o sflightClient.o sflightClient.c clang++ -o sflightClient sflightClient.o ../lib/libsapnwrfc.dylib ../lib/libsapucum.dylib And running it: awes0me@Niks-MacBook-Pro demo % ./sflightClient /H/saprouter.com/S/3299/H/172.16.10.71 00 BPINST Welcome1 100 EN Logging in...  ...done Caching DDIC metadata...  ...done Please select an Airline: AA     American Airlines AB     Air Berlin AC     Air Canada AF     Air France AZ     Alitalia BA     British Airways CO     Continental Airlines DL     Delta Airlines FJ     Air Pacific JL     Japan Airlines LH    ...

SAP NW RFC SDK 7.50 PL6 On MacOS 10.15.6

 Had some issue in compiling node-rfc on MacOS 10.15.6 Haven't had that sorted out But at least i have my SAP NW RFC SDK installed correctly on my Mac.. VERY useful info from: https://github.com/SAP/node-rfc/issues/143 https://github.com/SAP/node-rfc/issues/140 Snippets: As a workaround you can: Replace modified nwrfcsdk libs, with SAP original libs, in /usr/local/nwrfcsdk folder Fix  sapnwrfc.node  @rpaths to @loader_paths: $ cd lib \b inding $ install_name_tool -change @rpath/libsapnwrfc.dylib @loader_path/libsapnwrfc.dylib sapnwrfc.node $ install_name_tool -change @rpath/libsapucum.dylib @loader_path/libsapucum.dylib sapnwrfc.node To verify: $ otool -L sapnwrfc.node (py380) master ✱ sapnwrfc.node: @rpath/sapnwrfc.node (compatibility version 0.0.0, current version 0.0.0) @loader_path/libsapnwrfc.dylib (compatibility version 0.0.0, current version 0.0.0) @loader_path/...

Fiori Apps Keep Calling Internal Hostname / Internal FQDN

Image
Had this issue where certain apps calls internal hostnames or internal FQDN when clicking or spawning webdynpro URL or any calling of internally hosted attachment. To change this setting, general steps as below: Check the app is using which local Alias - is it LOCAL or S4PS or S4FIn or whatever Check in /UI2/V_ALIASMAP / /UI2/V_ALIASCAT that alis is mapped to which alias. Check in SM59 under HTTP Connections to ABAP System if let say the Alias name is LOCAL, so there should be three LOCAL_xx created, which are: LOCAL_HTTP LOCAL_HTTPS LOCAL_HTTPT SO change for each of this, to the correct FQDN or hostname Hope this helps someone. //alak