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

Displaying description using search help in screen painter

Former Member
0 Likes
966

Hi,

I do have a search help which takes a code value from the screen and then returns the description corresponding to the code value( both the code and description are stored in T500L table).

Can anyone let me know as to how do I make the description to get displayed on the screen using the search help. I`ve attched the search help to a Data Element and I`ve defined the code value field of this Data element.

I`m using the FM 'F4IF_INT_TABLE_VALUE_REQUEST' for this purpose.

Regards,

Farhana.

Hi,

I do have a search help which takes a code value from the screen and then returns the description corresponding to the code value( both the code and description are stored in T500L table).

Can anyone let me know as to how do I make the description to get displayed on the screen using the search help. I`ve attched the search help to a Data Element and I`ve defined the code value field of this Data element.

I`m using the FM 'F4IF_INT_TABLE_VALUE_REQUEST' for this purpose.

Regards,

Farhana.

4 REPLIES 4
Read only

Former Member
0 Likes
885

Hi Farhana,

You need to implement a conversion exit for that field in order to see the description for the given values.

Regards,

Kiran

Read only

0 Likes
885

Hi Kiran,

Can you please be a little elaborate on it.

Thanks & Regards,

Farhana

Read only

Former Member
0 Likes
885

Hi Farhana,

try this short examle:

PARAMETERS: P_LTEXT LIKE T500T-LTEXT.

*

DATA: BEGIN OF VALUE_TAB OCCURS 0,

VALUE(40),

END OF VALUE_TAB.

*

DATA: BEGIN OF FIELD_TAB OCCURS 0.

INCLUDE STRUCTURE DFIES.

DATA END OF FIELD_TAB.

*

DATA: BEGIN OF RETURN_TAB OCCURS 0.

INCLUDE STRUCTURE DDSHRETVAL.

DATA END OF RETURN_TAB.

*

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LTEXT.

*

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'LTEXT'

WINDOW_TITLE = 'Statusselektion'

TABLES

VALUE_TAB = VALUE_TAB

FIELD_TAB = FIELD_TAB

RETURN_TAB = RETURN_TAB

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

*

IF SY-SUBRC = 0.

P_LTEXT = RETURN_TAB-FIELDVAL.

ENDIF.

*

***********************************************************************

*

initialization.

  • für P_MATN1

FIELD_TAB-TABNAME = 'T500T'.

FIELD_TAB-FIELDNAME = 'MOLGA'.

APPEND FIELD_TAB.

*

FIELD_TAB-TABNAME = 'T500T'.

FIELD_TAB-FIELDNAME = 'LTEXT'.

APPEND FIELD_TAB.

*

SELECT * FROM T500T WHERE SPRAS = SY-LANGU.

CLEAR VALUE_TAB. MOVE T500T-MOLGA TO VALUE_TAB-VALUE. APPEND VALUE_TAB.

CLEAR VALUE_TAB. MOVE T500T-LTEXT TO VALUE_TAB-VALUE. APPEND VALUE_TAB.

ENDSELECT.

*

Regards, Dieter

Read only

0 Likes
885

Hi Dieter,

I`d like to implement the same in Screen painter. Thanks for you input on it.

Regards,

Farhana