cancel
Showing results for 
Search instead for 
Did you mean: 

Access ABAP Bapi_Flight_Getlist function

Former Member
0 Kudos

Hi,

I am trying to access Bapi_Flight_Getlist function in my web dynpro application. I want to put DropdownList in the deparcher and arrival field as a in put field.

I have done all the settings but the dropdownlist is not showing any fields in that. I have set the property selectedKey of drop down list to the context Destination_from and destination_to .

What might be the problem.?

Regards,

H.V.Swathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Swathi,

Could you please elaborate on what settings have you done? Have you created simple types in dictionary?

Regards,

Anagha

Former Member
0 Kudos

What is simple type in dictionary.

The problem i am getting is when i click on drop down list i am not getting any values.

and the field which is dispaying at run time is very small.

What might be the problem.

Regards,

H.V.Swathi

Former Member
0 Kudos

Hi,

here destination_from and to are value attributes or modal(rfc) attributes ?

if they are value attributes you have to define a simple type and give all values in enumeration .

bind the simple types to attributes.

if you are using the rfc attributes you have to take dropdownbyindex ui element and bind the attribute with texts property.

hope it clear.

Regards,

ramesh

Former Member
0 Kudos

Destination from and to are RFC model data. i have binded them with the texts property.

Even then the problem is there still.

Regards,

H.V.Swathi

Former Member
0 Kudos

i am new to this web dynpro java.

Can any body help me in this.

H.V.Swathi

Former Member
0 Kudos

Hi,

post the context structure of the rfc ?

Regards,

ramesh

Former Member
0 Kudos

Bapi_Flight_Getlist_Input(model node)

Destination_From

Airportid

City

Countr

Countr_Iso

Destination_To

Airportid

City

Countr

Countr_Iso

This is the structure of the context

Former Member
Former Member
0 Kudos

That doc is for drop down by key

i want for drop down by index.

Former Member
0 Kudos

Hi ,

Bapi_Flight_Getlist_Input(model node)

Destination_From

Airportid

City

Countr

Countr_Iso

Destination_To

Airportid

City

Countr

Countr_Iso

these are import parameters or export parameters ?

Former Member
0 Kudos

Those are all context model node and model attributes.i am still in the learning stage of web dynpro.i am not so confident in this. I think it is import parameters.

Former Member
0 Kudos

Hi,

i think you following the below example available in sdn

Accessing ABAP Functions in Web Dynpro Java

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b...

the Destination_From and Destination_To are nodes which have some attributes like city etc.

in Search view

Departure City is bind with city attribute which is under the Destination_From node

Arival City is bind with city attribute which is under the Destination_To node

these attributes accepts input from the end user .

you cann't bind these attributes to DropDownByIndex element because these are returning no values that is the reason you are not getting any values in DropDownByIndex .

Hope it helps you,

Regards,

ramesh

Former Member
0 Kudos

Yes i am following the same example.

So is it not possible to put drop down list here.

Regards,

H.V.Swathi

Former Member
0 Kudos

yes

Answers (0)