change the maximum dialog runtime of a process

Similar documents
Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

Extract Archived Data from SAP ERP

Configuring Distribution List in Compliant User Provisioning

How To Configure MDM to Work with Oracle ASM-Based Products

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Analyzing Sales Data for Choosing Forecast Strategies

prioritize XI messages on integration server

Implementing Outlook Integration for SAP Business One

Backup & Restore with SAP BPC (MS SQL 2005)

3 rd party Service Desk interface

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

Methodology to Implement SAP Process Integration

Utilities for downloading and uploading OO ABAP classes in XML format

CREATING A PURCHASE ORDER STORE RECORD WEB SERVICE

How To Balance In Sap Bw

Performance Best Practices Guide for SAP NetWeaver Portal 7.3

Ronald Bueck SBO Product Definition

Posting Messages into XI

How to Configure and Trouble Shoot Notification for Process Control 2.5

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

How to configure BusinessObjects Enterprise with Citrix Presentation Server 4.0

Roster Configuration (Payroll) in SAP ECC 6.0 Tips & Tricks

E-Recruiting Job Board Integration using XI

Integrate Third Party Collaboration Tools in the SAP NetWeaver Portal. SAP NetWeaver Product Management

Problems with your Data Model in SAP NetWeaver MDM Do s and Don ts

Enabling Full-Text Search for Business Objects in mysap ERP

How To... Integrate Custom Formulas into the Formula Builder

SAP Master Data Governance- Hiding fields in the change request User Interface

How To... Call BEx Web Applications from SAP BusinessObjects Dashboards (Xcelsius) and vice versa

How to Create Web Dynpro-Based iviews. Based on SAP NetWeaver 04 Stack 09. Jochen Guertler

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

ARCHIVING OF IDOCS IN SAP

Budget Control by Cost Center

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Integration of SAP central user administration with Microsoft Active Directory

Global Transport Label - General Motors -

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

Enterprise Software - Applications, Technologies and Programming

SAP Sales and Operations Planning Software Product (xsop)

Siteco Relies on SDN for its SAP CRM 5.0 Upgrade

USDL XG WP3 SAP use case. Kay Kadner

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Workflow extended notifications

mysap ERP Talent Management Dr. Christian Acosta-Flamma

User Experience in Custom Apps

BC407 Reporting: QuickViewer, InfoSet Query and SAP Query

Monitoring and Management of Landscapes with SAP NetWeaver Administrator. Dieter Krieger, SAP AG

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Debugging Portal Applications

SAP CCMS Monitors Microsoft Windows Eventlog

Using SAP Logon Tickets for Single Sign on to Microsoft based web applications

Integrating Easy Document Management System in SAP DMS

Understanding HR Schema and PCR with an Example

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

Data Archiving in CRM: a Brief Overview

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Integration of SAP Netweaver User Management with LDAP

Process Archiving using NetWeaver Business Process Management

Data Source Enhancement Using User Exit

Collaboration Technology Support Center - Microsoft - Collaboration Brief

OData in a Nutshell. August 2011 INTERNAL

Intelligent Business Operations Chapter 1: Overview & Strategy

HR400 SAP ERP HCM Payroll Configuration

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

How to Create a Support Message in SAP Service Marketplace

SAP Central Process Scheduling (CPS) 8.0 by Redwood

Third Party Digital Asset Management Integration

Accounts Receivable. SAP Best Practices

Consume an External Web Service in a Nutshell with good old ABAP

DBA Cockpit for Oracle

Log Analysis Tool for SAP NetWeaver AS Java

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

SAP Service Tools for Performance Analysis

Using User Exit for Variables in BEx Reporting

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

FSC130 SAP Bank Communication Management

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

SAP NetWeaver BRM 7.3

Variable Exit in Sap BI How to Start

Sending Additional Files from SAP Netweaver PI to third Party System

How to Schedule Report Execution and Mailing

BC450 ABAP Performance: Analysis and Optimization

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

Ariba Network Integration to SAP ECC

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

DATA ARCHIVING IN SAP R/3 ENTERPRISE. Georg Fischer PM Data Archiving SAP AG

Single Sign-On between SAP Portal and SuccessFactors

Integration of Universal Worklist into Microsoft Office SharePoint

How to Configure and Trouble Shoot Workflow for Process Control 2.5

SAP SYSTEM MEASUREMENT GUIDE

NWBC10 NetWeaver Business Client

Transcription:

How-to Guide SAP NetWeaver 2004s How To change the maximum dialog runtime of a process Version 1.00 March 2006 Applicable Releases: SAP NetWeaver 2004s

Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP NetWeaver How-to Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent.

1 Scenario The dialog work process runtime parameter is restricted to 600 seconds. This restriction will cancel a dialog work process after this run time has been reached. This takes effect on the online execution of a query or if a batch process runs in parallel. A parallel batch process is for example the parallel change run. Usually a extended maximum run time for the dialog batch process is required, yet for the query runtime not wanted. How to change the maximum runtime before executing the parallel change run and change it back after finishing this process is described in this paper. 2 Introduction The parameter rdisp/max_wprun_time restricts the maximum runtime of a dialog work process. This parameter can be changed with an ABAP program. The ABAP program will be started as the first step in a process chain and changes the parameter from 600 to 3000. As the last step in a process chain the ABAP program is executed again and changes the parameter back to 600. The change of the parameter setting is effective without restarting the system. - 1 -

3 The Step By Step Solution 3.1 Check parameter attribute 1. The parameter rdisp/max_wprun_time should be set to DynamicallySwitchable. This is the prerequisite for this solution. This parameter can be checked in transaction RZ11. If the flag Dynamically Switchable is not switched on, switch it on and save the parameter. A restart of the system could be necessary after changing the parameter. - 2 -

