cancel
Showing results for 
Search instead for 
Did you mean: 

NWDS: How to connect to R/3?

alejiandro_sensejl
Active Participant
0 Kudos

Good evening everyone,

i have installed NWDS.

What steps must i do at NWDS/SAP (we are on ECC 6.0) to connect and build webdynpro for java?

Greetings,

Alej

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alej,

If you are using NWDI. You need to import configurations from NWDI. Otherwise you don't need to do any configurations in NWDS for developement. Go to WebDynpro Perspective and start developement.

Regards

Praveen

Answers (3)

Answers (3)

Former Member
0 Kudos

HI

Inorder to connect to R/3 You need to set the following properties

Open NWDS and click on WINDOW>PREFERENCES>THEN CLICK ON SAP ENTERPRISE PORTAL-->SELECT SAP J2EE ENGINE

select the firs radio button and specify the following properties

Message Server Host and Message server port

You can get the information related to Message server port and host in the below given link

http:<FQDN>:<PORT>/index.html

FQDN---fully qualified domain name of the portal server

PORT---http port for WAS JAVA

tHANKS

Former Member
0 Kudos

Hi! Alejiandro,

For accessing RFC of R/3 System from NWDS using WebDynpro for Java,you should use Adaptive RFC model.

There is a very beautifull example available on SDN Tutorial for this :--

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de1...

Hope the ablove link will be helpfull for you.

Thanks,

sahu

Former Member
0 Kudos

HI,

After installing NWDS

follow these steps:

1.Create a new WD Project.

2. Right click on models and select create model.

3. Select import Adaptive RFC Model.

3. Give any name and package to your model.

select WD_MODELDATA_DEST/or if you have defined any other name for

your JCo destination for default logical system name for model instances.

select WD_RFC_METADATA_DEST /or if you have defined any other

name for your JCo destination for default logical system name for RFC

metadata.

4. Select single server/Load Balancing as per your system.

Give name, system number, client, logon name, password and language of

your R/3 system.

5. Search for the BAPI name and select the BAPI on search and click NEXT.

You have imported RFC Model by this time.

Now create a WD component and then you will find Used Models. Select the name of the model just created above.

6. Open Data Modeler(Right Click on your component name and select Open Data Modeler). Do mapping here from model to controller and from controller to view as per your requirement.

7. To execute BAPI create an element of the input node of your BAPI, set any parameters if required and bind it again to the input node.

say if name of your input node is input

IPrivate<viewname>.IinputElement element = wdContext.nodeInput().createInputElement();

element.set<parametername>("<value>");

wdContext.nodeInput().bind(element);

8. Last step is to execute BAPI

try

{

wdContext.currentInputElement().modelObject().execute();

//say name of your output node is output

wdContext.nodeOutput().invalidate();

}

Regards,

Murtuza