
2008-7-4 16:56
xiebinren
F4IF_INT_TABLE_VALUE_REQUEST使用方法出现的错误
DATA: g_WErKS(04) type c.
DATA: begin of it_werk occurs 0,
werks(04) type c,
name(10) type c,
end of it_werk.
DATA: answer.
data: out_werk like DDSHRETVAL occurs 0 with header line.
PARAMETERS:p_werks like g_werks obligatory. "公司代码
INITIALIZATION.
it_werk-werks = '1010'.
it_werk-name = '明天'.
append it_werk.
it_werk-werks = '1020'.
it_werk-name = '你好'.
append it_werk.
at selection-screen on value-request for p_werks.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
*DDIC_STRUCTURE = 'S'
RETFIELD = 'WERKS'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_WERKS'
VALUE_ORG = 'S'
IMPORTING
USER_RESET = answer
TABLES
VALUE_TAB = IT_WERK
RETURN_TAB = OUT_WERK
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
START-OF-SELECTION.
LOOP AT OUT_WERK.
write out_werk-FIELDVAL.
ENDLOOP.
我没有放图片,就描述一下,F4 是可以跳出信息来,也提示:限制值范围(1) 2 找到条目
但是就是没有数据提示,有位大哥跟我说是cells by cells但是我没有办法知道怎么修改,
请各位大哥们帮忙!
2008-7-4 17:35
dudu蓝蓝
因为你的自定义表没有表头文本,你把内表结构里的两个字段不用C类型,而是参照数据表里的字段类型就可以了
2008-7-4 18:04
dreamgift
DATA: begin of it_werk occurs 0,
werks(04) type c,
name(10) type c,
end of it_werk.
DATA: answer.
换成
DATA: begin of it_werk occurs 0,
werks type CHAR4,
name type CHAR10,
end of it_werk.
DATA: answer.
然后试试. 应该可以了
2008-7-4 18:23
sorrowlich
[quote]原帖由 [i]dudu蓝蓝[/i] 于 2008-7-4 17:35 发表 [url=http://www.itpub.net/redirect.php?goto=findpost&pid=10857919&ptid=1016866][img]http://www.itpub.net/images/common/back.gif[/img][/url]
因为你的自定义表没有表头文本,你把内表结构里的两个字段不用C类型,而是参照数据表里的字段类型就可以了 [/quote]
:rose:
2008-7-6 07:41
ryq0000
[quote]原帖由 [i]dudu蓝蓝[/i] 于 2008-7-4 17:35 发表 [url=http://www.itpub.net/redirect.php?goto=findpost&pid=10857919&ptid=1016866][img]http://www.itpub.net/images/common/back.gif[/img][/url]
因为你的自定义表没有表头文本,你把内表结构里的两个字段不用C类型,而是参照数据表里的字段类型就可以了 [/quote]
:right: :right:
页:
[1]

Powered by ITPUB论坛