BADI-CUSTOMER_ADD_DATA-XD01_XD02 Enhancement

Today we will learn BADI-CUSTOMER_ADD_DATA- TCODE: XD01  XD02 Customer Master Screen Enhancement .

Step by step to Add customer fields to XD01 XD02 XD03 SCREEN.

客户主数据屏幕增强.

 

Purpose: Add customer fiedls to tr-code XD01\XD02\XD03

  1. add append structure in tcode se11 to table KNA1
  2. find SPRO   SPRO->后勤-常规->业务伙伴->客户->控制->客户所有的主数据字段的采用进行配置
    维护客户屏幕组ZA:added customer data附加数据
  3. choose ZA,function code ZA01, icon=icon*add*
  4. Create BADI( Click 附加业务:主数据增强的处理)
  5. CUSTOMER_ADD_DATA             IF_EX_CUSTOMER_ADD_DATA
  6. CUSTOMER_ADD_DATA_CS     IF_EX_CUSTOMER_ADD_DATA_CS

Sample souce code 示例代码:

Active the add-on customer data Tab:

CUSTOMER_ADD_DATA ~check_add_on_active

if  i_screen_group = ‘ZA’.

E_ADD_ON_ACTIVE  = ‘X’.

ENDIF.

 

Put data to sap  screen in [CUSTOMER_ADD_DATA_CS:SETDATA METHOD.], PARAMETERS I_ACTIVITY, STRUCTURE S_KNA1

Set  screen in [CUSTOMER_ADD_DATA_CS:get_taxi_screen METHOD.]

if  i_taxi_code  = ‘ZA01’.

E_SCREEN = ‘9001’.E_PROGRAM = ‘SAPLZKNA1’.    CLEAR E_HEADERSCREEN_LAYOUT.

ENDIF.

Gut data from sap  screen in [CUSTOMER_ADD_DATA_CS:get_data METHOD.]

parameters:STRUCTURE S_KNA1.

 

create function group for data move corrosspanding.

我的微信公众号【 hot583 】 或者在这个链接联系我

本文链接 http://www.hot583.com/2022/06/23/customer_add_data/

本文为作者原创,如果这篇文章对您有用,欢迎转载,

转载请务必注明来源《今日热点在看》http://www.hot583.com/

微信原文《全文完》

今日热点在看SAP HOT583