Professional Documents
Culture Documents
Applies to:
SAP ECC 6.0 EhP5. For more information, visit the Product Lifecycle Management homepage.
Summary
As of EhP5, it is not possible to generate WWI* report for a substance from the PLM Web UI. In this
document, we see how this can be overcome by creating a custom transaction and linking it to the ‘You Can
Also’ launchpad menu for specifications.
Author Bio
Rajeev Deshpande is part of the global Solution Experience team in the Solutions Go-to-Market
organization in SAP. Rajeev’s focus is on creating standard demo content for PLM and PPM
applications.
Sandhya Woody is an ABAP consultant with the SAaP Solution Package Build team in SAP Labs
India, Bangalore. In the past she has extensively worked on innovative demo content for SAP
Presales.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 1
Generating WWI Reports from PLM Web UI for Recipe Development
Table of Contents
Introduction ......................................................................................................................................................... 3
Create Custom Transaction ................................................................................................................................ 3
Create Report .................................................................................................................................................. 3
Sample Code ............................................................................................................................................................... 3
Create Transaction Code ................................................................................................................................ 9
Launchpad Customizing ................................................................................................................................... 10
Using the Transaction ....................................................................................................................................... 12
Related Content ................................................................................................................................................ 13
Copyright........................................................................................................................................................... 14
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 2
Generating WWI Reports from PLM Web UI for Recipe Development
Introduction
The Recipe Development application in EhP5 lets you open an EHS specification in web UI. While this offers
a great convenience and UI experience, some customers may miss the feature of generating WWI reports
for a substance that the WinGUI interface offered.
Since the underlying data structures are the same for both UI options, we can overcome the above limitation
by creating a custom transaction and then adding it to the You Can Also (YCA) menu options.
Note: This is just a sample code created for demo purpose, and does not take into account such things as substance
validity, user authorization, etc. It is assumed that all applications and services required for WWI are available and
running.
Sample Code
1 *& *
2 *& Report ZTEMPLATE_GENERATE
3 *&
4 *& *
5 *&
6 *&
7 *& *
89
REPORT ZTEMPLATE_GENERATE.
10
11 Parameters i_subid like estrh-subid MATCHCODE OBJECT SPEC_SUBSTANCE_TREX_ADVANCED
OBLIGATORY.
12 parameters i_ldepid LIKE rcgbgsel-ldepid OBLIGATORY.
13
14 data: i_struct_tab type table of rcglsiot,
15 * i_subid LIKE estrh-subid value 'CP-FD1000',
16 * i_ldepid LIKE rcgbgsel-ldepid value 'CP_FACTPNL',
17 i_langu LIKE rcgbgsel-langu value 'E',
18 i_valdat LIKE rcgbgsel-valdat,
19 i_stcckflg LIKE rcgbgsel-stcckflg,
20 i_flg_print TYPE esp1_boolean,
21 i_flg_use_structtab TYPE esp1_boolean,
22 i_flg_report_no_auth_check TYPE esp1_boolean,
23 i_flg_wwi_debug TYPE esp1_boolean,
24 e_gen_probl TYPE esp1_boolean,
25 e_files_counter LIKE sy-tabix.
26
27
28
29 * local data
30 DATA : l_estlp_wa LIKE estlp.
31 DATA : l_rcglpiot LIKE rcglpiot.
32 DATA : l_dockey LIKE cvddockey.
33 DATA : l_draw_wa LIKE draw.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 3
Generating WWI Reports from PLM Web UI for Recipe Development
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 4
Generating WWI Reports from PLM Web UI for Recipe Development
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 5
Generating WWI Reports from PLM Web UI for Recipe Development
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 6
Generating WWI Reports from PLM Web UI for Recipe Development
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 7
Generating WWI Reports from PLM Web UI for Recipe Development
258 EXCEPTIONS
259 no_temp_path = 1
260 max_downloads_reached = 2
261 download_val_failed = 3
262 download_doc_failed = 4
263 start_appl_failed = 5
264 no_frontend_wwi = 6
265 only_frontend_wwi = 7
266 OTHERS = 8.
267
268 ENDIF. "SY-SUBRC <> 0.
269
270 ENDIF. "I_FLG_USE_STRUCTTAB EQ FALSE
271
272 ENDIF. "SY-SUBRC <> 0 OR L_GENERATION_OK = ESP1_FALSE.
273
274 * Begin Correction 1065257 28.06.2007 *********************************
275 * Begin Correction 1152703 17.03.2008 *********************************
276 IF NOT l_msg_tab[] IS INITIAL.
277 * End Correction 1152703 17.03.2008 ***********************************
278
279 SORT l_msg_tab.
280 DELETE ADJACENT DUPLICATES FROM l_msg_tab COMPARING ALL FIELDS.
281
282 LOOP AT l_msg_tab.
283 * create a message for each entry
284 PERFORM l_message_write
285 USING
286 esp1_false
287 l_msg_tab-type
288 l_msg_tab-id
289 l_msg_tab-number
290 l_msg_tab-message_v1
291 l_msg_tab-message_v2
292 l_msg_tab-message_v3
293 l_msg_tab-message_v4.
294
295 e_gen_probl = esp1_true.
296
297 ENDLOOP.
298 ENDIF.
299 * End Correction 1065257 28.06.2007 ***********************************
300
301
302 * save the VALUE_TAB into global var for the WWI and C12J_preview_entry
303 IF i_flg_use_structtab EQ true.
304 lg_value_tab[] = l_value_tab[].
305 ENDIF.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 8
Generating WWI Reports from PLM Web UI for Recipe Development
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 9
Generating WWI Reports from PLM Web UI for Recipe Development
Launchpad Customizing
In order to make this transaction available in PLM Web UI for the specification object, we need to create an
entry in the Launchpad Customizing transaction (t-code LPD_CUST). In this transaction, you will first locate
the entry for instance YCA_SPC as shown below.
Select the pencil icon to make changes to the entry. Now add a new menu option as shown below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 10
Generating WWI Reports from PLM Web UI for Recipe Development
Click on Show Advanced Parameters and then ensure the entries are as shown here. Next, click on the
Parameter Mapping button
Save the entry. Now you are ready to use the transaction in PLM Web UI.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 11
Generating WWI Reports from PLM Web UI for Recipe Development
In the next screen, you can select a report variant and execute!
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 12
Generating WWI Reports from PLM Web UI for Recipe Development
Related Content
A Guide to the Newest Developments in SAP PLM 7.0
Innovative Product Development: New SAP Functionalities Promote Consumer-Driven, Sustainable
Innovation
SAP PLM Recipe Management Product Labeling in ERP 6.0 EhP4
For more information, visit the Product Lifecycle Management homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 13
Generating WWI Reports from PLM Web UI for Recipe Development
Copyright
© Copyright 2011 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, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,
iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,
PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,
BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,
Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems
Incorporated 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 Oracle Corporation.
JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, 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 other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and
other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
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.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 14