emc viewpoint for sap production orders module version 2.0 user manual · vi emc viewpoint for sap...

28
EMC Corporation Corporate Headquarters: Hopkinton, MA 01748-9103 1-508-435-1000 www.EMC.com EMC ViewPoint for SAP Production Orders Module Version 2.0 USER MANUAL P/N 300-002-993 REV A02

Upload: others

Post on 16-Mar-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

EMC ViewPoint for SAPProduction Orders Module

Version 2.0

USER MANUALP/N 300-002-993

REV A02

EMC CorporationCorporate Headquarters:

Hopkinton, MA 01748-9103

1-508-435-1000www.EMC.com

Page 2: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

ii

Copyright © 2006 EMC Corporation. All rights reserved.Published February, 2006

EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.

THE INFORMATION IN THIS PUBLICATION IS PROVIDED “AS IS.” EMC CORPORATION MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Use, copying, and distribution of any EMC software described in this publication requires an applicable software license.

For the most up-to-date listing of EMC product names, see EMC Corporation Trademarks on EMC.com.

All other trademarks used herein are the property of their respective owners.

EMC ViewPoint for SAP Production Orders Module User Manual

Page 3: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Contents

Preface ............................................................................................................................. v

Chapter 1 Using the ViewPoint for SAP PP ModuleIntroduction ...................................................................................... 1-2Application functions...................................................................... 1-3

Navigation in ViewPoint PP Module up to 4.5x .................. 1-3Navigation in ViewPoint PP Module from 4.6 ............................ 1-4Transaction overview ...................................................................... 1-5Transaction /PBS/COA3 ................................................................ 1-6Transaction /PBS/YOA0 ................................................................ 1-8Transaction /PBS/CO03 ............................................................... 1-10

Chapter 2 ABAP/4 InterfacesAccess via ABAP/4 routines .......................................................... 2-2Access via ViewPoint Function Module....................................... 2-3

Basis ............................................................................................ 2-4

EMC ViewPoint for SAP Production Orders Module User Manual iii

Page 4: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Contents

EMC ViewPoint for SAP Production Orders Module User Manualiv

Page 5: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Preface

As part of an effort to improve and enhance the performance and capabilities of its product line, EMC from time to time releases revisions of its hardware and software. Therefore, some functions described in this manual may not be supported by all revisions of the software or hardware currently in use. For the most up-to-date information on product features, refer to your product release notes.

If a product does not function properly or does not function as described in this manual, please contact your EMC representative.

ViewPointFunctionality

This document describes how to use the various components that make up EMC ViewPoint for SAP Production Orders (PP) Module. EMC’s technology allows you to effectively manage your application data by providing the ability to define the access, retention, and service level requirements for any business transaction at each point in its lifecycle.

Audience This guide is part of the ViewPoint documentation set, and is intended for use by anyone using the ViewPoint for SAP PP Module. It is assumed that the installer has a working knowledge of SAP Basis, and has the appropriate levels of responsibilities to perform the tasks described.

EMC ViewPoint for SAP Production Orders Module User Manual v

Page 6: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

vi

Preface

RelatedDocumentation

Be sure to review the EMC ViewPoint for SAP Release Notes for the most up-to-date information on product features.

The following list of related documents are available on the EMC ViewPoint for SAP Documentation CD that was delivered with your EMC ViewPoint SAP software CD.

Both the release notes and documentation CD can be found at:

http://Powerlink.EMC.com

Introductory� EMC ViewPoint for SAP Documentation CD

� EMC ViewPoint for SAP Release Notes

Installation� EMC ViewPoint for SAP Modules Installation Manual

� EMC ViewPoint for SAP Analyzer Plus Installation and User Manual

� EMC ViewPoint for SAP BW Analyzer Installation Manual

� EMC ViewPoint for SAP Construction and Maintenance Installation Manual

� EMC ViewPoint for SAP Fiscal Year Reporter Module Installation and User Manual

Miscellaneous� EMC ViewPoint for SAP Material Master Data, Batches, Special

Stocks, and BOMs Module Modification Manual

Administrative� EMC ViewPoint for SAP Controlling Line Items Module

Administration Manual

� EMC ViewPoint for SAP Financial Accounting and Material Documents Module Administration Manual

� EMC ViewPoint for SAP Purchasing Module Administration Manual

� EMC ViewPoint for SAP Sales and Distribution Module Administration Manual

� EMC ViewPoint for SAP Production Orders Module Administration Manual

� EMC ViewPoint for SAP Agency Business Module Administration Manual

� EMC ViewPoint for SAP Construction and Maintenance Module Administration Manual

