How to connect to an SAP module?

karthikeya Boyini
Published on 20-Dec-2017 16:15:01
You can create RFC function module and then call this function module from outside. You can create RFC using T-Code SE37You can use the following link to know more about using RFC function module:https://archive.sap.com/discussions/thread/333645This tells about how you can create an FM in SE37 in Target system enabling Remote-Function Enabled ... Read More

Difference between class alv and function alv in SAP ABAP?

Sharon Christine
Published on 20-Dec-2017 16:07:44
Class alv and Function alv are different in terms of features. Below is the difference:Class alv are secured as compared to function alv.While using class alv, it improves the performance.With use of function alv, you can create screens using function module however you need to call separate programs to generate ... Read More

Differentiate between Transaction code SE01, SE09, and SE10 in SAP ECC system?

Swarali Sree
Published on 20-Dec-2017 15:47:08
In early sap version, SE09 and SE10 perform different functions as below:SE09 was widely used in workbench/development of transports.SE10 was widely used in customizing transports.In newer version now, both the Transactions SE09 and SE10 perform the same function as shown in below snapshot.In addition, SE01 is an extension combining SE09 ... Read More

How we can import Python modules without installing?

Rajendra Dharmkar
Published on 20-Dec-2017 18:08:14
Yes there are ways to import Python modules without installing. If you are not able to install modules on a machine(due to not having enough permissions), you could use either virtualenv or save the module files in another directory and use the following code to allow Python to search for ... Read More

How does variable scopes work in Python Modules?

Rajendra Dharmkar
Published on 20-Dec-2017 18:05:01
Namespace is a way to implement scope. In Python, each package, module, class, function and method function owns a "namespace" in which variable names are resolved. When a function, module or package is evaluated (that is, starts execution), a namespace is created. Think of it as an "evaluation context". When ... Read More

How to use Python modules over Paramiko (SSH)?

Rajendra Dharmkar
Published on 20-Dec-2017 18:01:52
You connect and use a python module on the remote computer over SSH, as SSH only provides limited functionality so calling the module isn't possible.You can call a script on the remote server and run that as a way of getting around this problem. To get a result from the ... Read More

Which one is the Python module to obfuscate javascript?

Rajendra Dharmkar
Published on 20-Dec-2017 17:58:28
You can use the jsmin module to minimize/obfuscate javascript code using Python. Install jsmin using:$ pip install jsminTo use jsmin in your python project to minimize a js file, say hello.js, you can use it as follows:>>> from jsmin import jsmin >>> with open('hello.js') as js_file: ...     minified ... Read More

How to disable logging from imported modules in Python?

Rajendra Dharmkar
Published on 20-Dec-2017 17:56:10
You can disable logging from imported modules using the logging module. You can configure it to not log messages unless they are at least warnings using the following code:import logging logging.getLogger("imported_module").setLevel(logging.WARNING)If you dont want to write the module name as a string, you can also use imported_module.__name__. If you want ... Read More

How do I disable log messages from the Requests Python module?

Rajendra Dharmkar
Published on 20-Dec-2017 17:53:10
You can disable logging from the requests module using the logging module.ExampleYou can configure it to not log messages unless they are at least warnings using the following code:import logging logging.getLogger("requests").setLevel(logging.WARNING)If you want to go a level higher and only want to log messages when they are errors or critical, ... Read More

What are common practices for modifying Python modules?

Rajendra Dharmkar
Published on 20-Dec-2017 17:47:59
If you are modifying a module and want to test it in the interpreter without having to restart the shell everytime you save that module, you can use the reload(moduleName) function. reload(moduleName) reloads a previously loaded module (assuming you loaded it with the syntax "import moduleName". It is intended for ... Read More
Advertisements