Amit Sharma has Published 38 Articles

How to declare boolean variables in JavaScript?

Amit Sharma

Amit Sharma

Updated on 13-Jun-2020 07:49:15

649 Views

A boolean variable in JavaScript has two values True or False.ExampleYou can try to run the following code to learn how to work with Boolean variables −           35 > 20       Click for result                      function myValue() {             document.getElementById("test").innerHTML = Boolean(35 > 20);          }          

Using datatype/element for destination in SAP ABAP

Amit Sharma

Amit Sharma

Updated on 13-Jun-2020 06:50:29

212 Views

You can use RFCDEST.RFCDEST statement specifies the destination value for a Remote Function Call connection and gateway information.Supported Job Types:This statement are optional for the following job types:SAP Batch Input SessionSAP Business Warehouse InfoPackageSAP Business Warehouse Process ChainSAP Data ArchivingSAP Event MonitorSAP Job CopySAP Process MonitorSAP R/3Basic DataTable  RFCDES  Destination ... Read More

Is it better to have one big JavaScript file or multiple light files?

Amit Sharma

Amit Sharma

Updated on 13-Jun-2020 06:48:03

1K+ Views

To avoid multiple server requests, group your JavaScript files into one. Whatever you use for performance, try to minify JavaScript to improve the load time of the web page.If you are using single page application, then group all the scripts in a single file.If you are using multiple files, then ... Read More

What are the rules for JavaScript's automatic semicolon insertion (ASI)?

Amit Sharma

Amit Sharma

Updated on 13-Jun-2020 06:43:18

285 Views

JavaScript’s automatic semicolon insertion (ASI) is to insert missing semicolons. The following statements are affected by automatic semicolon insertion −empty statement var statement expression statement do-while statement continue statement break statement return statement  throw statementThe rules are in the following specification −When, as a Script or Module is parsed from ... Read More

How to place JavaScript in External Files?

Amit Sharma

Amit Sharma

Updated on 13-Jun-2020 06:21:49

328 Views

To place JavaScript in external file create an external JavaScript file with the extension .js. After creating, add it to the HTML file in the script tag. The src attribute is used to include that external JavaScript file.If you have more than one external JavaScript file, then add it to ... Read More

How to write JavaScript in an External File?

Amit Sharma

Amit Sharma

Updated on 13-Jun-2020 06:16:27

8K+ Views

Create external JavaScript file with the extension .js. After creating, add it to the HTML file in the script tag. The src attribute is used to include that external JavaScript file.If you have more than one external JavaScript file, then add it in the same web page to increase performance ... Read More

In dynamic fashion setting a custom class to a cell in a row

Amit Sharma

Amit Sharma

Updated on 25-Feb-2020 11:07:08

116 Views

If you need to set CSS properties for a row, then what you can try is to use the predefined CSS class of the table along with the custom class. For Example.sapMListTbl . {    margin: 10px;    color: #ffffff; }Also, you can opt for a formatter while applying the ... Read More

How to use constant in ABAP program which has trailing space?

Amit Sharma

Amit Sharma

Updated on 25-Feb-2020 11:05:26

528 Views

This is because you are declaring constant as type c. The type c variable always trims the trailing space. I would suggest you define it as string as followsCONSTANTS: co_abc type string value ' b '.This will keep the trailing spaces.

How to convert a String to and fro from UTF8 byte array

Amit Sharma

Amit Sharma

Updated on 24-Feb-2020 10:36:31

2K+ Views

Following example will showcase conversion of a Unicode String to UTF8 byte[] and UTF8 byte[] to Unicode byte[] using Reader and Writer classes.ExampleIOTester.javaimport java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.Writer; import java.nio.charset.Charset; import java.text.ParseException; public class I18NTester {    public static ... Read More

Accessing table data from SAP system

Amit Sharma

Amit Sharma

Updated on 14-Feb-2020 11:28:35

601 Views

Using Select statement you can read data with a dynamic table name. Try using below code &areDATA: lv_tablename TYPE string,    ev_filelength TYPE i. lv_tablename = 'mara'. "e.g. a parameter DATA dref TYPE REF TO data. CREATE DATA dref TYPE TABLE OF (lv_tablename). FIELD-SYMBOLS: TYPE ANY TABLE. ASSIGN dref->* ... Read More

Advertisements