Making an SAP ABAP Program to Wait

Monica Mona
Updated on 18-Feb-2020 05:40:07

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.

Getting a Syntax Error: Unknown Fields in SAP ABAP

karthikeya Boyini
Updated on 18-Feb-2020 05:39:08

1K+ Views

You need to add spaces after or before braces as follows −SELECT  * FROM CNTRB WHERE AGE > 30 AND   CNTRB > 10000 AND NOT ( FUND1 = 'value' AND FUND2 = '0' )

Create Unique Directory Name Using Python

Rajendra Dharmkar
Updated on 18-Feb-2020 04:56:12

1K+ Views

You can use the tempfile module to create a unique temporary directory in the most secure manner possible. There are no race conditions in the directory’s creation. The directory is readable, writable and searchable only by the creating user ID. Note that the user of mkdtemp() is responsible for deleting the temporary directory when done with it. To create a new temporary directory, use it as follows −import tempfile _, temp_dir_path = tempfile.mkdtemp() # Do what you want with this directory # And remove the directory when doneNote that you need to manually delete this directory after you're done with ... Read More

Create Class and Object in JShell in Java 9

raja
Updated on 17-Feb-2020 13:36:48

423 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

Add a Page Break in SAP Script

John SAP
Updated on 17-Feb-2020 12:47:45

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.

Call ABAP Function Module Using Python to Insert Data in SAP HANA

John SAP
Updated on 17-Feb-2020 12:44:48

738 Views

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

Install SAP Sybase Client on Windows Server 2012 R2

John SAP
Updated on 17-Feb-2020 12:44:28

723 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

JMeter Server Error During Load Testing on SAP Application

John SAP
Updated on 17-Feb-2020 12:43:31

869 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

Not Able to Save a SAP Crystal Report for Enterprise 4.2

John SAP
Updated on 17-Feb-2020 12:41:56

177 Views

Note that you need to check if Crystal Report for Enterprise 2016 support specific IBM DB2 version and for this you need to check product compatibility guide for development.Are you using Universe developed on IBM DB2 then you need to ensure that you are using correct version of drivers JDBC/ODBC in IDT to create a Relational connection. You also need to ensure that connection is also published to SAP BI repository. If your version of DB2 and Crystal Reports is ok, I would recommend you follow below steps:First steps is to start, you need to create a System DSN in ... Read More

Query in Analytic View Creating Unexpected Results in SAP HANA

John SAP
Updated on 17-Feb-2020 12:40:49

295 Views

You haven’t provided complete details what you are trying to achieve. Refer SAP OSS note 1993033 Wrong result for query on analytic viewDuring activation of an analytic view, column view is generated. However, there are some artifacts that cannot be calculated in this column view. In this case, one additional calculation view is generated on top of it. The generation of the calculation view has to be performed if the following elements are defined in the analytic view:Input parametersCalculated attributesUnit or currency conversionsIf at least one of these elements is defined in the analytic view, the activation creates one OLAP ... Read More

Advertisements