EMC ViewPoint for SAP Production Orders Module User Manual

Page 7: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Preface

� EMC ViewPoint for SAP Costing-Based Profitability Analysis Module Administration Manual

� EMC ViewPoint for SAP Master Data Changes Module Administration Manual

� EMC ViewPoint for SAP Data Retention Tool Module Administration Manual

� EMC ViewPoint for SAP Contract Account Documents Module Administration Manual

� EMC ViewPoint for SAP HR Archiving Objects Module Administration Manual

� EMC ViewPoint for SAP Material Ledger Documents Module Administration Manual

� EMC ViewPoint for SAP Material Master Data, Batches, Special Stocks, and BOMs Module Administration Manual

� EMC ViewPoint for SAP Controlling Orders Module Administration Manual

� EMC ViewPoint for SAP Profit Center Line Items Module Administration Manual

� EMC ViewPoint for SAP Plant Maintenance Module Administration Manual

� EMC ViewPoint for SAP Production Orders Module Administration Manual

� EMC ViewPoint for SAP Process Orders Module Administration Manual

� EMC ViewPoint for SAP Project Systems Module Administration Manual

� EMC ViewPoint for SAP Line Items Module Administration Manual

� EMC ViewPoint for SAP Special Ledger Module Administration Manual

� EMC ViewPoint for SAP Warehouse Management Module Administration Manual

� EMC ViewPoint for SAP Custom Module Administration Manual

User� EMC ViewPoint for SAP Analyzer Plus Installation and User Manual

� EMC ViewPoint for SAP Analyzer Lite Installation and User Manual

EMC ViewPoint for SAP Production Orders Module User Manual vii

Page 8: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

viii

Preface

� EMC ViewPoint for SAP Analyzer BW User Manual

� EMC ViewPoint for SAP Controlling Line Items Module User Manual

� EMC ViewPoint for SAP Financial Accounting and Material Documents Module User Manual

� EMC ViewPoint for SAP Purchasing Module User Manual

� EMC ViewPoint for SAP Sales and Distribution Module User Manual

� EMC ViewPoint for SAP Production Orders Module User Manual

� EMC ViewPoint for SAP Modules Utilities User Manual

� EMC ViewPoint for SAP Agency Business Module User Manual

� EMC ViewPoint for SAP Construction and Maintenance Module User Manual

� EMC ViewPoint for SAP Costing-Based Profitability Analysis Module User Manual

� EMC ViewPoint for SAP Master Data Changes Module User Manual

� EMC ViewPoint for SAP Contract Account Documents Module User Manual

� EMC ViewPoint for SAP HR Archiving Objects Module User Manual

� EMC ViewPoint for SAP Material Ledger Documents Module User Manual

� EMC ViewPoint for SAP Material Master Data, Batches, Special Stocks, and BOMs Module User Manual

� EMC ViewPoint for SAP Controlling Orders Module User Manual

� EMC ViewPoint for SAP Profit Center Line Items Module User Manual

� EMC ViewPoint for SAP Plant Maintenance Module User Manual

� EMC ViewPoint for SAP Production Orders Module User Manual

� EMC ViewPoint for SAP Process Orders Module User Manual

� EMC ViewPoint for SAP Project Systems Module User Manual

� EMC ViewPoint for SAP Special Ledger Module User Manual

� EMC ViewPoint for SAP Export Interface for Special Ledger Data User Manual

� EMC ViewPoint for SAP Warehouse Management Module User Manual

EMC ViewPoint for SAP Production Orders Module User Manual

Page 9: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Preface

� EMC ViewPoint for SAP Fiscal Year Reporter Module Installation and User Manual

Conventions Used inThis Guide

EMC uses the following conventions for notes, cautions, warnings, and danger notices.

Note: A note presents information that is important, but not hazard-related.

CAUTION!A caution contains information essential to avoid data loss or damage to the system or equipment. The caution may apply to hardware or software.

WARNING

A warning contains information essential to avoid a hazard that can cause severe personal injury, death, or substantial property damage if you ignore the warning.

DANGER

A danger notice contains information essential to avoid a hazard that will cause severe personal injury, death, or substantial property damage if you ignore the message.

Typographical ConventionsEMC uses the following type style conventions in this guide:

bold • User actions (what the user clicks, presses, or selects)• Interface elements (button names, dialog box names)• Names of keys, commands, programs, scripts, applications,

utilities, processes, notifications, system calls, services, applications, and utilities in text

italic • Book titles• New terms in text• Emphasis in text

Courier • Prompts • System output • Filenames • Pathnames• URLs • Syntax when shown in command line or other examples

EMC ViewPoint for SAP Production Orders Module User Manual ix

