2009 Jan 14 2:59 PM
Hi,
I have developed one module pool program. In the screen, I have created one dictionary field.
I need to populate some values as soon as user press F4 help button.
I have written the code in flow logic and module pool program for that.
In flow Logic:
PROCESS ON VALUE-REQUEST.
FIELD: ZTEST-VNO MODULE HELP_DISPLAY.
In Module pool program:
data : begin of itab occurs 0,
vno like ztest-vno,
end of itab.
data : it_return like DDSHRETVAL occurs 0 with header line.
module help_display input.
select vno from ztest into table itab.
if sy-subrc eq 0.
sort itab by vno.
delete adjacent duplicates from itab.
endif.
call function 'F4_FIELD_ON_VALUE_REQUEST'
exporting
tabname = 'ITAB'
fieldname = 'VNO'
tables
return_tab = it_return.
endmodule.
Could you pls help me out. Is there any other fuction module for F4 help.
And let me know what are the parameters i need to pas? where and what?
Thanks in advance
Raghu
Hi,
I have developed one module pool program. In the screen, I have created one dictionary field.
I need to populate some values as soon as user press F4 help button.
I have written the code in flow logic and module pool program for that.
In flow Logic:
PROCESS ON VALUE-REQUEST.
FIELD: ZTEST-VNO MODULE HELP_DISPLAY.
In Module pool program:
data : begin of itab occurs 0,
vno like ztest-vno,
end of itab.
data : it_return like DDSHRETVAL occurs 0 with header line.
module help_display input.
select vno from ztest into table itab.
if sy-subrc eq 0.
sort itab by vno.
delete adjacent duplicates from itab.
endif.
call function 'F4_FIELD_ON_VALUE_REQUEST'
exporting
tabname = 'ITAB'
fieldname = 'VNO'
tables
return_tab = it_return.
endmodule.
Could you pls help me out. Is there any other fuction module for F4 help.
And let me know what are the parameters i need to pas? where and what?
Thanks in advance
Raghu
2009 Jan 14 3:22 PM
Try to use FM [F4IF_INT_TABLE_VALUE_REQUEST|https://www.sdn.sap.com/irj/scn/advancedsearch?query=f4if_int_table_value_request&cat=sdn_all]
Sample
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'XXXX' " field name in internal table
dynpprog = dyname
dynpnr = dynumb
dynprofield = 'XXXXX' " field name in dynpro
stepl = step_line " for table control/step loop (DYNP_VALUES_READ)
value_org = 'S'
TABLES
value_tab = values_xxxx " internal table built from data
EXCEPTIONS
OTHERS = 1.
Also if you need to read current data of any displayed field to build the selection list, use FM [DYNP_VALUES_READ|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=dynp_values_read&adv=false&sortby=cm_rnd_rankvalue]
You could also build a search help (SE11) built on your ztable, and put the search help on the field (SE51)
Regards
2009 Jan 14 3:36 PM
Thanks Raymond!
It works only if we want to display single column in the output.
I have another same requirement, As soon as user press F4 help button,it should display two columns in the output.
internal table:
data: begin of itab occurs 0,
col1
col2
end of itab.
Could you pls help me how to acheive this..
Thanks in advance
Edited by: r badveli on Jan 14, 2009 5:18 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |