cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing webdynpro application

Former Member
0 Kudos

Hi,

please can any one help me ...

I am working on webdynpro for the first time. I need to know how to create JCO connection since I need to connect to bapi to Pull data as well as again save the new data in the backend system. please let me know the detail steps If u can.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Gunja,

You want to know how to create an Adaptive RFC Model or only JCO Destinations.

Regards,

Murtuza

Former Member
0 Kudos

Hi,

1.Import the Bapi by selecting import Adaptive RFC Model

2.Specify the Model Name,and in and specify the Model data and Metadata.

You can find the available Model data and metadata in <b>(Portal>content Administration>webdynpro-->Maintain jco destinations).</b>

3.Then specify the Hostname,logon name,Password(With reference with your R/3)

4.if the bapi imported successfully then add the following code in Your Bapi_Execute Method

<bapinode inppo = new <bapinode()>;

inppo.set<attributename>(sale_num);

wdContext.node<Bapi node>().bind(inppo);

try

{

int s=wdContext.node<bapiresultnode()>.size();

IPrivate<Componentname>.IBapi Result Node bapiNode=wdContext.nodeBapi Result Node();

IPrivate<Componentname>.ItableoutputNode resnode=wdContext.nodetableoutput();

resnode.invalidate();

for(int i=0;i<s;i++)

{

IPrivate<Componentname>.IBapiresultnodeElement bapiElement=bapiNode.getBapiresultnodeElementAt(i);

IPrivate<Componentname>.ItableElement resElement=resnode.createtableElement();

resElement.setPurch_No(bapiElement.getPurch_No());

resElement.setItem_Num(bapiElement.getItm_Number());

resElement.setMaterial(bapiElement.getMaterial());

resElement.setDeliv_Number(bapiElement.getDeliv_Numb());

resElement.setDeliv_Date(bapiElement.getDeliv_Date().toString());

resElement.setDlv_qty(bapiElement.getDlv_Qty().toString());

resnode.addElement(resElement);

}

}

catch(Exception ex)

{

wdComponentAPI.getMessageManager().reportSuccess(ex.toString());

}

Regards

Nandha.

Former Member
Former Member
0 Kudos

Hi,

Below is a good example which may get you started.

http://help.sap.com/saphelp_nw70/helpdata/en/18/6052429f2dbd30e10000000a155106/frameset.htm

P.S: close the question to assist other users narrow the search and find solutions

Message was edited by:

Armin Reichert

Former Member
0 Kudos

Hi ,

I need to conect to BAPI..

Fro that i need JCO connetion or it can be done without that also ?

and if yes how ?to create JCo connection??

Former Member
0 Kudos

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/526bd490-0201-0010-038e-d3f...

To create JCO Destination first of all you have to set up SLD.

SLD Configuration:

/people/sugree.phatanapherom/blog/2005/08/14/configuring-sld-in-sneak-preview-sap-netweaver-04-sneak

See this link for Post-Installation Guide: SAP System Landscape Directory on SAP Web AS Java 6.40..and JCO destinations:

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715

also chk it ....connection 2 BAPI

/thread/23704 [original link is broken]