Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Jennifer Nicholas
Page 2 of 21
Octal literals in C
In C, we can use octal literals by typing a zero before the actual number. For example, if an octal number is 25, then we have to write 025. Octal literals use base-8 numbering system and contain only digits 0-7. Syntax 0octal_digits Where octal_digits are valid octal digits (0-7). Example The following example demonstrates how to use octal literals in C − #include int main() { int a = 025; /* Octal 25 = Decimal 21 */ int b = ...
Read MoreInitialization of a multidimensional arrays in C/C++
Multidimensional arrays in C are arrays of arrays, where each element is itself an array. They are used to represent data in multiple dimensions like matrices, tables, or grids. The most common type is a 2D array, but C supports arrays of any dimension. 3D Array Memory Layout (2×2×2) Layer 0 [0][0][0] [0][0][1] [0][1][0] ...
Read MoreC program to print a string without any quote in the program
This is another tricky problem. In this program, we will see how to print a string using C where no quotation marks are used in the source code. Here we are using a macro function with the stringizing operator. We define a macro function that converts its argument into a string literal at compile time. Syntax #define getString(x) #x The getString() is a macro function that returns x by converting it into a string. The # before x is the stringizing operator that converts the macro argument into a string literal. Example ...
Read MoreDeleting subsequent heading from report in SAP system
You need to add NO STANDARD PAGE HEADING to suppress the default heading that SAP automatically generates for reports. This statement must be included in the report declaration section as follows − Syntax REPORT report_name MESSAGE-ID message_class NO STANDARD PAGE HEADING. Example Here's a complete example showing how to implement a report without the standard page heading − REPORT z_custom_report MESSAGE-ID z_custom_messages NO STANDARD PAGE HEADING. DATA: lv_text TYPE string VALUE 'Custom Report Output'. START-OF-SELECTION. WRITE: / 'This report has no standard SAP heading', ...
Read MoreDetermining the current client in SAP using code
You can find the current client in SAP using the system field sy-mandt. This system variable automatically contains the three-digit client number of the current session. Example Here is the code you can write to determine and use the current client − IF sy-mandt = '001'. " Execute logic for client 001 WRITE: 'Current client is production client 001'. ELSE. " Execute logic for other clients WRITE: 'Current client is:', sy-mandt. ENDIF. Practical Usage You can also store the client value in a variable for ...
Read MoreSecond approach to fetch data from SAP tables without using SAP JCo
If you need to access the SAP Tables with the help of the table name and column names, then you can use the RFC RFC_READ_TABLE. It also provides external access to R/3 tables with the help of remote function calls. The RFC_READ_TABLE is a standard SAP function module that allows external systems to read data from any SAP table remotely. This approach is particularly useful when you cannot use SAP JCo libraries but still need to extract data from SAP systems. Required Parameters RFC requires the following details − table name ...
Read MoreIssue regarding JCo SAP Server out of Network
When you encounter network issues with your JCo SAP Server, you need to properly clean up resources and references before stopping the server instance. This prevents memory leaks and ensures graceful shutdown of your SAP connectivity components. Required Actions for JCo Server Cleanup You need to perform the following actions when you are stopping the JCo server instance − Delete server references: Remove all references of your server from the ServerDataEventListener ...
Read MoreEmber.js browser support with HTML
Ember.js is an open-source, free JavaScript client-side framework used for developing web applications. It provides a complete solution for building client-side JavaScript applications, including data management and application flow. Ember.js uses the MVC (Model-View-Controller) architecture pattern. In Ember.js, the route serves as the model, Handlebars templates serve as the view, and controllers manipulate the data in the model. Browser Support for Ember.js Ember.js supports all major modern browsers. The following browsers are officially supported − Google Chrome (latest) Mozilla Firefox (latest) Microsoft Edge (latest) Safari (latest) Note: Internet Explorer 11 was supported in older versions of Ember.js (up ...
Read MoreHow to limit maximum items on multiple input ()?
To allow multiple file uploads in HTML forms, use the multiple attributes. The multiple attributes work with email and file input types.For limiting maximum items on multiple inputs, use JavaScript. Through this, limit the number of files to be uploaded. For example, let’s say only 2 files to be uploaded at once.You can try to run the following code to learn how to use multiple attributes in HTML. With that, we will limit the number of files uploaded using JavaScript.Example HTML file upload ...
Read MoreSegment button dropdowns in Bootstrap input groups
To segment button dropdowns in input groups, use the same general style as the dropdown button, but add a primary action along with the dropdown as can be seen in the following example:Example Bootstrap Example Subject Toggle Dropdown Maths Science Course Toggle Dropdown BCA MCA
Read More