on 09-18-2007 7:59 PM
Hi, i have a question about web dynpro in java. I´m doing the tutorial fligh_list, but i have a doubt in this part:
public void wdDoInit()
{
//@@begin wdDoInit()
// Create a new element in the Bapi_Flight_Getlist_Input node
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
// Create new elements in the Destination_From and Destination_To nodes
input.setDestination_From(new
Bapisfldst()
);Bapisfldst()
);//@@end
}
What is Bapisfldst?
I´m doing a simple application, only have an input field and the output is two textview... what have i write in the previous method instead of Bapisfldst?
Thanks,
Hi,
It says there input they are passing as Strucure varaible that means it would be created as node in the WDprogram for this purpose u need to create the instance and that would be passing as input.
If you have direct variable of input u need pass directly as
BAPI b = new BAPI();
B.set(CustomerNo)("10002");
B.set(CustomerName)("rman");
this is the way we need to pass the input.
Thanks
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The first Redciresle represents your are passing the data dynamically from your screen for that sake you are defined the Datatype of meteraial as String.
And second circle the outputnode() when you define your node the default output is available on OUTPUTNODE()only for that u need to write the stmt like this,.
Wdcontext.nodeOutPut().invalidate();
Do you require any clarifiatiomore
Reply me
Thanks
Lohi.
Thanks, but i continuo with my doubt... i don´t know what write in my simple application...
I post an image
<a href="http://img141.imageshack.us/my.php?image=aplicacionto9.jpg" target="_blank">!http://img141.imageshack.us/img141/3236/aplicacionto9.th.jpg|alt=Free Image Hosting at www.ImageShack.us|src=http://img141.imageshack.us/img141/3236/aplicacionto9.th.jpg|border=0!</a>
My doubst are in the red circle, i´m not sure about these... The application consists in write a code of material and appear the lots in a list. I di the steps that appear in the tutorial... Is it good?
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
Bapisfldst is an ABAP structure that your BAPI accepts as an input. If this is not optional then you need to pass values to it before executing your BAPI.
Bapisfldst ele = new Bapisfldst();
ele.set<attribute>(<value>);
input.setDestination_From(ele);
same applies for input.setDestination_To too.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BAPISFLDST is the ABAP Structure conatining city and country fields. This is used for holdin flight arrival/departure information.
Logon to your backend SAP and use transaction se11 to check it.
Regards,
Reema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.