Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Search Help

Former Member
0 Likes
457

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

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
431

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

Read only

0 Likes
431

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