Difference between using - "standard table of", "Hashed table of", or simply "table of" in SAP ABAP

Abhinaya
Updated on 30-Jul-2019 22:30:20
“TYPE STANDARD TABLE OF “refers to the standard table. It refers to a normal internal table which can be accessed via table index or by key in case if you have a key defined over a table while sorting.“TYPE HASHED TABLE OF” refers to the generic hashed internal table. The table is created and data is stored using the hashing algorithm. The main advantage of the hashing algorithm is that accessing any part of the table is independent of the size of the table and hence an increase in the size of the table does not result in any delay ... Read More

How to add new keys to a dictionary in Python?

Pythonic
Updated on 30-Jul-2019 22:30:20
Dictionary is an unordered collection of key-value pairs. Each element is not identified by positional index. Moreover, the fact that key can’t be repeated, we simply use a new key and assign a value to it so that a new pair will be added to dictionary. >>> D1 = {1: 'a', 2: 'b', 3: 'c', 'x': 1, 'y': 2, 'z': 3} >>> D1[10] = 'z' >>> D1 {1: 'a', 2: 'b', 3: 'c', 'x': 1, 'y': 2, 'z': 3, 10: 'z'}

What is the difference between shallow copy and deep copy in Java?

Swarali Sree
Updated on 30-Jul-2019 22:30:20
When we copy an object, a shallow copy is where only the outer object is copied. For example, if we have an object named sample and it contains another object named subSample then if you copy this only the contents of the sample are copied.When we copy an object deep copy is where whole object structure is copied i.e. if you copy sample the contents of both sample and subSample were copied.

SAP connector failed, use of port number 3350

Syed Nauman
Updated on 30-Jul-2019 22:30:20
This port is used to provide a range of connections to SAP gateway for RFC connection. If you are getting this error, try to resolve your server name with “nslookup” or try connecting to IP address instead of server name.

What is the root class in Java?

radhakrishna
Updated on 30-Jul-2019 22:30:20
The Object class of the java.lang package is the root class in Java i.e. It is the super class of every user-defined/predefined class n Java. All objects, including arrays, implement the methods of this class. The reason for this is to have common functionalities such as synchronization, garbage collection, collection support, object cloning for all objects in Java. The class named Class of java.lang package provides a method named getSuperclass() this method returns the Class representing the superclass of the current Class. So, Create a sample concrete class and try to get the name of its super class using this ... Read More

Does constructor return any value in Java?

mkotla
Updated on 30-Jul-2019 22:30:20
No, constructor does not return any value. While declaring a constructor you will not have anything like return type. In general, Constructor is implicitly called at the time of instantiation. And it is not a method, its sole purpose is to initialize the instance variables. Example Live Demo public class Sample{ public Sample(){ System.out.println("This is a constructor"); } public static void main(String args[]){ Sample obj = new Sample(); } } Output This is a constructor

How you will create your first program in Python?

Pythonic
Updated on 30-Jul-2019 22:30:20
You can use any Python aware editor to write Python script. Standard distribution of Python comes with IDLE module which is an integrated development and learning environment. Start IDLE and open a new file from file menu. In the editor page enter print (“Hello World!”) Save the script as hello.py and execute it from Run menu to get Hello world message on console. This is your first program. It can also be run from command prompt c:\user>python hello.py

What is correct syntax to create Python tuples?

Pythonic
Updated on 30-Jul-2019 22:30:20
In Python, tuple object is an immutable collection of items, not necessarily of same type. Items are separated by comma and placed inside parentheses, although they are optional. >>> T1 = (1,'one',3.45,[1,2,3]) >>> T2 = 1,2,3,4 Empty tuple object is created with nothing inside parentheses >>> T3 = () >>> T3 () If only one item is to be included in a tuple, an additional comma is placed after it. >>> T4 = 10, >>> T4 = (5,)

Specifying working directory while executing FM SXPG_COMMAND_EXECUTE in SAP system

SAP Expert
Updated on 30-Jul-2019 22:30:20
I thought it can be done using a script in SM69 T-code defined as a call to sh with parameters of -c 'cd && /path/to/command.However it doesn’t accept wildcards and && is converted to & and script is not working. As per SAP Note 401095 - Wildcards in external commandsSymptom:Customers would like to use wildcards when defining external commandsOther Terms:SM49, SM69, wildcardReason and Prerequisites:Wildcards are not supported in external commands, amongst other things for security reasons.For example:An ls with a wildcard was defined as a command: "ls $1".During execution, the parameter "; rm -R /*" is entered. At operating ... Read More

Can’t create a Dictionary Object: View by adding two db tables

Amit Sharma
Updated on 30-Jul-2019 22:30:20
When you create a view, it is created on top of multiple database tables using an inner join. Note that basis table of database views should be transparent tables.To create a view on 2 tables, you have to enter the primary table you want to maintain and place the cursor in that field and click on the button below the list of tables and select the other table to add the view. If you are not getting this option, it means Relationship is wrong.To know more about database Views: https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenddic_database_views.htmRead More
Advertisements