on 01-07-2012 11:05 AM
Hi All,
I have created an app using BAPI.For that used standard code,application is running but data is not retrieved. Please help me regarding this.Following code is used in custom controller wdDoinit() method.
public void wdDoInit()
{
//@@begin wdDoInit()
// Create a new element in the Bapi_Flight_Getlist_Input node
Zbapi_Timesheet_Input input = new Zbapi_Timesheet_Input();
wdContext.nodeZbapi_Timesheet_Input().bind(input);
// Create new elements in the Destination_From and Destination_To nodes
input.setAction(new Zbapi_Timesheet_Input().getAction());
//@@end
}
Solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
different version of web dynpro has different code for model execution
always use the wizard to generate code for model execution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In this code you canu2019t Execute the RFC. Please look at below code.
Zbapi_Timesheet_Input input = new Zbapi_Timesheet_Input();
wdContext.nodeZbapi_Timesheet_Input().bind(input);
Try
{
wdContext.currect Zbapi_Timesheet_InputElement.modelObject.execute();
wdContext.nodeOutput.invaliddate()
}
Catch(Exception e)
{
wdComponentAPI.getMassageManager.reportSucess(e.toString(),false);
}
Hope this helps u.
Best Regards
Vijay K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Vagdevimallaaa
Please check the link for executing the RFC/Bapi
[Linking Remote Function Call to Web Dynpro|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90]
Best Regards,
Arun Jaiswal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.