Handling Exception and Using CX-ROOT in ABAP

Sai Nath
Updated on 14-Feb-2020 05:37:06

373 Views

It is not advisable to use CX_ROOT directly and you would require using one of its direct subclasses. Also, the propagation depends upon the exception subclass hierarchy.Subclasses of CX_STATIC_CHECK – these do not propagate automatically. You will need to do the handling yourself or there will be a syntax error in the program.Subclasses of CX_DYNAMIC_CHECK – these do not require any handling. But the program that does not handle the exception will be aborted with these subclasses.Subclasses of CX_NO_CHECK – These will get propagated automatically if the exception is not handled.

Using Breakpoint in SAP System

Jai Janardhan
Updated on 14-Feb-2020 05:36:30

218 Views

There is a problem with your code. Here is the correct syntaxSyntaxBREAK username.If you want to implement it for all the users you can just codeBREAK-POINT.

Concatenate 2 Strings in ABAP Without Using CONCATENATE Function

Moumita
Updated on 14-Feb-2020 05:32:25

3K+ Views

In ABAP you can use && sign to concatenate variables as belowDatahello TYPE string, world TYPE string, helloworld TYPE string. hello = 'hello'. world = 'world'. helloworld = hello && world.If you want to concatenate strings directly, you can usehelloworld = 'hello' && 'world'.If you want to keep space in between, you would require ` symbol as belowhelloworld = hello && ` and ` && world

Difference Between switchClass and toggleClass Methods in jQuery

Amit D
Updated on 14-Feb-2020 05:30:24

452 Views

The switchClass() is used to switch class from an element. Use it, to replace one class with another. Add jQuery UI library to the web page to use switchClass().ExampleYou can try to run the following code to learn how to work with switch class −Live Demo                          $(document).ready(function(){           $("a").click(function(){              $("a.active").removeClass("active");              $(this).addClass("active");            });          });             ... Read More

Use removeClass Method in jQuery

Amit D
Updated on 14-Feb-2020 05:28:00

127 Views

To add a class on click of anchor tag using jQuery, use the addClass() method. To remove a class, use the removeClass() method.ExampleYou can try to run the following code to learn how to remove a class using jQuery −Live Demo                          $(document).ready(function(){           $("a").click(function(){              $("a.active").removeClass("active");              $(this).addClass("active");            });          });                      .active {             font-size: 22px;            }                     One       Two       Click any of the link above and you can see the changes.    

Use hasClass Method in jQuery

David Meador
Updated on 14-Feb-2020 05:26:57

155 Views

The hasClass() method is used to check if an element has a class. You can try to run the following code to learn how to use hasClass() method in jQuery −ExampleLive Demo                          $(document).ready(function(){              $("button").click(function(){                  alert($("h1").hasClass("myclass"));              });          });                      .myclass {            color: blue;          }                     Heading       This is demo text.       Check: The h1 element has 'myclass' class?    

Get and Set Form Element Values with jQuery

David Meador
Updated on 14-Feb-2020 05:24:52

12K+ Views

To get a form value with jQuery, you need to use the val() function. To set a form value with jQuery, you need to use the val() function, but to pass it a new value.ExampleYou can try to run the following code to learn how to get and set form element values with jQuery −Live Demo                          $(document).ready(function(){                        $("#buttonSet").click(function () {                  $("#txtBox").val("Amit");                  $("input:radio").val(["male"]);                  $("#buttonGet").removeAttr('disabled');             });              $("#buttonGet").click(function () {                 $("#result").html(                     $("#txtBox").val() + "" +                     $("input:radio[name=rd]:checked").val()                 );             });          });                     Name                   Gender       Male       Female                            

Get Closest Input Value from Clicked Element with jQuery

David Meador
Updated on 14-Feb-2020 05:23:03

9K+ Views

To get the closest input value from clicked element with jQuery, follow the steps −You need to use closest to find the closest ancestor matching the given.Now, find the input with the given name using the attribute equals selector.The last step is to use val() metjod to retrieve the value of the input.Let’s first see how to add jQuery −ExampleYou can try to run the following code to get closest input value from clicked element with jQuery −Live Demo                          $(document).ready(function(){           ... Read More

Get Input Value of First Matched Element Using jQuery

David Meador
Updated on 14-Feb-2020 05:21:14

1K+ Views

To get the input value of the first matched element using jQuery, use the .first() method.ExampleYou can try to run the following code to get the input value of the first matched element using jQuery −Live Demo                          $(document).ready(function(){            $( "li" ).first().css( "background-color", "blue" );          });                              One          Two          Three          Four          

Difference Between Text and HTML in jQuery

David Meador
Updated on 14-Feb-2020 05:18:33

531 Views

jQuery comes with a lot of methods to manipulate attributes. These are DOM related methods. The attributes include, text() and html() too,text() – This method sets or returns the text content of elements selected.html() – This method sets or returns the content of elements selected.ExampleYou can try to run the following code to learn how to manipulate attributes with text() and html() methods −Live Demo $(document).ready(function(){    $("#button1").click(function(){       alert("Using text()- " + $("#demo").text());    });    $("#button2").click(function(){       alert("Using html()- " + $("#demo").html());    }); }); This is demo text. Text HTML

Advertisements