call function 'Z_PRT03'
destination zcl_scpr=>dest_ex
exporting
i_ini = i_ini
importing
st_011 = st_011
msg = msg
tables
barcd_t = barcd_t
changing
st_010 = st_010
exceptions
system_failure = 1 message mess
communication_failure = 1 message mess
resource_failure = 2
error = 3
others = 4.
case sy-subrc .
when 1.
message e000(zs) with mess.
when 0.
destination zcl_scpr=>dest_ex
exporting
i_ini = i_ini
importing
st_011 = st_011
msg = msg
tables
barcd_t = barcd_t
changing
st_010 = st_010
exceptions
system_failure = 1 message mess
communication_failure = 1 message mess
resource_failure = 2
error = 3
others = 4.
case sy-subrc .
when 1.
message e000(zs) with mess.
when 0.
这篇博客详细介绍了如何在ABAP中调用函数模块Z_PRT03,并自定义不同异常情况下的错误消息处理。通过设置不同的异常类型和消息变量,实现了对系统失败、通信失败和资源失败等错误的捕获和通知。
1452

被折叠的 条评论
为什么被折叠?



