‎2008 Oct 22 9:47 AM
Hi,
I am working on module pool. I have to assign search help to a field on popup screen. This screen field is being referred to a field from the custom table YSD_PROCESS. The search help is not created in the Database table for this field. I need to create the search help through coding.
Do i need to use the fn. mod. F4IF_INT_TABLE_VALUE_REQUEST?
- If yes, then what are the parameters i need to paas?
- What should i pass to the parameter Value_tab?
- Do i need to write the code in the AT SELECTION-SCREEN OUTPUT ON VALUE REQUEST event or the PBO of this popup screen.
Any help will be appreciated.
Thanks.
‎2008 Oct 22 9:53 AM
check the demo programs
DEMO_DYNPRO_F4_HELP_DICTIONARY
DEMO_DYNPRO_F4_HELP_DYNPRO
DEMO_DYNPRO_F4_HELP_MODULE
you understand better
‎2008 Oct 22 9:51 AM
Hi,
Check this example : This is a report program, * In your case you will call the function in the POV of that field.*
REPORT Z_F4_HELP .
parameter p_loekz(1) type c.
data : begin of it_loekz occurs 0,
l_loekz like ekpo-loekz,
text(10) type c,
end of it_loekz.
data : lw_field_name type DYNFNAM.
data gv_choice like sy-tabix.
at selection-screen on value-request for p_loekz.
LW_FIELD_NAME = 'P_LOEKZ'.
it_loekz-l_loekz = 'S'.
it_loekz-text = ' Locked'.
append it_loekz.
clear it_loekz.
it_loekz-l_loekz = 'L'.
it_loekz-text = ' Deleted'.
append it_loekz.
clear it_loekz.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
endpos_col = 30
endpos_row = 5
startpos_col = 20
startpos_row = 5
titletext = 'Select a Deletion indicator'
IMPORTING
choise = gv_choice
TABLES
valuetab = it_loekz
EXCEPTIONS
break_off = 1
OTHERS = 2.
READ TABLE it_loekz INDEX gv_choice.
p_loekz = it_loekz-l_loekz.
Refer to the example in the link below if you want to use F4IF_INT_TABLE_VALUE_REQUEST
[http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm]
Edited by: Advait Gode on Oct 22, 2008 10:52 AM
‎2008 Oct 22 9:53 AM
check the demo programs
DEMO_DYNPRO_F4_HELP_DICTIONARY
DEMO_DYNPRO_F4_HELP_DYNPRO
DEMO_DYNPRO_F4_HELP_MODULE
you understand better
‎2008 Oct 22 10:15 AM
Hi,
if you are using selection screen
then you have to use event AT SELECTION-SCREEN OUTPUT ON VALUE
if you are using custom screen(created screen paint)
then you have to use event POV in screen flow logic.
you have to pass the following parameters
1. RETFIELD = 'MATNR'
this field should be maintain in internal table. you will get value of MATNR as result.
2.DYNPPROG = 'PROGNAME'
calling program name
3.DYNPNR = '100'
calling screen no
4.DYNPROFIELD = 'WA_MATNR'
screen field name
5.VALUE_ORG = 'S'
pass alway 'S'
6. VALUE_TAB = itab
value list table
and have a look into Advait Gode's link.you will get more idea.
‎2008 Oct 22 10:30 AM
‎2008 Oct 22 10:36 AM
hi,
you get all colunms and records from itab.
the follwoing example gives material list with its description.
ex.
data: begin of itab,
matnr type makt-matnr,
matkl type makt-matkl,
end of itab.
select matnr matkl from makt into table itab.
call function module here.
‎2008 Oct 22 12:34 PM
hi,
here is small demo for this FM.
Let say i have created a parameter 'P_VBELN' in selection screen.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vbeln.
PERFORM value_request_status USING 'P_VBELN'.
FORM value_request_status USING lp_field TYPE dynfnam.
TYPES: BEGIN OF ly_value,
vbeln TYPE vbak-vbeln,
ernam type vbak-ernam,
END OF ly_value.
STATICS lt_values TYPE STANDARD TABLE OF ly_value.
IF lt_values IS INITIAL.
SELECT vbeln ernam into table lt_values from vbak.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'P_VBELN'
dynpprog = syst-repid
dynpnr = syst-dynnr
dynprofield = lp_field
value_org = 'S'
TABLES
value_tab = lt_values
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.
IF syst-subrc IS NOT INITIAL.
ENDIF.
ENDFORM.
‎2008 Oct 22 12:36 PM
Hi ,
this is Fm for the F4 help ....
'F4IF_INT_TABLE_VALUE_REQUEST'
‎2008 Oct 22 10:58 PM
Now, if you are working on Module Pool follow this procedure:-
(1) Create the search help via SE11.
(2) Attach the search help to the screen field by clicking on properties in the screen painter and then in the resultant pop-up you will have a box to enter the search help
Thanks
Minhaj.