cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Java code changes

Former Member
0 Kudos

Hi,

I need to put some validations in web dynpro java page which is "employee address page". I checked the BADI's but no badi exists which serve my purpsoe.

Now I want to make the code change in web dynpro java. Pls answer the followng questions.

1- I have installed NWDS on my local machine. Do i need to install NWDI also?

2- How to import and export the required page and from where?

3- How to modify the standard code, I mean in ECC we have enhancement and modification concept.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

are you doing for validation for address? This can be done in the backend using the badi or here in the code

HRPAD00INFTYUI and HRPAD00INFTYBL

CL_HRPA_INFOTYPE_0006_US Infotype 0006: Addresses for us

there is method for postal code check

Former Member
0 Kudos

I need to make 'STATE' field as a 'display only' in some conditions. I don't think we can do it using BADI's

Pls suggest.

Thanks,

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

yes it needs to be done via NWDI and change the field property.

Usually field property can be set via V_T588MFPROPC HR: Field Properties

but for yours it has to be done via java

Former Member
0 Kudos

One small confusion; NWDI Vs NWDS

The advantages what I have read for NWDI is that multiple developers can work at the same time as it's saved on server. While NWDS the project is saved on local machine? Is this the only difference. If there is only one develoer - can we just use NWDS?

Thanks,

Answers (3)

Answers (3)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos
Former Member
0 Kudos

Thanks,

A quick questions;

Do I need to install NWDI - or I can use NWDS to configure NWDI??? Sorry if it's a basic question...

Thanks,

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

NWDI is a part of NWDS, So you would need both as mentioend

NWDI - Netweaver Development Infrastructure is an SAP sytem for java development & change management. It's a repository for java code and change management system.

NWDS is a developer tool to build applications similar to Eclipse. NWDS uses NWDI to check-in & check-out java code and move java changes to SAP runtime systems (like portal etc).

Read the basics of NWDI and its utility in the below help document

http://help.sap.com/saphelp_nwce72/helpdata/en/48/bc23b1a70a0611e10000000a42189b/frameset.htm

Also go through how to import ESS configurations in NWDI

NWDI cookbook in SAP note : 872892

Edited by: Siddharth Rajora on Nov 9, 2011 9:28 PM

Former Member
0 Kudos

If condition is dynamic then you have to make the code change.

If you make the code change then I think you know the implications while SP upgrades etc

Former Member
0 Kudos

I know the implications of ABAP side at the time of upgrade but not sure about java. Is it same as abap. I mean if there is a change in the code of service pack then I need to adjust it right?

Pls shed some more light on it if you know or share some doc pls if you know any.

Thanks,

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

each time you upgrade you need to take the backup of your custom changes and reapply once the upgraade is done

Usually changes are done in custom folder.

Former Member
0 Kudos

I am still confused between NWDS & NWDI. I want to make a small change in java code and I have installed NWDS.

Can I make a change just using NWDS???Or NWDI is also required?

Please explain.

Thanks,

Former Member
0 Kudos

If you want to make a field read-only then you can achieve it from the personalization.

For accessing the source code you would need the NWDI.

NWDS is the front end tool/IDE though which you make the changes in the code(you will download the code from NWDI, you will checkout and will make the changes and will checkin back the changes, so that it can be transported). Without NWDI you will not get access to the source code.

Former Member
0 Kudos

Ok got it. So NWDI is required in order to get the source code of WDJ ...

Personalization would not work as I have to make the field as read only dynamically, i mean based on some conditions. So personalization would work i think.