屏幕样式:
在图中红框部位增加字段“电子邮件”
l屏幕输入条件说明:
2.输出报表:
3.程序处理逻辑
1)Create structure CI_AUFK and add two fields which we want to add, we added one fields ZMAIL. Once we create above structure, we need to activate this structure CI_AUFK and also re-activate Database view COAS (Order Master for Controlling) & AUFKV (Transfer structure for orders)
2)Go to Transaction Code CMOD and Create Enhancement Project and add Enhancement ‘COOPA003(User-Defined Fields in the Order Master).
3)Click on Component tab as shown in above screen to check all the available components.Here, we can see Include table CI_AUFK, This is a structure, and we need to create this structure using Transaction Code SE11.
4)Go to transaction SE80, and copy few objects of function group ‘KOXM. To function group’ XAUF’.
4.Object Type | Source(Function Group KOXM) | Target(Function Group XAUF) |
---|---|---|
Dynpro | SAPLKOXM 0100 | SAPLXAUF 0100 |
Include | LKOXMTOP | ZXAUFTOP |
Include | LKOXMF04 | ZXAUFU04 |
Include | LKOXMF05 | ZXAUFU05 |
Once we copied the entire above object, we need to activate thesame.
ZXAUFTOP注释或者删除不用的代码
ZXAUFU04:判断屏幕输出
* write imported data in global structures
MOVE-CORRESPONDING I_AUFK TO GLOBAL_AUFK.
MOVE-CORRESPONDING I_KAUF TO GLOBAL_KAUF.
* decide wich subscreen is to be displayed
IF ( GLOBAL_KAUF-PAR_LAYOU <> 'ABCD' ) AND
( GLOBAL_AUFK-AUART <> '1234' ).
SUBSCREEN = '0100'.
ELSE.
SUBSCREEN = SPACE.
ENDIF.
ZXAUFU05:ZMAIL字段赋值 C_USER_CI_AUFK-ZMAIL = GLOBAL_AUFK-ZMAIL。
Copy 0100屏幕程序
修改符合自定义的的字段逻辑
PROCESS BEFORE OUTPUT. * initialize subscreen MODULE d0100_init. PROCESS AFTER INPUT. * check input values * CHAIN. * FIELD GLOBAL_AUFK-ZZMATNR. * MODULE GLOBAL_AUFK-ZZMATNR ON CHAIN-REQUEST. * ENDCHAIN. * * CHAIN. * FIELD GLOBAL_AUFK-ZZKUNNR. * MODULE GLOBAL_AUFK-ZZKUNNR ON CHAIN-REQUEST. * ENDCHAIN. CHAIN. FIELD global_aufk-zmail. MODULE global_aufk-zmail ON CHAIN-REQUEST. ENDCHAIN.
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。