Rahul Sharma

Rahul Sharma

35 Articles Published

Articles by Rahul Sharma

Page 3 of 4

Present date as default value in a table

Rahul Sharma
Rahul Sharma
Updated on 25-Feb-2020 285 Views

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 More

Accessing element which is defined SAPUI5 application

Rahul Sharma
Rahul Sharma
Updated on 25-Feb-2020 168 Views

You could try using the below code −var iconTabBar = sap.ui.getCore().byId("vwDetails--itabBar")

Read More

Using fast mode in Sybase bcp

Rahul Sharma
Rahul Sharma
Updated on 14-Feb-2020 782 Views

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 More

Using sy-datum low and high in ABAP Program

Rahul Sharma
Rahul Sharma
Updated on 14-Feb-2020 3K+ Views

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 More

In SAP UI5 render calling two times in custom control

Rahul Sharma
Rahul Sharma
Updated on 14-Feb-2020 444 Views

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 More

Displaying Source code of RFC in SAP system

Rahul Sharma
Rahul Sharma
Updated on 11-Dec-2019 988 Views

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 More

Exposing xsjs file data through web browser in SAP HANA

Rahul Sharma
Rahul Sharma
Updated on 11-Dec-2019 436 Views

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 More

Can a Java array be declared as a static field, local variable or a method parameter?

Rahul Sharma
Rahul Sharma
Updated on 30-Jul-2019 702 Views

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 More

Using SAP Mobile Platform Server

SAP
Rahul Sharma
Rahul Sharma
Updated on 30-Jul-2019 292 Views

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 More

Passing parameter with parenthesis via URL in SAP Open document

SAP
Rahul Sharma
Rahul Sharma
Updated on 30-Jul-2019 295 Views

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
Showing 21–30 of 35 articles
Advertisements