| Home • Forums • Interview Q's • Jobs • Testimonials • Contact Us | ||
Topics:General TopicsEmail a FriendContribute |
Populate the Latest GR Date based on the Delivery Date in the PO Creation(ME21N) and Change(ME22N)By Khaja Moulali Shaik, Siemens IT Solutions and Services Scenario: When
creating a PO (ME21N) or changing the PO (ME22N), the ‘Latest Possible
Goods Receipt Date’ should be
calculated 60 days to the Delivery Date and it should populated
automatically. Note:
This functionality will work, only the user click on ‘CHECK’ or ‘SAVE’
buttons.
Step
by Step Solution: Step
1: Go
to Transaction Code SE19. Provide
the Classic BADI Name as ‘ME_PROCESS_PO_CUST’.
And
Click on ‘Create Implementation’ to
implement the BADI. Note:
Please check whether this BADI is already implemented in the system or not. If
yes, use the Implemented BADI only. Because this BADI is not for multiple use. To
check whether the BADI is for multiple use or not,
SE18àBADI Name à Enhancement Implementation à
Overview. Step
2: Give
the implementation Name and click on ‘Continue
(Enter)
Give
the meaningful description for that implementation.
For
our requirement, we need to change the Latest GR Date based on the Delivery
Date. This process is done in Item Level. So, we will use the method ‘PROCESS_ITEM’
in the class ‘ZCL_IM_ME_PROCESS_PO_NEW’. Note:
This
class will create automatically. Class name will be combination of First letter
in Implementation name (Z), ‘_CL_IM_’, and the remaining letters in implementation name (ME_PROCESS_PO_NEW). Step
3: Double
click on the method ‘PROCESS_ITEM’.
And save it. System
will provide you the editor to write the code.
STEP
4: Write
the below code in between Method and End Method. IF sy-ucomm EQ 'MECHECKDOC' OR Step
5: Activate the method and implementation also. |
|
|
Please send us your feedback/suggestions at webmaster@SAPFunctional.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPFunctional.COM | Post Job • Contact Us ©2006-2007 SAPFunctional.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPFunctional.COM,
Inc. is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||