Quantcast
Channel: SCN : Discussion List - BOPF Application Framework
Viewing all articles
Browse latest Browse all 249

Automatically create subnode for root node (on Change?) in BOPF

$
0
0

Hello BOPF-Experts,

 

 

i' m really new to BOPF and have a special question.

 

I want to create a subnote automatically when i chance a Value on the Root-Node Structure.

 

For example i have a root node with a field in the structure where i can enter a String(e.g. name).

After i have enterd that string the subnotes should automatically be created. (e.g. a subnode for each Businesspartner with that name and some more infos in the structure)

 

My idea was to create a determination for the root node (for update). In the Excecute Methode of the implemented class in try to create the subnode. But if i the business Object over BOBT ist dumps (after i changed the value in the root node).

 

 

In the dump description there aren't any helpful informations

 

"MESSAGE_TYPE_X"

"/BOBF/CL_FRW==================CP" bzw. /BOBF/CL_FRW==================CM013

"SET_APPLICATION_ERROR"

 

 

My Excecute method:

 

 

method /BOBF/IF_FRW_DETERMINATION~EXECUTE.

 

    "Alle passenden QUEUE Subnodes erstellen

 

     DATA lr_queue           TYPE REF TO zs_komb_queue.

 

         DATA(LO_SERVICE_MANAGER) = /BOBF/CL_TRA_SERV_MGR_FACTORY=>GET_SERVICE_MANAGER( zif_con_bupa=>sc_bo_key ).

 

    CREATE DATA lr_queue.

 

    lr_queue->key = lo_service_manager->get_new_key( ).

    lr_queue->root_key = is_ctx-root_node_key.

 

    io_modify->create(

      EXPORTING

      iv_node            = zif_con_bupa=>sc_node-adress

        iv_key             = lr_adress->key

*       iv_node_cat        =

*       is_data            = lr_adress

*        it_changed_fields  =

*       iv_assoc_key       = zif_con_bupa=>sc_association-mappe-bupa_to_adress

        iv_source_node_key = zif_con_bupa=>sc_node-bupa

        iv_source_key      = is_ctx-root_node_key

        iv_root_key        = is_ctx-root_node_key

*      IMPORTING

*        ev_key             =

    ).

 

   endmethod.

 

 

What should i consider for my requirement?

I know there are not so much infos, but if anybody knows how i can solve my prolem or have a better idea to solve my requirement.

 

Would be great

 

Thank you!


Viewing all articles
Browse latest Browse all 249

Trending Articles



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