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 on Trending Technologies
Technical articles with clear explanations and examples
Hiding SAP ABAP table control column
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 MoreGetting unauthorized exception in SAP ABAP
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); }
Read MoreChecking SAP configuration for Plant Maintenance
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 MoreGetting number of rows in table in an itab in SAP
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.
Read MoreMaking an SAP ABAP program to wait
You can use WAIT to hold the program for few seconds. Here is the syntaxSyntaxWAIT UP TO 36 SECONDSHowever, you need to be careful about using it. WAIT does an implicit commit. So you need to be sure that the commit does not corrupt the database. It also releases the work process.An alternative is to use below code −CALL FUNCTION 'ENQUE_SLEEP' EXPORTING seconds = 36.
Read MoreHow to create a class and object in JShell in Java 9?
JShell is a new java shell tool released in java 9. It is the first official REPL (Read-Evaluate-Print-Loop) application. This tool helps in executing and evaluating simple java programs and logics such as statements, loops, expressions, and etc. Java REPL provides a simple programming environment in the command prompt. It can read the input, evaluate it and print the output.In the below example we can able to create a class and object in JShell using command prompt.Examplejshell> class Employee { ...> private String name; ...> Employee(String name) { ...> this.name=name; ...> ...
Read MoreAdding a Page break/new page in SAP Script
To add a new page, you can use Control command NEW-PAGE in Transaction SE71.SyntaxNEW-PAGE [page_options] [ spool_options]EffectThis statement creates a new page in the current list and writes the subsequent list output into a spool list.In T-Code: SE38 Print Program, you can use Function Module CONTROL_FORM to call NEW-PAGE command as below −CALL FUNCTION 'CONTROL_FORM' EXPORTING COMMAND = 'NEW-PAGE' EXCEPTIONS UNOPENED = 1 UNSTARTED = 2 OTHERS = 3.
Read MoreCalling an ABAP Function Module using Python script to put data in SAP HANA
You can refer this SAP blog how to use SAP NetWeaver library with Python.SAP Link
Read MoreInstalling SAP Sybase client on Windows server 2012 R2
Try checking installer file again. I would recommend that you download it from SAP Market Place. Navigate to below path for getting installer file:https://support.sap.com/swdc → Installation and Upgrades → A-Z list → search for SAP ADAPTIVE SERVER ENTERPRISE → SYBASE ASE 15.7 → Installation → Microsoft Windows → 51044415.zipAlso note that you need to have following before you proceed with installation:Microsoft Visual C++ 2010 Redistributable Package (x64)Microsoft Visual C++ 2005 Redistributable Package (x86)Microsoft Visual C++ 2005 Redistributable Package (x64)Check out this SAP thread:SAP thread
Read MoreJmeter server error while perform load testing on SAP application
Load testing is performed to see volume of traffic your website or an application can handle. Apache Jmeter is an open source, free, java based and configurable tool to perform performance and load testing. You can download Jmeter from the following link:LinkNow to test SAP application using Jmeter, you need to follow below steps for recording:First it to right click on the thread group and you need to choose “Add → Logic controller → Recording Controller”. This will store the recording in the new node named Recording controller.Next step is to right click on “WorkBench”, choose “Add → Non-test elements ...
Read More