Application Development 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: 

making validity date in me21n as default to document date

Pratik2228
Participant
0 Kudos

Hi all,

In ME21N, po header in additional tab their two fields validity start and validity end ,

is their any exits or badi that validity start can be set default as document date...

Thanks ....

3 REPLIES 3

nabheetscn
Active Contributor
0 Kudos

Please check ME_PROCESS_PO_CUST method open. Please read documentation and search for the same.

Nabheet

0 Kudos

Hi,

Use BADI              "ME_PROCESS_PO"

In this there is a interface PROCESS_HEADER from there you will get no of methods under it.

first in code call method  GET_DATA to get header data details use RE_DATA. take document date and based on document date set validity start date and validity end date.

document date : field name : BEDAT

validity start date : KDATB

validity end date : KDATE

then call  method SET_DATA to set this header data.

hope it helps

0 Kudos

thanks