‎2008 Dec 02 5:39 AM
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.
‎2008 Dec 02 6:42 AM
Hi ranganadh,
Which data are you passing to it.
please let us know
regards
Ramchander Rao.K
‎2008 Dec 02 6:55 AM
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.
‎2008 Dec 02 7:11 AM
No problem brother,
Please give me some time as i am looking into it, i will come back to you.
regards
Ramchander Rao.k
‎2008 Dec 02 7:20 AM
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
‎2008 Dec 05 8:17 AM
HI,
If this problem is solved, can you close this thread.
Regards
Ramchander Rao.K