Which function module you will use to attach a search help
to a field in Selection screen?

Answer Posted / rajarao

REPORT z_test11 .


PARAMETERS:
p_carrid(2).




DATA: table1 LIKE
ddshretval
OCCURS 0 WITH HEADER LINE.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carrid.



CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'scarr'
fieldname = 'carrid'
* SEARCHHELP = ' '
* SHLPPARAM = ' '
* DYNPPROG = ' '
* DYNPNR = ' '
* DYNPROFIELD = 'p_carrid'
* STEPL = 0
* VALUE = ' '
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* SUPPRESS_RECORDLIST = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* SELECTION_SCREEN = ' '
TABLES
return_tab = table1
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.
p_carrid = table1-fieldval.


START-OF-SELECTION.
WRITE: p_carrid.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between the table and the structure in the data dictionary in the sap abap?

579


What is occurs in internal table?

588


How do you find if a logical database exists for your program requirements?

634


Explain the components of selection table?

625


What is roles and responsibilities of sap hr consultants? : sap abap hr

572






Is sap xi intended to replace ale?

575


What two statements would be used to exchange data between programs using abap memory?

502


Reports: Event functionality.

880


What is table attribute? : abap data dictionary

566


What are the function of the transport system and workbench organiser? : abap data dictionary

553


Update function modules are classified as either v1 or v2. Which type of update is performed first and in what mode (asynchronously, synchronously or locally) can each type be processed in?

561


What is logo in sap script?

560


Name a few data dictionary objects?

638


Does the external program run in the same sap luw as the caller, or in a separate one?

655


How do you send files to the legacy systems from SAP and vice versa? How does one know that the legacy files have come on to the SAP server you are working on?

723