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 in module programming

0 Likes
733

how to get search help for parameters in module programming........

8 REPLIES 8
Read only

Former Member
0 Likes
712

hi,

Refer

Check out these Sample programs

DEMO_DYNPRO_F4_HELP_MODULE

DEMO_DYNPRO_F1_HELP

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Read only

former_member491305
Active Contributor
0 Likes
712

Hi,

You can use PROCESS ON VALUE-REQUEST in Flow logic to get your own customized search help for i/o field or else you can directly use search help from dictionary.

Read only

Former Member
0 Likes
712

Hi,

Specify the search help name in the attributes of the field if search help is present.

If it is not present Write a separete module

Process on value request.

in that use the function module F4IF_INT_TABLE_VALUE_REQUEST.

Reward if helpful.

Regards,

Umasankar.

Read only

vivekkrishnan
Active Participant
0 Likes
712

Hi,

The search help has to be associated with the data element of the field.

Whether it is a module pool programming or other screen, the search help will be populated automatically.

Regards,

Vivek K

Read only

ibrahim_u
Active Participant
0 Likes
712

What do you mean as module programming ?.

if you mean screen fields, you can do this with Field Attributes in Screen Painter, entering Search Help data.

ibrahim

Read only

Former Member
0 Likes
712

PROCESS AFTER INPUT.

PROCESS ON VALUE-REQUEST.

FIELD ZSDRBT_INELG_INV-ZAPPR1_STA MODULE DLIST.

DATA: BEGIN OF ITAB OCCURS 0,

HL LIKE ZSDRBT_INELG_INV-ZAPPR1_STA,

END OF ITAB.

data: it_ret like ddshretval occurs 0 with header line.

&----


*& Module DLIST INPUT

&----


  • text

----


MODULE DLIST INPUT.

DATA: l_input(1).

clear l_input.

if g_auth <> 'BM'.

l_input = 'X'.

endif.

if bm_app1 = 'C'.

l_input = 'X'.

endif.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'HL'

  • PVALKEY = ' '

DYNPPROG = 'ZSD_RBT_DEVIATION_PRS'

DYNPNR = '0200'

DYNPROFIELD = 'ZSDRBT_INELG_INV-ZAPPR1_STA'

  • STEPL = 0

WINDOW_TITLE = 'Input'

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

DISPLAY = l_input

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = ITAB

  • FIELD_TAB =

RETURN_TAB = IT_RET

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

if sy-subrc = 0.

read table it_ret index 1.

move it_ret-fieldval to ZSDRBT_INELG_INV-ZAPPR1_STA.

endif.

*IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

*ENDIF.

ENDMODULE. " DLIST INPUT

Read only

Former Member
0 Likes
712

A search help is a ABAP Dictionary object used to define possible values (F4) help (see Input Help in the ABAP Dictionary). You can link a search help to a parameter as follows:

PARAMETERS p ... MATCHCODE OBJECT search_help.

The search help search_help must be defined in the ABAP Dictionary. The system now automatically displays the input help button for the field on the screen and activates the F4 key for it. When the user requests input help, the hit list of the search help appears, and when he or she selects an entry, the corresponding export parameter is placed in the input field.

see the link

http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

Read only

Former Member
0 Likes
712

Hi,

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'SUBCAT' " name of the search help field in t_search_sptype iinternal table

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'P_SPTYPE' " name of the screen field

value_org = 'S'

TABLES

value_tab = t_search_sptype " internal table which has search help fields

return_tab = return. " return tab

p_sptype = return-fieldval. " returning vale 2 screen field

Regards,

Ashok