cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase order date should not in future

Former Member
0 Kudos

Dear All,

how we will restrict user to post purchase order in future date.

Regards,

Mukesh Dwivedi

Edited by: MUKESH DWIVEDI on Jul 30, 2011 8:06 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks to all.

pardeep_malik
Active Contributor
0 Kudos

HI,

Ask the ABAPER to implement the error in BADI ME_PROCESS_PO_CUST with the following logic

IF ekko-bedat > sy-datlo

then system should give the error.

Regards,

Pardeep Malik

Former Member
0 Kudos

Hi,

You need to develop your requirement in BADI: ME_PROCESS_PO_CUST > PROCESS_HEADER or PROCESS_ITEM

Regards

Former Member
0 Kudos

Thanks Dear,

Could yo tel me about implement of Badi.

Regards,

Mukesh

pankaj_singh9
Active Contributor
0 Kudos

Hi,

Instead of implementing BAdi, go for Transaction Variant (TCode - SHD0) of ME21N and make PO Date field as "Display" only.

Refer link; [Creation and Use of Variant Transaction|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d1443e-0184-2c10-c68d-c612f771fe6f?QuickLink=index&overridelayout=true]

But this will block Backdated as well as future date PO both.

If you want to allow backdated PO and only block future date PO then go for BAdi "ME_PO_PROCESS_CUST" implementation only for which you will need an ABAPer to write the code as per the requirement.