Hi ,
The requirement is to check the vesrion checkbox for new version created through ME22n .
I have implemented exit : EXIT_SAPMM06E_012 and throwing a message for the following check .
*& Include ZXM06U43
*&---------------------------------------------------------------------*
*CASE sy-tcode.
* when 'ME22N'.
* IF SY-UCOMM = 'MECHECKDOC' or sy-ucomm = 'MESAVE'.
* If i_ekko-PROCSTAT = '01' .
* message 'Please tick the Version Completed in Version Tab' type 'E'.
* endif.
* ENDIF.
*endcase.
But my requirement is to automatically check the version .
I have found another exit EXIT_SAPL2012_001 . IT has VERSIONS structure with field COMPLETED . Ideally it should solve the purpose .
But the exit is not getting triggred . I have checked everything (creation of project , activation etc ..) .
Alternatively i tried calling it from method check of BADI ME_PROCESS_PO_CUST , with calling the exit FM . Here its being called ,but not marking the version as complete .
Its an urgent req . Please advise .
Thanks
Barun