Application Development 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: 

problem in selecting values in dropdown list.

santosh_kumar94
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

santosh_kumar94
Participant
0 Kudos

SOLVED MYSELF. I REFERED THE SCREEN I/O TO DATA-DICTIONARY. IT WORKING NOW. THANKS ALL

11 REPLIES 11

Former Member
0 Kudos

Hi,

Check the length of the field FIRNO,may be that field length is 15 charectrs only.

Thanks

Mani

0 Kudos

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.

0 Kudos

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

gouravkumar64
Active Contributor
0 Kudos

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.


former_member491621
Contributor
0 Kudos

Hi Santosh,

Try assigning the screen field with standard data element which is used by field FIRNO.

Former Member
0 Kudos

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

santosh_kumar94
Participant
0 Kudos

SOLVED MYSELF. I REFERED THE SCREEN I/O TO DATA-DICTIONARY. IT WORKING NOW. THANKS ALL

0 Kudos

Nice work buddy

0 Kudos

Hi santosh,

Nice job.

so close this thread & mark it as answered.

Thanks

Gourav.

raymond_giuseppi
Active Contributor
0 Kudos

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

gurunathkumar_dadamu
Active Contributor
0 Kudos

HI,

good.mark it as answer and award the points which are all helpful also.

Regards,

Guru