on 02-08-2008 10:08 AM
Hi Gurus,
I have a requirement to interact with R/3 through ADAPTIVE RFC.
Can anyone please send me the step by tsep approach of the same.
Higher points will be rewarded for the best solution.
Thanks in Advance,
Dharani
Creating RFC Model object
1>Open NWDS, open a web dynpro project
2>Right click on model node and select create model
3>Will get a new window, select IMPORT Adaptive RFC Model,
click next
4>Will get new window, enter
a.Model Name
b.Model Package Name
c.Enter Logical System name model instance  model name_MODELDATA_DEST
d.Enter Logical System name RFC Metadata model name_ RFCMETADATA_DEST
e.Click Next
5>SAP Logon Information
a.Single Server
If SAP GUI Client is not installed specify system details manually.
b.Load Balancing
If SAP GUI Client is installed on same system where NWDS is installed, all system will be available in System drop down list
c.Click Next
6>Select RFC Model (when this screen initially appears will be empty)
a.In Function Name
Type the function name you need, can also use wildcard(*) to search
b.Also you can see list of modules after search button has been entered [NOT RECOMENDED]
c.Click Next
7>Once Import has completed you will see import log
8>Result What RFC Model has created:
You will be able to see two sets of object
a.Dedicated Model Directory
It has simple type and set of structure
b.Model Class
Entire interface of each RFM in the model object
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dharani,
This might be of some use to you:
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: JCO destination creation steps are not mentioned.
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 Dharani,
Check this [tutorial|https://www.sdn.sap.com/irj/sdn/?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15]
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.