Articles on Trending Technologies

Technical articles with clear explanations and examples

Hiding SAP ABAP table control column

Swarali Sree
Swarali Sree
Updated on 18-Feb-2020 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
Samual Sam
Updated on 18-Feb-2020 335 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); }

Read More

Checking SAP configuration for Plant Maintenance

Abhinaya
Abhinaya
Updated on 18-Feb-2020 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

Getting number of rows in table in an itab in SAP

SAP
Swarali Sree
Swarali Sree
Updated on 18-Feb-2020 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.

Read More

Making an SAP ABAP program to wait

Monica Mona
Monica Mona
Updated on 18-Feb-2020 2K+ Views

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 More

How to create a class and object in JShell in Java 9?

raja
raja
Updated on 17-Feb-2020 502 Views

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 More

Adding a Page break/new page in SAP Script

John SAP
John SAP
Updated on 17-Feb-2020 2K+ Views

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 More

Calling an ABAP Function Module using Python script to put data in SAP HANA

John SAP
John SAP
Updated on 17-Feb-2020 834 Views

You can refer this SAP blog how to use SAP NetWeaver library with Python.SAP Link

Read More

Installing SAP Sybase client on Windows server 2012 R2

John SAP
John SAP
Updated on 17-Feb-2020 829 Views

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 More

Jmeter server error while perform load testing on SAP application

John SAP
John SAP
Updated on 17-Feb-2020 974 Views

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
Showing 54941–54950 of 61,299 articles
Advertisements