How to cast a list of strings to a string array?

Swarali Sree
Updated on 30-Jul-2019 22:30:20

311 Views

The java.util.ArrayList.toArray() method returns an array containing all of the elements in this list in proper sequence (from first to last element).This acts as bridge between array-based and collection-based APIs. You can convert a list to array using this method of the List class − Example Live Demo import java.util.ArrayList; import java.util.List; public class ListOfStringsToStringArray { public static void main(String args[]) { List list = new ArrayList(); list.add("JavaFX"); list.add("HBase"); ... Read More

Use workbench along with SAP Business One

Sharon Christine
Updated on 30-Jul-2019 22:30:20

292 Views

The answer is No. Workbench is not present in business one. The reason being the core of business one is not based on ABAP or NetWeaver.Business one relies heavily on SQL. It has a SQL database and you can write queries for fetching data. These data are then used for creating reports.But When you analyze business one with ABAP, the extension capabilities are very little in business one as available in ABAP.But you have other options for achieving the same; you can integrate with either JAVA or .NET using their connectors for writing your custom requirements.

How to write on selection screen after giving any user input in SAP ABAP

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

511 Views

You can use the WRITE to write on the selection screen. But still you have other options available to accomplish your task.You can choose to show your text in a message which is shown at the bottom of the screen. Also, you can try with a popup to show your required text.Sample snippet: Message 'Your text' TYPE S

Need to update MySQL and SAP database at the same time from a Form

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

140 Views

Yes, you can do that but if you are thinking of making the changes in the existing PHP script so that it takes care of both the tasks. Then it will be quite tough.But if you want to have two operations in parallel then you can have it.You can go for writing a web service which can do the DB update activity. You can also try using the SAP API to do the updates. SAP API has the most common and used methods to do the updates.So you might be able to find the ones for your requirement.You can also ... Read More

Convert CHAR to HEX in SAP system and functions

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

643 Views

I tried to use the same function as mentioned; I am too getting the exception.What I can make out of the dump thrown by the exception, only character type data objects are compatible with the function.You can try using another function module ‘CRM_EI_KB_CONV_DEC_TO_HEX’  which is available in ECC 6.0 environment.It will convert a decimal to hex and can be used. Hope it helps.

How we can extract data using VB Scripting from SAP

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

481 Views

You can use VBA for fetching data from SAP. You can find lot of blogs if you search online.If I explain in short, it depends on the level of access that you have to SAP system. I have done something similar in past. It worked like this; I had an existing RFC which will fetch the required data for me and for some part I had an ABAP program in place to fetch the data.Then I will use macros to make a call to respective RFC and program to do their job.

Debugging a failed Insert statement in SAP ABAP

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

256 Views

Note that in SAP ABAP, sy-subrc == 0 means success. You can use breakpoint before your INSERT statement to ensure if it is a success or not. You can check the possible return value by bringing cursor on it and then press F1 key.Try checking if/else branch in your code snippet.

Getting error not assigned on running SAP ABAP program

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

733 Views

The error is in field symbol. In future if you encounter such issue you can go through the logs created by ST22. It will help you in detail to understand the issue and its root cause. The reason of your error is that the field symbol is not initialized and you are trying to use it. You should have a habit of checking the content before using.check is ASSIGNED

\Can I integrate the SAP Learning Solution with a LMS platform?\

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:20

67 Views

The list of supported products can be viewed on the IMS website.  IMS has listed a set in the listed directory. SAP is not present in that list so it makes it clear that IMS does not support SAP.You can check the link too, in case if SAP is included in future:Link

How do I write constructor names in Java?

Giri Raju
Updated on 30-Jul-2019 22:30:20

945 Views

Declaring a constructor is in Java is similar to methods. While naming the constructor of a class in Java you need to keep the following points in mind. The name of the constructor should be the same (same case) as the class name (along with the access specifier). A constructor should not have any return type. Constructor cannot be static, final, abstract and, synchronized. Example Following Java program is an example of a constructor. Live Demo public class Sample { Sample() { System.out.println("This is an example of ... Read More

Advertisements