Skip to Content
author's profile photo Former Member
Former Member

calling Context node method in Implementation class mtethod

Hi Experts

I have created a new method(not attribute method) in the context node class to have some common code for my requirement. Now I want call this method in Event Handler of the IMPL class. My code in Event Handler is below

DATA: lr_node TYPE REF TO ZL_BP_HEAD1_MAINSEARCH_IMPL.
CALL METHOD lr_node->zcustom_method * EXPORTING * attribute_path = attribute_path * iterator = RECEIVING value = lv_value

I am not getting the value in lv_value.

Please help me to call Context node Zmethod in Implementation class mtethod.

Thanks

Dinesh Sing

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 04, 2012 at 11:50 AM

    Hello, Dinesh Sing.

    Do you get a dump or an exception with your code? Because I think that lr_node should be not bound as far as you do nothing to initialize (bound) it.

    Do you want to call an instance method or a static one?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.