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

How to define the logistics in view table

I create a view table and it contains the date period 'Start time ' and ' End time'.

Now I create the test data like below:

Start time End time Text

2005/01/01 2005/10/12 test 1

2005/02/28 2005/12/31 test 2

The both two date period contains date '2005/08/01',How can I do to avoid to input the repetition period?? In other word , When I input the repetition period ,the system will popup a error message! that is what I want to do...but...I don't really know how to do ....please help me...thanks all.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Aug 01, 2005 at 09:32 AM

    Hi,

    sample to change your maint. dialog:

    1) PAI:

        CHAIN.
          FIELD ztab-enddate.
          FIELD ztab-startdate.
          module check_date  ON CHAIN-input.
        ENDCHAIN.

    2) include your coding from my 1st post

    in an include

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2005 at 07:36 AM

    Hi,

    You can program that for yourselve:

    (make a copy of your itab ( ztab[] = itab[] )

    Loop at itab.
        LOOP AT ztab WHERE 
                          ( itab-startdate BETWEEN ztab-startdate and ztab-enddate
                      or    itab-enddate  between ZTAB-startdate AND ztab-enddate ).
    
        ENDLOOP.
    if sy-subrc = 0.
    *error
    endif.
    Endloop.

    Regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2005 at 07:49 AM

    Dear Andreas Mann,

    Now I update the view table by tcode sm30... What I want is when I update the view table ,It can warn me when I create the repetition period ...

    The method you said is to add the source ...but I don't know where to add....Is there in the FuncitonPool belongs to the view table and how to do?

    in addition ,I maintenance the date in sm30 but not in program ...

    Message was edited by: Slam Yang

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2005 at 09:46 AM

    thank you very much

    the problem is solved with your great help.

    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.