‎2009 May 20 10:16 AM
I am desgining a using Module pool program. In the screen I have 1 Shipment Numer(vttk-tknum) field along with Shipment Item(vttp-tpnum).
Now I have created custom search help for TPNUM i.e. item. Now the search help for Item should function like: what Shipment no I have selected, it should show the corresponding Item number only. But currently its giving all the items.
Please let me know how to do that. Thanks.
‎2009 May 20 11:47 AM
Hi,
I can suggest you to use the FM 'F4IF_INT_TABLE_VALUE_REQUEST' . Below given is the sample code:
SELECT * INTO TABLE wt_bhf FROM ywm_v_bhanhof WHERE nltyp <> 'B62'.
SORT wt_bhf BY nltyp .
DELETE ADJACENT DUPLICATES FROM wt_bhf.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'NLTYP'
dynpprog = 'YWM_TR_INFO'
dynpnr = sy-dynnr
dynprofield = 'V_QUE'
window_title = 'Storage Location'
value_org = 'S'
TABLES
value_tab = wt_bhf
return_tab = return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
v_que = return_tab-fieldval.Rgds,
Ramani N
‎2009 May 20 10:20 AM
you have to write the coding in PAI and once the shipment number is entered and ENTER is hit,then the code written in the PAI for the F4 help will trigger and only the items corresponding to that shipment will be displayed.
‎2009 May 20 10:22 AM
‎2009 May 20 10:43 AM
Hi,
You can check the following Demo codes in the ABAP Editor (SE38)
DEMO_DYNPRO_F1_HELP Demonstration of F1 Help on Screens
DEMO_DYNPRO_F4_HELP_DICTIONARY Demonstration for F4 Help from the ABAP Dictionary on Screens
DEMO_DYNPRO_F4_HELP_DYNPRO Demonstration for F4 Help on Screens
DEMO_DYNPRO_F4_HELP_MODULE Demonstration for F4 Help from Dialog Modules
Hope this will help you in give you some insight in your Search Help Functionality.
Thanks,
Samantak.
‎2009 May 20 11:35 AM
can't I make some settings in search help itself. since its the customize one
‎2009 May 20 10:24 AM
Assign a function code to shipment number and write a code for that in PAI to get the corresponding item numbers to an internal table. Pass this internal table which has corresponding item numbers to the F4 help function module of the item number in the event 'Process on Value Request'
Hope, this helps...
Vinod
‎2009 May 20 11:47 AM
Hi,
I can suggest you to use the FM 'F4IF_INT_TABLE_VALUE_REQUEST' . Below given is the sample code:
SELECT * INTO TABLE wt_bhf FROM ywm_v_bhanhof WHERE nltyp <> 'B62'.
SORT wt_bhf BY nltyp .
DELETE ADJACENT DUPLICATES FROM wt_bhf.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'NLTYP'
dynpprog = 'YWM_TR_INFO'
dynpnr = sy-dynnr
dynprofield = 'V_QUE'
window_title = 'Storage Location'
value_org = 'S'
TABLES
value_tab = wt_bhf
return_tab = return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
v_que = return_tab-fieldval.Rgds,
Ramani N