cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up Webdynpro

Former Member
0 Kudos

Hi Guru's,

Are there any documents on the pre-requiste needed to run java webdynpro? Currently we are running on r/3 4.7 and portal 6.0 (webas 640). We are currently using BSP for mostly all of our customized application in the portal. However, we would like to try using Java webdynpro. We are not looking at an entire JDI/NWDI setup but just enough to use webdynpro and deploy it to our Development portal. Thanks

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You just need to have jdk installed and the NWDS to create your WD application. For deployment on the WAS, make your NWDS point to your WAS under (Window>preferences>SAP J2EE Engine) and set your server name and message port (remote./local).

Regards,

Murtuza

Former Member
0 Kudos

Hi,

Thanks for the reply. I forgot to mention about linking the portal with the backend. I would like to call BAPI from my NWDS. Thanks

Former Member
0 Kudos

Hi,

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();

}

Bind your output node the one that is found inside the input node to table or other UI element so that you can see the result of the BAPI after its execution.

NOTE: Steps for creating Technical System and JCO destinations are not mentioned.

Regards,

Murtuza

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Nahoj,

Check this link for backend access: [Here|https://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/5b77db42-0a01-0010-d7ba-8aa375593dd3] [original link is broken];

Regards, Suresh KB

Answers (0)