- 使用abapGit在ABAP On-Premises系统和SAP
- 使用 SAP CRM BOL API 搜索订单抬头描述字段包含指
- Fiori-like Prototype ( SAP Cloud
- Node.js TLSSocket 库里涉及到的证书链的概念简介
- SAP ABAP 创建域、数据元素、表、结构和视图
- SAP ABAP 一个有用的程序正确性辅助工具,Checkpoi
- 如何通过增强(Enhancement) 的方式给 SAP ABA
- SAP 接口编程之 RFC系列 (01) : RFC Hello
- ABAP开发者上云的时候到了 - 现在大家可以免费使用SAP云平
- 结构软件SAP2000|SAP系统开发模块入门到精通实战培训AB
关于 Reference Currency
字段的业务含义,请查看这篇文章:
什么是 SAP 系统订单的 Reference Currency 字段
打印某订单 Reference Currency 的值:
REPORT zorder_get_ref_currency.
DATA: lv_guid TYPE crmt_object_guid,
lv_object_id TYPE crmd_orderadm_h-object_id,
lv_price_guid LIKE lv_guid,
ls_price TYPE crmd_pricing.
lv_object_id = '5052529'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_object_id
IMPORTING
output = lv_object_id.
SELECT SINGLE guid INTO lv_guid FROM crmd_orderadm_h WHERE object_id = lv_object_id AND process_type = 'AG'.
IF sy-subrc <> 0.
WRITE:/ 'no order found'.
RETURN.
ENDIF.
SELECT SINGLE guid_set FROM crmd_link INTO lv_price_guid WHERE guid_hi = lv_guid AND objtype_hi = '05'
AND objtype_set = '09'.
IF sy-subrc <> 0.
WRITE: / 'No price link found'.
RETURN.
ENDIF.
SELECT SINGLE * INTO ls_price FROM crmd_pricing WHERE guid = lv_price_guid.
IF sy-subrc <> 0.
WRITE: / 'no price document found'.
RETURN.
ENDIF.
WRITE: / 'reference currency: ' , ls_price-ref_currency.
网友评论