Page 10: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

x

Preface

Where to Get Help EMC support, product, and licensing information can be obtained as follows.

Product information — For documentation, release notes, software updates, or for information about EMC products, licensing, and service, go to the EMC Powerlink website (registration required) at:

http://Powerlink.EMC.com

Technical support — For technical support, go to EMC WebSupport on Powerlink. To open a case on EMC WebSupport, you must be a WebSupport customer. Information about your site configuration and the circumstances under which the problem occurred is required.

Your Comments Your suggestions will help us continue to improve the accuracy, organization, and overall quality of the user publications. Please send your opinion of this guide to:

[email protected]

Courier, bold • User entry• Options in command-line syntax

Courier italic • Arguments in examples of command-line syntax• Variables in examples of screen or file output• Variables in pathnames

<> Angle brackets for parameter values (variables) supplied by user.

[] Square brackets for optional values.

| Vertical bar symbol for alternate selections. The bar means or.

... Ellipsis for nonessential information omitted from the example.

EMC ViewPoint for SAP Production Orders Module User Manual

Page 11: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1Invisible Body Tag

This chapter includes these topics:

� Introduction ........................................................................................1-2� Application functions ........................................................................1-3� Navigation in ViewPoint PP Module from 4.6 ..............................1-4� Transaction overview ........................................................................1-5� Transaction /PBS/COA3 ..................................................................1-6� Transaction /PBS/YOA0 ..................................................................1-8� Transaction /PBS/CO03 .................................................................1-10

Using the ViewPoint forSAP PP Module

Using the ViewPoint for SAP PP Module 1-1

Page 12: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1-2

Using the ViewPoint for SAP PP Module

IntroductionThe ViewPoint modules are constructed in modular form and cover the application modules FI, SD, MM, CO, etc. with a special program package for exactly this application. You can easily see from the name which ViewPoint module belongs to which SAP module: FI, SD, MM, CO, etc. All ViewPoint modules have in common that they can be easily installed in the SAP R/3 system via the SAP transport utilities "tp" and "SAINT". Installation details of the ViewPoint modules are in the EMC ViewPoint for SAP Modules Installation Manual.

This manual on the display transaction and application programs was written to support you when using the ViewPoint PP Module. The EMC ViewPoint for SAP Production Orders Module Administration Manual contains construction and administration information for the ViewPoint PP Module.

The EMC ViewPoint for SAP Modules Utilities User Manual contains additional module information.

EMC ViewPoint for SAP Production Orders Module User Manual

Page 13: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Using the ViewPoint for SAP PP Module

Application functions

Navigation in ViewPoint PP Module up to 4.5x

ViewPoint has integrated in its software a start menu which corresponds to the SAP standard menu S000 after having registered in the SAP system. The only difference is the additional function button ViewPoint Archive Add-On.

In order to use this menu, you only have to enter start menu YPBS for users up to 3.1 respectively /PBS/PBS for users in all 4.0 releases and /PBS/PBS_45 from release 4.5.

After pressing the button, you get to the main menu transactions for the ViewPoint module, by which you can address the different modules in a comfortable way, as shown in Figure 1-1, “ViewPoint main menu with branching to ViewPoint PP Module.”

Figure 1-1 ViewPoint main menu with branching to ViewPoint PP Module

Application functions 1-3

Page 14: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1-4

Using the ViewPoint for SAP PP Module

Navigation in ViewPoint PP Module from 4.6From the Easy Access menu you can easily navigate via User menu through the functions of the ViewPoint PP Module. This is possible when your system administrator has added the role/activity group to your user profile, as shown in Figure 1-2, “ViewPoint main menu with branching to ViewPoint PP Module.”

Figure 1-2 ViewPoint main menu with branching to ViewPoint PP Module

EMC ViewPoint for SAP Production Orders Module User Manual

Page 15: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Using the ViewPoint for SAP PP Module

Transaction overviewThis version of the ViewPoint PP Module provides the display transactions /PBS/COA3, /PBS/COA0 and /PBS/CO03, allowing the display of the archived production orders via the secondary indices of the ViewPoint PP Module as well as the display of production orders from the SAP database, as listed in Table 1-1, “Comparison of transaction names.” Furthermore, the menu /PBS/CPP for the selection of the components and functions of the ViewPoint PP Module programs can be carried out.

Table 1-1 Comparison of transaction names

ViewPoint SAP Transaction description

/PBS/CPP -/- Menu of the ViewPoint PP Module

/PBS/YOA0 -/- Display production orders from data base and archive

/PBS/COA3 COA3 Display archive data via ViewPoint index

