Manikanth Mani

Manikanth Mani

28 Articles Published

Articles by Manikanth Mani

28 articles

How to get the first index of an occurrence of the specified value in a string in JavaScript?

Manikanth Mani
Manikanth Mani
Updated on 15-Mar-2026 1K+ Views

To get the first index of an occurrence of the specified value in a string, use the JavaScript indexOf() method. This method returns the position of the first occurrence of the specified substring, or -1 if not found. Syntax string.indexOf(searchValue, startPosition) Parameters searchValue: The substring to search for (required) startPosition: The index to start searching from (optional, default is 0) Return Value Returns the index of the first occurrence of the specified value, or -1 if the value is not found. Example You can try to run the following code ...

Read More

How to apply a function simultaneously against two values of the array from left-to-right?

Manikanth Mani
Manikanth Mani
Updated on 15-Mar-2026 230 Views

The reduce() current) ? prev : current; }); document.write("Maximum value: " + max + ""); // Count occurrences var fruits = ['apple', 'banana', 'apple', 'orange', 'banana', 'apple']; var count = fruits.reduce(function(acc, fruit) { ...

Read More

How to return a string value version of the current number?

Manikanth Mani
Manikanth Mani
Updated on 15-Mar-2026 273 Views

The toLocaleString() method returns a string representation of a number formatted according to the user's locale (region and language settings). This method is useful for displaying numbers in a format familiar to users from different countries. Syntax number.toLocaleString() number.toLocaleString(locales) number.toLocaleString(locales, options) Parameters locales (optional): A string or array of strings representing locale identifiers (e.g., 'en-US', 'de-DE') options (optional): An object with formatting options like currency, minimumFractionDigits, etc. Basic Example Here's how to use toLocaleString() with different number formats: JavaScript toLocaleString() Method ...

Read More

How to return a random number between 1 and 200 with JavaScript?

Manikanth Mani
Manikanth Mani
Updated on 15-Mar-2026 2K+ Views

To return a random number between 1 and 200, use JavaScript's Math.random() and Math.floor() methods. How It Works Math.random() generates a decimal between 0 (inclusive) and 1 (exclusive). To get integers from 1 to 200: Multiply by 200 to get 0 to 199.999... Use Math.floor() to round down to 0-199 Add 1 to shift the range to 1-200 Example You can try to run the following code to return a random number in JavaScript. ...

Read More

How to set src to the img tag in html from the system drive?

Manikanth Mani
Manikanth Mani
Updated on 15-Mar-2026 19K+ Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The src is to add the image URL. The alt is the alternate text attribute, which is text that is visible when the image fails to load. With HTML, you can add the image source as the path of your system drive. For that, add the src attribute as a link to the path of system drive where the image is stored. For example, file:///D:/images/logo.png Important Security and Browser Limitations Note: Modern browsers restrict ...

Read More

How to delete a setter using the delete operator in JavaScript?

Manikanth Mani
Manikanth Mani
Updated on 15-Mar-2026 295 Views

To delete a setter using the delete operator in JavaScript, you use the delete keyword followed by the property name. This removes both the getter and setter methods associated with that property. Syntax delete obj.propertyName Example: Deleting a Setter Here's how to delete a setter along with its corresponding getter: var department = { deptName: "Marketing", deptZone: "North", deptID: 101, get details() { return ...

Read More

Creating User roles and profiles in SAP system

Manikanth Mani
Manikanth Mani
Updated on 13-Mar-2026 426 Views

This can be done using Legacy Systems Migration Workbench (LSMW) transaction. This workbench works like a sort of macro recorder and allows you to record the steps in a transaction and you can replay that record multiple times as per the requirement. This also allows you to replace the values you used in your recorded transaction with new values. A more complex option would be to write ABAP code and this is more flexible to add different privileges to different roles. Methods for Creating User Roles and Profiles Method 1: Using LSMW (Legacy Systems Migration Workbench) ...

Read More

Creating a Function module in ABAP to take any table and write it to the screen

Manikanth Mani
Manikanth Mani
Updated on 13-Mar-2026 2K+ Views

SAP List Viewer (ALV) is used to add an ALV component and provides a flexible environment to display lists and tabular structure. A standard output consists of header, toolbar, and an output table. The user can adjust the settings to add column display, aggregations, and sorting options using additional dialog boxes. Creating a Function Module Using ALV You can use the following code to display any table using the CL_SALV_TABLE class − DATA: go_alv TYPE REF TO cl_salv_table. CALL METHOD cl_salv_table=>factory IMPORTING r_salv_table = ...

Read More

Setting up a JDBC connection to remote SAP HANA system

Manikanth Mani
Manikanth Mani
Updated on 13-Mar-2026 1K+ Views

To establish a JDBC connection to a remote SAP HANA system, you need to configure the correct port number and use the appropriate JDBC driver. Port Configuration You are using the correct port number for instance number "00". Port number 30015, where 00 represents the instance number of your HANA system. The port format follows the pattern 315 for SQL connections. JDBC Driver Setup Use the HANA client JAR file ngdbc.jar instead of the generic SAP JAR file. This driver is specifically optimized for HANA database connections and provides better performance and compatibility. Example ...

Read More

Using ABAP Function module RSAQ_REMOTE_QUERY_CALL, NO_DATA_SELECTED exception using selection parameters

Manikanth Mani
Manikanth Mani
Updated on 13-Mar-2026 617 Views

SAP provides flexible options that allow selection parameters to be used easily with the RSAQ_REMOTE_QUERY_CALL function module. When using multiple parameters, please note the following important considerations − Key Parameter Settings KIND Field Configuration: Set KIND to "S" only when using select-options. If you are using simple parameters, it should be "P". Language Setting: Instead of using EN, try using the internal language code "E" for better compatibility. Finding Field Types with RSAQ_REMOTE_QUERY_FIELDLIST ...

Read More
Showing 1–10 of 28 articles
« Prev 1 2 3 Next »
Advertisements