How to test function module CRM_TERRMAN_BUILD_TERRATTRIB_B

61 阅读1分钟
  1. set breakpoint in FM CRM_TERRMAN_BUILD_TERRATTRIB_B.
  2. log on system with business role TPM_PRO, search out one Territory:

[外链图片转存失败(img-Xf75BBdE-1563588462844)(user-images.githubusercontent.com/5669954/326…)]

Click Edit List:

clipboard2

There will be a new Inactive rule generated. Use

clipboard3

Choose Country as rule condition:

[外链图片转存失败(img-voFZS6fD-1563588462846)(user-images.githubusercontent.com/5669954/326…)]

select one country for example China:

[外链图片转存失败(img-ylznCWJg-1563588462846)(user-images.githubusercontent.com/5669954/326…)]

maintain a rule description and click Release button:

clipboard6

The status is changed now to Active:

[外链图片转存失败(img-sMBqxF2q-1563588462847)(user-images.githubusercontent.com/5669954/326…)]

  1. Click save button, then breakpoint will be triggered. Change lv_bw_update to X in debugger, then F8:

clipboard8

Ensure the importing parameter it_terr_guid and it_link are not empty and after function module is executed, there should be no error message in changing parameter ct_errors.

[外链图片转存失败(img-9dVtjaP3-1563588462848)(user-images.githubusercontent.com/5669954/326…)]