on 2005 Aug 01 8:23 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you very much
the problem is solved with your great help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.