cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get the data when capture the BOL object infomation.

Former Member
0 Kudos

Hello All.

I created a Z component.

In that component I created one View.

In that view i have the context node with BOL object - BTAdminH

In configuration also i am selecting the fields.

But I am unable to capture the data.

In that i write like

data: lr_ent type ref to CL_CRM_BOL_ENTITY.

lr_ent ?= me->typed_context->btadminh->collection_wrapper->get_current( ).

I write this code in the EDIT button event.

But lr_ent is not capture any value.

BTADMINH is there in the CTXT class.

In debugging GET_CURRENT( ) method

me->collection_ref->collection

is not having any value.

I do not know why it is not having any value.

When I am using value node it is working fine.

But when i am using BOL object at that time only it is not getting any value.

Can anybody give me suggision to solve this problem.

In stadard it is working fine.

How it is working in Stadard i did not understand.

Why it is not working in Z component.

How we can use BOL objets in Z components.

Please give me some solution.

Regards,

B. Krishna.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

unanswered

Former Member
0 Kudos

Hi krishna

Is this a Z component to be used within a standard component?

->then you need to create a usage definition to this component from standard

->expose btadminh as public context through component controller

->create binding to the standard btadminh through the usage initialize method

then it should be okay

If the Z component is standalone , then create Root object BTorder and BTAdminH node should having a hierarchial relationship to this. Initialize BTOrder through cl_crm_bol_core methods.

Former Member
0 Kudos

Hi,

In standard compnent binding of context node is done with component controller. By biniding i mean that whatever value comes in BTAdminH of component controller, it comes to node of your view.

Best Regards

Pankaj Kumar

former_member189678
Active Contributor
0 Kudos

The Z component that you have created should be binded to some component where the values are there.

The View has a context node which should be binded to the component controller node and the binding between two components should also be done in order to get the data.

Regards,

Harshit