今天多分享一下知识 关于卡控工厂的,不用吧代码写死,可以通过判断表的工厂区分卡控。
代码如下:
data : lo_ap_account type ref to zcls_conditions,
参考一个对象(获取条件)
lc_conditionid type setnamennew .
create object lo_ap_account . 声明对象
lc_conditionid = 'werks' 创建的setname
call method lo_ap_account-> get_conditions
调用方法
exporting
iv_conditionid = lc_conditionid
exceptions
not_found = 9.
该方法可以通过对象获取控制条到lo_ap_account-> conditions,可以判断来他来控制是否进入条件。可以通过GS01来创建,查看GS03 。