Handling Errors in SAP GUI Scripting Code

Ayyan
Updated on 12-Jun-2020 13:58:32

2K+ Views

You can take reference from GUI Scripting help section and it can explain things in detail.It provides you default property types as per requirement. If you want to perform next step, stop or abort user step, you can use the following properties.ValueDescriptionSSuccessWWarningEErrorA Abort I  InformationSee the below code that uses above property type to display different messages −Public Sub get_status_bar_value_exit_if_Error()    Dim usr_resp AsString    If(session.findById("wnd[0]/sbar").messagetype = "E"Or       session.findById("wnd[0]/sbar").messagetype= "W") Then    usr_resp =MsgBox(session.findById("wnd[0]/sbar").Text & Chr(13) &"Show the Error in SAP ?", vbYesNo)     If usr_resp =vbYes Then  Else     Callgo_to_Sap_home  End If  End  End If End ... Read More

What is an Alert Box in JavaScript

Krantik Chavan
Updated on 12-Jun-2020 13:58:13

1K+ Views

An alert dialog box is mostly used to give a warning message to the users. For example, if one input field requires to enter some text but the user does not provide any input, then as a part of validation, you can use an alert box to give a warning message.Nonetheless, an alert box can still be used for friendlier messages. Alert box gives only one button "OK" to select and proceed.ExampleYou can try to run the following code to learn how to add an alert box −Live Demo                                         Click the following button to see the result:                          

Bootstrap Warning Class

Chandu yadav
Updated on 12-Jun-2020 13:56:26

547 Views

The has-warning class allows you to set warning for input.You can try to run the following code to implement has-warning class −ExampleLive Demo           Bootstrap Example                                                                      Input with warning                                                                        

Bootstrap Form Select

Samual Sam
Updated on 12-Jun-2020 13:55:03

418 Views

A select is used when you want to allow the user to pick from multiple options, but by default, it only allows one.Use for list options with which the user is familiar, such as states or numbers.Use multiple = "multiple" to allow the users to select more than one option.ExampleYou can try to run the following code to implement Bootstrap form selectLive Demo           Bootstrap Example                                                             Country                            India                Australia                US                                

Bootstrap Radio Class

George John
Updated on 12-Jun-2020 13:54:03

400 Views

Use radio class if you want to limit the user to just one selection. Use .radio-inline class to a series of radios for controls appears on the same line.You can try to run the following code to implement the Bootstrap radio class &mminus;ExampleLive Demo           Bootstrap Forms                                       Favourite Sports                             Cricket                                                            Football                    

Bootstrap Has Error Class

karthikeya Boyini
Updated on 12-Jun-2020 13:52:44

3K+ Views

The has-error class allows you to set error for input.You can try to run the following code to implement the has-error classExampleLive Demo           Bootstrap Example                                                                      Input with error                                                                        

Set Heights and Widths of Forms with Bootstrap

Chandu yadav
Updated on 12-Jun-2020 13:49:34

2K+ Views

Use classes like .input-lg and .col-lg-* to set the height and width of forms.ExampleYou can try to run the following code to set the form height and width −Live Demo           Bootstrap Example                                                                                                                                                                                .input-lg                                                            Default select                                                            .input-sm                                                                                                                                                                            

Create Function Module in ABAP to Display Any Table

Manikanth Mani
Updated on 12-Jun-2020 13:49:01

2K+ Views

SAP List Viewer is used to add an ALV component and provides a flexible environment to display lists and tabular structure. A standard output consists of header, toolbar, and an output table. The user can adjust the settings to add column display, aggregations, and sorting options using additional dialog boxes.You can use following code to display any table:DATA: go_alv TYPE REF TO cl_salv_table.    CALL METHODcl_salv_table=>factory    IMPORTING       r_salv_table = go_alv    CHANGING       t_table     = itab.  go_alv->display( ).Another Dynamic Way to Output Any Internal Table is by using field-symbol, this is a ... Read More

Input-lg Bootstrap Class

Lakshmi Srinivas
Updated on 12-Jun-2020 13:48:36

533 Views

The input-lg is used to set the height of forms in Bootstrap.You can try to run the following code to implement the input-lg Bootstrap class ExampleLive Demo           Bootstrap Example                                                                                                                .input-lg                                

Create a Form with Horizontal Layout in Bootstrap

George John
Updated on 12-Jun-2020 13:47:25

499 Views

To create a horizontal layout in Bootstrap, use the form-horizontal class.You can try to run the following code −ExampleLive Demo           Bootstrap Example                                                             Name                                                                         Country                                                                                        Sign in                                

Advertisements