Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

user-exit

Former Member
0 Likes
377

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?

1 ACCEPTED SOLUTION
Read only

George_Lioumis
Active Participant
0 Likes
357

Hi,

Yes you can.

Regards,

George

3 REPLIES 3
Read only

George_Lioumis
Active Participant
0 Likes
358

Hi,

Yes you can.

Regards,

George

Read only

0 Likes
357

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

Read only

0 Likes
357

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