06-28-2009 8:45 AM
Hi Experts
i want to use F4IF_INT_TABLE_VALUE_REQUEST to show popup with two columns according to type definition below. as the second field "DES" is not refering to any table field or data element, therefroe, i am using TYPE C length 200 to declare it.
TYPES: BEGIN OF TY_S,
ZZJCLB TYPE ZZJCLB1-ZZJCLB, * ID
DES TYPE c length 200, *Description
END OF TY_S.
After calling function module like below. Currently, The popup only shows one column. So, my question is how to show the second column for field DES with column title i want?
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
* DDIC_STRUCTURE = ' '
RETFIELD = 'ZZJCLB'
* PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
* DYNPROFIELD = ' '
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
VALUE_ORG = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
VALUE_TAB = it_values_new
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
06-28-2009 12:17 PM
Hi, SAP Guy
Do the following Change in types it will solve out your problem,
TYPES: BEGIN OF ty_s,
zzjclb TYPE zzjclb1-zzjclb, " ID
des TYPE char200, " Description Change Here
END OF ty_s.
Best Regards,
Faisal
06-28-2009 8:59 AM
Hi,
You need to refer to the Table field or data element for DES field. Search for the data Element which is of Char type with 200 length and refer to this .
You can use this data element DML_DESCR which is of length 255. which has 'Description' as field text.
06-28-2009 9:02 AM
Hi,
In Place of Sy-repid & Sy-dynnr, try passing the Hardcoded values or constants.
06-28-2009 12:17 PM
Hi, SAP Guy
Do the following Change in types it will solve out your problem,
TYPES: BEGIN OF ty_s,
zzjclb TYPE zzjclb1-zzjclb, " ID
des TYPE char200, " Description Change Here
END OF ty_s.
Best Regards,
Faisal