cancel
Showing results for 
Search instead for 
Did you mean: 

To freez PO Doc date In ME21n

Former Member
0 Kudos

Hi expert ,

My Requirement is , i want to freez PO Doc date in Tcode ME21n Only show current date while creating a new PO . Means no one could make the PO in previous or future date from current date . Date should come just like sy-date but not in changable format.

Thanks

Chandra shekhar singh

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Chandra,

I really don't know how to block document date.

My problem was not to allow a previous date than today in doc date field.

If this is your issue please goto SPRO-> Material Management -> Purch -> Env. Data -> Def. att. of system messages,

Select New Entries and add 00 for version 06 for Appl A. 028 fro No. and E for Cat.

Best regards.

Former Member
0 Kudos

Thanks for helping me I appreciated your help

Former Member
0 Kudos

You can not do it through Field selection..

as far as Error message is concerned, there is message for past date still you can create a PO on future date..

the only way is to create a Variant through SHD0 trxn code..

or Use BADI ME_PROCESS_PO_CUST & incorporate your logic..

Former Member
0 Kudos

Dear Manohar

Is it possible thru SHD0 . Becouse ME21N is Functionpool Program while SHD0 is applicable for modulepool or dailog program.

If possible please let me know Becoz this method is betet than using BADIs .

Thanks

Chandra

former_member372876
Contributor
0 Kudos

Hi

Try Using Field selection,

Also try SAP message- there are lot of message by which you can put the check on the PO creating date

SPRO

Material Management

Purchasing

Enviournmnet Data

Attributes of system message

- System Message

Message no -ME 214 etc are their which can be chnaged to E- error

Hope it will be some help

Regs

Niti Narayan

Former Member
0 Kudos

Dear,

Your requirement can be fullfilled by using Screen variants.

tcode is SHD0.....Here you can make this field as DISPALY only.

Take help of ABAPER, they will do it immediately.

Regards

Utsav

Former Member
0 Kudos

Hi

Thanks for this but can u tell me how will use it like screen varient and all . bit breif it

regards

chandra shekhar singh

Former Member
0 Kudos

Dear Chandra,

Basically Screen variants will be prepared by ABAPERS.

But i will brief you about this.

Go to Tcode SHD0.

Enter tansaction ME21N..

Then it will take you to PO screen..There you have to scheck the check box for PO date as display.

Save and come out.

After saving it will ask you Package. Save it in your package.

Now try it will work.

PS: Kindly do it with help of Abaper.

Also if above solution doesn't work, then ask Abaper to write a code for that.

It will be small code.

regards

Utsav

Former Member
0 Kudos

Hi

I appreciated your help. this is helping me but bit stucking . thanks for help . i need in bit more brief like transaction varient or screen varient .

I follows the steps as per . i used tcode SHD0 then entered transaction varient name like zme21n after that i went ot creat icon then come PO screen but there were no checkbox otion to check like display and so. i told to abper i stucked up at the same . if any other way to use abaper for coding if any userexit or BADIs please let me know.

Thanks & Regards

chandra

Former Member
0 Kudos

Dear,

Ask your Abaper to prepare GUIXT scripts.

Ask him to write a code to make the paritucalur field as "Dsiplay"..

Regards

utsav

Former Member
0 Kudos

Dear Utsav,

I used tx SHD0 but this is not applicable for me21n. Becoz of it work only dialog programing not for function pool based program. if any other alter native please let me know.

Thanks

Chandra