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
-
Economics & Finance
Articles by Rahul Sharma
Page 3 of 4
Present date as default value in a table
Please try the below code. Note that you need to set the value before START-OF_SELECTIONselect-OPTIONS: so_date FOR sy-datlo. INITIALIZATION. so_date-sign = 'I'. so_date-option = 'EQ'. so_date-low = sy-datum. CLEAR so_date-high. APPEND so_date.You can also try this easy option −select-OPTIONS: so_date FOR sy-datlo default SY-DATUM.
Read MoreAccessing element which is defined SAPUI5 application
You could try using the below code −var iconTabBar = sap.ui.getCore().byId("vwDetails--itabBar")
Read MoreUsing fast mode in Sybase bcp
In Sybase, when you have indexes on tables it affects transfer speed. When bcp is used on such tables, it automatically uses its slow mode and logs data is inserted in the transaction log. These logged inserts can cause the transaction log to become very large.To control this data excess and ensure that the database is fully recoverable in the event of a failure, you can back up the log with dump transaction.Note that bcp does not fire any trigger that exists on the target table. Fast bcp logs only the page allocations. For copying data in, bcp is fastest ...
Read MoreUsing sy-datum low and high in ABAP Program
In this code, you have used ‘BT’ i.e. between so select option will hit any date between today and YYYYMMDD ‘99991231’.You should declare high dates at INITIALIZATION so that it is visible on the selection screen and you can change it if required.select-OPTIONS: so_date FOR sy-datum. INITIALIZATION. so_date-sign = 'I'. so_date-option = 'BT'. so_date-low = sy-datum. so_date-high = '99991231'. APPEND so_date.
Read MoreIn SAP UI5 render calling two times in custom control
In your custom control, there are two aggregation updates- setAggregation and addContent. When you use Aggregation mutators, it uses 3rd parameter to suppress invalidation.It will insert the aggregation but suppress the invalidation since whole control will be rendered at the end it.oControl.setAggregation("layout", oSavedButtonHLyt, true); // suppress invalidateYou should think that It should work same for “addContent”.oSavedButtonHLyt.addAggregation("content", manageSavedSearch[index], true);However, it doesn’t work as UI5 cannot determine automatically for the previous parent's suppress cos its aggregation will be moved. You have to note that property, aggregation or an association invalidates control when control does not overwrite its mutator method.
Read MoreDisplaying Source code of RFC in SAP system
You can check this information in table REPOSRC and column name is “DATA”.You can also make use of RPY_FUNCTIONMODULE_READ_NEW - this will return the source as well. This Function module uses changing Parameters.
Read MoreExposing xsjs file data through web browser in SAP HANA
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
Read MoreCan a Java array be declared as a static field, local variable or a method parameter?
We can declare an array as a local variable or method parameter but, an array cannot be static. Example public class Test{ public void sample(){ static int[] myArray = {20, 30}; System.out.println(); } public static void main(String args[]){ Test t = new Test(); t.sample(); } } Error C:\Sample>javac Test.java Test.java:3: error: illegal start of expression static int[] myArray = {20, 30}; ^ 1 error
Read MoreUsing SAP Mobile Platform Server
To use SAP Mobile Platform SDK for application development, you need to install SMP SDK on your local machine.Now regarding use of OData service, SAP Mobile Platform SDK contains three APIs for accessing and manipulating an OData source.OData Online Store API for Windows: this API is used to manage an Online OData store.OData Offline Store API for Windows: This API is used to manage an Offline OData store. Also note that you can also access Offline API documentation at Offline OData.OData API for Windows: This is used to manage OData feed for both offline and online stores.https://help.sap.com/viewer/42dc90f1e1ed45d9aafad60c80646d10/3.0.15/en-US/cd61551b9cbf40c8a170a3b7437e9536.htmlAlso you can navigate ...
Read MorePassing parameter with parenthesis via URL in SAP Open document
You can enclose the parenthesis in Quotes “” and try. URL will look like below:http:///OpenDocument/opendoc/openDocument.aspx?sViewer=html&sDocName=&sType=rpt&promptex-=URI_ESCAPE("VALUE_CONTAINING_(PARENTHESIS)")
Read More