Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

How to map an Object of objects to a SAP List?

I am working on SAPUI5 project. I am getting data in a JSON format.  I have a JSON Object which is a complex object and contains child objects something like this: , I am able to bind arr.....
SAP Developer
Answered on 7th Dec, 2017

The answer to your question is ‘NO’. It is not possible to map your complex JSON object (object of objects) to a list <Objects> as it does not make sense.If you want you can have a model or a JSONModel which replicates your object and then you can map it ... Read More

Sorting List in SAP UI5 project

I am working on a SAPUI5 project which involves Cordova as well. It is more of a mobile App. The app relies on OData services for providing data.  In one of the sections of the app, I nee.....
SAP Developer
Answered on 7th Dec, 2017

Yes, you can. You can use the available sorter property available on the List. It lets you specify all the required details. For e.g.:<List Items="{   path: '/EmployeeCollection',   sorter: {     path: 'EmployeeName',     descending: true,     group: true   } }" headerText="Employees" />I have specified ... Read More

Show creator name in SAP WEBI report

I am working on a WEBI report.  I need to show the name of the creator or the name of the person who last modified the report. How can I get it done? Is it possible to get the name directly?
SAP Developer
Answered on 7th Dec, 2017

WEBI provides you a lot of functions which you can let you perform a wide range of operations ranging from fetching data to doing some complex calculations. You can get the entire list at help.sap.com.For your requirement you can use from the following functions:DocumentOwner()DocumentAuthor()These will not give you directly the ... Read More

Using JCo to connect SAP with Android

I am working on a proof of concept and as a part of it I need to connect SAP and Android. I have tried to connect but it is not working. Has someone tried to do the same? Any reference, code s.....
SAP Developer
Answered on 7th Dec, 2017

I have not tried it but it does not seem feasible. The reason being if you are planning to use JCo library, you will require a native library but that is still not available for Android environment.You can try an alternative for it. You can create a Web Service either ... Read More

Reduce number of columns of a result set from a Transaction in SAP system

I am working on a SAP ABAP project but quite new to ABAP and have very basic knowledge restricted to standard operations. I am running a SAP transaction against a predefined set of conditions .....
SAP Developer
Answered on 7th Dec, 2017

The simple answer to your question is NO. Because, this is SAP standard behavior and if you want to restrict the number of columns to be returned then it will require you to change the original source code of SAP implementation.The change will be quite exhaustive and it will also ... Read More

Not able to get the difference between two dates (SAP)

I am working on a project and need to show the difference between two dates as an output. I am currently doing as below: , It is throwing an error- “incorrect datetime format”. Can.....
SAP Developer
Answered on 7th Dec, 2017

It’s a very basic operation that you do in database. You can try using DateAdd function available and use the date overload of the function. You need to pass one date as negative so in actual the difference is calculatedSELECT DATEADD(d, -[dateTwo], [dateOne]) AS 'Difference in Dates' FROM [TABLE]Here‘d’ refers ... Read More

Add Authentication details in the AJAX request in SAPUI5

I am working on SAPUI5 project and performing some AJAX requests for fetching the required data. But the requests that I am making requires it to be authenticated so I need to add those detail.....
SAP Developer
Answered on 7th Dec, 2017

