Create SAP Interface to Pull Data from Web Application

Ramu Prasad
Updated on 11-Dec-2019 06:47:01

574 Views

Web Dynpro is a complex framework and it would be tough to integrate it to your Java application. You can use SAP Java Connector JCo. SAP Java Connector can be used to call Remote Function calls on SAP system.You can use already defined function modules to connect. You can take help from a SAP ABAP developer if you want to customize any function module request.You can use SAP JCo to make 2 types of calls to system:Inbound calls (Java calls ABAP)Outbound calls (ABAP calls Java).By using a JCo connection, you can call an RFC from the R/3. It contains 2 ... Read More

Insert Element Into Collection at Specified Index in C#

AmitDiwan
Updated on 11-Dec-2019 06:45:10

381 Views

To insert an element into Collection at the specified index, the code is as follows −Example Live Demousing System; using System.Collections.ObjectModel; public class Demo {    public static void Main(){       Collection col = new Collection();       col.Add("Laptop");       col.Add("Desktop");       col.Add("Notebook");       col.Add("Ultrabook");       col.Add("Tablet");       col.Add("Headphone");       col.Add("Speaker");       Console.WriteLine("Elements in Collection...");       foreach(string str in col){          Console.WriteLine(str);       }       Console.WriteLine("Element at index 3 = " + col[3]);     ... Read More

Check Which Key Has Been Pressed Using jQuery

Amit D
Updated on 11-Dec-2019 06:42:03

818 Views

To check which key has been pressed, use the onkeydown attribute.ExampleYou can try to run the following code to get which key is pressed:Live Demo Press a key in the below box to get which key is pressed.   function demoFunction(event) {     var a = event.key;     document.getElementById("test").innerHTML = "You've pressed the key: " + a;   }

Insert New Entry in OrderedDictionary with Key and Value in C#

AmitDiwan
Updated on 11-Dec-2019 06:41:26

129 Views

To insert a new entry in OrderedDictionary with specified key and value, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo {    public static void Main(){       OrderedDictionary dict = new OrderedDictionary();       dict.Add("1", "One");       dict.Add("2", "Two");       dict.Add("3", "Three");       dict.Add("4", "Four");       dict.Add("5", "Five");       dict.Add("6", "Six");       dict.Add("7", "Seven");       dict.Add("8", "Eight");       Console.WriteLine("Elements...");       IDictionaryEnumerator demoEnum = dict.GetEnumerator();       while (demoEnum.MoveNext()) {     ... Read More

Expose XSJS File Data Through Web Browser in SAP HANA

Rahul Sharma
Updated on 11-Dec-2019 06:40:38

397 Views

Note that you have to ensure that Port number 80+ should be open on network. Also URL you are using should be properly built. Below is correct path:server:port/repository_path/file_nameIn your case, you should be using:host: hanacloud port: 8000 (80 + instance_number) SAP HANA Repository tree: mdo ->    sap ->       sflight ->          test ->             test.xsjsSo your URL should be in this format:hanacloud:8000/mdo/sap/sflight/test/test.xsjs

Getting Last Value in MySQL Group Concat

AmitDiwan
Updated on 11-Dec-2019 06:39:32

723 Views

To get last value in group concat, use SUBSTRING_INDEX(). Let us first create a table −mysql> create table DemoTable1525    -> (    -> ListOfSubjects text    -> ); Query OK, 0 rows affected (1.13 sec)Insert some records in the table using insert command −mysql> insert into DemoTable1525 values('MongoDB, C'); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable1525 values('Java, C++, MySQL'); Query OK, 1 row affected (0.25 sec) mysql> insert into DemoTable1525 values('Python, C++, C, Java'); Query OK, 1 row affected (0.14 sec)Display all records from the table using select statement −mysql> select * from DemoTable1525;This will ... Read More

Suppress Page Header Until Last Page in SAP Crystal Reports 2008

Samual Sam
Updated on 11-Dec-2019 06:39:18

734 Views

I think you would require to use “OnLastRecord” keyword for page header suppression. Below are details about this function:Function Description:This function returns “TRUE” when the current record being evaluated is the last record in the report.Returns:Boolean ValueAction:This function returns “TRUE” when the current record being evaluated is the last record in the report.Note that any field that you are grouped and you want to suppress on the last record for this group, or use the next () function as shown below:onlastrecord or next({table.field}){table.field} Example:GH1 (using Customer.ID as group) GH2 (using Sales.No as group) Details GF2 - has line drawn on it ... Read More

Check If Element is Contained in ArrayList in C#

AmitDiwan
Updated on 11-Dec-2019 06:38:41

199 Views

To check whether an element is contained in the ArrayList, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo {    public static void Main(){       ArrayList list = new ArrayList();       list.Add("One");       list.Add("Two");       list.Add("Three");       list.Add("Four");       list.Add("Five");       list.Add("Six");       list.Add("Seven");       list.Add("Eight");       Console.WriteLine("ArrayList elements...");       foreach(string str in list){          Console.WriteLine(str);       }       Console.WriteLine("ArrayList is read-only? = "+list.IsReadOnly);     ... Read More

Writing Material on SAP System via .NET Connector

Johar Ali
Updated on 11-Dec-2019 06:37:48

368 Views

Once you create material, you need to call BAPI- BAPI_TRANSACTION_COMMIT. “BAPI_TRANSACTION_COMMIT” is called to COMMIT a database operation. As COMITT statement can’t be called inside BAPI, we call this BAPI to complete COMMIT.Let us say you are editing some table fields in BAPI- as per failure or success, you can perform a COMMIT or ROLLBACK.To perform a COMMIT call BAPI_TRANSACTION_COMMIT. Below is sample COMITT:CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' * EXPORTING * wait =    "bapita-wait    IMPORTING    return = "bapiret2 . " BAPI_TRANSACTION_COMMITYou can see full documentation about BAPI_TRANSACTION_COMMIT:FU BAPI_TRANSACTION_COMMIT____________________________________________________Short TextExecute external Commit when using BAPIsFunctionality:This method executes a COMMIT WORK ... Read More

Check Hashtable for Specific Key in C#

AmitDiwan
Updated on 11-Dec-2019 06:35:31

168 Views

To check whether a Hashtable contains a specific key or not, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo {    public static void Main(){       Hashtable hash = new Hashtable();       hash.Add("One", "Katie");       hash.Add("Two", "John");       hash.Add("Three", "Barry");       hash.Add("Four", "");       hash.Add("Five", "Harry");       hash.Add("Six", "F");       hash.Add("Seven", "Tom");       hash.Add("Eight", "Andy");       hash.Add("Nine", "I");       hash.Add("Ten", "Tim");       Console.WriteLine("Hashtable Key and Value pairs...");       foreach(DictionaryEntry ... Read More

Advertisements