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: 

Set default date in ME23N ?

Former Member
0 Kudos

In transaction me23n ..in header details there is a tab i.e, additional data...

under this tab ...there is validity start and vald end fields.

I have to set validity start date same as doc date

and validi end date equal to doc date + 6 months.

for eg.. if doc date is 01.01.2013 than validi star date must be  01.01.2013

and valid end date must be 01.07.2013..

how can i get this...???

please suggest....

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Do you want to change it when maintaining/creating Purchase order (ME21N and ME22N) then look at BAdI ME_PROCESS_PO_CUST (look at methods GET/SET_DATA on parameter IM_HEADER of methods POST and PROCESS_HEADER), else look at BAPI BAPI_PO_CHANGE.

Use the search tool also, there are already plenty of threads on similar threads.

Regards,

Raymond

0 Kudos

HI Raymond..

I want it during creation of purchase order..( ME21N)

Thanks

Hemant

0 Kudos

So look at BAdI ME_PROCESS_PO_CUST, method IF_EX_ME_PROCESS_PO_CUST~OPEN, in this method insert code like

DATA: ls_header TYPE mepoheader.
ls_header = im_header->get_data( ).
* change some values like ls_header-field = sy-datum
im_header->set_data( ls_mepoheader ).

Regards,

Raymond