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
What are the relational operations that can be performed on view in sap? : abap data dictionary
Sal abap on hana interview
What are the basic object types? : sap abap hr
What is the use of the raising exception? : abap modularization
What is the Process to transfer IDOC from Outbound System to Inbound system.
Does the call transaction method allow multiple transactions to be processed by sap?
How many types of views are there ?
How to load data from ms excel sheet to sap by using bdc method ? : abap bdc
What is the function module to popup contents in the internal table?
What is a subroutine?
What is the lock object?
How do you retrieve the data for repetitive structures ? : abap hr
What is read line in abap?
Explain about the tables exists in a data dictionary and what are they? : abap data dictionary
If I want to execute a program only in background not in foreground is there any option for this? : abap bdc