Amit Sharma has Published 39 Articles

Using datatype/element for destination in SAP ABAP

Amit Sharma

Amit Sharma

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

121 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

917 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

172 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

228 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

7K+ 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

55 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

295 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

385 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

Using VBA macro to call an ABAP code

Amit Sharma

Amit Sharma

Updated on 14-Feb-2020 11:18:55

410 Views

Please try using below script −Dim sapConn As Object \Declaring a connection object Set sapConn = CreateObject("SAP.Functions") \Creating an ActiveX object sapConn.Connection.user = "username" sapConn.Connection.Password = "xxxx" sapConn.Connection.client = "client#" sapConn.Connection.ApplicationServer = "Application Server” sapConn.Connection.Language = "PT" If sapConn.Connection.Logon(0, True) True Then //Checking connection here    MsgBox ... Read More

Advertisements