cancel
Showing results for 
Search instead for 
Did you mean: 

How to define the logistics in view table

Former Member
0 Kudos
75

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.

Accepted Solutions (1)

Accepted Solutions (1)

andreas_mann3
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

thank you very much

the problem is solved with your great help.

Former Member
0 Kudos

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

andreas_mann3
Active Contributor
0 Kudos

Hi,

first have a look here :

regards Andreas

andreas_mann3
Active Contributor
0 Kudos

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