Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Componentization in WD ABAP does not work

Hi Experts,

I am trying to use componentization in WD ABAP.

I have one Business logic componet WD_BLC (BLC) and it contains following context node that differnet views will use and a Method CALCULATE_SUM sum that sums the values.*

Context A

value1

value2

sum

I have three WD components specifically that contain views.

First WD comp has two input fileds which are mapped from interface component context.

WD_VIEW_INPUT - WD component

View_input - WD View

Value 1 - Mapped from Interface Node

Value 2 - Mapped from Interface Node

Second WD Comp has one output filed which is mapped from interface component context.

WD_VIEW_OUTPUT - WD component -

View_output - WD View

Output - Mapped from Interface Node

This third WD component uses View_input from WD component WD_VIEW_INPUT and View_output from WD_VIEW_OUTPUT component using component usages for these views.This wd component also has a button that calls calculate_sum method in WD_BLC.

WD_VIEW_MAIN - WD Component

View_main - WD View

Now it calls the method in the BLC and sums the two values that I put in View_input. but sum value does not get set

in the View_output of component WD_VIEW_OUTPUT. While if I see the same ouput value in View_input using context mapping

I get the sum value.

Binding is done properly also only interface node property is checked for Context A in the WD_BLC.

Please suggest where am I making mistake?

Umang

Edited by: Umang Mathur on May 24, 2011 12:35 AM

Edited by: Umang Mathur on May 24, 2011 12:38 AM

Edited by: Umang Mathur on May 24, 2011 12:40 AM

Edited by: Umang Mathur on May 24, 2011 12:42 AM

Former Member
Not what you were looking for? View more on this topic or Ask a question