on 01-04-2010 1:25 PM
Hi Friends
I am calling BAPI From CRM Server.
Next In That BAPI Having I/P and O/P classes. through I/P Class i was mapped to Component Controller and doing on Custom Controller also
2. After mapping b/n Component Controller to View controller
in FV
public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionSearch(ServerEvent)
//$$begin ActionButton(971756159)
wdThis.wdGetCC_ZBGX_PATNER_GETLISTController().executeZbgx_Partner_Getlist_Input();
wdThis.wdFirePlugToSV();
//$$end
//@@end
}
i can call method from Custom Controller
in Custom Controller i am writing this code
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(368764003)
wdContext.nodeZbgx_Partner_Getlist_Input().bind(new Zbgx_Partner_Getlist_Input());
//$$end
//@@end
}
and create method in Custom Controller
public void executeZbgx_Partner_Getlist_Input( )
{
//@@begin executeZbgx_Partner_Getlist_Input()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
{
wdContext.currentZbgx_Partner_Getlist_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException e)
{
manager.reportException(e.getMessage(),false);
}
//@@end
}
Now that problem is i m deploying this application.in the FirstView UI Fields was disabled.
i am doing binding also.but it is not Enable
How to solve this problem
Regards
Vijay Kalluri
Hi Vijay,
you need to set the input parameter of the BAPI, If you have any inputs, map the same like below in WdDoInit of Custom Controller.
// Create new elements in the Destination_From and Destination_To nodes
input.setDestination_From(new Bapisfldst());
input.setDestination_To(new Bapisfldst());
Regards,
Palani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
This happens because the cardinality of the Binded node for the input fields will be 0-n or 0-1 which means we need to create an instance. Then only the input fields will be enable so if we need to add the code..
input.set<Urattr name>(<a new object>);
Thanks,
Raju Bonagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.