Hi,
I am doing Asset Report.
1. I have posting period and Fiscal year, Company code on the selection-screen as select-options . If theend user enters future posting period and Fiscal year , i have to throw an error on the selction screen itself.
2. I want to put drop down for these two select-options.
Can any one suggest me how to do this plz.
Karunakar
1. for posting period/fiscal year use Dataelement <b>fm_perif</b>
sample code for validation .
PARAMETERS: perio TYPE fm_perif . DATA val TYPE fm_perif . AT SELECTION-SCREEN . concatenate sy-datum+0(4) '0' sy-datum+4(2) into val . IF perio GT val . MESSAGE i398(00) WITH 'Period is in future' . ENDIF .
For dropdown use FM F4IF_INT_TABLE_VALUE_REQUEST
at at selection-screen on value-request for <parameter/selectoption name>
code sample for this FM available at the following link.
Hope this helps.
Regards
Raja
HI,
You can't use drop down in selection-screens if you want to use them you to use screen painter, In screen painter you can also include selection screens.
Regards
HI,
You can't use drop down in selection-screens if you want to use them you have to use screen painter, In screen painter you can also include selection screens.
Regards
Hello Karunakar,
Are yo looking for dropdown functionality or the F4 functionality?
If you are looking for F4, then the solution given by Raja should help you out.
If it is Dropdown, then you would have to do some coding for that (using the FM VRM_SET_VALUES). In this case, you would not need to do any speciifc user-input validation.
Regards,
Anand Mandalika.
Add a comment