What are the differences between C and Java?

radhakrishna
Updated on 18-Feb-2020 07:39:49

368 Views

Following are the notable differences between C and Java –                                       Java                                               CJava is an object-oriented language.C is procedure oriented languageJava is interpreted Language.C is a compiled language.Java is a high-level language.C is a low-level language.Java does not support pointers.C supports pointersJava supports inheritanceC does not support inheritance

How to define a Python dictionary within dictionary?

Pythonic
Updated on 18-Feb-2020 07:38:26

152 Views

A dictionary object is mutable. Hence one dictionary object can be used as a value component of a key. So we can create a nested dictionary object another dictionary object is defined as value associated with key.>>>> students={"student1":{"name":"Raaj", "age":23, "subjects":["Phy", "Che", "maths"],"GPA":8.5},"student2":{"name":"Kiran", "age":21, "subjects":["Phy", "Che", "bio"],"GPA":8.25}}

Logging in SAP using command line

Nikitha N
Updated on 18-Feb-2020 07:30:32

808 Views

sapshcut.exe command can be used to log in to SAP from command line as shown in below example:ProcedureAdd the directory that contains the sapshcut.exe command to your system or user path. The sapshcut.exe command is installed as part of the SAP client into the following directory: C:\Program Files\SAP\FrontEnd\SAPguiTo add additional directories to the system or user path on Windows systems, select Control Panel > System > Advanced > Environment Variables.The .bat file must be named sapshcut.bat  must be located in your default path preceding the sapshcut.exe file.The following parameters are passed to the sapshcut.bat file when called from a predefined ... Read More

Loading 3rd party libraries in SAPUI5

Sravani S
Updated on 18-Feb-2020 07:28:51

682 Views

JavaScript includes various third-party libraries that ease the development while working on SAP UI5 app. You can use following jQuery as below −jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");Other common JavaScript libraries that are in use −MomentJSLoadshTo load a third party library in SAP UI app project, create a folder “libs”. This folder is used to put third-party libraries −You can create a file named- moment.js and paste the code that has been copied from third party library website. This code can be included in your UI5 app using the library - index.html.

Getting table name in SAP system

V Jyothi
Updated on 18-Feb-2020 07:26:58

3K+ Views

Once your data is displayed on screen please follow the below steps −Position your cursor onto the field.Press “F1” Help option – In “Performance Assistant”.This Dialog will show the information for “Table Name” and “Table Field”.

Changing program title in SAP

Priya Pallavi
Updated on 18-Feb-2020 07:26:15

539 Views

SET TITLEBAR function should be called from a module that is called from PBO of your screen.The title which you are providing should be active. This can be checked by loading your program in SE80 and check the program information in the tree to the right.

Using SAP Gateway service in SAP Web project

Nikitha N
Updated on 18-Feb-2020 07:25:04

178 Views

Please executes the below steps to get the services added −Define service in your manifest.json file?"sap.app": {    [...],    "dataSources": {       "mainService": {           "uri": "Path of your service",           "type": "OData",          "settings": {             "odataVersion": "X.X",             "localUri":             "localService/metadata.xml"          }       } }, [...]The model definition should be implemented in your manifest.json file?"models": {    [...],    "": {       "dataSource": "mainService",       "settings": {          "metadataUrlParams": {             "sap-documentation": "heading"          },         "defaultBindingMode": "TwoWay"       }    } },

Difference between Work area, global structure and internal table in SAP ABAP

Sravani S
Updated on 18-Feb-2020 07:20:22

808 Views

Internal tables let you read data from a fixed structure and stores it in-memory (working memory) in ABAP. The data is stored in a sequential manner in memory. They are basically equivalent to arrays but dynamic in nature. Since they are dynamic in nature, memory management is already taken care by ABAP. Usually, data read from database tables are stored in the internal table to exactly replicate the database tables. Work Area refers to a single row of a fixed structure. It is basically used for storing temporary data. It is commonly used while iterating over a loop.For ex. If you ... Read More

How to perform different commands over ssh with Python?

Rajendra Dharmkar
Updated on 18-Feb-2020 07:15:27

1K+ Views

The simplest way to use SSH using python is to use paramiko. You can install it using −$ pip install paramikoTo use paramiko, ensure that you have correctly set up SSH keys(https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys-776639788.html) on the host machine and when running the python script, these keys are accessible. Once that is done use the following code to connect to a remote server using ssh −from paramiko import SSHClient ssh = SSHClient() ssh.load_system_host_keys() ssh.connect('user@server:path') ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command('ls') print(ssh_stdout) #print the output of ls commandYou can use the exec_command function to run any command supported by the server you're connected to over ... Read More

How to use FTP in Python?

Rajendra Dharmkar
Updated on 18-Feb-2020 07:14:33

248 Views

You can use the ftplib module in Python. It allows you to write programs that perform a variety of automated FTP jobs. You can easily connect to a FTP server to retrieve files and process them locally.exampleimport ftplib ftp = ftplib.FTP('ftp.yourserver.com', 'yourusername', 'your@email.address') print "File List: " files = ftp.dir() print(files) ftp.cwd("/tmp") #change working directory to /tmpAbove code connects to a FTP server and prints the file list in the home directory of that server.

Advertisements