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

Calling Custom Search Help from Function module : VB_SEARCH_HELP_ADAPT

Former Member
0 Likes
2,018

Hi All.

In MIGO , when we click on Distribute Quantity Button, we want to call custom search help for BATCH ,

which should return QUANTITY (unrestricted quantity) , batch and creation date.

At present MCH1 search help is being called from Function module VB_SEARCH_HELP_ADAPT .

How to call my custom search help ?

How to call and back populate batch and quantity fields from my custom search help ?

Yogesh

1 REPLY 1
Read only

Former Member
0 Likes
733

Hi

check the FM F4IF_FIELD_VALUE_REQUEST to assign your search help to the field you want .

sample code :

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CLASS-HIGH.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

TABNAME = 'CABN'

FIELDNAME = 'ATNAM'

SEARCHHELP = 'SEARCH HELP NAME '

  • SHLPPARAM = ' '

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'ATNAM'

  • STEPL = 0

  • VALUE = ' '

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • SUPPRESS_RECORDLIST = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • TABLES

  • RETURN_TAB =

  • EXCEPTIONS

  • FIELD_NOT_FOUND = 1

  • NO_HELP_FOR_FIELD = 2

  • INCONSISTENT_HELP = 3

  • NO_VALUES_FOUND = 4

  • OTHERS = 5

.

IF SY-SUBRC 0.

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

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

ENDIF.

Regards

Poornima