on 02-12-2008 2:33 PM
Hello
a novice question about RFCs.
Documentation I have says that I need to import the model and then bind the model object to a context model to be useable.
I have a BAPI that I have imported by creating a model in my application.
I am able to set parameters and call the execute method in the Input type class of the model without binding the model to any context so thought I could carry on without the binding.
However I am having trouble accessing the return type or message from the BAPI after execution and was wondering if this requires the binding?
Thanks
When the model is created, model class are been created. so we can access the model objects.
To get the return value, you have to create an output structure as separate context(output sub structure) and the input as separate one.
Maintain the JCo connections is needed. You check your JCo destinations from WebDynpro Content Administrator.
regards,
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
managed to do it without any binding of the imported model to a context.
//in a button action method in a view implementation...
//input
bapiRtwInterviewStatus.setEmployeenumber(wdContext.nodeSummary().getSummaryElementAt(x).getPernr());
bapiRtwInterviewStatus.setP_Status(true);
try
{
bapiRtwInterviewStatus.execute();
//get return type and report
wdComponentAPI.getMessageManager().reportSuccess(bapiRtwInterviewStatus.getOutput().getReturn().getMessage());
returns "success" for me.
cheers
Hi Harnomit Babraa ,
Can u please tell , how u r executing the rfc without binding it to the context??
have u checked this doc?
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Pl go through the following https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94a...
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
xxxxxxxxxxxxxxxxxx
Edited by: Armin Reichert on Feb 18, 2008 7:31 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.