Thursday, January 26, 2017

transaction code summary

SAP Easy Access -> Tools -> Customizing -> IMG -> Execute Project (SPRO) -> SAP Reference IMG

t-code:The SAP Project Reference Object (SPRO)
define a company:OX15 (new entries)
define a company code:OX02(new entries)
Assign Company Code to Company or use the transaction code OX16
Defining a business area t-code:OX03
To define a segment t-code(no tcode_ ,only form menu IMG -> Enterprise Structure -> Definition ->Financial Accounting -> Define Segment


Maintain Fiscal Year Variant tcode:OB29


JBOSS5 DEBUG THRESHHOLD setting

add following for JBoss Lauch configuration -Djboss.server.log.threshold=DEBUG

Wednesday, January 25, 2017

force https post use TLS version 1.2

String protocol = "TLSv1.2"; try { SSLContext ctx5 = SSLContext.getInstance(protocol); ctx5.init(null, null, null); SSLContext.setDefault(ctx5); System.out.println("get default.."); } catch (Exception e) { System.out.println("could not set"); }

add soap authentication header in soap request

VinDecodingServiceServiceLocator locator = new VinDecodingServiceServiceLocator(); VinDecodingService_PortType service = locator.getVinDecodingService(new URL("https://host_ip/apis/services/VinDecodingService")); org.apache.axis.client.Stub stub = (org.apache.axis.client.Stub) service; SOAPHeaderElement header = new SOAPHeaderElement("urn:yournamespace", "AuthenticationHeader"); SOAPElement node = header.addChildElement("username"); node.addTextNode("joedone"); SOAPElement node1 = header.addChildElement("password"); node1.addTextNode("8b67e624r"); ((Stub) service).setHeader(header); stub.setHeader(header); VinDecodingResponse res = service.decode("US", 233706, "PRIOS", "2C4RC1BG1ER178205"); //test System.out.println(res.getStatus())