Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: How to fill depended Z-Table, created by Rapid Application Tool, with initial data?

$
0
0

Hi,

 

I get an error "Dereferencing of the NULL reference" during created_related_entity.

If you see on the picture below I think that I use right relation name for my zbooking_detail table.

 

method DO_INIT_CONTEXT.

CALL METHOD SUPER->DO_INIT_CONTEXT.


data :   lr_leading_entity  TYPE REF TO cl_crm_bol_entity,
            lr_col TYPE REF TO if_bol_bo_col.
           

           lr_leading_entity->create_related_entity(

                  iv_relation_name = 'ZAET_CA_ATAB000000' ).

           lr_leading_entity->SET_PROPERTY_AS_STRING(
                       iv_attr_name = 'ZZVISITDATE' "#EC NOTEXT
                       iv_value     = '01.01.2014'
                       ).

lr_col->ADD(
   exporting
     iv_entity = lr_leading_entity
     IV_SET_FOCUS = ABAP_TRUE
     ).

me->TYPED_CONTEXT->ZBOOKING_DETAIL->SET_COLLECTION( lr_col ).

endmethod.

 

 

 

Many Thanks & Regards,
Dmitry


Viewing all articles
Browse latest Browse all 9129

Trending Articles



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