用于测试的xml:
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
</catalog>
line 16 定义一个local variable,其值为匹配的title 节点的value line 18: call ABAP method ZCL_TOOL=>GET_NEW_CC_ID. line 19: 将local variable的value传入method 输入参数IV_OLD_CC_OD line 20: ABAP method的returning参数RV_NEW_CC_ID的内容assign到新的local variable lv_new_cc_id line 23: 将local variable的value输出
ABAP method的signature及实现:
输出: