Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Error in BOL programming

$
0
0

Hi Praveen,

 

I changed the code to give the relationship name but some how it's not returning the data..but my model node has this relationship node.

 

And I have one more question what happens if we get the lr_current twice. in the same method.?

in My  GET_V method I already had standard code.like this.


IF iv_index IS NOT INITIAL.

     lr_iterator ?= collection_wrapper->get_iterator( ).

     lr_current ?= lr_iterator->get_by_index( iv_index ).

   ELSE.

     lr_current = collection_wrapper->get_current( ).

   ENDIF.

 


when I tried to use the existing lr_current variable it's not working..I have declared second current statement as below.


current = collection_wrapper->get_current( ).

         lr_entity ?= current.

 

*loop back to root entity

           lr_entity = lr_entity->get_parent( ).

*Get the related entity

         IF lr_entity IS BOUND.

           lr_entity = lr_entity->get_related_entity( iv_relation_name = 'BTHeaderOrgmanSet' ) .

         ENDIF.



One more thing I observed is that my Orgset is available in main component BT116H_SRVO  custom controller..if its available in custom controller can we accesss this in my sub component BTAMNTALL sub component..?


I am not sure whats happening here some times it's returning the data and some times it's giving exception in getting the data using get_ current().


I am sure I missing very small thing here..any help is appreciated..


Thanks,

Sapsar..


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>