Sunteți pe pagina 1din 21

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Applies to:
This document applies to SAP ECC 6.0, SAP NetWeaver 2004s. For more information, visit the Web Dynpro ABAP homepage.

Summary
This article provides a step by step guide for importing and exporting of a WebDynpro ABAP component with a simple example. Author Company : : Aisurya Kumar Puhan Incture Technologies Pvt Ltd. 30 August 2011

Created on :

Author Bio
Aisurya Kumar Puhan is working as SAP NetWeaver Consultant in Incture Technologies Pvt Ltd .He has around 3 years of experience in SAP ABAP, including 1 year in WebDynpro ABAP development.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 1

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Table of Contents
Introduction ......................................................................................................................................................... 3 Scenario .............................................................................................................................................................. 3 Prerequisites ....................................................................................................................................................... 3 Step by Step Guide ............................................................................................................................................. 4 Step 1 . Create a report program for installing the main Saplink file. ............................................................ 4 Step 2. Install zsaplink_installer ............................................................................................................... 5 Step 3. Save , check and activate . ................................................................................................................. 5 Step 4. Execution of installer program. .......................................................................................................... 5 Step 5 . Installation of SAPLINK nugget ......................................................................................................... 6 Step 6. Execution of nugget ............................................................................................................................ 6 Step 7.Activation of the installed classes ....................................................................................................... 7 Step 8. Execution of ZSAPLINK program. ..................................................................................................... 7 Step 9. Installation of DDIC plug-in. ............................................................................................................... 8 Step 10. Installation of WebDynpro plug-in.................................................................................................... 9 Step 11 . Example with demo scenario. ........................................................................................................ 10 Step 12 . Export objects to local system. ...................................................................................................... 11
a) Create new nugget ................................................................................................................................................ 11 b) Add objects to nugget ............................................................................................................................................ 12 c) Download of Adobe form and interface object. ...................................................................................................... 13

Step 13 . Import objects from local system. .................................................................................................. 16


a) Import nugget file ................................................................................................................................................... 16 b) Import form and interface file. ................................................................................................................................ 16

Step 14. Test the WebDynpro component. ................................................................................................... 19 Related Content ................................................................................................................................................ 20 Disclaimer and Liability Notice .......................................................................................................................... 21

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 2

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Introduction
This article provides a step by step guide for exporting a WebDynpro ABAP component to local system as well as importing from local computer. We can import/export many things like DDIC objects, programs, classes, interface even if MIME objects also. It can also be send across mail.

Scenario
Exporting and importing of a WebDynpro ABAP component, which takes the input of sales document no from a WD view and displays the corresponding item data in an Adobe form according to our business logic

Prerequisites
Download the following objects. SAPlink_install-0.1.4.zip or SAPlink_install-0.1.5alpha.zip Plug-in list.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 3

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step by Step Guide


Step 1 . Create a report program for installing the main Saplink file.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 4

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 2. Install zsaplink_installer Open the zsaplink_installer.txt which is downloaded , copy all using ctrl+A and paste in the program.

Step 3. Save , check and activate . Save , check and activate it which we all know better.. Step 4. Execution of installer program. Execute the program.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 5

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 5 . Installation of SAPLINK nugget Now locate the file NUGG_SAPLINK-0.1.4.nugg or NUGG_SAPLINK.nuggin F4 help for installation Nugget which u have already downloaded from SAPlink.
Note : Check the file name,be sure for the full file name as shown below..

Step 6. Execution of nugget Execute it. If it asks for package give the package which u have created or else save it in Local package. Hint : It will be easier to find the installed objects if it is saved in some package .

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 6

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 7.Activation of the installed classes Activate all the class and the program.

Step 8. Execution of ZSAPLINK program. Run ZSAPLINK program.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 7

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 9. Installation of DDIC plug-in. Locate the DDIC plug-in file NUGG_SAPLINK_DDIC-0.1.0.nugg and execute the program.

Activate all the installed class.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 8

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 10. Installation of WebDynpro plug-in. Locate the WD plug-in file NUGG_ABAP_WEB_DYNPRO-0.1.0.nugg and execute the program.

Activate all installed classes.

Now we are to import / export our WD component. Lets start with a simple example with some scenario.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 9

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 11 . Example with demo scenario. Scenario: I am having a WebDynpro component which takes the input of sales document no from a WD view and displays the corresponding item data in an Adobe form according to our business logic . Objects used

WebDynpro component Structure Table Type Adode form Interface

ZDEMO_ADOBE_INTERACTIVE ZDEMO_STRUCTURE ZDEMO_TABLE_TYPE ZDEMO_ADOBE_FORM ZDEMO_INTERFACE

Testing of WD component

After entering the Sales document no, when we click show we get the item data according to our logic. Here only 4 fields are taken for demo purpose.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 10

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 12 . Export objects to local system. a) Create new nugget Run the ZSAPLINK program, create a nugget file and add the required objects(listed above) in it and execute it. Create new nugget , enter a nugget name and execute.

Give the path to save the file, and save.

3 1

If SAP GUI security prompts , select Always allow from dropdown box. Now the nugget file is created in the specified path. The file name is NUGG_DEMO_NUGG.nugg. it adds NUGG to the nugget name(DEMO_NUGG).

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 11

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

b) Add objects to nugget WebDynpro component First add the WD component to the nugget file.

2 3

Object type : WDYN , it is the object type for WebDynpro component. Object name : ZDEMO_ADOBE_INTERACTIVE , WD component name Nugget file name : Locate the NUGG_DEMO_NUGG.nugg which we have created in previous step. After filling all the fields , execute it.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 12

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Structure Object type : TABL

Table Type Object type : TTYP

c) Download of Adobe form and interface object. For Adobe form and interface we have to download the objects from SFP transaction.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 13

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Interface

Save it.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 14

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Adobe Form Save it.

Now we have all the objects in our local system , we can send across mail.

Nugg and XML

Objects ZDEMO_ADOBE_INTERACTIVE

NUGG_DEMO_NUGG.nugg

ZDEMO_STRUCTURE ZDEMO_TABLE_TYPE

SFPF_ZDEMO_ADOBE_FORM.XML SFPI_ZDEMO_INTERFACE.XML

ZDEMO_ADOBE_FORM ZDEMO_INTERFACE

Now we can import it in any system , with the help of ZSAPLINK program. Though I dont have another SAP system to import, we will do it in the same system.Before starting, i have deleted all the above objects from my system..

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 15

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 13 . Import objects from local system. Run ZSAPLINK program, first import the nugget file i.e NUGG_DEMO_NUGG.nugg. a) Import nugget file

3 1

Activate all the installed objects. b) Import form and interface file.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 16

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Interface Enter the interface name: ZDEMO_INTERFACE , and click uploading from object.

2 1

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 17

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Form Enter the form name: ZDEMO_ADOBE_FORM , and click uploading from object.

2 1

Activate the interface first and then form. Now all the objects are installed and activated, and here we go.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 18

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Step 14. Test the WebDynpro component. Create an WD application for the component , because we have not exported the application. Save and test. Working fine.. Output

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 19

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Related Content
Saplink Adobe Forms: The First Step Creating a Print Form in ABAP For more information Visit Web Dynpro ABAP homepage.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 20

Step by Step Guide for Import and Export of a WebDynpro ABAP Component without Transport Manager

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 21

S-ar putea să vă placă și