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 with Dropdown box for Date field

former_member696081
Participant
0 Kudos

Hi All,

I am working on modulepool program. My requirement is to provide a dropdown list box for Date field and to make that field as default with the least date that I got through list box. if the user selects from date from list box I need to populate TO Date field with some other value based on some logic.

Now I can able to create a drop down listbox. I have assigned a Function code for that. When I select a date from the list box of FROM Date its not triggering the Module user_command_0100.

If it triggers then I can able to write my logic and then I need to update the date of TO Date field.

I have choosen the function type for the screen field as HELP Function. If I dont use this function type system giving an error saying that Invalid Date Format.

How can I do it.

Can anybody suggest me how to do that?

Thank you.

Ranganadh.

5 REPLIES 5

former_member1245113
Active Contributor
0 Kudos

Hi ranganadh,

Which data are you passing to it.

please let us know

regards

Ramchander Rao.K

0 Kudos

Hi Ram,

Thanks for reply.

on the screen 100 I have 2 date fields. One is From Date and the other is TO Date.

both should have listbox option. User can select one date form the FROM Date field from the list box. If user selects FROM Date the corresponding to this FROM DATE I need to fetch TO DATE from the database and I need to populate the TO Date field.

I have given Function codes to both but when I select data for FROM DATE the user command module is not getting triggered.

if more clarification is required please inform it to me.

Thank you.

Ranganadh.

0 Kudos

No problem brother,

Please give me some time as i am looking into it, i will come back to you.

regards

Ramchander Rao.k

0 Kudos

Dear Ranganath,

in the screen painter give the FCT type as E

and try it out.

data : ID type VRM_ID,

VALUES type VRM_VALUES with header line.

ID = 'ERDAT'.

VALUES-key = '12.10.2008'.

append VALUES.

clear VALUES.

VALUES-key = '12.11.2008'.

append VALUES.

clear VALUES.

VALUES-key = '12.12.2008'.

append VALUES.

call function 'VRM_SET_VALUES'

exporting

ID = ID

VALUES = VALUES[]

EXCEPTIONS

ID_ILLEGAL_NAME = 1

.

i got the PAI triggered for the above code when the function code is type E

and in PAI

module EXIT AT EXIT-COMMAND

you write the code here

if you have any problem please let me know

Regards

Ramchander Rao.K

former_member1245113
Active Contributor
0 Kudos

HI,

If this problem is solved, can you close this thread.

Regards

Ramchander Rao.K