cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Service Call problem

Former Member
0 Kudos

Hi Experts

I'm a new bee in WebDynpro Abap. I try to import a service call (an RFC function from ABAP) into the component controller of my WDA application. What I understant is there supposed to have context node with the same RFC function name ( ie. I use the same RFC fct name) and parameters (what ever) inside the context node of the component controller after using Component/Create/ServiceCall. What happened after ther service all is I have context node with same fct name but no node nor attributes inside it. They are in attributes of the component controller instead.

Example :

1) Create/Service call fct BAPI_FLIGHT_GETLIST

2) Node BAPI_FLIGHT_GETLIST created in component controller context (nothing inside this node)

3) The parameters AIRLINE, DESTINATION_FROM, DESTINATION_TO, MAX_ROWS all appear as attributes in component controller instead of being in the node BAPI_FLIGHT_GETLIST

I try to understand, please help

Thanks a lot for you time

Accepted Solutions (1)

Accepted Solutions (1)

former_member402443
Contributor
0 Kudos

Hi Dean,

As per your question, you are not able to view any attributes or node inside the context node created with the same function module name.

The problem is that when we are using the service call in the web dynpro abap then in the Adapt Context steps-

we have to change the object type - Controller Attribute to the Context/attribute type for the parameters we want . After doing this changes you are able to see the node and attributes in the context node.

Hope this will helps you.

Regard

Manoj Kumar

Former Member
0 Kudos

Thanks a lot. You save my life. I didnt't see this one.

Again Thank you

Answers (2)

Answers (2)

arjun_thakur
Active Contributor
0 Kudos

Hi Dean,

Please refer this [article|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9cb5d345-0801-0010-6a8e-fc57c23fd600].

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

Hi Dean,

Go thru the below video link, it clear explains how to call a FM or RFC or BAPI in webdynpro ABAP

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/093055e7-0b01-0010-d89d-cf883dd27d1f]

Its an MVC paradigm. Essentially when using webdynpro we create Context & attributes(Model) . These are binded to UI elements(View) for data exchange. When Binding exists the data entered in the binded UI element can be accessed via set of method calls , also the data from context can be written back to the UI component.

Same data can be used across different views within a WebDynpro component, Context is created at Component Controller level, since component controller can be accessed from all view.

[http://help.sap.com/saphelp_erp2005/helpdata/EN/de/408e41392fb85fe10000000a1550b0/frameset.htm]

Greetings

Prashant