What is Externalizable in Java

Lakshmi Srinivas
Updated on 30-Jul-2019 22:30:20

227 Views

Externalization is used whenever we need to customize serialization mechanism. If a class implements an Externalizable interface then, object serialization will be done using writeExternal() method.Whereas at receiver’s end when an Externalizable object is a reconstructed instance will be created using no argument constructor and then the readExternal() method is called.If a class implements only Serializable interface object serialization will be done using ObjectoutputStream.At the receiver’s end, the serializable object is reconstructed using ObjectInputStream.

Passing Parameter with Parenthesis via URL in SAP Open Document

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

254 Views

You can enclose the parenthesis in Quotes “” and try. URL will look like below:http:///OpenDocument/opendoc/openDocument.aspx?sViewer=html&sDocName=&sType=rpt&promptex-=URI_ESCAPE("VALUE_CONTAINING_(PARENTHESIS)")

Where and How is Import Statement Used in Java Programs

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

330 Views

Wan import statement in Java is used to − Import user defined classes/Interfaces Whenever you need to access a class which is not in the current package of the program you need to import that particular class using the import statement. Example In the following example we are using the Math class to find the square root of a number therefore, first of all w should import this class using the import statement. Live Demo import java.lang.Math.*; public class Sample{ public static void main(String args[]){ System.out.println(Math.sqrt(169)); ... Read More

Open VDS File with Three.js

SAP Expert
Updated on 30-Jul-2019 22:30:20

234 Views

Note that three.js is library and it can’t be used to open a file format. This file can’t be opened using Autocad.To know morw about three.js library, you can use this link:Getting Started with three js

Identify All Duplicates Irrespective of Input Order

Moumita
Updated on 30-Jul-2019 22:30:20

114 Views

Indeed your problem is weird as the order is not fixed otherwise it was a straightforward requirement.In order to get your task done, you need to search in all names individually and to be sure that you don’t get the entries which are super set of your search, you need to place a length check as well.For e.g.: if there exists a entry with ‘Johnny Rambo’, it should not be returned as it contains John as well as Rambo. I hope you got my pointYou can place a filter like ('%' + name1 + '%') AND field = ('%' + ... Read More

Difference Between System.out, System.in, and System.err Streams in Java

Swarali Sree
Updated on 30-Jul-2019 22:30:20

2K+ Views

All the programming languages provide support for standard I/O where the user's program can take input from a keyboard and then produce an output on the computer screen. Similarly, Java provides the following three standard streams:Standard Input: This is used to feed the data to user's program and usually a keyboard is used as a standard input stream and represented as System.in.Standard Output: This is used to output the data produced by the user's program and usually a computer screen is used for standard output stream and represented as System.out.Standard Error: This is used to output the error data produced ... Read More

Where is VKORG Stored in SAP

Abhinanda Shri
Updated on 30-Jul-2019 22:30:20

2K+ Views

Since VKORG is related to sales, it is stored in VBAK which is header table for all the sales order. It is a mandatory field on the table so it is mapped with order and stored with the order itself.You can get the description in the TVKOT table for more details on the sales order.

Error: Invalid Schema Name in SAP HANA

SAP Expert
Updated on 30-Jul-2019 22:30:20

1K+ Views

I think you need to mention database name in JDBC URL while connecting to the database. Try following − String server = "servername.domain.com"; String instance = "03"; String database = "TEST"; String dbUsername = "USERNAME"; String dbPassword = "xxxxxx"; String jdbcUrl = "jdbc:sap://" + server + ":3" + instance + "15/?currentschema=" + database + "&user=" + dbUsername + "&password=" + dbPassword; java.sql.Connection connection = java.sql.DriverManager.getConnection(jdbcUrl);

Controlling Close Events in SAP Business One Screen Painter

Amit Sharma
Updated on 30-Jul-2019 22:30:20

289 Views

You can make use of SP_TransactionNotification, which is one of the most common way of receiving notification of data-driven events. With the use of SP_TransactionNotification, you can edit error code returned by Transaction notification, and also prevent transaction to committed.This shows how to prevent a purchase order from adding when the base document is not provided. You can make use of SBO_SP_TransactionNotification for Screen Painter forms in SBO to avoid null values.

Generate Excel from a Report in SAP System

Giri Raju
Updated on 30-Jul-2019 22:30:20

352 Views

I am not sure what you are asking, reason being if you are saying that the report is running in the background, then how it will come to know where the file needs to be saved locally (where locally it should be saved).However assuming few things, what can you try out is you can generate the file (translating data into excel is not a big task and get snippets online easily) on AS.Once generated, you can move this file from report running location to location of your choice using any SHELL command. It’s not suggested that you make a connection ... Read More

Advertisements