2014 Oct 06 1:53 PM
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
2014 Oct 06 2:20 PM
2014 Oct 07 4:46 PM
Thanks Raymond ,
I looked into IF_DCM_ADAPTER interface ... It has a method
IS_COMPLETE_VERSION_ALLOWED .. BUt it has returning paramter for version . Not to set the version as complete . Please advise me in case of any other alternative .