Basically you need to exploit the beforeSend function of JQuery AJAX to sort out your requirement.Here is a basic code snippet:function AddToHeader(xhr) {     var pwd = // get the password;     xhr.setRequestHeader("Authorization", "Basic " + btoa(user + ":" + pwd)); } $.ajax({         type: ... Read More

Using a SQL View in SAP BusinessOne

I am working on a SAP Business One project. I have created a View in SQL Server using management studio. I have created a query that uses this view for fetching results but it is not working. .....
SAP Developer
Answered on 7th Dec, 2017

Yes, it is  possible to use a view in Business one client and you can use it too. Please find below a sample format that you should be using to query the view in business one environment:SELECT <Column Names> FROM [dbo].[<View Name>]I have done the same and it is working for ... Read More

Best way to connect to SAP system from JAVA

I am new to SAP and working on a project in SAP. As a part of implementation, I need to communicate with SAP system. I am currently using JAVA so I should be able to communicate with the SAP s.....
SAP Developer
Answered on 7th Dec, 2017

There are lots of possibilities but a lot depends upon on your exact requirement and needs.One way is that you can go ahead and use Java Connector also known as JCo. JCo is a prevalent option to do similar requirements as of yours. It has a lot of support available ... Read More

Connect to dynamic URL within OData in SAP project

I am working on a SAP Project. The client is written in C# and I should be able to connect to SAP System with the help of OData. However the issue is that OData URL is not fixed and can change.....
SAP Developer
Answered on 7th Dec, 2017

You can try and create a URL in your code which you can read from config or XML.Here is a sample code snippet:String uri = // Can read from config or anywhere string odQuery = "?$format=json" var req = WebRequest.Create(uri+"/"+ odQuery); req.Method = "GET"; var streamreader = new StreamReader(stream: request.GetResponse().GetResponseStream()); ... Read More

Instantiation of Export Options throws an Exception in SAP Crystal Report

I am working on Windows application which involves integration with Crystal Reports as well. I am using the ExportOptions Class of the Crystal reports for the export functionality, however whe.....
SAP Developer
Answered on 7th Dec, 2017

Even after referencing the correct version of the dll, if you are still getting the error then it means that the runtime for the crystal reports is not properly installed.I think you would have used MSI installer over EXE for the installation of SAP Crystal Reports however it has a ... Read More

Apply CSS on a table cell based on the content in SAPUI5

I am working on SAPUI5 project and it involves usage of sap.m.table as well. In one the cases, I need to highlight the cell of the table based on some condition. Something like if the value is.....
SAP Developer
Answered on 7th Dec, 2017

You are having one of the most common requirements in the case of the table. You can achieve the end result using formatter function exposed on the cells of a table.Here is a code snippet for your reference which you can alter as per your use case:cells: [     ... Read More

Commit changes on SAP BAPI Transaction

I am working on a SAP BAPI project and the BAPI I am working with changes data. I am aware that if a BAPI is manipulating data then in order for those changes to come into effect, I need to ca.....
SAP Developer
Answered on 7th Dec, 2017

You are correct that in order for the changes done by BAPI to come into effect, you need to call the commit function.It will commit all the changes which are uncommitted not only the last transaction. You can refer below link to know more about BAPI_TRANSACTION_COMMIT and COMMIT WORK:BAPI_TRANSACTION_COMMIT Read More

Change no data text for Search in SAPUI5

I am working on a SAPUI5 project. As a part of the project I have created a search field with the help of XML. The search field is functioning as expected. When I search something which is pre.....
SAP Developer
Answered on 7th Dec, 2017

You just need to use the noDataText property to sort out your requirement.You have two options, either you can change in controller or you can change in the XML.Option 1:Call the setNoDataText method in the init methodthis.byId(“<Your Id>”).setNoDataText(“<Your custom text>”)Option 2:Add the noDataText property in the XML<List noDataText="<Custom text>" /> ... Read More

Retrieving ABAP BAdi from SAP BW

I require an ABAP program that can get BADIs source by passing their name as parameter and saving source code on local drive for each BADI and file name shows as name of program. Anyone can he.....
SAP Developer
Answered on 7th Dec, 2017

There are different Function Module that you can use depending on BAdi type- classic or fast kernelYou can try using Function module SXO_IMPL_FOR_BADI_READ. To read the coding of class, try using “CL_ENH_BADI_RUNTIME_FUNCTIONS”You can use “GET_BADI_SHORTTEXT” method to know different BAdi’s types.There is a Function modules SEO* - which can be ... Read More

Advertisements
Loading...
Unanswered Questions View All

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.