What is Meant by a Multithreaded Program in Java

Sharon Christine
Updated on 13-Mar-2020 04:54:40

353 Views

A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources specially when your computer has multiple CPUs.Multi-threading enables you to write in a way where multiple activities can proceed concurrently in the same program.Exampleclass RunnableDemo implements Runnable {    private Thread t;    private String threadName;       RunnableDemo( String name) {          threadName = name;          System.out.println("Creating " + threadName);       }       public void run() { ... Read More

Check Transaction List Waiting for Lock in SAP HANA

SAP ABAP Expert
Updated on 13-Mar-2020 04:51:54

1K+ Views

M_BLOCKED_TRANSACTIONS System View is used to provide a transaction list waiting for locks.You can run the following SQL query in the editor −SELECT * FROM M_BLOCKED_TRANSACTIONS;Details available under M_BLOCKED_TRANSACTIONS System View in SAP HANA

Transform XML File into Fixed Length Flat File in SAP

karthikeya Boyini
Updated on 12-Mar-2020 12:48:46

735 Views

This is an EDIfact invoice. Try using the script, and it can help −                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ERROR: The maximum length of "TABNAM" is 10 characters.                                                                                                                                                                                                                                                                               ERROR: The maximum length of "MANDT" is 3 characters.                                                                                                                                                                                                                                                                                                                                                                                                              ERROR: The maximum length of "ACTION" is 3 characters.                                                                                                                                                                                                          ERROR: The maximum length of "KZABS" is 1 character.                                                                                                                                     There are various sites which provide a built-in script to convert your EDIfact to XSLT.  Check this site and it may also help −https://www.codeproject.com/Articles/11278/EDIFACT-to-XML-to-Anything-You-Want

Maintaining Print Program Routines and Forms in SAP

Sharon Christine
Updated on 12-Mar-2020 12:47:58

548 Views

You configure print program and output controls in IMG. Run T-Code: SPRO →Search for Output control or Print controlCheck Shop Papers for Notification types and mention Shop Papers has the ABAP Form and print Program as shown below -

Passing to Method getIcon in SAPUI5

karthikeya Boyini
Updated on 12-Mar-2020 12:46:42

254 Views

SAP UI supports custom formatter functions. formatter="function" is used to specify a function to format cell data prior to display.formatter="function"Try using formatter function as below −icon : {    parts : ["answer"],    formatter : function(answerValue){       return self.getIcon(answerValue);    } }Refer below link to know more about custom formatter functions −https://sapui5.hana.ondemand.com/#/topic/07e4b920f5734fd78fdaa236f26236d8

Store Data in XML Format in SAP HANA

Sharon Christine
Updated on 12-Mar-2020 12:45:14

639 Views

In older SAP HANA versions, no XML functions were provided. With HANA 2.0, these two functions are provided- XMLEXTRACT and XMLEXTRACTVALUE for extracting XML string in SAP HANA.Use of XMLEXTRACTXMLEXTRACT(, [, ])Syntax to use −Specifies an XML document of type CLOB, NCLOB, VARCHAR, or NVARCHAR.Specifies an XPath expression of type VARCHAR or NVARCHAR.Specifies a namespace declaration of type VARCHAR or NVARCHAR.DescriptionReturns the matching XML element. The return value is of type VARCHAR/NVARCHAR or CLOB/NCLOB depending on the type given for .If an XML element is empty (for example, ), then an empty result is returned. If an XML element ... Read More

Multidimensional Expression and its Use in SAP BPC

Samual Sam
Updated on 12-Mar-2020 12:36:48

529 Views

MDX is a query language developed by Microsoft to query OLAP cubes. In OLAP cubes, data is structured as multidimensional. You have a fact table in middle and dimension tables surrounding fact tables. MDX is used to query STAR schema cubes like this and generate results for different purposes.MDX query language is bit similar to SQL with few fundamental differences like:In MDX queries, it can have 0, 1, 2, 3, 4…up to 128 query axes in the SELECT statement. Each axis behaves in exactly the same way, unlike SQL where there are significant differences between how the rows and the ... Read More

Insert Rows to an Internal Table Through Debug in SAP ABAP

Sai Subramanyam
Updated on 12-Mar-2020 12:35:38

4K+ Views

This can be done using any of the below methods −In the Tools window → Navigate to Service menu → you can add a new rowThis can also be done by using T-Code SE11 → Select the relevant table. Navigate to Table Content → DisplayMake sure Debug mode is ON. Click on Pencil to get Edit mode.Type Edit in Value column to edit the table in Debug mode. Press F8 (Continue).Note that for edition it is EDIT and for deletion, it is DELE as shown in below snapshot.This will open the record. You can change the value and save it.

Call RFC in SAP Using an ETL Job

Samual Sam
Updated on 12-Mar-2020 12:34:24

428 Views

You need to expose RFC as Web Service in SAP system. To create a Web Service, you have to open Transaction SE80 and this will open ABAP Workbench.You can define Web Service for −RFC Capable function modulesFunction GroupsBAPIsMessage InterfacesIn Web Service Wizard, enter the name and short text and select Function Module as Endpoint TypeWhen you navigate to configure service, you need to select SOAP profile from drop down as below −

Fix Error: Cannot Concatenate Int and Str in Python

Ayush Gupta
Updated on 12-Mar-2020 12:31:58

140 Views

This error is coming because the interpreter is replacing the %d with i and then trying to add 1 to a str, ie, adding a str and an int. In order to correct this, just surround the i+1 in parentheses. exampleprint("\ Num %d" % (i+1))

Advertisements