Skip to Content
author's profile photo Former Member
Former Member

Validating Fiscal year and posting Period

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Feb 14, 2005 at 07:25 AM

    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.

    how to add F4 help on reports

    Hope this helps.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2005 at 07:30 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2005 at 07:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 07:34 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.