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 is a transaction variant and why are they used?
What is modularization and its benefits?
Where are you used type casting?
There is 1 person but it’s displaying that this person cannot be booked. He is not available for the business event. Can you tell me where is it going wrong? What can be the reasons? : sap abap hr
What is the difference between leave transaction and call transaction?
What are the two different ways of building a match code object? : abap data dictionary
Difference between sap script and report?
How many default tab strips are there? How to insert more tabs in it?
How will u handle the situation – In a report using function module to generate a IDOC, How will u handle the error IDOC in the same report ?
Explain what are the various types of selection screen event?
What is the difference between synchronous and asynchronous update? : abap bdc
What are the parameters used in each function?
Select query optimisation
On abap: did you set up a workflow? Are you familiar with all the steps for setting up a workflow?
Explain the different types of data dictionary objects?