Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
SAP Articles
Page 44 of 91
Is it possible to delete the actives while you are running a loop over an internal table in SAP ABAP?
DELETE command will have a result. You should make sure that once you delete the row, there should not be any reference or use of row subsequently in the loop. The best is to use CONTINUE as soon as you perform deletion. I will suggest avoiding “DELETE lt_itab INDEX sy-tabix” because it will change the sy-tabix i.e. table index. In case if you just want to delete the current row in the loop then you can simply use.“DELETE lt_itab”One more thing if you are using statement “DELETE lt_itab FROM ls_wa” then whether knowingly or unknowingly, you are deleting the same lines ...
Read MoreSorting List in SAP UI5 project
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. −I have specified the employee collection to be sorted on the basis of the name of the employee and specified that the sorting should be in descending manner. It should also consider grouping while sorting the data.
Read MoreNot able to get the difference between two dates (SAP)
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 to the day.
Read MoreUsing a SQL View in SAP BusinessOne
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 FROM [dbo].[]I have done the same and it is working for me.
Read MoreConnect to dynamic URL within OData in SAP project
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()); string response = streamreader.ReadToEnd(); //json responseThis is a sample code snippet but you can modify it as per your use case.
Read MoreInstalling SAP JCo on Glassfish server 4.0
In SAP, there is a file intro.html that contains detailed instructions on installation of JCo3 on different Operating Systems.Following are the instructions:To install JCo for Windows unzip the appropriate distribution package into an arbitrary directory {sapjco3-install-path}.Note: Do not copy the sapjco3.dll neither into the {windows-dir}\system32 nor into the {windows-dir}\SysWOW64 directory. This will break the operability of other JCo versions that are already installed on the same system. Furthermore you would risk that the current installation also would not work anymore, if the sapjco3.dll gets replaced in the respective Windows system directory in the future.Then add {sapjco3-install-path} to the PATH environment ...
Read MoreAccessing SAP Web Dynpro page within an application using NSURL
You need to pass browser identification string otherwise Web Dynpro application won’t take browser and will show an error message as mentioned by you.You can refer below link for more details −Apple NSURL Link
Read MoreConsuming Web Service in C# application (SAP)
This error occurs when remote server doesn’t provide a response to your request and connection is broken before request is complete. To fix this issue, first setup a request that includes QaaWsHeader and ReportBlock configuration, then create the Request and in last using ServicesSoapClient, you can make method to send results.Check out the below code and it may help −Sellers.QaaWSHeader qaawsHeaderDatos = new Sellers.QaaWSHeader(); Sellers.GetReportBlock_WBS_Sellers getReportBlock = new Sellers.GetReportBlock_WBS_Sellers(); getReportBlock.login = userWS; getReportBlock.password = passWS; getReportBlock.refresh = true; getReportBlock.startRow = 0; getReportBlock.startRowSpecified = true; getReportBlock.endRow = 1000; getReportBlock.endRowSpecified = true; Sellers.GetReportBlock_WBS_Sellers_Request ...
Read MoreSAP ABAP: Using Elementary data type and reference type with keyword VALUE
It is not possible. Check this link for details:ABAP DocumentationThe correct way for using “VALUE” with elementary data type is by assigning initial value and you should use NEW operator to assign initial value.DATA(l_value) = NEW char4( 'AAA' ).
Read MoreData Replication from SAP PO to SQL Server
Note that SAP PO is not a data source but middleware so it doesn’t contain any data. You can extract data from SQL Server using JDBC.SAP PI/XI enables you to set up cross system communication and integration and allows you to connect SAP and non-SAP systems based on different programming language like Java and SAP ABAP. It provides an open source environment that is necessary in complex system landscape for the integration of systems and for communication.SAP Process Integration is a middleware to allow seamless integration between SAP and non-SAP application in a company or with systems outside the company.ExampleAn ...
Read More