Articles on Trending Technologies

Technical articles with clear explanations and examples

Get the angle whose sine is float value argument in C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 192 Views

To get the angle whose sine is float value argument, the code is as follows −Exampleusing System; public class Demo {    public static void Main() {       float val1 = 0.1f;       float val2 = 8.9f;       Console.WriteLine("Angle (val1) = "+(MathF.Asin(val1)));       Console.WriteLine("Angle (val2) = "+(MathF.Asin(val2)));    } }OutputThis will produce the following output −Angle (val1) = 0.1001674 Angle (val2) = NaNExampleLet us see another example −using System; public class Demo {    public static void Main() {       float val1 = 1.2f;       float val2 = ...

Read More

Get the hyperbolic arc-cosine of a floating-point value in C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 185 Views

To get the hyperbolic arc-cosine of a floating-point value, the code is as follows −Exampleusing System; public class Demo {    public static void Main() {       float val1 = 0.1f;       float val2 = 0.9f;       Console.WriteLine("Angle (val1) = "+(MathF.Acosh(val1)));                                 Console.WriteLine("Angle (val2) = "+(MathF.Acosh(val2)));    } }OutputThis will produce the following output −Angle (val1) = NaN Angle (val2) = NaNExampleLet us see another example −using System; public class Demo {    public static void Main() {       float val1 = 5.1f;       float val2 = 8.9f;       Console.WriteLine("Angle (val1) = "+(MathF.Acosh(val1)));       Console.WriteLine("Angle (val2) = "+(MathF.Acosh(val2)));    } }OutputThis will produce the following output −Angle (val1) = 2.312634 Angle (val2) = 2.876027

Read More

Check whether the specified character has a surrogate code in C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 251 Views

To check whether the specified character has a surrogate code, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       string str = new String(new char[] { 'k', 'm', 'g', 't', '\uD800' });       bool res = Char.IsSurrogate(str, 4);       if (res)          Console.WriteLine("Contains Surrogate value!");       else          Console.WriteLine("Does not contain Surrogate value!");    } }OutputThis will produce the following output −Contains Surrogate value!ExampleLet us see another example − Live Demousing System; public class Demo {   ...

Read More

How to get Synchronize access to the StringCollection in C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 97 Views

To get synchronize access to the StringCollection, the code is as follows −Example Live Demousing System; using System.Collections.Specialized; public class Demo {    public static void Main() {       StringCollection stringCol = new StringCollection();       String[] arr = new String[] { "100", "200", "300", "400", "500" };       Console.WriteLine("Array elements...");       foreach (string res in arr) {          Console.WriteLine(res);       }       stringCol.AddRange(arr);       Console.WriteLine("Total number of elements = "+stringCol.Count);       stringCol.RemoveAt(3);       Console.WriteLine("Total number of elements now = "+stringCol.Count); ...

Read More

Get the types nested within the current Type C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 202 Views

To get the types nested within the current Type, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       Type type1 = typeof(Subject);       try {          Type[] type2 = type1.GetNestedTypes();          Console.WriteLine("Nested Types...");          for (int i = 0; i < type2.Length; i++)             Console.WriteLine("{0} ", type2[i]);       }       catch (ArgumentNullException e) {          Console.Write("{0}", e.GetType(), e.Message);       }    } } ...

Read More

Get a specific type nested within the current Type in C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 125 Views

To get a specific type nested within the current Type, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       Type type1 = typeof(Subject);       try {          Type type2 = type1.GetNestedType("AdvSubject");          Console.Write("NestedType = "+ type2);       }       catch (ArgumentNullException e) {          Console.Write("{0}", e.GetType(), e.Message);       }    } } public class Subject {    public class BasicSubject {       //    }    public class AdvSubject ...

Read More

Difference between class alv and function alv in SAP ABAP?

Sharon Christine
Sharon Christine
Updated on 11-Dec-2019 3K+ Views

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 screen.Class alv provides Object Oriented functionality and hence they are easily reusable.You can execute function modules asynchronously and can also be called by other systems remotely.Below is an example of class ALV:DATA: lcl_alv TYPE REF TO cl_gui_alv_grid,       t_gly TYPE STANDARD TABLE OF Travels . SELECT * FROM ...

Read More

Find the last node in LinkedList containing the specified value in C#

AmitDiwan
AmitDiwan
Updated on 11-Dec-2019 189 Views

To find the last node in LinkedList containing the specified value, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main() {       LinkedList list = new LinkedList();       list.AddLast(100);       list.AddLast(200);       list.AddLast(300);       list.AddLast(400);       list.AddLast(500);       list.AddLast(300);       list.AddLast(500);       Console.WriteLine("LinkedList elements...");       foreach(int i in list) {          Console.WriteLine(i);       }       LinkedListNode val = list.FindLast(300);       Console.WriteLine("Specified ...

Read More

How to connect to an SAP module?

karthikeya Boyini
karthikeya Boyini
Updated on 11-Dec-2019 407 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 and using attributes of FM.To create an RFC connection, you need to use T-Code: SM59 mentioning Username and Password.Another link that you can refer which tells about creating RFC and Remote-enabled FM and call from another SAP system using ABAP Program:https://wiki.scn.sap.com/wiki/display/Snippets/Creating+RFC+and+Remote-enabled+FM+and+call+from+another+SAP+system+using+ABAP+Program

Read More

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

Swarali Sree
Swarali Sree
Updated on 11-Dec-2019 980 Views

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 and SE10 functions and adding lot other functions as shown in below snapshot:

Read More
Showing 52371–52380 of 61,248 articles
Advertisements