/PBS/CO03 CO03 Display production orders from data base and archive

Transaction overview 1-5

Page 16: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1-6

Using the ViewPoint for SAP PP Module

Transaction /PBS/COA3The transaction /PBS/COA3 displays archived production orders via the secondary indices of the ViewPoint PP Module. The selection screen is analogue to the SAP transaction COA3 and allows all delimitations via the available secondary indices. This allows an efficient and fast search for the requested production orders, as shown in Figure 1-3, “Selection screen of the transaction /PBS/COA3.”

Figure 1-3 Selection screen of the transaction /PBS/COA3

Compared to the SAP transaction COA3, a restriction of the production orders to be imported is not necessary, as not all SAP archive files are read sequentially but the production orders to be displayed are imported directly via the ViewPoint secondary indices in accordance with the selection delimitations you have chosen.

Like in transaction COA3, the selected data is then displayed in a list. Within this result list you can now use the possibilities for detailed

EMC ViewPoint for SAP Production Orders Module User Manual

Page 17: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Using the ViewPoint for SAP PP Module

displays (displaying the details of the list) known from COA3, as shown in Figure 1-4, “List display of transaction /PBS/COA3.”

Figure 1-4 List display of transaction /PBS/COA3

Figure 1-4, “List display of transaction /PBS/COA3,” shows as an example the list display of a production order. Within this list, the production order was displayed in detail to view the corresponding order items and operations.

Transaction /PBS/COA3 1-7

Page 18: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1-8

Using the ViewPoint for SAP PP Module

Transaction /PBS/YOA0With the transaction /PBS/YOA0 you can display production orders from the database and already archived production orders via the index of the ViewPoint PP Module. The selection of the data to be displayed again is analogue to the SAP transaction COA3 respectively to the transaction /PBS/COA3, allowing all delimitations via existing secondary indices, as shown in Figure 1-5, “Selection screen of transaction /PBS/YOA0.”

Figure 1-5 Selection screen of transaction /PBS/YOA0

A restriction of the production orders to be imported is not necessary, as explained in “Transaction /PBS/COA3” on page 1-6, however, you can decide if you want to import production orders only from the archive, only from the data base or from both sources.

EMC ViewPoint for SAP Production Orders Module User Manual

Page 19: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Using the ViewPoint for SAP PP Module

At first, the selected data is displayed in correspondence to the selection screen in a basic list with the most important fields. Due to the highlighting you can easily differentiate the archived production orders read via the ViewPoint index of CPP from those of the database. By positioning on the order number of the production order in question and clicking Select (respectively double-click on the order number), you can now display in detail the corresponding production order number. If the production order is stored in the SAP database you branch off to the display transaction CO03. But if the requested production order is read via the index of the ViewPoint modules from the archive, the display is carried out with the ViewPoint CPP components of the transaction /PBS/COA3 described before, as shown in Figure 1-6, “Display of result (basic list) of transaction /PBS/YOA0; different production orders selected via double-click.”

Figure 1-6 Display of result (basic list) of transaction /PBS/YOA0; different production orders selected via double-click

Transaction /PBS/YOA0 1-9

Page 20: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1-10

Using the ViewPoint for SAP PP Module

Transaction /PBS/CO03With the transaction /PBS/CO03 you can display production orders from the database and already archived production orders via the index of the ViewPoint PP Module. The selection of the data to be displayed again is analogue to the SAP transaction CO03, allowing all delimitations via existing secondary indices, as shown in Figure 1-7, “Selection screen of transaction /PBS/CO03.”

Figure 1-7 Selection screen of transaction /PBS/CO03

In the course of the transactions the difference between ViewPoint and SAP transaction is indicated by the archive indicator "*", as

EMC ViewPoint for SAP Production Orders Module User Manual

Page 21: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

Using the ViewPoint for SAP PP Module

shown in Figure 1-8, “Display of production order from ViewPoint PP Module.”

Figure 1-8 Display of production order from ViewPoint PP Module

Transaction /PBS/CO03 1-11

Page 22: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

1-12

Using the ViewPoint for SAP PP Module

EMC ViewPoint for SAP Production Orders Module User Manual

Page 23: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

2Invisible Body Tag

The following chapter describes the methods and auxiliary programs for access to the data archived with the ViewPoint PP Module.

This data can be accessed via the ABAP/4 routines provided by ViewPoint or via a function module.

� Access via ABAP/4 routines ............................................................2-2� Access via ViewPoint Function Module .........................................2-3

ABAP/4 Interfaces

ABAP/4 Interfaces 2-1

Page 24: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

2-2

ABAP/4 Interfaces

