step by step guide for import and export of a webdynpro abap component without transport manager

21
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1 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 : Aisurya Kumar Puhan Company : Incture Technologies Pvt Ltd. Created on : 30 August 2011 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.

Upload: santhoshpani-thirumalasetty

Post on 28-Dec-2015

89 views

Category:

Documents


8 download

DESCRIPTION

webdynpro abap upload and download

TRANSCRIPT

Page 1: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 1

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 : Aisurya Kumar Puhan

Company : Incture Technologies Pvt Ltd.

Created on : 30 August 2011

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.

Page 2: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 2

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

Page 3: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 3

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.

Page 4: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 4

Step by Step Guide

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

Page 5: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 5

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.

Page 6: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 6

Step 5 . Installation of SAPLINK nugget

Now locate the file “NUGG_SAPLINK-0.1.4.nugg” or “NUGG_SAPLINK.nugg”in 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 .

Page 7: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 7

Step 7.Activation of the installed classes

Activate all the class and the program.

Step 8. Execution of ZSAPLINK program.

Run ZSAPLINK program.

Page 8: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 8

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.

Page 9: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 9

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.

Let’s start with a simple example with some scenario.

Page 10: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 10

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 ZDEMO_ADOBE_INTERACTIVE

Structure ZDEMO_STRUCTURE

Table Type ZDEMO_TABLE_TYPE

Adode form ZDEMO_ADOBE_FORM

Interface 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.

Page 11: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 11

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.

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).

3

1

2

Page 12: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 12

b) Add objects to nugget

WebDynpro component

First add the WD component to the nugget file.

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.

5

1

2

3 4

Page 13: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 13

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.

Page 14: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 14

Interface

Save it.

1

2

Page 15: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 15

Adobe Form

Save it.

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

Nugg and XML Objects

NUGG_DEMO_NUGG.nugg

ZDEMO_ADOBE_INTERACTIVE

ZDEMO_STRUCTURE

ZDEMO_TABLE_TYPE

SFPF_ZDEMO_ADOBE_FORM.XML ZDEMO_ADOBE_FORM

SFPI_ZDEMO_INTERFACE.XML ZDEMO_INTERFACE

Now we can import it in any system , with the help of ZSAPLINK program.

Though I don’t 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..

Page 16: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 16

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

Activate all the installed objects.

b) Import form and interface file.

1

2

3

Page 17: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 17

Interface

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

1

2

Page 18: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 18

Form

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

Activate the interface first and then form.

Now all the objects are installed and activated, and here we go.

1

2

Page 19: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 19

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

Page 20: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 20

Related Content

Saplink

Adobe Forms: The First Step

Creating a Print Form in ABAP

For more information Visit Web Dynpro ABAP homepage.

Page 21: Step by Step Guide for Import and Export of a WebDynpro ABAP Component Without Transport Manager

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com

© 2011 SAP AG 21

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.