Using sy-datum-low and sy-datum-high in ABAP Program

Rahul Sharma
Updated on 14-Feb-2020 10:24:16

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.

Parsing SAP Logon Ticket with .NET

Johar Ali
Updated on 14-Feb-2020 10:23:49

268 Views

SAP provides SAP SSO EXT Lib for parsing SAP Logon ticket. SAP SSO EXT library supports SAP logon tickets as a part of the java based application.You can download SAP SSO EXT library from SAP service marketplace http://service.sap.com/swdc and then search here for SAPSSOEXT.

Insert Date into MySQL Column using Java

AmitDiwan
Updated on 14-Feb-2020 10:23:16

3K+ Views

For this, you can use PreparedStatement from Java. Let us first create a table wherein one of the columns is ArrivalDate with DATE type −mysql> create table DemoTable(    PassengerId int,    PassengerName varchar(40),    ArrivalDate date ); Query OK, 0 rows affected (0.82 sec)The JAVA code is as follows to insert date −import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; public class InsertDateFromJava {    public static void main(String[] args) {       Connection con = null;       PreparedStatement ps = null;       try {          java.util.Date javaDate = new java.util.Date();     ... Read More

In SAP UI5: Render Calling Two Times in Custom Control

Rahul Sharma
Updated on 14-Feb-2020 10:22:32

409 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

Convert OData to JSON Format Using SAPUI5 Libraries

Ali
Ali
Updated on 14-Feb-2020 10:18:07

559 Views

This can be done in multiple ways. One of common approach would be by passing user name/password in URL.$.ajax({    url : "http://user:password@url/SERVICE?$format=json",    type: "GET", //or POST?    dataType: "jsonp",    success: function(){alert("ok")},    error: function(){alert("error")} })

Getting a Carriage Return of Report Field in SAP Crystal Report

Amit Sharma
Updated on 14-Feb-2020 10:17:37

344 Views

You can make use of split as below −// To split the text on carriageLocal Stringvar Array lines: = Split( {table.field}, Chr(20) );// To return carriage 1 less than the number of linesLocal Numbervar delimiters := Ubound(lines)-1;Let us see one more example, how to use split to divide a string in different lines.stringvar array x := split({table.fullname}," "); x[1] stringvar array x := split({table.fullname}," "); if ubound(x) >= 2 then x[2] stringvar array x := split({table.fullname}," "); if ubound(x) >= 3 then x[3]This will split a string in 3 different lines like“Mr”“John”“Harper”

Remove Everything Inside a DIV Using jQuery

David Meador
Updated on 14-Feb-2020 10:16:23

665 Views

To remove everything inside a div element, use the remove() method. You can try to run the following code to remove everything inside a element −ExampleLive Demo $(document).ready(function(){     $(".btn").click(function(){         $("div#demo").remove();     });         }); Hide the elements inside div Inside div- This is demo text. Inside div- This is demo text. Inside span- This is demo text. Inside span- This is demo text.

Remove All Elements Except the First One Using jQuery

Amit D
Updated on 14-Feb-2020 10:15:16

2K+ Views

To remove all elements except the first one, use the remove() method with the slice() method in jQuery. You can try to run the following code to remove all elements except for first one using jQuery −ExampleLive Demo $(document).ready(function(){     $(".button1").click(function(){         $("span").remove();     });          $(".button2").click(function(){          $('span').slice(1).remove();      });         }); Hide all, except first element Hide all the elements This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.

Remove All Child Nodes from a Parent Using jQuery

Amit D
Updated on 14-Feb-2020 10:14:03

5K+ Views

To remove all child nodes from a parent, use the empty() method. The empty() method removes all child nodes from the set of matched elements.ExampleYou can try to run the following code to learn how to remove all child nodes from a parent −Live Demo           jQuery empty() method                              $(document).ready(function() {             $("div").click(function () {                $(this).empty();             });          });                            .div {             margin:10px;             padding:12px;             border:2px solid #666;             width:60px;          }                             Click on any square below to see the result:               ONE       TWO                

Use insertAfter Method in jQuery

Amit D
Updated on 14-Feb-2020 10:12:54

187 Views

The insertAfter( selector ) method inserts all of the matched elements after another, specified, set of elements.Here is the description of all the parameters used by this method −selector − Content after which the selected element(s) is inserted.ExampleYou can try to run the following code to learn how to use jQuery.insertAfter() method in jQuery −Live Demo           jQuery insertAfter() method                              $(document).ready(function() {             $("div").click(function () {                $("#source").insertAfter(this);             });          });                              .div {             margin:10px;             padding:12px;             border:2px solid #666;             width:60px;          }                             Click on any square below to see the result:                                                

Advertisements