Johar Ali has Published 58 Articles

Writing a material on SAP system via .NET Connector

Johar Ali

Johar Ali

Updated on 11-Dec-2019 06:37:48

Once you create material, you need to call BAPI- BAPI_TRANSACTION_COMMIT. “BAPI_TRANSACTION_COMMIT” is called to COMMIT a database operation. As COMITT statement can’t be called inside BAPI, we call this BAPI to complete COMMIT.Let us say you are editing some table fields in BAPI- as per failure or success, you can ... Read More

Finding items in SAP Tree using Function

Johar Ali

Johar Ali

Updated on 10-Dec-2019 08:46:35

When you use string “1\1” in Java, it gives a valid path and returns the right key. You need the following code:SapTree tree = ...; // initialize somewhere String parentKey = tree.findNodeKeyByPath("1"); tree.expandNode(parentKey); String key = tree.findNodeKeyByPath("1\1");

How to use the tag to define a relationship to an external resource?

Johar Ali

Johar Ali

Updated on 04-Oct-2019 11:59:36

The tag is used in HTML to define a relationship to an external resource. It is used to link external style sheets. It gets added inside the … tag, but does not have a closing tag. Define your external CSS file in it.The CSS file created separately will have ... Read More

What are Arithmetic Operators in JavaScript?

Johar Ali

Johar Ali

Updated on 13-Sep-2019 07:32:16

JavaScript supports the following arithmetic operators. Assume variable A holds 10 and variable B holds 20, then −Sr.NoOperator and Description1+ (Addition)Adds two operandsEx: A + B will give 302- (Subtraction)Subtracts the second operand from the firstEx: A - B will give -103* (Multiplication)Multiply both operandsEx: A * B will give ... Read More

How to minimize the use of global variables in JavaScript?

Johar Ali

Johar Ali

Updated on 12-Sep-2019 07:30:40

A global variable has global scope which means it can be defined anywhere in your JavaScript code. To minimize the usage of global variables, use consistent variables around different parts of your project.var myValue = {    common: function(){       //Add code    },    val1: {   ... Read More

What is the use of marker interfaces in Java?

Johar Ali

Johar Ali

Updated on 30-Jul-2019 22:30:21

An interface with no methods in it is referred to as a tagging interface. There are two basic design purposes of tagging interfaces -Creates a common parent As with the EventListener interface, which is extended by dozens of other interfaces in the Java API, you can use a tagging interface to ... Read More

Can we inherit a final method in Java?

Johar Ali

Johar Ali

Updated on 30-Jul-2019 22:30:21

Yes, a final method is inherited but cannot be overridden.

How to pass JavaScript variables to PHP?

Johar Ali

Johar Ali

Updated on 30-Jul-2019 22:30:21

You can easily get the JavaScript variable value on the same page in PHP. Try the following codeL. var res = "success";

What is a final parameter in java?

Johar Ali

Johar Ali

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

You can pass final variables as the parameters to methods in Java. A final variable can be explicitly initialized only once. A reference variable declared final can never be reassigned to refer to a different object. However, the data within the object can be changed. So, the state of the ... Read More

Extending SAP ABAP 30 characters long limit

Johar Ali

Johar Ali

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

For SAP ABAP tables, you can enter up to maximum 16 characters. There is a limit of up to 30 characters on use of ABAP Variables, Classes and Method.When you run SE11 you can press F1 and it will show you maximum permitted limit on SAP ABAP Table name.It is ... Read More

Advertisements