Add Material classification field in QA32 ALV

本文介绍如何在SAP QA32事务代码中添加自定义显示字段,包括在SE11中定义结构及表字段、在CALL_LISTVIEWER_F14子例程中实现增强以修改内部表展示数据的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Append the structure qals_d02 in se11 with the field you want to display..

2. Append the same field in QALS table in se11. (to save you from dump on running QA32)

 

(e.g. you want to add material group matkl in the alv of QA32. go to se11, append 'zzmatkl' in the qals_d02 structure, then goto se11 again and append 'zzmatkl' in QALS table. activate both. )

 

3. in subroutine CALL_LISTVIEWER_F14 , implement an implicit enhancement with the code at the beginning to modify object_tab internal table which displays data. Activate the enhancement.

 

(e.g.

 

ENHANCEMENT 1  ZPP_MAT_GRP_1.    "active version

*

   DATAlv_matkl TYPE matkl.

 

   IF SY-TCODE EQ 'QA33' OR SY-TCODE EQ 'QA32'.

     LOOP AT OBJECT_TAB INTO object_tab.

       SELECT SINGLE matkl FROM mara INTO lv_matkl WHERE matnr object_tab-matnr.

         object_tab-zzmatkl lv_matkl.

         MODIFY object_tab FROM object_tab TRANSPORTING zzmatkl .

     ENDLOOP.

ENDIF.

ENDENHANCEMENT.

 

)

 

4. in subroutine aktualisieren_f14 , also implement the same code as implicit enhancement just before statement ENDFORM. Activate the enhancement.

 

Done....

 

Run QA32 :

 

in alv, select the desired field from layout option(in our case: material group). save the layout as per your need.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值