Ali

Ali

32 Articles Published

Articles by Ali

Page 3 of 4

How do I put a jQuery code in an external .js file?

Ali
Ali
Updated on 20-Feb-2020 7K+ Views

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 More

Equivalent for Row_Number() in SAP ABAP

Ali
Ali
Updated on 14-Feb-2020 992 Views

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 More

Converting OData using SAPUI5 libraries to JSON format

Ali
Ali
Updated on 14-Feb-2020 620 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")} })

Read More

Using SAP OLE code to take an internal table and paste it into an excel file

SAP
Ali
Ali
Updated on 11-Dec-2019 827 Views

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 More

Short TEXT for all errors occurred in SAP system

SAP
Ali
Ali
Updated on 30-Jul-2019 175 Views

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 More

SAP UI5 application throws an error while using Tree map

Ali
Ali
Updated on 30-Jul-2019 249 Views

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 More

Skipping mandatory fields in an ABAP screen

Ali
Ali
Updated on 30-Jul-2019 1K+ Views

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 More

Checking technical information associated with screen field in SAP without any documentation

Ali
Ali
Updated on 30-Jul-2019 753 Views

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 More

Where do we maintain Print programs, routines and forms to be printed in Transaction QM02?

Ali
Ali
Updated on 30-Jul-2019 195 Views

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 More

Accessing an SAP endpoint in apex code

Ali
Ali
Updated on 30-Jul-2019 262 Views

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
Showing 21–30 of 32 articles
Advertisements