When we have applications that call native commands via java.lang.Runtime.exec(), be wary of the invocations. It could potentially output an overwhelmingly large number of texts to the standard output—for example, the sftp command in Linux. Therefore, causing the codes to hang.
How to Display and Close Windows in SAP Web Dynpro for Java
This article demonstrates how to display and close windows using Java codes in SAP Web Dynpro for Java.
How to get Currently Logged In Portal User in SAP Web Dynpro for Java
The current user may be set on some context variables but it may be out-of-sync, e.g. user id of previously logged in other user, or inadventently updated by other components. The safer approach is to retrieve it straight from WDClientUser.
How to Retrieve a List of Locked User Accounts directly from SAP NetWeaver Portal
Background [wp_ad_camp_1] A problem ticket was created for a production issue wherein the SAP NetWeaver Portal application’s Unlock Users functionality is taking too long to even just list the all locked accounts from a specific country. During the investigation, I
How to write Logographic Characters to Files using UTF-8 Encoding
Background This article demonstrates how to write various logographic characters like Kanji (from Japan), Hanja (from Korea), and Hanzi (from China) to files using UTF-8 encoding. In a B2B system, it is not uncommon to read and write files in
How to Read UTF-8 Encoded Files
This article demonstrates how to read files written in various logographic characters like Kanji (from Japan), Hanja (from Korea), and Hanzi (from China) using UTF-8 encoding.
Simple PHP SOAP Client Example
Background This article demonstrates how to create an SOAP client using PHP and consume a SOAP-based web service [wp_ad_camp_1] Hardware Environment n/a Software Environment Windows 7 Professional SP1 PHP 5.5.9 / Zend Engine v2.5.0 Find a free Web Service Online
How to programmatically add elements to a value node in Web Dynpro for Java
Background [wp_ad_camp_1] This article demonstrates how to programmatically add elements to a node value. Web Dynpro has this concept of context programming. A context is a hierarchical tree data structure that can consist of nodes where each node can represent
How to read files line by line in PHP
Background [wp_ad_camp_1] PHP is not as bad as other people would think. Sometimes it is easier to do things in PHP than in, say, Java. Consider reading a text file line by line and parsing each pipe-delimited line. Hardware Environment
Selection Sort Algorithm Implementation in Java
This article demonstrates how to implement Selection Sort algorithm in Java.