SAP HANA Articles

Page 35 of 58

Call event function from another method in Controller in SAP

Nancy Den
Nancy Den
Updated on 18-Dec-2019 724 Views

It is advised not to call the event function from any other function but what you can do is refactor the event function implementation in a separate function and call that from any other function as shown below:ExampleBtnPress: function(oEvent) {    // Separate the implementation in the helper function    this.btnPressHelper(); } // Define the helper btnPressHelper: function() {    //logic here } // call the helper from whichever function you want to get the desired output PerformSomething: function() {    this.btnTapHelper(); }

Read More

Communicating with SAP system using PHP

Rishi Rathor
Rishi Rathor
Updated on 18-Dec-2019 1K+ Views

You can communicated with any SAP system from PHP in many ways, but the preferred standard available choices areRFC (remote function call)Web ServicesPHP has got one RFC library to communicate with SAP. But the main job in your problem statement lies with your partner as they are the one dealing with SAP component. You need to check with them what they prefer services or RFC. Don’t forget to double check with them in case they already have any existing API (can be anything) which can serve your purpose. Because it entirely depends on them as in how they want you ...

Read More

Creating a table in SAP system using OData service

Nancy Den
Nancy Den
Updated on 18-Dec-2019 882 Views

In order to create a table, you need to use either *.hdbdd or *.hdbtable and then expose them with xsodata.You can check for more details:https://help.sap.com/viewer/52715f71adba4aaeb480d946c742d1f6/2.0.02/en-USExampleservice namespace "HANA.Tables" {    "Schema_Name"."PAKAGE::TABLENAME" as "NAMESPACE"; }

Read More

Managing user sessions in SAP UI5 application

Daniol Thomas
Daniol Thomas
Updated on 18-Dec-2019 1K+ Views

You can make use of setTimeout and clearTimeOut functions. In order to trace the activity of the user, you can either make use of mouse move event or key press event or even both.ExampleYou can reset the timer on the occurrence of either of the two events.document.onmousemove = timeOut; document.onkeypress = timeOut; function timeOut () {    clearTimeout();    setTimeout(sessionTimeout, ); }

Read More

Fetching attribute of SAP Webdynpro component in new component

Krantik Chavan
Krantik Chavan
Updated on 18-Dec-2019 237 Views

You need to do the below steps in order to pass values from one Webdynpro component to another:Create both componentsIn the first component, create a method which will call the second componentCreate a parameter in the context of the first component which will be passedCall the first component; once the URL has been generated just append the parameter which needs to be passed.

Read More

Using subset of items present in the list in SAP Program

Smita Kapse
Smita Kapse
Updated on 18-Dec-2019 181 Views

You can use a SWITCH CASE statement to handle your scenario. This is a good choice if you know well in advance what all properties are required and what is not required. Also, it will let you to unit test your code.Otherwise, you can go for a collection like a dictionary.You can think of using HashSet or hashtable as well, it entirely depends upon the usage of the list created.

Read More

Second approach to fetch data from SAP tables without using SAP JCo

Jennifer Nicholas
Jennifer Nicholas
Updated on 18-Dec-2019 415 Views

If you need to access the SAP Tables with the help the table name and column names, then you can use the RFC RFC_READ_TABLE. It also provides external access to R/3 tables with the help of remote function calls.RFC requires following details:table name (required parameter)number of rows to skip (optional parameter)maximum number of rows to be loaded (optional parameter)

Read More

Using SQL statements in ABAP Programming and Database performance

Anvi Jain
Anvi Jain
Updated on 18-Dec-2019 352 Views

The basic principle for performance is that there should be minimal data transferred between application server and database.For your first question, I would suggest to select only the fields that are required. So, don’t use SELECT * in case you don’t require all the fields. But in specific scenarios, if you have multiple SELECT statements at various parts of your program querying the same table but different columns, it is advisable to use SELECT * as the output is stored in a buffer till your program execute. In that case, when you come to subsequent select, the system uses the ...

Read More

“Where” clause not working while updating database record in ABAP

Rishi Rathor
Rishi Rathor
Updated on 18-Dec-2019 533 Views

I think there is a syntax problem in your code. The colon in the first statement adds multiple following statements and hence updating all records in the first statement.Remove the colon in the first line and comma between SET specifiers.ExampleTry using the following statement after update:UPDATE zemployee_jat    SET prijs = zemployee_jat-prijs       naam = zemployee_jat-naam WHERE employeeid = zemployee_jat-motorid.

Read More

Naming conflict error while consuming SAP Web Service in .net

Nancy Den
Nancy Den
Updated on 18-Dec-2019 235 Views

You can fix this issue by adding Global before all calls giving the error. This has happened cos of system namespace in BAPI and Windows.ExampleAnother possible solution of this is by adding an alias for System.XML and change System.XML with SysXml as below:using SysXml = System.Xml; /// [System.Xml.Serialization.XmlElementAttribute(Form=SysXml.Schema.XmlSchemaForm.Unqualified)] public string Type {    get {       return this.typeField;       set {          this.typeField = value;       }    } }

Read More
Showing 341–350 of 573 articles
« Prev 1 33 34 35 36 37 58 Next »
Advertisements