获取屏幕上的值,优化搜索帮助做一个联动的查询,就需要获取其他再屏幕上输入的值
用到这个函数DYNP_VALUES_READ
DATA: LT_DYNPREAD_2 TYPE STANDARD TABLE OF DYNPREAD,
LS_DYNPREAD_2 TYPE DYNPREAD,
LV_IWERK TYPE z06pmt0210rm-IWERK,
LV_WORKSHOP TYPE z06pmt0210rm-WORKSHOP.
CLEAR lt_210rm1.
CLEAR LT_DYNPREAD_2.
给工作赋值,把需要读取的字段填上
LS_DYNPREAD_2-FIELDNAME = 'Z06PMT270-IWERK'.
APPEND LS_DYNPREAD_2 TO LT_DYNPREAD_2.
LS_DYNPREAD_2-FIELDNAME = 'Z06PMT270-WORKSHOP'.
APPE