01-28-2013 12:30 PM
dear experts,
i have made dropdown list in screen painter. in my program i am using f.m 'F4IF_INT_TABLE_VALUE_REQUEST' .
the dropdown list is showing the all values. but when i am selecting one of them it's taking only 15 char.due to this i am not able to print my form data.
for exapmle - suppose in drop down. it has value like : 1) asde-9034-35803-23
2) re-345-35454-34554
when i am selecting 2nd 're-345-35454-34554'. it's selecting only 're-345-35454' rest '-34554' it's not selecting . what is the problem in it.can any one help to solve this issue.
my code is :
******************here i am selecting this firno from table & then i want to select any one fir no in the dropdown based on that it will display the output*********************** here FIRNO IS ASSIGN 40 CHAR. BUT IN DROPDOWN IT'S SELECTING ONLY 15-16 CHAR.HOW TO SOLVE THIS ISSUE?
SELECT FIRNO FROM ZFIR INTO TABLE IT_INS .
SORT IT_INS BY FIRNO.
DELETE ADJACENT DUPLICATES FROM IT_INS COMPARING FIRNO.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
RETFIELD = 'FIRNO'
* PVALKEY = ' '
DYNPPROG = DYN_PRG
DYNPNR = DYN_PR
* DYNPROFIELD = ' '
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
VALUE_ORG = 'S'
* MULTIPLE_CHOICE = ' '
DISPLAY = ' '
* CALLBACK_PROGRAM = SY-REPID
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
VALUE_TAB = IT_INS[]
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
01-28-2013 1:10 PM
SOLVED MYSELF. I REFERED THE SCREEN I/O TO DATA-DICTIONARY. IT WORKING NOW. THANKS ALL
01-28-2013 12:43 PM
Hi,
Check the length of the field FIRNO,may be that field length is 15 charectrs only.
Thanks
Mani
01-28-2013 12:48 PM
no that field length is 40 char, dropdown is showing all values. whatever i have entered. but, whenever
i am selecting any value.. it's taking less character..it's not taking all character.
01-28-2013 12:59 PM
Hi Nagamani Kola,
please can you check the lenth filed in FIRNO is how many char you want to display.
asde-9034-35803-23 - 18 char
re-345-35454-34554 - 18 char
note:can you please use the read statement after your FM to fetch it_ins-filed value to screen-filed value.
Regards,
Gurunath Kumar
01-28-2013 12:47 PM
Hi,
In this,U Can Try like this.
TABLES
VALUE_TAB = IT_INS[]
* FIELD_TAB =
* RETURN_TAB = for return data. "use this.
* DYNPFLD_MAPPING =
Then use read table .
Follow other's advice also.
Thanks
Gourav.
01-28-2013 1:02 PM
Hi Santosh,
Try assigning the screen field with standard data element which is used by field FIRNO.
01-28-2013 1:05 PM
Hi Santosh,
Is the field name FIRNO a key field or a text field ?
You can also look at sample program DEMO_DYNPRO_DROPDOWN_LISTBOX using type group VRM.
Thanks,
Tooshar Bendale
01-28-2013 1:10 PM
SOLVED MYSELF. I REFERED THE SCREEN I/O TO DATA-DICTIONARY. IT WORKING NOW. THANKS ALL
01-28-2013 1:15 PM
01-28-2013 1:17 PM
Hi santosh,
Nice job.
so close this thread & mark it as answered.
Thanks
Gourav.
01-28-2013 1:12 PM
What are
- the external length of the field (SE11 - domain - Output length)
- the displayable length of the drop-down list (SE51 - Element list - Visible length of the screen element)
Regards,
Raymond
01-28-2013 1:25 PM
HI,
good.mark it as answer and award the points which are all helpful also.
Regards,
Guru