ABAP-SM30输入某个字段自动带出另一个字段的数据
![](https://img2022.cnblogs.com/blog/1858853/202206/1858853-20220620161609110-343542104.png)
1 MODULE get14_lifnr_name INPUT. 2 3 SELECT SINGLE butxt 4 FROM t001 5 INTO ztwms14_lifnr-butxt 6 WHERE bukrs = ztwms14_lifnr-bukrs. 7 8 SELECT SINGLE btext 9 FROM t156t 10 INTO ztwms14_lifnr-btext 11 WHERE bwart = ztwms14_lifnr-bwart 12 AND spras = sy-langu 13 AND sobkz = '' 14 AND kzbew = 'B' 15 AND kzzug = '' 16 AND kzvbr = ''.. 17 18 ztwms14_lifnr-zdate = sy-datum. 19 ztwms14_lifnr-ztime = sy-uzeit. 20 ztwms14_lifnr-zuser = sy-uname. 21 22 ENDMODULE. " GET14_LIFNR_NAME INPUT