Access via ABAP/4 routinesAll important routines required for the access to the archive data are stored in the ABAP /PBS/CPP_READ. For examples showing how these routines are used, refer to the programs from /PBS/CPP_U002 to /PBS/CPP_U009.

EMC ViewPoint for SAP Production Orders Module User Manual

Page 25: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

ABAP/4 Interfaces

Access via ViewPoint Function ModuleThe function module /PBS/SELECT_INTO_TABLE accesses the ViewPoint module and exports the data records of the requested table to an internal table.

The function uses the interfaces listed in Table 2-1, “Parameter of conversion tool.”

Table 2-1 Parameter of conversion tool

Name Description Type Optional Example

ARCHIV Name of archive Parameter ’CPP’

TABNAME Table name Parameter ’AUFK’

SCHL1_NAME Name key 1 Parameter X ’AUFNR’

SCHL1_VON Smaller value key 1 Parameter X ’60002347’

SCHL1_BIS Higher value key 1 Parameter X ’’

SCHL2_NAME Name key 2 Parameter X ’’

SCHL2_VON Smaller value key 2 Parameter X ’’

SCHL2_BIS Higher value key 2 Parameter X ’’

SCHL3_NAME Name key 3 Parameter X ’’

SCHL3_VON Smaller value key 3 Parameter X ’’

SCHL3_BIS Higher value key 3 Parameter X ’’

SCHL4_NAME Name key 4 Parameter X ’’

SCHL4_VON Smaller value key 4 Parameter X ’’

SCHL4_BIS Higher value key 4 Parameter X ’’

I_TABELLE Name of return table Table ITAB a

SCHL1_IN Select option key 1 Table X

SCHL2_IN Select option key 2 Table X

SCHL3_IN Select option key 3 Table X

SCHL4_IN Select option key 4 Table X

a. Adjustment of the command SELECT to the ViewPoint module.

Access via ViewPoint Function Module 2-3

Page 26: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

2-4

ABAP/4 Interfaces

As the data of the ViewPoint module is not contained in the data base, you cannot access this data via the command SELECT. Existing ABAPs, therefore, must be modified via the function key for the access to the archive data.

Basis The SELECT command used in ABAP possesses one of the three basic characteristics which have to be adjusted if you want to use the function module. These are:

1. Select ... Endselect

2. Select into Table

3. Select Single

The archive accesses are optimized by transferring the key parameters to the function. If the command SELECT uses only these key parameters for the selection, the restriction WHERE may not be necessary for the archive data.

The adjustment of the three select types to the function modules is made according to the following pattern.

Select type 1 Select and End Select:

SELECT * FROM Tabelle INTO Feld WHERE Bedingung

Coding

ENDSELECT

CharacteristicINTO- or APPENDING restriction is missing or the addition TABLE is missing in both restrictions.

ModificationRedirect select in iTab, call function, process iTab with loop and endloop and allocate Field = iTab.

SELECT * FROM Tabelle INTO TABLE iTAB WHERE Bedingung

Call Function Funktionsbaustein ...

Loop at iTab WHERE Bedingung

Move-Corresponding iTab to Feld

Coding

Endloop

EMC ViewPoint for SAP Production Orders Module User Manual

Page 27: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

ABAP/4 Interfaces

Select type 2 Select into Table:

SELECT * FROM Tabelle into Table iTab WHERE Bedingung

Coding

CharacteristicAddition TABLE in the INTO- or APPENDING restriction.

ModificationCall function and transfer table iTab, delete data records from iTab which do not correspond to the WHERE restriction.

SELECT * FROM Tabelle into Table iTab WHERE Bedingung

Call Function Funktionsbaustein ...

Delete iTab WHERE NOT Bedingung

Coding

Select type 3 Select Single:

SELECT SINGLE * FROM Tabelle WHERE Bedingung

Coding

CharacteristicMark by addition SINGLE. TABLE is not allowed.

ModificationCheck if Select Single on residence data was unsuccessful, then call function, process once iTab with Loop and Endloop, allocate field = iTab.

SELECT SINGLE * FROM Tabelle WHERE Bedingung

IF SY-SUBRC NE 0

Call Function Funktionsbaustein ...

Loop at iTab WHERE Bedingung

EXIT

Endloop

Move Corresponding iTab to Feld

Endif

Coding

Access via ViewPoint Function Module 2-5

Page 28: EMC ViewPoint for SAP Production Orders Module Version 2.0 User Manual · vi EMC ViewPoint for SAP Production Orders Module User Manual Preface Related Documentation Be sure to review

2-6

ABAP/4 Interfaces

EMC ViewPoint for SAP Production Orders Module User Manual