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

Replacement for HELP_VALUES_GET_WITH_MATCHCODE in ECC 6.0

Former Member
0 Likes
613

Hi ,

When trying to replace HELP_VALUES_GET_WITH_MATCHCODE with the New FM

F4IF_FIELD_VALUE_REQUEST Iam not able to get the output when trying to test.Could you please pro

vide me the parameters for the new FM.I_status is passed for the Exp parameter matchcode_object.

3 REPLIES 3
Read only

Former Member
0 Likes
498

Hi

Hope it will help you.

Pls reward if help.

Check the following Code

Data : LF_SELFELDNAME TYPE FIELDNAME,

LF_MATCHCODE TYPE SHLPNAME,

LF_DYNPRONAME TYPE SYREPID,

LF_DYNPRONUMMER TYPE SYDYNNR.

Data : LT_RUECKGABE TYPE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

LF_SELFELDNAME = 'KUNNR'.

LF_MATCHCODE = 'DEBI'.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

TABNAME = 'VBPA'

FIELDNAME = LF_SELFELDNAME

SEARCHHELP = LF_MATCHCODE

DYNPPROG = LF_DYNPRONAME

DYNPNR = LF_DYNPRONUMMER

TABLES

RETURN_TAB = LT_RUECKGABE

EXCEPTIONS

FIELD_NOT_FOUND = 1

NO_HELP_FOR_FIELD = 2

INCONSISTENT_HELP = 3

NO_VALUES_FOUND = 4

OTHERS = 5.

IF SY-SUBRC NE 0.

EXIT.

ENDIF.

Reward if help.

Read only

Former Member
0 Likes
498

F4IF_INT_TABLE_VALUE_REQUEST

This FM is used to dsiplay values stored in an internal table as input help.

This FM is used to program our own custom help if no such input help exists in ABAP dictionary for a particular field.

The parameter VALUE_TAB is used to pass the internal table containing input values.

The parameter RETFIELD is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.

If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = field from int table whose value will be returned

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'screen field'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = internal table whose values will be shown.

RETURN_TAB = internal table of type DDSHRETVAL

EXCEPTIONS

parameter_error = 1

Also check this thread .

no_values_found = 2

others = 3.

Read only

former_member156446
Active Contributor
0 Likes
498

Hi Pradeep

check this code of search help exit.. have a look at my paper.. it might be helpful to you..

https://wiki.sdn.sap.com/wiki/x/du0