1.Create the Z fields for VBRK.

2.Go to SE38, create report zzinvoice.

3. In standard program SAPMV60A, provide 2 screens for customer additional datas, 6001 for header 6002 for details.


- loop at screen.
- if screen-name = 'TABSTRIP_TAB06'.
- gs_cust_tab-head_caption = 'TEST'.
- gs_cust_tab-head_program = 'ZZINVOICE'.
- gs_cust_tab-head_dynpro = '0100'.
- if gs_cust_tab-head_dynpro is not initial.
- screen-active = 1.
- screen-invisible = 0.
- modify screen.
- tabstrip_tab06 = gs_cust_tab-head_caption.
- endif.
- endif.
- endloop.
loop at screen.
if screen-name = 'TABSTRIP_TAB06'.
gs_cust_tab-head_caption = 'TEST'.
gs_cust_tab-head_program = 'ZZINVOICE'.
gs_cust_tab-head_dynpro = '0100'.
if gs_cust_tab-head_dynpro is not initial.
screen-active = 1.
screen-invisible = 0.
modify screen.
tabstrip_tab06 = gs_cust_tab-head_caption.
endif.
endif.
endloop.

本文介绍了如何为SAP的VF01、VF02和VF03交易代码进行增强,特别是在VBRK表中创建自定义字段。通过在SE38中创建报告zzinvoice,并在标准程序SAPMV60A中为客户附加数据提供两个屏幕,分别用于头信息和详细信息。使用循环遍历屏幕,动态设置TABSTRIP_TAB06的标签和程序,实现界面自定义显示。
1324

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



