2014 Jun 17 6:49 PM
Hi Expert,
I am trying to update the bobf root node and associate node under it.
This is BOBF EHFND_DATA_AMOUNT custom enhanced z_***** , i can able to update the root node but for associate node created after enhancement its not updating.
Code i used is
APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod>.
<ls_mod>-node = if_ehs_ih_ehfnd_data_am_c=>SC_NODE-/SDR/EHS_IH_AMNPPE_ITEM.
* /sdr/if_ehs_ih_ehfnd_data_am_c=>sc_association-root-ehs_ih_amnppe_item.
<ls_mod>-change_mode = /bobf/if_frw_c=>SC_MODIFY_CREATE.
<ls_mod>-key = lr_s_amnppe_item->key.
<ls_mod>-data = lr_s_amnppe_item.
<ls_mod>-association = /IF_EHS_IH_EHFND_DATA_AM_C=>SC_ASSOCIATION-/SDR/EHS_IH_AMNPPE_ITEM-/SDR/EHS_IH_AMNPPE_ITEM.
<ls_mod>-source_node = if_ehfnd_amn_c=>SC_NODE-ROOT.
<ls_mod>-source_key = lv_key.
<ls_mod>-root_key = lv_key.
* Create the Amount record:
CALL METHOD lo_driver->mo_svc_mngr->modify
EXPORTING
it_modification = lt_mod
IMPORTING
eo_change = lo_change
eo_message = lo_message.
"Check for errors:
IF lo_message IS BOUND.
IF lo_message->check( ) EQ abap_true.
lo_driver->display_messages( lo_message ).
RETURN.
ENDIF.
ENDIF.
"Apply the transactional changes:
CALL METHOD lo_driver->mo_txn_mngr->save
IMPORTING
eo_message = lo_message
ev_rejected = lv_rejected.
IF lv_rejected EQ abap_true.
lo_driver->display_messages( lo_message ).
RETURN.
ENDIF.
but the above code is not helping to update the associate node from se38 program.
Regards
Sasikumar S
Can anybody help me on that thanks in advance.
2014 Jun 18 6:47 AM
Hi Sasi,
According to what you have written above, You want to update a Z node under a root node.
But in the coding for association you have written a standard node.
Give the name of the Z interface which is created and in that you will have the 'Z' custom created node.
Try this.
ls_mod>-association = "Z Interface"=>SC_ASSOCIATION-"root_node"-znode.
Hope this helps you.
Regards,
Sanket Vaity.
2014 Jul 03 8:54 PM
Hi Sanket Vaity,
Please go through below link and give your valuable suggestions for my Discussion
http://scn.sap.com/thread/3581996
Thanks in Adv.
Thanks,
Kranthi Kumar.