2007 Jul 16 12:27 PM
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.
2007 Jul 16 12:30 PM
Hi Farhana,
You need to implement a conversion exit for that field in order to see the description for the given values.
Regards,
Kiran
2007 Jul 16 12:34 PM
Hi Kiran,
Can you please be a little elaborate on it.
Thanks & Regards,
Farhana
2007 Jul 16 12:47 PM
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
2007 Jul 16 1:51 PM
Hi Dieter,
I`d like to implement the same in Screen painter. Thanks for you input on it.
Regards,
Farhana