‎2008 Jan 02 2:49 PM
hi,
i have 2 add new include statement in MV45AFZZ,to validate the fields,6 fields are there,can i use select statement inside include?
‎2008 Jan 02 2:59 PM
‎2008 Jan 02 2:59 PM
‎2008 Jan 02 3:06 PM
thanx goerge,
i have some requirement like in USEREXIT_SAVE_DOCUMENT_PREPARE
Following fields names to be used for checking at item level:
ZBASISPRICE-VBAK (Basis condition)
ZZFIRSTIDX-VBAK (First Index date)
ZZREVDATE-VBAK (First revision date)
ZZREVPRIOD-VBAK (Revision period)
ZZBASISREV-VBAK (Reference revision)
ZFORM-ZVS09 (Formula)
If A is filled in with P0 or P1
- B is mandatory and must be >= 01.01.2003
- C is mandatory and must be > current month
- D is mandatory
- E is mandatory, if D<=>1 (not equal monthly)
- F is mandatory (not less than one line if, several condition types for the considered material)
pls explain me d code
‎2008 Jan 02 3:27 PM
Hi again,
consider the following:
if VBAK-ZBASISPRICE = 'P0' or VBAK-ZBASISPRICE = 'P1'.
if VBAK-ZZFIRSTIDX is initial or VBAK-ZZFIRSTIDX < '20030101'.
message e398(00) with 'VBAK-ZZFIRSTIDX'
endif.
if VBAK-ZZREVDATE is initial or VBAK-ZZREVDATE4(2) <= sy-datum4(2).
message e398(00) with 'VBAK-ZZREVDATE'.
endif.
if VBAK-ZZREVPRIOD is initial.
message e398(00) with 'VBAK-ZZREVPRIOD'.
endif.
etc....
endif.
Regards,
George