Skip to Content
author's profile photo Former Member
Former Member

Reg: Badi for ME52N to check the version completed to activate

Hi Guru's,

My problem is in me52n transaction when ever we do changes over a PR then in the item's there will be an entry, with out validation check (its a check box entry ). But according to my client , they are requiring that validation check has to be checked each and every time when ever we do changes in the item's.

Also if the check box is ticked then only they will approve the PR and move to PO.

Otherwise the validation check will be set as 'check in progress' and it wont be approved to move to as a PO.

i attached the screen shot for the reference.

Thanks and advance,

Regards,

Vijay.

pastedImage_1.png (85.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Nov 22, 2012 at 07:51 AM

    Hi Amirtharaj ,

    I think there are two approaches to solve this problem.

    1. May be done through Enhancements.

    Customer Exit MEREQ001

    BADI ME_PROCESS_REQ_CUST can also be checked.

    2. Can be done through SPRO ( In my scenario this strategy is adopted )

    In this Scenario we make the system accept that Version 0 out of the generated Versions of PR is valid and the system automatically accepts the PR ( even if new Version are generated without Version Complete checkbox checked ) and follow document i.e PO can be created.

    For Version Management

    SPRO > IMG->MM->Purchasing->Version management->Setup Change Displays

    For more details

    http://scn.sap.com/message/7845715

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2012 at 09:12 AM

    Find the Badi with two operations in the seperate sessions.

    first put a break point in SXV_GET_CLIF_BY_NAME at ENDFUNCTION.

    now execute the Tcode ME52N and find the relevant BADI in CLIF and NAME Parameters and now check the same by doing second operation another session.

    Identify the common Badi and implement. Hope this helps..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2012 at 05:58 AM

    Hi Sijin sij,

    Check with BADI ME_REQ_NEW_VERSION.

    also not working.

    SPRO-> configuration available for the version 0 only .

    That's why we planing to do a badi implementation.

    Thanks & Regards,

    AmirtharajVijay.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Amritharaj ,

      While debugging I found an Include Program LMEDCMMF01.

      And the below codes ( from line number 216 ) , I think are responsible for automatically Version 0 being set to Complete. Check whether something can workout for you here.

      *.....should revision 0 be automatically completed?

      IF my_complete0 EQ mmpur_yes "customizing

      and ls_erevitem-revno eq '00000000' "only create with 0

      and g_proposal is initial. "not if set via proposal

      ls_erevitem-revok = mmpur_yes.

      ENDIF.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.