且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SAP ABAP实用技巧介绍系列之 在xslt里call ABAP method

更新时间:2022-08-22 12:45:03

用于测试的xml:

Empire Burlesque

Bob Dylan

USA

Columbia

10.90

1985

Hide your heart

Bonnie Tyler

UK

CBS Records

9.90

1988

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及实现:


输出: