on 08-24-2007 10:48 AM
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.
Hi Gunja,
You want to know how to create an Adaptive RFC Model or only JCO Destinations.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.