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

Converting BLOB to Char in SAP HANA using SQL

I need to cast a BLOB to varchar format in HANA database using SQL query. Below is my code: select  cast("DESCRIPTION" as varchar) "D" from "DESC" I get an error message: “Inconsist.....
SAP Expert
Answered on 6th Dec, 2017

You can perform varchar casting using following query:SELECT TO_ALPHANUM(col) FROM ......

Upgrading SAP .NET Connector from .NET 2.0 to .NET 3.0

I have to perform an upgrade of SAP .NET Connector from 2.0 to 3.0. I know that there are lot many changes in 3.0 and I may need to rewrite entire application. Is there any guide that can help.....
SAP Expert
Answered on 6th Dec, 2017

You are correct. NET Connector 2.0 uses proxy classes however .NET Connector 3.0 uses generic API. You need to rewrite all code that include NCo interaction..NET Connector 3.0 has many benefits over .NET 2.0:NCo 3.0 Is more stable, robust and supports heavy load>NET 3.0 provides better design of your application ... Read More

How to find a constant in a string in SAP BO Webi Report

I want to find a constant in string in SAP BusinessObjects Webi report. There is a MATCH() function that can be used to find a string pattern as below: =IF(MATCH([Dimension];"def") OR MATCH([D.....
SAP Expert
Answered on 6th Dec, 2017

You are correct. You can use functions like Match() or Pos(). You can use MATCH([Dimension];"*def*")) and this will get you the output and wildcard will match the beginning of the string.Pos Function is used to return the position of a specific character string.You can also try using Pos() function as ... Read More

Publishing SAP Xcelsius dashboard without login

I have a SAP dashboard that I want to publish in my company. Problem is when I export it as flash file it asks for login parameters.  Is there a way we can prevent this and dashboard can .....
SAP Expert
Answered on 6th Dec, 2017

Yes it can be achieved via using Open Document link. To get HTTP link, you need to store object in BO repository and get open document link from BI Launchpad.When you store object in repository, you have to handle necessary credentials and running queries can be handled by this. You ... Read More

Is there a way to find last date of month using any function? Like 03/15/2017 should return 03/31/2017? (SAP)

Is there a way to find last date of month using any function? Like 03/15/2017 should return 03/31/2017? Any link over internet would be good?
SAP Expert
Answered on 6th Dec, 2017

You can try using DateSerial() function.DateSerial returns a Date value for the specified year, month and day. It also handles relative Date expressions.Arguments:year is a whole Number or numeric expression representing a year, example: 1996.month is a whole Number or numeric expression representing a month, example: 12 for December.day is ... Read More

Consuming Web Service in C# application (SAP)

I want to consume a Web Service in my C# application. I am using below code however it throws an error: underlying connection established was closed. unexpected format was send". NetworkCreden.....
SAP Expert
Answered on 6th Dec, 2017

This error occurs when remote server doesn’t provide a response to your request and connection is broken before request is complete. To fix this issue, first setup a request that includes QaaWsHeader and ReportBlock configuration, then create the Request and in last using ServicesSoapClient, you can make method to send ... Read More

Footer not working in my SAPUI5 application

I have a SAPUI5 application and I have placed a footer in this application however my footer is displayed at top of page instead of bottom.     return new sap.m.Page({     .....
SAP Expert
Answered on 6th Dec, 2017

Try embedding page in “sap.m.App control”.This is an example of showing and hiding footer, check this link:UI5 Documentation

How do you properly ignore Exceptions in Python?

I have a try-except block in following code and I just want to continue with the code by ignoring the exception block. , The problem is if I leave the ‘except’ block empty or with a.....
Rajendra Dharmkar
Answered on 6th Dec, 2017

This can be done by following codestry: x, y =7, 0 z = x/y except: passORtry: x, y =7, 0 z = x/y except Exception: passThese codes bypass the exception in the try statement and ignore the except clause and don’t raise any exception.The difference in the above codes is ... Read More

How to use the ‘except clause’ with No Exceptions in Python?

I have this code with except clause having no exceptions , What is the utility of such code?
Rajendra Dharmkar
Answered on 6th Dec, 2017

If we define except clause with no exceptions, it can handle all types of exceptions. However, neither it’s a good coding practice nor it is recommended.If you run above codetry: print 'foo'+'qux'+ 7 except: print' There is error'You get the outputThere is errorThis type of Python try-except block can handle ... Read More

Explain Try, Except and Else statement in Python.

I have the following code that throws an exception as follows , showing output as , How do I rewrite this code to use the else clause?
Rajendra Dharmkar
Answered on 6th Dec, 2017

The common method to handle exceptions in python is using the "try-except" block. We can even include an else clause after except clause. The statements in the else block are executed if there is no exception in the try statement.The optional else clause is executed if and when control flows ... Read More

Is there a standard way of using exception chains in Python 3?

The following code throws more than one exceptions , How to rewrite it to show exception chaining in python 3.x?
Rajendra Dharmkar
Answered on 6th Dec, 2017

During the handling of one exception ‘A’, it is possible that another exception ‘B’ may occur. In Python 2.0 versions, if this happens, exception B is propagated outward and exception A is lost. It is useful to know about both exceptions in order to debug the problem.Sometimes it is useful ... Read More

How do I manually throw/raise an exception in Python?

I have this code that can throw up an error. , How do I manually throw or raise an exception in the given code?
Rajendra Dharmkar
Answered on 6th Dec, 2017

We use the most specific exception constructor that fits our specific issue rather than raise generic exceptions. To catch our specific exception, we'll have to catch all other more specific exceptions that subclass it.We should raise specific exceptions and handle the same specific exceptions.To raise the specific exceptions we use ... Read More

What is the best way to log a Python exception?

In the code below , I want to log the exception. How do I do that?
Rajendra Dharmkar
Answered on 6th Dec, 2017

We import the logging module and then use the logging.exception method to create a log of the python exception.import logging try: print 'toy' + 6 except Exception as e: logging.exception("This is an exception log")We get the following outputERROR:root:This is an exception log Traceback (most recent call last): File "C:/Users/TutorialsPoint1/PycharmProjects/TProg/Exception handling/loggingerror1.py", ... Read More

How to declare custom exceptions in modern Python?

To declare a simple custom exception we can have a script like this , But how do I declare a custom exception to override something or to pass extra arguments to the exception?
Rajendra Dharmkar
Answered on 6th Dec, 2017

To override something or pass extra arguments to the exception we do like this in modern python:class ValidationError(Exception): def __init__(self, message, errors): super(ValidationError, self).__init__(message) self.errors = errorsThat way we could pass dictionary of error messages to the second parameter, and get to it later on when needed. Read More

Why are Python exceptions named "Error" (e.g. ZeroDivisionError, NameError, TypeError)?

Errors like syntax errors occurring at compile time are called errors and those occurring at runtime are called exceptions. Yet python exceptions like NameError, TypeError…have their nam.....
Rajendra Dharmkar
Answered on 6th Dec, 2017

We see that most exceptions have their names ending in word ‘error’ pointing that they are errors which is the meaning of exceptions anyway.Errors in restricted sense are taken to mean syntax errors in python and those errors occurring at run time are called exceptions. As we know that classes ... Read More

Advertisements
Loading...
Unanswered Questions View All

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