Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Ali
Page 3 of 4
How do I put a jQuery code in an external .js file?
Create an external JavaScript file and add the jQuery code in it.ExampleLet’s say the name of the external file is demo.js. To add it in the HTML page, include it like the following − Hello Above we added jQuery using Google CDN and the external file was included after that.Add jQuery code in demo.js, since you wanted to place jQuery code −$(document).ready(function(){ alert(“amit”) });
Read MoreEquivalent for Row_Number() in SAP ABAP
When you want to modify the contents and store them into table and also to add a column for the value, use something likeDATA: my_string TYPE StringLOOP AT itab INTO wa_itab. my_string = sy-tabix. CONCATENATE some_text my_string more_text into wa_itab-my_field. MODIFY itab FROM wa_itab. CLEAR my_string. ENDLOOP.
Read MoreConverting OData using SAPUI5 libraries to JSON format
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")} })
Read MoreUsing SAP OLE code to take an internal table and paste it into an excel file
Note that you have to use “double quotation” for all the text you have to put into one cell and then connect cell with 0X09 and 0X0A for next column and next row respectively.Check the below code as it fills two cells with 2 lines:CONSTANTS: nextC TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab, nextR TYPE abap_char1 VALUE cl_abap_char_utilities=>newline, quot TYPE abap_char1 VALUE '"'. DATA: buffer TYPE string. CONCATENATE quot 'R1C1L1' nextR 'R1C1L2' quot nextC quot 'R1C2L1' nextR 'R1C2L2' quot INTO buffer.
Read MoreShort TEXT for all errors occurred in SAP system
In SAP system, you have a table name “ SNAPT” which can be used to find the texts. To view table contents you can make use of T-Code SE16There is also a report in SAP system RSLISTDUMPS that displays the text of short dump. You can check and execute report using T-Code: SA38This report lists all runtime errors and their description.
Read MoreSAP UI5 application throws an error while using Tree map
Note that SAP UI5 1.14 version supports Tree map and older version like 1.12 doesn’t have Tree map. You can try using below link: http://jsbin.com/aku-test-treemap-exists/1/edit?html,outputIt returns the code of tree map constructor, try loading your own copy sap-ui-core-js of UI5.
Read MoreSkipping mandatory fields in an ABAP screen
You can make use of function code which is assigned to push button with “Exit” as function type and an event “AT SELECTION-SCREEN ON EXIT-COMMAND” to achieve this.A call is made to this event to validate the fields on the screen and you can implement all logic here.
Read MoreChecking technical information associated with screen field in SAP without any documentation
When you have report selection screen option, you can use Ctrl+S to enter the variant screen. Press Technical Name button to display technical name information for the respective field.In case you want more information related to parameter field, you can write an ABAP code to see the definition.Mostly, F1 key is used to get all the details about the technical details of a particular field as shown in below:Also if you want to see Technical name of objects in SAP ECC Easy access for all the modules, you can navigate to Extras -> Settings
Read MoreWhere do we maintain Print programs, routines and forms to be printed in Transaction QM02?
You have the print program configured in IMG. Run T-code: SPRONext is to assign Shop Papers to “Notification Type” this is used to tell which Shop Paper 4-CHAR code you care about, define Shop Papers has the ABAP Form and Print Program.
Read MoreAccessing an SAP endpoint in apex code
I faced a similar issue earlier but it was because of a bug in JAVA security package (refer link for more details)http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044060I just got updated myself to latest OpenJDK7 and it solved my issue. I think you can try the same and check if it helps.
Read More