Quantcast
Channel: SCN: Message List - BOPF Application Framework
Viewing all articles
Browse latest Browse all 726

et_failed_key in retrieve_by_association method

$
0
0

Hello experts!

I have a determination, which in some cases return error message and failed keys.

If I use RETRIEVE:

lo_srv_mngr->retrieve(

   EXPORTING

     iv_node_key             = zif_yh_c=>sc_node-item

     it_key                      = lt_key

     iv_edit_mode            = /bobf/if_conf_c=>sc_edit_read_only

   IMPORTING

     eo_message              = lo_message

     et_data                      =   lt_root

     et_failed_key             = lt_failed_key ).

 

lt_failed_key contains failed keys from determination and lo_message contains messages from determination.

 

But if I use RETRIEVE_BY_ASSOCIATION:

lo_srv_mngr->retrieve_by_association(

     EXPORTING  

          iv_node_key             = zif_yh_c=>sc_node-root  

          it_key                          = lt_key                                     

          iv_association          =zif_yh_c=>sc_association-root-item   

          iv_fill_data               = abap_true                                  

          iv_edit_mode           = /bobf/if_conf_c=>sc_edit_read_only       

     IMPORTING   

          eo_message              = lo_message                                

          et_data                        = lt_item                                    

          et_key_link                 = lt_link                                    

          et_target_key             = lt_item_key                                

          et_failed_key             = lt_failed_key ).

 

lt_failed_key is INITIAL, but lo_message contains messages from determination

Could you please explain, why in method retrieve_by_association failed key is initial?


Viewing all articles
Browse latest Browse all 726

Trending Articles



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