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

search help functionality

Former Member
0 Likes
821

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.

1 ACCEPTED SOLUTION
Read only

former_member229729
Active Participant
0 Likes
800

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

6 REPLIES 6
Read only

former_member242255
Active Contributor
0 Likes
800

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.

Read only

0 Likes
800

can u pls pass the code?

Read only

0 Likes
800

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.

Read only

0 Likes
800

can't I make some settings in search help itself. since its the customize one

Read only

Former Member
0 Likes
800

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

Read only

former_member229729
Active Participant
0 Likes
801

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