Logging in SAP Using Command Line

Nikitha N
Updated on 18-Feb-2020 07:30:32

2K+ Views

sapshcut.exe command can be used to log in to SAP from command line as shown in below example:ProcedureAdd the directory that contains the sapshcut.exe command to your system or user path. The sapshcut.exe command is installed as part of the SAP client into the following directory: C:\Program Files\SAP\FrontEnd\SAPguiTo add additional directories to the system or user path on Windows systems, select Control Panel > System > Advanced > Environment Variables.The .bat file must be named sapshcut.bat  must be located in your default path preceding the sapshcut.exe file.The following parameters are passed to the sapshcut.bat file when called from a predefined ... Read More

Loading 3rd Party Libraries in SAPUI5

Sravani S
Updated on 18-Feb-2020 07:28:51

1K+ Views

JavaScript includes various third-party libraries that ease the development while working on SAP UI5 app. You can use following jQuery as below −jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core");Other common JavaScript libraries that are in use −MomentJSLoadshTo load a third party library in SAP UI app project, create a folder “libs”. This folder is used to put third-party libraries −You can create a file named- moment.js and paste the code that has been copied from third party library website. This code can be included in your UI5 app using the library - index.html.

Getting Table Name in SAP System

V Jyothi
Updated on 18-Feb-2020 07:26:58

3K+ Views

Once your data is displayed on screen please follow the below steps −Position your cursor onto the field.Press “F1” Help option – In “Performance Assistant”.This Dialog will show the information for “Table Name” and “Table Field”.

Changing Program Title in SAP

Priya Pallavi
Updated on 18-Feb-2020 07:26:15

827 Views

SET TITLEBAR function should be called from a module that is called from PBO of your screen.The title which you are providing should be active. This can be checked by loading your program in SE80 and check the program information in the tree to the right.

Using SAP Gateway Service in SAP Web Project

Nikitha N
Updated on 18-Feb-2020 07:25:04

332 Views

Please executes the below steps to get the services added −Define service in your manifest.json file?"sap.app": {    [...],    "dataSources": {       "mainService": {           "uri": "Path of your service",           "type": "OData",          "settings": {             "odataVersion": "X.X",             "localUri":             "localService/metadata.xml"          }       } }, [...]The model definition should be implemented in your manifest.json file?"models": {    [...],    "": {       "dataSource": "mainService",       "settings": {          "metadataUrlParams": {             "sap-documentation": "heading"          },         "defaultBindingMode": "TwoWay"       }    } },

Difference between Work Area, Global Structure and Internal Table in SAP ABAP

Sravani S
Updated on 18-Feb-2020 07:20:22

1K+ Views

Internal tables let you read data from a fixed structure and stores it in-memory (working memory) in ABAP. The data is stored in a sequential manner in memory. They are basically equivalent to arrays but dynamic in nature. Since they are dynamic in nature, memory management is already taken care by ABAP. Usually, data read from database tables are stored in the internal table to exactly replicate the database tables. Work Area refers to a single row of a fixed structure. It is basically used for storing temporary data. It is commonly used while iterating over a loop.For ex. If you ... Read More

Hiding SAP ABAP Table Control Column

Swarali Sree
Updated on 18-Feb-2020 06:51:09

4K+ Views

You can use the structure CXTAB_CONTROL that has the following components:INVISIBLE C(1) Flag (X or blank) for visibility of entire table control.You can use sample program: RSDEMO02 that allow you to modify properties of table control and view the results.When you use this Table control INVISIBLE, this changes the content to “xxxxxxxxxxxx” like a hidden password. If you want to hide the complete column including data and header, your code should be like this −MODULE MODIFY_100 OUTPUT.  DATA wa_tabctrl TYPE cxtab_column .looping the table controlLOOP AT TABCTRL-COLS INTO WA_TABCTRL.  IF WA_TABCTRL-NAME =  'POSNR'. When you get on the desired screen you ... Read More

Getting Unauthorized Exception in SAP ABAP

Samual Sam
Updated on 18-Feb-2020 06:48:31

242 Views

To fix this issue, you need to add try/catch response to the code. When you don’t include an authorization header, it results in an error 401 from the server.try {     CatalogService.CatalogChangeClient service =      new CatalogService.CatalogChangeClient();     service.ClientCredentials.UserName.UserName = "username";     service.ClientCredentials.UserName.Password = "password";     service.ClientCredentials.SupportInteractive = true;     ProductUpdate[] products = new ProductUpdate[1];     products[0] = new ProductUpdate();     products[0].ProductCode = "00001";     products[0].ProductDescription = "TestProduct";     string result = service.UpdateProducts(products); } catch (Exception exception) {     Console.WriteLine(exception.Message); }

Check SAP Configuration for Plant Maintenance

Abhinaya
Updated on 18-Feb-2020 05:49:29

1K+ Views

Plant maintenance (PM) status can be categorized into two status:System status and User status. System status is used by the system for recognizing business transactions for a certain object type. Ideally System status cannot be changed by Users. They are defined by SAP and hence are immutable.Whereas User status relies on how it is set in the configuration. User Status is defined as per the business requirements.To modify the User status follow the below stepsGo to SPRO → Plan Maintenance and Customer Service → Maintenance and Service Processing → Maintenance and Service Orders → General Data → User status for ... Read More

Get Number of Rows in Table in an ITAB in SAP

Swarali Sree
Updated on 18-Feb-2020 05:40:41

1K+ Views

There is a function “LINES” that can be used to get the number of lines in a table. Here is the code that can be used −DESCRIBE TABLE LINES VR1The variable VR1 will contain the number of rows.

Advertisements