Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Cover Image
Cover Image
Drag to reposition
Contributed Answers

What is the difference between transient and volatile in Java?

What is the difference between transient and volatile in Java?
Answered on 3rd Jan, 2018, 0 Views

transient: An instance variable is marked transient to indicate the JVM to skip the particular variable when serializing the object containing it.  This modifier is included in the statement that creates the variable, preceding the class or data type of the variable. , volatile: The volatile modifier is used to let the JVM know that a thread accessing the variable must always merge its.....

What does synchronized modifier do in Java?

What does synchronized modifier do in Java?
Answered on 3rd Jan, 2018, 0 Views

The synchronized keyword used to indicate that a method can be accessed by only one thread at a time. The synchronized modifier can be applied with any of the four access level modifiers. Live Demo , ,

What are Java modifiers?

What are Java modifiers?
Answered on 3rd Jan, 2018, 0 Views

Java provides two types of modifiers. Access Modifiers:   The private access modifier is the most restrictive access level. Class and interfaces cannot be private. variables that are declared private can be accessed outside the class.The public access modifier can be associated with class, method, constructor, interface, etc. public can be accessed from any other class. Therefore, fiel.....

Finding minimum value across different columns in SAP HANA

I have a table with no of sessions on Day 1, 2, 3 and so on for the whole week as below IDDAYS_1DAYS_2DAYS_3173527523546I want the minimum no of sessions throughout the week for given id. The expected result is IDMIN132234I have tried writing the below query for same, but it is not working. Could you please help? ,
Answered on 13th Dec, 2017, 0 Views

You need to use LEAST instead of min as below: ,  Please make sure that none of the values in your column in “NULL”.

Error while selecting into field-symbol in SAP ABAP

I have written the below code in SAP ABAP, but I am getting a runtime error. ,
Answered on 13th Dec, 2017, 0 Views

The problem is that you have not declared Field-symbol. Try using the below code. ,

Denormalization of dimension tables in InfoCube in SAP BW

I am new to SAP BW and I have read that we keep denormalized data in InfoCubes. I read that Normalization is good for better performance. Why should we use denormalize tables in Data Warehouse in BW?
Answered on 13th Dec, 2017, 0 Views

Note that In Data Warehouse, data load is less frequent as compared to data read. If you use normalized tables that result more number of joins and hence when you run multiple read statements on DW system, it effects the performance considerably. When you are not using normalized tables, the response time of queries are improved however load time and memory space is increased. You can refer.....

Updating default value of new column in SAP system

I have a user table and I am adding a new column to the table. I want to insert some default value into the existing rows.  Can I do it at the database level or is there any option of doing in SAP/ABAP environment?
Answered on 13th Dec, 2017, 0 Views

It is not good practice to update default values to a column as this will not be visible directly in the system and will not be picked by CTS. Also, there is no option in the SAP/ABAP environment of adding default values to the table column. If you choose to make the new column have NON-NULL values, you will have to manually update default values and it will take a lot of time to modify the.....

Using AT_FIRST be used to initialize variables used in loop in SAP ABAP

I have written a loop in ABAP and have to initialize the variables. There are a couple of ways that can be done. One is by using AT_FIRST and the other is without using it as follows , Could you please see which one is better?
Answered on 13th Dec, 2017, 0 Views

There would not be much of difference in both ways. The only thing is without AT_FIRST, the counter variables will be cleared in all cases while using AT_FIRST, the counter variables will be cleared only if there is at least one execution of the loop. So, the only difference would come into the picture if ls_itab is empty.

Problem with division as output is either 0 or 1 when using ifthenelse condition in ABAP program

I have an ABAP program in which I have to divide 2 numbers each with decimal values and I have used the below condition to handle divide by zero condition. , I am expecting decimal values but I always get 0 or 1 if the numerator is smaller than the denominator. Could anyone look into it?
Answered on 13th Dec, 2017, 0 Views

The problem is that your second parameter is 0 which is an integer, so the output always comes as an integer as ifthenelse takes data type from the second parameter. So, in your case, if the answer is less than .5, it is converted to zeroes and in case more than .5, it is converted to 1. You would require to use cast for the second parameter to convert it to decimal data type as follows ,

Error while using LOOP…..WHERE in SAP ABAP

 I am coding a LOOP in ABAP program in which the “WHERE” condition is dynamically set. , The ls_cond is set above using a case statement. But I am getting the below error on where.  “Statement concluding with "...(Ls_COND)" ended unexpectedly”,  Please have a look.
Answered on 13th Dec, 2017, 0 Views

LOOP….WHERE condition was included recently in ABAP. Could you please verify your version?  This will work only on a version of 7.0 Ehp2 or higher.

loader
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.