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

Re: Custom field in Service Request not getting updated back to SAP Data Base

$
0
0

Hi Raja Sekhar,

 

Do one thing in your get_zz* method get the aet field info based on relation because this is not bound into the btadminh relation so you have to find out the correct relation in which the field is available at runtime..

 

ex:

get_zz* method.

IF iterator IS BOUND.

     current = iterator->get_current( ).

   ELSE.

     current = collection_wrapper->get_current( ).

   ENDIF.

   lr_btadminh ?= current.

   IF lr_btadminh IS BOUND.

*    Get BTServiceh

     lr_btservice ?=  lr_btadminh->get_related_entity( iv_relation_name = 'BTHeaderServiceExt' ).

     CHECK lr_btservice IS BOUND.

     TRY.

         dref lr_btservice->get_property( 'ZZAFLD00000T' ). "#EC NOTEXT

       CATCH cx_sy_ref_is_initial.

         RETURN.

     ENDTRY.

   ENDIF.


same as in your set_zz* method..

 

try this and let me know..

Thanks & Regards,

Srinivas.


Viewing all articles
Browse latest Browse all 8122

Trending Articles



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