Karthikeya Boyini has Published 2383 Articles

cos() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Dec-2019 10:34:00

78 Views

The cos() function Returns the cosine of a number. A numeric value between -1 and 1 is Returned representing the cosine of the angle.Syntaxcos(num)Parametersnum − The specified value in radiansReturnThe cos() function Returns cosine of a number in float. A numeric value between -1 and 1 is Returned representing the ... Read More

atanh() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Dec-2019 10:29:37

65 Views

The atanh() function returns the inverse hyperbolic tangent of the specified number.Syntaxatanh(num)Parameters num − The specified number. Required.ReturnThe atanh() function returns a float value, which is the hyperbolic tangent of a number.Example Live DemoOutputINF-INFExampleLet us see another example − Live DemoOutput1.05930617082321.4722194895832-1.4722194895832ExampleLet us see another example − Live DemoOutput0Read More

PHP timestamp to HTML5 input type=datetime element

karthikeya Boyini

karthikeya Boyini

Updated on 20-Dec-2019 10:47:47

682 Views

For HTML5 input time, in PHP:Exampleecho date("Y-m-d\TH:i:s");OutputThe output would be:2018-28-03T19:12:49HTML with Timestamp would be:

How to detect duplicate values in primitive Java array?

karthikeya Boyini

karthikeya Boyini

Updated on 19-Dec-2019 10:20:51

1K+ Views

To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements, in case of a match you got your duplicate element.One solution to do so you need to use two loops (nested) where the inner loop starts with i+1 ... Read More

How to Convert a Java 8 Stream to an Array?

karthikeya Boyini

karthikeya Boyini

Updated on 19-Dec-2019 08:54:20

288 Views

To convert a stream to an Array in Java -Collect the stream to a list using the Collect interface and the Collectors class.Now convert the list to an array using the toArray() method.ExampleLive Demoimport java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public class J8StreamToArray {    public static void ... Read More

Combining fields in CDS view in SAP ABAP

karthikeya Boyini

karthikeya Boyini

Updated on 16-Dec-2019 07:42:39

2K+ Views

With the use of SAP ABAP 7.5, you can make use of the CONCAT_WITH_SPACE function.ExampleThe above code can be simplified like this:CONCAT_WITH_SPACE( bp.name_first, bp.name_last, 1 )

Using SSO logon tickets in SAPUI5

karthikeya Boyini

karthikeya Boyini

Updated on 16-Dec-2019 07:37:21

239 Views

When your proxy has SSO token, you should use SET-COOKIE header to pass SSO token to the client.Exampleset-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=xxxxx.sap.comIt should be passed to client browser from proxy and domain name has to be changed to the proxy as shown below:set-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=PROXYDOMAIN.comWhen next time your browser calls ... Read More

How to connect to an SAP module?

karthikeya Boyini

karthikeya Boyini

Updated on 11-Dec-2019 10:37:11

275 Views

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

Getting error message: Scalar type not allowed in SAP HANA

karthikeya Boyini

karthikeya Boyini

Updated on 11-Dec-2019 08:57:53

495 Views

Few points about your code to create a Stored Procedure, that you can edit and tryPROCEDURE "SLT_DELETE"."HCDW.IT.IT::TO_TIMESTAMP_CALL" (IN IN_DATE DECIMAL(15),    OUT OUT_DATE TIMESTAMP)    LANGUAGE SQLSCRIPT AS    --DEFAULT SCHEMA    --READS SQL DATA AS BEGIN    select to_timestamp(IN_DATE) into OUT_DATE FROM DUMMY; END;In Line32, you have used ... Read More

Integrating JSession in a Web-Service in SAP

karthikeya Boyini

karthikeya Boyini

Updated on 10-Dec-2019 10:20:40

99 Views

You need to configure the soap manager transaction.First, specify the proxy that you have created in the configurationSpecify the portSet the access path from transport settings. The SAP is making use of ‘cl_http_client’ which has a method ‘create_by_destination’ to make an HTTP call. You can extend that to induce your logic ... Read More

Advertisements