3.2 Implementing the ABAP Program and creating the variants 2. Implement the ABAP Program ZMAXRUNTIME_SWITCH. The coding is attached in the Appendix. 3. Start the program in transaction SE38 and save the variant 3000 with the value 3000 for max runtime. The first variant changes the maximum run time parameter setting to 3000. Do not execute the program! 4. Save variant 3000 (Change parameter setting to 3000) - 3 -

5. Start the report ZMAXRUNTIME_SWITCH again and save the variant 600 with the value 600 for max runtime The second variant changes/resets the maximal run time parameter setting back to 600. 6. Save the variant 600 (reset parameter setting back to 600) 3.3 Add the ABAP Program to a process chain 7. Create a process chain with the name change max runtime 8. Add process type ABAP Program and create a variant for the process type ( MAXRUNTIME_SWITCH_3000 in the screen shot). - 4 -

9. Enter the created ABAP Program and the variant 3000. Save the process type variant. 10. Add the process type Attribute Change Run 11. Add process type ABAP Program and create a variant for the process type ( MAXRUNTIME_SWITCH_600 in the screen shot). 12. Enter the created ABAP Program and the variant 3000. Save the process type variant. This process type should always be included in the process chain to guarantee the reset the parameter setting to the original value - 5 -

13. Save and activate the process chain - 6 -

4 Appendix ABAP Coding of the ABAP ZMAXRUNTIME_SWITCH: *&---------------------------------------------------------------------* *& Report ZMAXRUNTIME_SWITCH *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZMAXRUNTIME_SWITCH. TYPES: gt_char30(30) TYPE c. tables: tpfyvalue, rsadmin. DATA: g_s_rsadmin TYPE rsadmin, g_object TYPE rsadmin-object, g_value TYPE rsadmin-value, g_subrc TYPE i, old_value(100), i_parameter like TPFET-PARNAME, i_value like TPFET-PVALUE. constants: parameter LIKE TPFET-PARNAME value 'rdisp/max_wprun_time'. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(60) t_header. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. PARAMETERS: value TYPE gt_char30. SELECTION-SCREEN COMMENT 33(40) t_value. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. PARAMETERS: set RADIOBUTTON GROUP rad1 DEFAULT 'X'. SELECTION-SCREEN COMMENT 5(40) t_set. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. PARAMETERS: reset RADIOBUTTON GROUP rad1. SELECTION-SCREEN COMMENT 5(40) t_reset. SELECTION-SCREEN END OF LINE. *----------------------------------------------------------------------- INITIALIZATION. t_header t_value t_set t_reset = 'SET/RESET DYNAMICALLY VALUE FOR MAX. RUNTIME'(010). = 'NEW VALUE FOR RDISP/MAX_WPRUN_TIME'. = 'SET'. = 'RESET'. *----------------------------------------------------------------------- AT SELECTION-SCREEN. - 7 -

*----------------------------------------------------------------------- START-OF-SELECTION. IF set = 'X'. CHECK NOT value IS INITIAL. CALL 'C_SAPGPARAM' ID 'NAME' FIELD parameter ID 'VALUE' FIELD old_value. IF SY-SUBRC <> 0. RAISE NOT_FOUND. ENDIF. * Check for entry in RSADMIN SELECT SINGLE object value into g_s_rsadmin FROM rsadmin WHERE object = parameter. g_subrc = sy-subrc. * Assign original profile value to interface parameters. g_s_rsadmin-object = parameter. g_s_rsadmin-value = old_value. * save old profile value in rsadmin if g_subrc <> 0. INSERT INTO rsadmin VALUES g_s_rsadmin. if sy-subrc <> 0. message 'INSERT failed because of existing record.' type 'A'. endif. else. UPDATE rsadmin set VALUE = g_s_rsadmin-value where object = g_s_rsadmin-object. if sy-subrc <> 0. WRITE: / 'UPDATE failed because there is no record with'(030). WRITE: / 'OBJECT =', g_object. endif. endif. i_parameter = g_s_rsadmin-object. i_value = value. CALL FUNCTION 'TH_CHANGE_PARAMETER' EXPORTING PARAMETER_NAME = i_parameter PARAMETER_VALUE = i_value * CHECK_PARAMETER = 1 * EXCEPTIONS * NOT_AUTHORIZED = 1 * NOT_IN_SAME_SYSTEM = 2 * NOT_CHANGEABLE = 3 * NOT_FOUND = 4 * INVALID_VALUE = 5 * SHMPRF_ERROR = 6 * UNKNOWN_OPCODE = 7 * LENGTH_EXCEEDED = 8 * OTHERS = 9. IF SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. else. * read original value from RSADMIN SELECT SINGLE object value into g_s_rsadmin FROM rsadmin WHERE object = parameter. if sy-subrc <> 0. endif. - 8 -

* VALUE should be changed -> cannot be initial i_parameter = g_s_rsadmin-object. i_value = g_s_rsadmin-value. CALL FUNCTION 'TH_CHANGE_PARAMETER' EXPORTING PARAMETER_NAME = i_parameter PARAMETER_VALUE = i_value * CHECK_PARAMETER = 1 * EXCEPTIONS * NOT_AUTHORIZED = 1 * NOT_IN_SAME_SYSTEM = 2 * NOT_CHANGEABLE = 3 * NOT_FOUND = 4 * INVALID_VALUE = 5 * SHMPRF_ERROR = 6 * UNKNOWN_OPCODE = 7 * LENGTH_EXCEEDED = 8 * OTHERS = 9. IF SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. endif. message 'Process finished' type 'I'. - 9 -

www.sdn.sap.com/irj/sdn/howtoguides