Connect SAP Server to Java Application Using SAP JCO

Prabhas
Updated on 25-Jun-2020 21:09:32

2K+ Views

I would suggest you to use below instead of JCO_AHOST and JCO_SYSNR:Use JCO_R3NAME with system ID of the target hostUse JCO_MSHOST with message server host name or IP addressUse JCO_MSSERV with message server port numberUse JCO_GROUP with the name of the logon groupYou can refer to below link to check a working example:https://sourceforge.net/p/rcer/git/ci/master/tree/net.sf.rcer.conn

Handling String Localization Hardcoding Issues in ERP Systems

SAP ABAP Expert
Updated on 25-Jun-2020 20:54:53

275 Views

This can be handled by keeping value same and just change meaning as below:'Y'(Yes) or 'N'(No)Should be like this for German-'Y'(Ja) or 'N'(Nein)

Add Milliseconds to Date in SAP HANA

Anil SAP Gupta
Updated on 25-Jun-2020 20:53:10

778 Views

Try using ADD_SECONDS function as below:SELECT ADD_SECONDS (TO_TIMESTAMP('2017-07-15 02:17:15'), 0.1) FROM TESTThis will add seconds as fraction value as requested. Below is syntax and example:ADD_SECONDS SyntaxADD_SECONDS (t, n)DescriptionComputes the time t plus n seconds.Example:SELECT ADD_SECONDS (TO_TIMESTAMP ('2012-01-01 23:30:45'), 60*30) "add seconds" FROM DUMMY; add seconds2012-01-02 00:00:45.0To know more about ADD_SECONDS function, you can also refer this link:datetime function in SAP HANATo know more about SQL functions in SAP HANA system, you can also refer our HANA tutorial:SAP HANA SQL FunctionsRead More

Convert BLOB to CHAR in SAP HANA using SQL

SAP Expert
Updated on 25-Jun-2020 20:49:59

846 Views

You can perform varchar casting using following query:SELECT TO_ALPHANUM(col) FROM ......

Using HP UFT GetCellData Function on SAP Web Dynpro

Anil SAP Gupta
Updated on 25-Jun-2020 20:48:55

660 Views

Note that column number is used to locate table cell data and column name is unique identifier.object.GetCellData( row, column)- takes argument as long integers row and cell numbers to locate cell data.Try using GetCellData like this:Browser("Browser").Page("Page").Frame ("searchDialog").SAPTable("ResultsTable").GetCellData(1, 1) Browser("Browser").Page("Page").Frame ("searchDialog").SAPTable("ResultsTable").GetCellData(1, 2)

IN Statement in SQL Doesn't Accept a Wild Character

SAP Expert
Updated on 25-Jun-2020 20:47:09

136 Views

Note that IN statement in SQL doesn’t accept a wild character. You have to use OR/AND to make it work as mentioned below:select * from Test1 t INNER JOIN Test2 s ON t.ID = s.RID where t.sdate >= ?1 AND t.edate

Fetching and Monitoring Data in an Application Using SAP FMs

SAP Expert
Updated on 25-Jun-2020 20:45:04

336 Views

You need to login to XM interface and there is different BAPI’s that you can use to read CCMS data.Function Module:BAPI_SYSTEM_ALERT_ACKNOWLEDGE BAPI_SYSTEM_ALERT_GETDETAILS BAPI_SYSTEM_MON_GETLIST BAPI_SYSTEM_MON_GETTEMPLATE BAPI_SYSTEM_MON_GETTREE You can refer this documentation to know more about Function Modules:https://archive.sap.com/kmuuid2/da4

Handle Assertion Error in Java

Krantik Chavan
Updated on 25-Jun-2020 15:15:59

7K+ Views

In order to handle the assertion error, we need to declare the assertion statement in the try block and catch the assertion error in the catch block.Let us see a program on how to handle Assertion Error in Java −Examplepublic class Example {    public static void main(String[] args) throws Exception {       try {          assert args.length > 0;       }       catch (AssertionError e) {          System.out.println(e.getMessage());       }    } }Output

Catch Assertion Error in Java

Nancy Den
Updated on 25-Jun-2020 15:15:15

8K+ Views

In order to catch the assertion error, we need to declare the assertion statement in the try block with the second expression being the message to be displayed and catch the assertion error in the catch block.Let us see a program on how to handle Assertion Error in Java −Examplepublic class Example {    public static void main(String[] args) throws Exception {       try {          assert args.length > 0 : "Assertion error caught!!!!";       }       catch (AssertionError e) {          System.out.println(e.getMessage());       }    } }Output

Control Water Pollution: Effective Solutions

Shanmukh Pasumarthy
Updated on 25-Jun-2020 15:12:55

765 Views

The contamination of water bodies like lakes, rivers, ground water or oceans is termed water pollution. The main cause of this pollution is the discharge of harmful substances into water bodies without being treated. Water is the basic and most important element of life. Hence we must protect it from pollution.Water pollution is caused by many factors. Human or animal wastes, Chemicals released from factories, pesticides and other chemicals used in agriculture, oil spills, wastage from factories directed to water tanks etc., Water pollution has become a serious global problem as will cause many diseases and even deaths.We can control ... Read More

Advertisements