cancel
Showing results for 
Search instead for 
Did you mean: 

Change the namespace of WebDynpro Java application

Former Member
0 Kudos

Hello,

I am not sure anyone came across such scenario or not. But. I am so posting this question here.

In our company, we develop WebDynpro Java applications for our customers and then Customers can deploy and enhance in their landscape.

Now, When we enhance those applications in our landscape and deliver to customers as upgrade or enhancement, then applications modified by customers may get overwritten and they would lost their changes.

Another option to this, while customers start modifying such applications, they could copy to their namespace and then continue to to change. This way, when we provide any updates, it would not be overwritten.

But we do not know how we could modify the namespace of the existing WebDynpro Java applications.

I know one tedious option is to create new WD DC with desired namespace and copy all the objects to this one manually and do some adjustments in the code. But this is very tedious and time consuming process.

So, was looking for any other way to achieve this.

Also, this is not the only scenario where we would think to change the namespace but there could be other scenarios as well where we might need to change the namespace of the existing developed web dynpro Java application.

If anyone knows easy way to do it, please let me know.

Thanks,

Bhavik

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member218672
Active Contributor
0 Kudos

Bhagat,

Why don't you ask customer to implement NWDI into your landscape. It's not a time consuming activity but this would solve all your problem.

Regards,

Sen

Qualiture
Active Contributor
0 Kudos

An approach I have done myself is to

  1. Create a new placeholder Web Dynpro DC using the proper naming convention and namespace (do not create any components yet!)
  2. Take a copy of the src/packages content of your "source" Web Dynpro DC, store it somewhere locally, and change the directory structure to match the new namespace
  3. For each file in the (sub)directories, search and replace the old namespace and/or component name with the new namespace / component name
  4. Copy this modified src/packages folder into the same location of your new DC
  5. Click "Rebuild Project"

The search/replace can be quite time-consuming though, but to my knowledge this is the only feasible way

Stefan-EA
Contributor
0 Kudos

Hi Bhavik,

Customers who modify SAP business packages like ESS/MSS will find themselves in a similar situation when upgrading to a new business package.

Take a look at the NWDI cookbook which explains what to do when upgrading customized SAP business package.