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

Re: Capturing data View BT120H_CPL/Details

$
0
0

Thanks for your attention!

The problem was that I could not capture the data of the attribute Z that I create, or did not know how.

I've solved the problem

Below I have done the following:

1) I have searched the relationship between the root entity and relationships to find the Z attribute that I created.

 

Captura1.PNG

 

2) I have made the connection by doing the following code:

 

                  

               DATA:      lr_ibase2      TYPE REF TO cl_crm_bol_entity,

                                lv_coll1 TYPE REF TO if_bol_bo_col,

                                lr_recl1     TYPE REF TO cl_crm_bol_entity.

 

                lr_ibase2 ?= me->typed_context->BTADMINH->collection_wrapper->get_current( ).

 

                  TRY.

                       lv_coll1 = lr_ibase2->get_related_entities( iv_relation_name = 'BTHeaderServiceExt' ).

                     CATCH cx_root.

                  ENDTRY.

 

                  IF lv_coll1 IS NOT INITIAL.

 

                         lr_recl1 ?= lv_coll1->get_current( ).

 

                         IF lr_recl1 IS NOT INITIAL.

                                "Capturo el Aviso.

                                  CALL METHOD lr_recl1->get_property_as_value

                                    EXPORTING

iv_attr_name = 'ZZFLD00000O'

                                    IMPORTING

ev_result    = zaviso.

                          ENDIF.

 

                   ENDIF.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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