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

Help on Search Help

Former Member
0 Likes
460

Hi,

I'm Using 'F4IF_INT_TABLE_VALUE_REQUEST' FM for Search Help.

I'm showing 5 columns in search help.

I want to take the 2 column value based upon the first column value.

i.e I want both the 1st and 2nd column values for further processing...Is there any posiible way to do this....???

Regards

Jiku

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
401

Please see below code,

DATA: RETURN TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

TABNAME = 'KNA1'

FIELDNAME = 'STCEG'

SEARCHHELP = 'ZDEBI1'

DYNPPROG = SY-CPROG

SUPPRESS_RECORDLIST = 'X' "Supress dialog of F4 help

TABLES

RETURN_TAB = RETURN

EXCEPTIONS

FIELD_NOT_FOUND = 1

NO_HELP_FOR_FIELD = 2

INCONSISTENT_HELP = 3

NO_VALUES_FOUND = 4

OTHERS = 5.

Return will contain all column and field value, you can use the only column which require

2 REPLIES 2
Read only

Former Member
0 Likes
402

Please see below code,

DATA: RETURN TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

TABNAME = 'KNA1'

FIELDNAME = 'STCEG'

SEARCHHELP = 'ZDEBI1'

DYNPPROG = SY-CPROG

SUPPRESS_RECORDLIST = 'X' "Supress dialog of F4 help

TABLES

RETURN_TAB = RETURN

EXCEPTIONS

FIELD_NOT_FOUND = 1

NO_HELP_FOR_FIELD = 2

INCONSISTENT_HELP = 3

NO_VALUES_FOUND = 4

OTHERS = 5.

Return will contain all column and field value, you can use the only column which require

Read only

Former Member
0 Likes
401

Hi,

Do all the manipulations in the internal table and pass it over in the Function Module.

Thanks,

Yogesh