Application Development 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: 

Search help

Former Member
0 Kudos

Hi All,

I need to create table maintenance generator in which there are two fields .one will be the drop down and base on the drop down I need to create search help for second field.

For example if in drop down I select A then search help for next field will come from table KNVP and if I select B in the drop down then the select help will come from table IHPA.

Please suggest me what are the steps to create such type of search help.

Thanks in Advance.

Nidhi Sharma

Moderator message: please use more descriptive subject lines for your posts.

Edited by: Thomas Zloch on Feb 25, 2011 1:13 PM

3 REPLIES 3

Former Member
0 Kudos

Hi,

Assign the function code for the input field automatically field value will be captured and use the filed value for other field

F4 help.

Prabhudas

kesavadas_thekkillath
Active Contributor
0 Kudos

You have to use function F4IF_INT_TABLE_VALUE_REQUEST. You have to modify the flow logic. Add a event POV for second field. Use the function DYNP_GET_STEPL and retrieve the selected index of the table control. No inside the module you have to get the value of first field, based on that populate the internal table data that is to be displayed in f4 help and call function F4IF_INT_TABLE_VALUE_REQUEST.Its better that you can go for a z program . The code which you modify in the flow logic will be overwritten when the maintenance is generated.

Former Member
0 Kudos

In search help exit i have written the following code.But now my problem is record_tab has the data but its hit list does not show any data.

"

CASE callcontrol-step.

WHEN 'SELONE'.

WHEN 'PRESEL1'.

WHEN 'SELECT'.

READ TABLE shlp_tab INDEX 1 INTO ls_shlp TRANSPORTING interface.

READ TABLE ls_shlp-interface INTO ls_interface WITH KEY valfield = 'CLIENT_MATTER' TRANSPORTING value.

CASE ls_interface-value.

WHEN 'Client'.

TYPES: BEGIN OF ty_notify,

"PARTNER_TYPE type PARVW,

ptset TYPE /tcsls/ptset,

END OF ty_notify.

DATA lt_notify TYPE TABLE OF ty_notify.

" SELECT parvw INTO TABLE lt_notify

" FROM knvp .

" SORT lt_notify.

" DELETE ADJACENT DUPLICATES FROM lt_notify.

SELECT ptset INTO TABLE lt_notify

FROM /tcsls/tp005i UP TO 12 ROWS.

IF lt_notify IS NOT INITIAL.

LOOP AT lt_notify ASSIGNING <ls_journal>.

ls_record-string = <ls_journal>.

APPEND ls_record TO record_tab.

ENDLOOP.

ENDIF.

callcontrol-step = 'DISP'.

WHEN 'Matter'.

ls_record-string = 'ABC'.

APPEND ls_record TO record_tab.

callcontrol-step = 'DISP'.

ENDCASE.

ENDCASE.

IF callcontrol-step = 'DISP'.

CLEAR lf_lines.

DESCRIBE TABLE record_tab LINES lf_lines.

IF lf_lines IS INITIAL.

  • if there are no results -> quit search help

callcontrol-step = 'RETURN'.

ENDIF.

ENDIF.

IF callcontrol-step = 'RETURN'.

CLEAR lf_lines.

DESCRIBE TABLE record_tab LINES lf_lines.

IF lf_lines IS INITIAL.

  • if there are no results -> quit search help

EXIT.

ENDIF.

ENDIF.

"

Thanks & Regards.

Edited by: Nidhi Sharma on Mar 1, 2011 4:15 PM